Home server with raid0 and raid1 issue after reboot
Hi Guys,
Trying to set home server on centos8. I've installed os on raid0 with 2x120GB ssd. Also I did setup raid1 2x500GB disks. So after that all was correct Code:
[root@localhost karcio]# df -h Code:
UUID=59c2c137-52eb-4842-9c63-8d788e33484b / ext4 defaults 1 1 - mount /mnt/raid1 is failing - dependency failed for /home - dependency failed for Local File system and system does not start. I guess I did somewhere mistake, not sure where :( Please have a look in screenshot https://i.postimg.cc/MT9NZH9T/photo-2020-09-17-21-21-35.jpg |
What is in your /etc/mdadm/mdadm.conf file? What is the contents of /proc/mdstat? What happens when you start the array manually? (also you have three, not two arrays) What happens when you run 'mdadm -s -A'?
|
Hi please have a look on results
Quote:
https://i.postimg.cc/gkL9sqZd/photo5...8708264979.jpg https://i.postimg.cc/fWmX41Xr/photo5...8708264977.jpg https://i.postimg.cc/28JVVw4Z/photo5...8708264976.jpg |
I'd also like to see the result of lsblk -f and/or blkid if these commands are available.
|
Your mdadm.conf is a mess: multiple lines for same arrays, missing swap. I recommend re-creating it from scratch, could be the reason why the system is not booting. Start with basic
Code:
DEVICE partitions Also, I made a mistake: 'mdadm -A -s', not 'mdadm -s -A' - sorry. If it start all arrays it means that arrays are fine but configuration files are not. |
Root on RAID0 - seriously ?. See my sigline.
|
Hi please have a look in commands output
https://i.postimg.cc/W4pN4DtK/photo5...8521950172.jpg https://i.postimg.cc/c1Pf8WRT/photo5...8521950171.jpg Looks like I have duplicated MD device names in config file, for create file I was using follow command Quote:
@syg00 what do you mean about root on raid0, is it wrong practice? Please explain, this is my first attempt to raid, so if I doing something wrong please explain what, or share a link I can read, Thank you all for your help |
Read the first couple of sentences of this - you cannot afford the risk; the root doesn't need any purported speed increase RAID0 supposedly offers.
|
Every practice has its place. RAID0 is fast and has no overhead but also has no redundancy and will fail if any of the disk fail, it is quite all right to use it if performance is essential while reliability is not and you don't mind restoring non-booting system from a backup now and then. Not something I would do though.
|
Hi guys, thank you for all your suggestion.
recreate mdadm config file help me and machine could boot Code:
mdadm --detail --scan >> /etc/mdadm.conf but after I've read https://en.wikipedia.org/wiki/Standa..._levels#RAID_0 Decided not to do raid0 on my 2x120GB disks. Instead this I did LVM. Now it is looks like: Code:
[root@localhost karcio]# df -h karcio |
All times are GMT -5. The time now is 05:24 PM. |