You are not logged in.

#1 2010-08-31 12:42:20

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Swapped Failed To Activate on Boot

I noticed when I was powering on my system last night that I had a "FAILED" red label next to 'Activating Swap'. I checked around in /var/log/ but couldn't find anything specific to why Swap was failing to start. Can anyone please help point me in the right direction and or what I can check to get this not to render any errors?

Thanks!


./

Offline

#2 2010-08-31 14:23:54

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: Swapped Failed To Activate on Boot

Check /etc/fstab for the swap entry.

Try 'swapon /dev/sdxY' replacing the device with the actual partition.

Offline

#3 2010-09-10 16:41:09

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Swapped Failed To Activate on Boot

Maybe what I am trying to do doesn't work but let me explain. I have two identical drives on my PC.

/dev/sda = 1 TB
/dev/sdb = 1 TB

I wanted to mirror the drives so I created two separate partitions on each drive:

sda1 = 1024 MB (Swap)
sda2 = 999  GB (Software RAID)

sdb1 = 1024 (Swap)
sdb2 = 999  GB (Software RAID)

I then only created /dev/md0 which consist of /dev/sda2 & /dev/sdb2 in RAID 1 mirror.

When I boot the system, I show that Swap fails during boot in bright 'red' letters. I don't know if it failed activating both or just any swap partitions in general. When I look at 'df -h' while my system is booted, I show:

[root@buster ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   10M  168K  9.9M   2% /dev
/dev/md0              687G  847M  652G   1% /
shm                   997M     0  997M   0% /dev/shm

Does this mean that only 1 swap partition activated successfully and the 2nd one failed? Should I mirror the two swap partitions into /dev/md1?

Please help!


./

Offline

#4 2010-09-11 03:03:58

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Swapped Failed To Activate on Boot

run

free -m

and

cat /etc/fstab

and post the results here please.

Offline

#5 2010-09-11 17:31:07

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Swapped Failed To Activate on Boot

[root@buster ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          1992        411       1581          0         39        249
-/+ buffers/cache:        122       1870
Swap:            0          0          0
[root@buster ~]# cat /etc/fstab 
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/md0  /    ext4 defaults 0 1
/dev/sda1 swap swap defaults 0 0
/dev/sdb1 swap swap defaults 0 0

Please let me know what I can do to resolve this? I am thinking that Arch Linux doesn't understand what to do with /dev/sda1 & /dev/sdb1 both being labeled '82' and formatted as swap partitions.


./

Offline

#6 2010-09-11 17:53:38

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Swapped Failed To Activate on Boot

Have you tried turning them on manually? Do it with the verbose script and post the output here, it may also show up in /var/log/messages

swapon -v /dev/sda1; swapon -v /dev/sdb1

A label of 82 is correct for a swap partition. It won't hurt anything to recreate the swap space on the devices:

mkswap /dev/sda1; mkswap /dev/sdb1

Offline

Board footer

Powered by FluxBB