Koozali.org: home of the SME Server

Command to rejoin a disk to raid

Offline charlien

  • ****
  • 88
  • +0/-0
    • http://www.rn-computing.com
Command to rejoin a disk to raid
« on: May 26, 2009, 11:52:17 PM »
I really don't want to screw things up so I'd like to see if my assumptions are correct. After the last update and reboot my server says the following about my raid configuration:

Current RAID status:                                                     │   
 │                                                                          │   
 │ Personalities : [raid1]                                                  │   
 │ md2 : active raid1 hdb2[1]                                               │   
 │       78043648 blocks [2/1] [_U]                                         │   
 │ md1 : active raid1 hda1[0] hdb1[1]                                       │   
 │       104320 blocks [2/2] [UU]                                           │   
 │ unused devices: <none>                                                   │   
 │                                                                          │   
 │                                                                          │   
 │ Only some of the RAID devices are unclean.                               │   
 │                                                                          │   
 │ Manual intervention may be required.   

Does the following command attempt to restore the drive no longer in the raid?

mdadm /dev/md2 -a /dev/hda2
...

Offline mr_martinez

  • *
  • 6
  • +0/-0
Re: Command to rejoin a disk to raid
« Reply #1 on: May 27, 2009, 01:25:48 AM »
  Try

   mdadm --add /dev/md2 /dev/hda2