December 21, 2025Dec 21 This is NOT a support request, more of a brag. Needing a backup system, I was enamored of the low power requirements to run the bpi-m5. But they have no sata ports to drive bigger SSD's. But I bought a 5 stack of 4Tb TMSC built SSD drives at $200/copy, figuring on using a USB3.2 hub and startech's usb3.2 to sata adaptors, a big drive cage and a 50 watt 5 volt psu. More than 3 drives plugged in was too much current for the hub, itgot hot & shut down, so I bought another hub & glued it to the otherside of the drive cage. Problem solved. Printed the shelves to hold the drives and a BPI-m5. I configured the 5 SSD's into a software raid6 of 11TB. A friend that is really good at shell scripts knocked up an rsync based thing that could go thru the user trees of all my machines, currently itself, this box, and all my cnc stuff in the garage, several 3d printers, a total of 8 machines, soon to be 9, making a backup of /home/gene or /home/cnc since cnc is first user on the pi running my big but old Sheldon lathe. This draws around 15 watts idling, up to 19 watts running, and does it all in 28 or 29 minutes. So that is something else these pi clones can do, and do very well. I've run it 7 or 8 times in two weeks, adding another 3d printer to the $systems list each time. Its used 4% of the 11TB so far. Using rsync the only expansion in storage is the backup copy of any file thats been changed since the last run. I love doing odd stuff like this just to see if it can be done. And it has succeeded beyond my expectations. That rpi4b running that lathe was another such "project". Started with an rpi3b which wasn't quite fast enough but its been running for over a decade, almost a decade since I switched it to a rpi4b. There, when the lathe is off, linuxcnc controls that too, the pi and monitor show as a 23 watt load. Whats not to like?
Friday at 02:23 AM5 days Author I have spent the summer in the shop, getting dialysis port installed when my kidneys succumed to the years, 92 of them. That machine is now my main machine as I am now in a bedroom at my sons place 10 miles from my place. This device mapper raid6 has run until about a month back when a drive failed. Due to the volatility of drive discovery, it was very difficult to locate the drive out of 5 that failed which I bought two more of the same brand but found then to be slightly more actual capacity.So I used the new ones to make rsync backups of the new 4 drive raid6. So I have 2 copy's of 20 some years of work, nearly 600G's on 2 4T drives.Determined to recreate the raid6 that mdadm can manage, it knows nothing of device mapper created raids. Determined to redo it with mdadm I have attempted to follow a script with edits to cancel the volatility of drive assignments.mdadm requires all partitions used to be the same exact size so I first made the newer drives first partitions to be the ext size of the older 4, and installed gpt tables so they alll looked alike. Then I found mdadm wants raw drives, no filesystems installed. I found wipefs was not the tool so I wound up doing about 50 megs of /dev/zero to each drive to clear the ext4 that gparted installed when I was building the one partition on each drive.Dot that all done & started the mdadm --create process on 20T of drives, which should give around 12T of raid6. 27 hours later, it errored out, another drive had puked. I tore it down by unplugging all and rebooted. Plugging in each drive by itself and rebooting showed all drives good. Check in /dev amd got rid of anything md related, removed /etc/lcm just for insurance,plugged all of them back in & rebooted. Used dd to clear the first 50 mags of each partition, so the mdadm theoretically was starting with 5 raw 3.6T partitions..But, it won't, even with a --force option run,claiming /dev/md0 already exists.root@bananapim5:~# time mdadm --create --verbose --force /dev/md0 --level=6 --raid-devices=5 /dev/sd[cdefg]1To optimize recovery speed, it is recommended to enable write-intent bitmap, do you want to enable it now? [y/N]? nmdadm: layout defaults to left-symmetricmdadm: layout defaults to left-symmetricmdadm: chunk size defaults to 512Kmdadm: size set to 3906838528Kmdadm: Fail to create md0 when using /sys/module/md_mod/parameters/new_array, fallback to creation via nodemdadm: /dev/md0 is already in use.real 0m5.864suser 0m0.000ssys 0m0.014sroot@bananapim5:~#/dev/sda or /dev/sda1 doesn't exist, /dev/md0 does not exist. /dev/sdb, sdb1 and sdb2 exist, on a toshiba 1T lappy drive, so that explains the [cdefg] in the mdadm --create run.The real time is me putting the keyboard where I can confirm the no it asks for. After the n is entered, the exit is only milliseconds and it never touches the drives.And /dev/md0 still does not exist.I'm going to change that line to make md1 just for S&G. Might be back later with results.Reply if you think I'm still doing it wrong.Cheers, Gene.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.