Pegasi Wiki

This wiki acts as a memo for our own work so why not share them? Feel free to browse and use out notes and leave a note while at it.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_md_replace_a_disk [2012/04/13 14:25]
Pekka Kuronen
linux_md_replace_a_disk [2012/04/13 14:47]
Pekka Kuronen
Line 75: Line 75:
 Just to be on the safe side you should do the following steps: Just to be on the safe side you should do the following steps:
   * Try booting from sdb with BIOS boot override from second disk   * Try booting from sdb with BIOS boot override from second disk
-  * Disconnect the first drive cable, boot and confirm that sda really is the one disconnected (/​etc/​fstab ​labels)+  * Disconnect the first drive cable, boot and confirm that sda really is the one disconnected (check /​etc/​fstab ​/​dev/​disk/​by-uuid)
   * Connect the new drive as first drive, boot and do following   * Connect the new drive as first drive, boot and do following
  
Line 85: Line 85:
 </​code>​ </​code>​
  
-Now /​proc/​mdstat shows you it is syncing /dev/sda and after it's completion all is done. Voilá!+Now look at the arrays with mdadm -D /dev/mdX and confirm that the new drive partitions are as spares. They will activate as soon as one of actives fail or is marked as failed.  
 + 
 +Or if you have 2 drives raid /​proc/​mdstat shows you it is syncing /dev/sda and after it's completion all is done.  
 + 
 +Oh, and remember again to [[linux_md_boot_multiple_disks|make the new drive bootable]] 
 + 
 +Voilá!

  //check if we are running within the DokuWiki environment if (!defined("DOKU_INC")){ die(); } //place the needed HTML source codes BELOW this line