software raid- Swap lost [Solved]

Franz Waldmüller waldbauernbub at gmx.at
Fri May 15 18:44:42 UTC 2009


Thank you Markus for your advice my Swap is working again.
This was a very quick help.
If somebody has some nice RAID/mdadm documentation at hand I would
appreciate a link.
--> I would like to gain more knowledge and make sure that I will
receive an email by mdadm if a device is not operating as it ought to.

Franz

For the archives:
-------
This was the problem:
I noticed that on my 8.04 ubuntu system no swap was enabled. All
partitions of this system a mirrored as separate raid1 md-devices.

I checked cat /proc/mdstat
md2 : inactive sda3[0](S) sdb3[1](S)
        6441856 blocks
md2 is the md-device of the swap partition.

thanks to Markus the following commands proved successful
#mdadm --detail /dev/md2
mdadm: md device /dev/md2 does not appear to be active.

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

then 1 device was active again the second not

#mdadm /dev/md2 --re-add /dev/sdb3

and everything is fine again.

Thanks again






More information about the ubuntu-users mailing list