Software RAID 1 with multiple arrays: mounts not honoured after reboot
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Software RAID 1 with multiple arrays: mounts not honoured after reboot
I have two disks - dev/sda and /dev/sdb.
I follow the RAID readme and create a number of RAID 1 arrays as follows:
Primary - sda1+sdb1 = /dev/md0 - / (ext4)
Logical - sda5+sdb5 = /dev/md1 - swap
Logical - sda6+sdb6 = /dev/md2 - /tmp (ext2)
Logical - sda7+sdb7 = /dev/md3 - /usr (jfs)
Logical - sda8+sdb8 = /dev/md4 - /var (jfs)
Logical - sda9+sdb9 = /dev/md5 - /home (jfs)
Logical - sda10+sdb10 = /dev/md6 - not mounted - to be used at a later stage for logical volumes
I follow the instructions to the letter but after rebooting only / is mounted.
In addition, the device numbering for the RAID arrays is now /dev/md0, /dev/md122, /dev/md123, /dev/md124, /dev/md125, /dev/md126, and /dev/md127. Needless to say only / is mounted, because /etc/fstab is set up for /tmp on /dev/md2, /usr on /dev/md3, etc.
Some important notes on how raid really works with the more recent kernels (like last 3 years)
1. Partition type fd is obsolete don't bother with it and it can cause problems later. Use partition type da instead.
2. You must use the initrd to boot or the raid devices wont be detected, see the section under "Using the generic kernel" for the details.
Some important notes on how raid really works with the more recent kernels (like last 3 years)
1. Partition type fd is obsolete don't bother with it and it can cause problems later. Use partition type da instead.
2. You must use the initrd to boot or the raid devices wont be detected, see the section under "Using the generic kernel" for the details.
EDIT: Your problem may also be related to the use of logical drives, not sure if RAID ever worked with those.
Thanks for the updated info and the link. I think the README should mention
that partition type fd is deprecated.
I have a feeling logical drives are indeed the problem. For the moment I have
done what Richard Cranium suggested and gone with a single RAID partition and
multiple Logical Volumes. Perhaps this is the best way after all, although in
the future I would like to try "disposable" mounts like /usr on RAID0 and
/home on RAID1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.