2008-06-10

raid1 Replacing a disk

Planet Debian Administration
raid1 Replacing a disk

  • mdadm --detail /dev/md$ check which disk is alive
  • shutdown
  • replace crashed harddisk
  • boot machine
  • sfdisk -d /dev/sda | sfdisk /dev/sdb
  • mdadm --detail /dev/md0
  • check partitions
  • rebuild partitions with mdadm --add /dev/md0 /dev/sdb1
  • check for other raid partitions
  • check status with watch "cat /proc/mdstats"

After that it is finished I am ready for the next harddisk crash

Комментариев нет: