GRUB2 question | Replacing drive
by baddah from LinuxQuestions.org on (#5DJV6)
Hi,
I have a centos 7 server running software RAID1. One of the drives failed and i'm getting ready to replace it. Already removed the failed drive from array.
Code:cat /proc/mdstat
Personalities : [raid1]
md128 : active raid1 sda4[2]
1771962368 blocks super 1.2 [2/1] [U_]
bitmap: 5/14 pages [20KB], 65536KB chunk
md125 : active raid1 sda1[2]
49151872 blocks super 1.2 [2/1] [U_]
md126 : active raid1 sda2[3]
1023936 blocks super 1.0 [2/1] [U_]
md127 : active raid1 sda3[2]
102399872 blocks super 1.2 [2/1] [U_]
bitmap: 1/1 pages [4KB], 65536KB chunkWanted to make sure system will boot from remaining drive so I ran grub2-install /dev/sda but I got the following back.
Code:grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: Couldn't find physical volume (null)'. Some modules may be missing from core image..
grub2-install: warning: Couldn't find physical volume (null)'. Some modules may be missing from core image..My /boot partition is part of the md array. (md126)
I just want to make sure the system will boot when I switch it off to replace the drive. Any pointers on what I can do to be 100% sure it will boot and even suggestions on what to do if it does not.
As a side note - I also have a 3rd drive in this server that is not part of the raid array and just have a normal ext4 filesystem I use to save some extra files. Can i install grub2 to this drive as well?


I have a centos 7 server running software RAID1. One of the drives failed and i'm getting ready to replace it. Already removed the failed drive from array.
Code:cat /proc/mdstat
Personalities : [raid1]
md128 : active raid1 sda4[2]
1771962368 blocks super 1.2 [2/1] [U_]
bitmap: 5/14 pages [20KB], 65536KB chunk
md125 : active raid1 sda1[2]
49151872 blocks super 1.2 [2/1] [U_]
md126 : active raid1 sda2[3]
1023936 blocks super 1.0 [2/1] [U_]
md127 : active raid1 sda3[2]
102399872 blocks super 1.2 [2/1] [U_]
bitmap: 1/1 pages [4KB], 65536KB chunkWanted to make sure system will boot from remaining drive so I ran grub2-install /dev/sda but I got the following back.
Code:grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: Couldn't find physical volume (null)'. Some modules may be missing from core image..
grub2-install: warning: Couldn't find physical volume (null)'. Some modules may be missing from core image..My /boot partition is part of the md array. (md126)
I just want to make sure the system will boot when I switch it off to replace the drive. Any pointers on what I can do to be 100% sure it will boot and even suggestions on what to do if it does not.
As a side note - I also have a 3rd drive in this server that is not part of the raid array and just have a normal ext4 filesystem I use to save some extra files. Can i install grub2 to this drive as well?