You are not logged in.
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
Check /etc/fstab for the swap entry.
Try 'swapon /dev/sdxY' replacing the device with the actual partition.
Offline
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/shmDoes 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
run
free -mand
cat /etc/fstaband post the results here please.
Offline
[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 0Please 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
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/sdb1A 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/sdb1Offline