Booting machine after removing hard-disks from software raid array

From Notes_Wiki
Revision as of 05:38, 9 November 2012 by Saurabh (talk | contribs) (Created page with "=Booting machine after removing hard-disk from software raid array= When we try to boot after removing one hard-disk in some cases the system may boot properly. In other case...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Booting machine after removing hard-disk from software raid array

When we try to boot after removing one hard-disk in some cases the system may boot properly. In other cases it would give error that partition or device '/dev/md<n>' does not exists. In such case we have to boot using linux installation cd in rescue mode and follow these steps:

  1. chroot /mnt/sysimage
  2. more /proc/mdstat
  3. mdadm --auto-detect
  4. more /proc/mdstat
  5. mdadm --detail -sv
  6. mdadm --detail -sv > /etc/mdadm.conf
  7. sync
  8. exit
  9. exit

After this the system should boot. In case you have added new spare hard-disk then you must partition it appropriately. Use 'partprobe' to detect new partitions and then use 'mdadm' as explained above to add these new partitions in existing raid array.