Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 95:22:53 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,417 |
Good question Marc. I'm searching for someone who knows how to combine 4
ea 4T SSD's into one volume for use with amanda, the lvm docs are somewhat confusing, lacking the context that actually teaches.
banana pi-m5. so far armbian noble has it covered. The only thing I haven't tried on them is linuxcnc as it depends on a specific version of gpio for some of its 50 microsecond IRQ response time.
How are you connecting your SSDs? Via USB3 or via good quality SATA leads and high quality power supply?
Hope this helps - all the very best, as ever,
Andy Cater
(amacater@debian.org).
Thanks Andy, Bookmarked FFR.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
.Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
On Tue, Dec 31, 2024 at 06:54:55PM -0500, gene heskett wrote:unforch sgdisk does not appear to be available on armbian. Suitable
NOTE: This is not guaranteed advice. Armbian is NOT Debian and the version name you quote is based on Ubuntu 24.04 LTS.Good question Marc. I'm searching for someone who knows how to combine 4
ea 4T SSD's into one volume for use with amanda, the lvm docs are >>>>>>> somewhat confusing, lacking the context that actually teaches.
This advice is largely taken from Jeff Geerling - who spends a lot of
time with ARM based single board computers at https://www.jeffgeerling.com/blog/2021/htgwa-create-raid-array-linux-mdadm
Operating system: Armbian Noble - you don't say whether this is a version with a desktop or not. I'm assuming the minimal server version from their website - from 17th November 2024 - 472MB download.
Assumptions:
============
Assuming you want RAID 10 (from a later reply in this thread) and you're going to *just* use one single RAID volume and not also use LVM.
Assuming also that you're going to format the disks as GPT, use the full extent of the disks and format the partition on each one of them as a RAID partition.
[The alternative is to mark the whole disk as usable by RAID which means that you may need to remember to zero superblocks and so on if/when you re-use them elsewhere].
All commands below are given as sudo commands
Run the command lsblk to list all the drives on your system.
sudo lsblk
Note down the device names of the drives you wish to use.
For the purposes of the command I give below, I'm assuming they are
/dev/sda to /dev/sdd and that partitions will be /dev/sda1, sdb1 and so on.
Jeff uses wipefs to wipe the drives - if they've never had anything on
them, you may not need to do this.
He also uses a command called sgdisk to partion the disks - I suspect
that there are equivalents with parted.
sudo apt install sgdisk
sudo sgdisk -n 1:0:0 /dev/sda
sudo sgdisk -n 1:0:0 /dev/sdb
sudo sgdisk -n 1:0:0 /dev/sdc
sudo sgdisk -n 1:0:0 /dev/sdd
Run lsblk again and you should see /dev/sda1, /dev/sdb1 and so on.
You may already have mdadm - if not, install it with
sudo apt install mdadm
Creating the RAID10 with mdadm
==============================
sudo mdadm --create --verbose /dev/md0 --level=10 --raid-devices=4 /dev/sd[a-d]1
(This is one line - if it gets reformatted, all the commands with dashes are -- double dashes. Similarly in the following commands)
Verifying the RAID10 exists and is working ==========================================
sudo mdadm --detail /dev/md0
Make the array persistent by adding it to /etc/mdadm/mdadm.conf ===============================================================
sudo mdadm --detail --scan --verbose | sudo tee -a /etc/mdadm/mdadm.conf
Format the array - this is using "lazy" formatting to avoid long initialisation
===============================================================================
sudo mkfs.ext4 -m 0 -E lazy_itable_init=0,lazy_journal_init=0 /dev/md0
Check with lsblk for md0 and mount the array ============================================
lsblk should show the individual elements of /dev/md0
Make a mount point and mount the array
sudo mkdir /mnt/raid0
sudo mount /dev/md0 /mnt/raid0
sudo df -h should show it
Add it to /etc/fstab
====================
If you don't add the mount to /etc/fstab, it won't be mounted after you reboot!
$ sudo blkid
...
/dev/md0: UUID="5d3b012c-e5f6-49d1-9014-1c61e982594f" TYPE="ext4"
Then, edit /etc/fstab (e.g. sudo nano /etc/fstab) and add a line like the following to the end:
UUID=5d3b012c-e5f6-49d1-9014-1c61e982594f /mnt/raid0 ext4 defaults 0 0
Save that file and reboot.
Note: If genfstab is available on your system, use it instead. Much less likely to asplode things:
sudo genfstab -U /mnt/raid0 >> /etc/fstab.
banana pi-m5. so far armbian noble has it covered. The only thing I haven't >> tried on them is linuxcnc as it depends on a specific version of gpio forI have found another post from a Debian developer whose experience with specifically the BananaPi M-5 was not useful who specifically suggested against it and similar SBCs with Amlogic chipsets.
some of its 50 microsecond IRQ response time.
If you find that connection via USB3 doesn't work well for you and thatHow are you connecting your SSDs? Via USB3 or via good quality SATA leads >>> and high quality power supply?
the board seems underpowered, you will be completely out on your own again
I think.
.Hope this helps - all the very best, as ever,Cheers, Gene Heskett, CET.
Andy Cater
(amacater@debian.org).
Thanks Andy, Bookmarked FFR..
Cheers, Gene Heskett, CET.Cheers, Gene Heskett, CET..
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable. >>>> - Louis D. Brandeis
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Can you remind us why you do not ask the Armbian folks how to use their operating system instead of us poor uninformed Debian folks?
On 1/2/25 10:53, Andrew M.A. Cater wrote:
sudo apt install sgdiskunforch sgdisk does not appear to be available on armbian.
But… do we really car?
Hi Gene,
On Thu, Jan 02, 2025 at 05:01:19PM -0500, gene heskett wrote:
On 1/2/25 10:53, Andrew M.A. Cater wrote:Can you remind us why you do not ask the Armbian folks how to use their operating system instead of us poor uninformed Debian folks?
sudo apt install sgdiskunforch sgdisk does not appear to be available on armbian.
After all, as you pointed out in [gene-knows-best], 99% of us just
aren't on your level.
[gene-knows-bnest]: https://bit.ly/gene-knows-best
Thanks,
Andy
On 03/01/2025 05:01, gene heskett wrote:
sudo apt install sgdiskunforch sgdisk does not appear to be available on armbian. Suitable
substitute? Display is wayland so X is out. root not allowed.
Gene, have you tried to type this command name into a search engine
prompt?
Have you read "man man" to discover search facilities provided by man database? I insist on this particular way with hope that it will help
to recall these options or commands next time.
Never execute unknown commands before reading its description.
.
sudo apt install sgdisk
unforch sgdisk does not appear to be available on armbian. Suitable substitute? Display is wayland so X is out. root not allowed.
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
On 1/2/25 17:16, Andy Smith wrote:
Can you remind us why you do not ask the Armbian folks how to use their operating system instead of us poor uninformed Debian folks?
Igor is busy, often answering his email long after I've solved the problem with some else's help.
put this guy with an 8h grade education in some unusual places, like when
the navy's trieste went to the bottom of the mohole, 37k feet deep in the pacific, in Feb 1959, the tv cameras that let them see outside, had my fingerprints in them, I was the bench tech that assembled them.
if I made a mistake, I've owned it. You have all seen that too. If you
choose to remember.
On Thu, Jan 02, 2025 at 05:01:19PM -0500, gene heskett wrote:Thank you, a lot, Andy.
apt-get install gdisksudo apt install sgdisk
unforch sgdisk does not appear to be available on armbian. SuitableGdisk is the fdisk eqivalent that works with GPT
substitute? Display is wayland so X is out. root not allowed.
It needs to be run as root or with sudo
sgdisk is then available to you
All the very best, as ever,
Andy Cater
(amacater@debian.org)
Cheers, Gene Heskett, CET..
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis