software raid- Swap lost

Franz Waldmüller waldbauernbub at gmx.at
Fri May 15 16:50:55 UTC 2009


Markus Schönhaber schrieb:
> Franz Waldmüller:
> 
>> cat /proc/mdstat shows that md2, the Raid device of the swap space is 
>> "inactive".
>> md2 : inactive sda3[0](S) sdb3[1](S)
>>        6441856 blocks
> 
> I'm not too familiar with the contents of /proc/mdadm, but my guess
> would be that "(S)" means the corresponding physical device is seen as
> spare.
> mdadm --detail /dev/md2
> should print something more legible, that either confirms my guess or
> disproves it.
> 
> The first thing I'd try would be
> mdadm --assemble --scan
> Maybe this re-activates the RAID device. If not, the above mentioned
> output of
> mdadm --detail /dev/md2
> might prove helpful.
> 

Hi Markus,
Thanks for the advice:
I followed your instructions:
mdadm --assemble --scan started 1 drive.
launch the command a second time didn't help to make the start the 
second one.

Here is what I did

1.step:
# sudo mdadm --detail /dev/md2
[sudo] password for ***:
mdadm: md device /dev/md2 does not appear to be active.

2.step
#sudo mdadm --assemble --scan
mdadm: /dev/md2 has been started with 1 drive (out of 2).

3. step
  #sudo mdadm --detail /dev/md2
/dev/md2:
         Version : 00.90.03
   Creation Time : Sat Jun  7 19:40:44 2008
      Raid Level : raid1
      Array Size : 3220928 (3.07 GiB 3.30 GB)
   Used Dev Size : 3220928 (3.07 GiB 3.30 GB)
    Raid Devices : 2
   Total Devices : 1
Preferred Minor : 2
     Persistence : Superblock is persistent

     Update Time : Sun Aug 31 20:23:38 2008
           State : clean, degraded
  Active Devices : 1
Working Devices : 1
  Failed Devices : 0
   Spare Devices : 0

            UUID : 6e01b9e9:9554cc84:373f983d:325f585b
          Events : 0.13

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



4. step
#cat /proc/mdstat

md2 : active raid1 sda3[0]
       3220928 blocks [2/1] [U_]

Thanks for your help. If you have further suggestions I thank you in 
advance.
Franz




More information about the ubuntu-users mailing list