software raid- Swap lost

Franz Waldmüller waldbauernbub at gmx.at
Fri May 15 15:28:08 UTC 2009


Hi,

I just noticed my ubuntu 8.04 (all updates) is not using the swap space 
any more. I have configured a software raid 1 (with the alternate CD 
back in june last year), All 7 partitions use a seperate md device.
/boot, /, Swap, /tmp, /var, /home, /data

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 tried to switch on swap with this command (I am not quite sure about 
the command - just tried it out)

sudo swapon -L /dev/md2
[sudo] password for ****:
swapon: Konnte „stat“ nicht auf /dev/disk/by-label/\x2fdev\x2fmd2 
anwenden: No such file or directory

swapon -U "UUID" didn't work either.

Maybe you could point me to a solutions. I read the mdadm manpages but I 
am not quite sure, about the search terms to use.

/etc/apt/sources.list
Backport are enabled
main,multiverse, security, universe, restricted

Below some output which might be useful.
(kernel, mdstat,mdconf)
Franz

-------------
#uname -a
Linux hut-main 2.6.24-24-generic #1 SMP Wed Apr 15 15:54:25 UTC 2009 
i686 GNU/Linux
------------------------
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] 
[raid4] [raid10]
md6 : active raid1 sda8[0] sdb8[1]
       249955200 blocks [2/2] [UU]

md5 : active raid1 sda7[0] sdb7[1]
       195310080 blocks [2/2] [UU]

md4 : active raid1 sda6[0] sdb6[1]
       10257344 blocks [2/2] [UU]

md3 : active raid1 sda5[0] sdb5[1]
       4883648 blocks [2/2] [UU]

md2 : inactive sda3[0](S) sdb3[1](S)
       6441856 blocks

md1 : active raid1 sda2[0] sdb2[1]
       24410688 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
       345280 blocks [2/2] [UU]

unused devices: <none>
----------------------------------------

cat /etc/mdadm/mdadm.conf
# mdadm.conf
# Please refer to mdadm.conf(5) for information about this file.

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR ***.***@myemail.com

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=1436762d:4f81e44a:c202787a:bf614654
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=cb232387:c5f4a62f:6af7c227:01bc8445
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=6e01b9e9:9554cc84:373f983d:325f585b
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=c479774b:7a8d08f9:7c22944b:7e5112bf
ARRAY /dev/md4 level=raid1 num-devices=2 
UUID=0c8a8a90:8745d838:820a2268:e9ec1162
ARRAY /dev/md5 level=raid1 num-devices=2 
UUID=03a006e6:e28f71a1:6d44d9d5:babf7152
ARRAY /dev/md6 level=raid1 num-devices=2 
UUID=213c03d2:099926e6:5e1605e1:2908e66f

# This file was auto-generated on Sat, 07 Jun 2008 17:52:48 +0000
# by mkconf $Id$





More information about the ubuntu-users mailing list