[Gllug] RAID question

Sean Burlington sean at uncertainty.org.uk
Tue Nov 6 14:43:03 UTC 2007


Hi,
  I set up RAID 1 about 18 months ago on a Debian box and it's all been
great until yesterday when I removed an unused hard drive - and got one
of the RAID drives by mistake.

I didn't notice straight away so now they are out of sync and the second
disk isn't joining the array at boot.


I'm not clear how to resync the array and would appreciate any pointers

Can I just run the following?

mdadm /dev/md0 --re-add /dev/hdc1
mdadm /dev/md1 --re-add /dev/hdc2

Google is giving me advice on replacing failed drives and I guess I
could wipe the drive and start again - but that seems kind of clunky.






md0 is my boot partition and md1 contains everything else on LVM


mdadm --query --detail /dev/md0
/dev/md0:
        Version : 00.90.03
  Creation Time : Mon Sep 25 19:33:05 2006
     Raid Level : raid1
     Array Size : 497856 (486.27 MiB 509.80 MB)
    Device Size : 497856 (486.27 MiB 509.80 MB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Tue Nov  6 12:18:43 2007
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : e062c927:77b87568:dadac229:7bd4be3d
         Events : 0.1506

    Number   Major   Minor   RaidDevice State
       0       3        1        0      active sync   /dev/hda1
       1       0        0        1      removed



  mdadm --query --detail /dev/md1
/dev/md1:
        Version : 00.90.03
  Creation Time : Mon Sep 25 19:33:51 2006
     Raid Level : raid1
     Array Size : 244613632 (233.28 GiB 250.48 GB)
    Device Size : 244613632 (233.28 GiB 250.48 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Tue Nov  6 14:38:09 2007
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 0076fa11:ff507715:0a06c89d:a477a9cd
         Events : 0.1819310

    Number   Major   Minor   RaidDevice State
       0       3        2        0      active sync   /dev/hda2
       1       0        0        1      removed

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list