Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

building a big raid6, mdadm or device mapper?

Featured Replies

I have, on a bpi-m5 made what was going to be a backup machine out of two usb3.1 7 port self powered hubs plugged into the USB ports on the bpi-m5, a 100 watt 5 volt supply, and 6 drives, a 1T toshiba partitions as around 875G for gp use, like t-birds local folders and about 54G as swap, then 5 of the 4T SP SSD's, using at first the GFS2 file system, mainly because RH's tut uses it. Because the write currents tripped off the hubs, I had to use two of those hubs to spread the load. All these 6 drives are on startech usb3.1 to sata-iii adapter cables, 3 plugged into each hub. A usb3.1 wifi radio from panda at times, but not at the instant while I work on this.

I made a raid6 out of the 5 4T drives for about 12T of storage, and backed up the user 1000 directories of my 8 machine home net several times, using about 4% of the raid6. It ran about 14 months, then a drive failed but the raid6 still worked on 4 drives. I bought another pair of the drives and will have the cables by the end of the present week. I had one more cable on hand, so I used it to make two copies on the 2 new drives, one of which I have since reformatted to a single full drive ext4 partition I'll use to replace the failed drive. Finding which drive had failed was a MAJOR PITA when linux finds the drives in random order. The one T toshiba lappy drive is in the mddle of the sda,sdb,sdc,sdd,sde,sdf listing in /dev in each powerdown reboot. The powerdown is the only way to reset a shutdown hub. The bpi-m5 with only the Toshiba drive plugged in, draws around 12 watts acc my kill-a-watt. With the cage fan on a voltage booster, nothing shows over 40C and is silent.

I've now torn down that raid6, and have been advised that gfs2 isn't the best choice, ext4 is, so those 5 drives are now labeled by both GPT names and partition names so I can hopefully determine which drive has failed by the lack of those names. All are presently plugged in and I have a row of icons down the left edge of an xfce4 workspace. However, mdadm has never seen this raid6 from any angle as it was apparently setup originally (I'm now 92 and spent the past summer in the shop having dialysis ports installed for 3x a week sessions tied to a machine) with device mapper tools, so each piece seen in a /dev listing was named dm-# where # is 0 to 10 for a 5 drive setup. Mounted by using /dev/vg0-myraid in the /etc/fstab file to identify it. This explains why mdadm cannot see this raid6.

If you read the Ubuntu mdadm man page, it says right in the first 20 lines that mdadm is on its way out, mentioning device mapper is the future way. Either manpage is over 1k lines of text and give few examples, not enough to be a setup guide I can easily grok.

I am at the point where I'm ready to build this raid6 again. Which set of tools should I use? device mapper or mdadm?

A friend's fedora manpage does NOT say what the ubuntu manpage says! Either way I need a setup tutorial. I think I followed a stackoverflow howto 2 years ago but won't swear to that. I can't find it now. My lack of proper google-foo, probably.

Somebody toss me an oar, please.

Cheers, Gene1934

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.