Difference between revisions of "Booting machine after removing hard-disks from software raid array"

From Notes_Wiki
(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...")
 
m
Line 1: Line 1:
<yambe:breadcrumb>Software raid configuration</yambe:breadcrumb>
=Booting machine after removing hard-disk from software raid array=
=Booting machine after removing hard-disk from software raid array=


Line 13: Line 15:


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.
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.
<yambe:breadcrumb>Software raid configuration</yambe:breadcrumb>

Revision as of 12:34, 18 November 2013

<yambe:breadcrumb>Software raid configuration</yambe:breadcrumb>

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.


<yambe:breadcrumb>Software raid configuration</yambe:breadcrumb>