Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I did this almost 3 months ago, the system is live now and I can't do a roll-back.
If I reboot it, I'll be screwed, cause the array md1 won't be autodetected and the Volume Group won't come up = kernel panic.
So what are my options now? I mean besides backing up all the stuff and rebuilding the server or creating proper raid partitions on larger drives and moving the raid mirrors to these partitions.
Any way to force the soft raid configuration on boot?
Or maybe make md1 smaller so I can move the mirror to the partitioned drive of the same size?
The setup you using is quite general. I dont see any point why it will fail on reboot. MD will come up automatically after reboot. Also if you look at the rc.sysinit it will first initialize the RAId and then LVM. As a upfront precaution u can check the initrd file for modules of md in it.
The think is you can add the device names in /etc/mdadm.conf, which I think is a much better place. Adding the entry you mentioned to rc.sysinit is not really the best idea. Check link below :
I tried doing this on a virtual machine (I did same disk/raid/partition layout as on the server with problem) and it didn't work.
My "/" partition is a part of volume group, which is spanned across two software raid1 arrays md0 (which is fine) and md1 (which doesn't get detected):
[~]# pvdisplay
--- Physical volume ---
PV Name /dev/md0
VG Name VolGroup00
PV Size 232.78 GB / not usable 2.62 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 7449
Free PE 0
Allocated PE 7449
PV UUID qWT0N3-QEgL-X9yL-m7vR-VST0-DEdT-aADNUP
--- Physical volume ---
PV Name /dev/md1
VG Name VolGroup00
PV Size 465.76 GB / not usable 11.94 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 14904
Free PE 0
Allocated PE 14904
PV UUID lWO2fY-SnOF-6sGf-lo0T-gRvk-0z6I-s9XH
So I don't think it even gets to check the config file.
And putting stuff into rc.sysinit didn't work either.
Cant find the exact link but I believe that adding the MD module before anything can help you. Please check the man for mkinitrd .. If i recall it right its something like "--with" option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.