Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In SuSE 9.3 Pro, during a system turn off process
at the logout, I always get "turning off swap - missing"
message.
How can I correct this? That is, how can I make sure
I have my swap partition on automatically to begin with
during the boot up process so that I do not get this missing
message at the swap turn off process during system off stage.
Thanks for your input. Actually, I have two swap partitions;
one from FC3 and another from SuSE 9.3 Pro. Each distro
exists on its own separate hard drive.
However, it is from SuSE 9.3 Pro that displays this "turning off
swap - missing" message during a logout process. I have the
following lines from /etc/fstab (SuSE 9.3 Pro):
I believe my swap's working fine. The following
is the result from your asked commands:
dmesg | grep swap
Adding 2031608k swap on /dev/VolGroup00/LogVol01. Priority:42 extents:1
Adding 1052216k swap on /dev/hdd1. Priority:42 extents:1
swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 Partition 2031608 0 42
/dev/hdd1 Partition 1052216 0 42
But still, I get the same "truning off swap - missing" message during
logout process in SuSE 9.3 Pro.
I'd appreciate if anyone has any idea where this message's coming from,
or how to resolve this issue such that I do not have that "missing" message
during the logout process.
I thing the message comes from the attempt to use both available swap partitions the same time. Are you using the same /etc/fstab for both OS's? Otherwise try to delete the FC3 swap from SUSE's fstab.
EDIT: I don't know if it is possible to use two swap partitions on one system, but the error comes most probably from the FC3 device-node (/dev/mapper/VolGroup00-LogVol01) that does not exist on SUSE (or has another identifier).
Actually, I initially thought along your line of reasoning,
but I decided not to play with what SuSE had already
configured in the /etc/fstab during its installation.
Now, I just tried what you suggested, but this still doesn't
resolve the issue. That is, I still have the "turning off swap -
missing" message during the logout process.
Basically, FC3 was in existence first on my system and later
came the SuSE 9.3 Pro. Now, SuSE 9.3 Pro's Grub lives in
my system's MBR.
Try doing a swapoff for the FC3 swap, then shutdown.
If the message goes away, comment out the line from fstab. There's no reason to consider it sacred, just because an installer created it...
Actually, there's no FC3 swap partition to turn off now as
there's only one SuSE swap partition in the /etc/fstab.
But, still the "turning off swap - missing" message is displayed
during the system shutdown.
I'm also noticing the following message during the startup:
waiting for device /dev/VolGroup00/LogVol01 to appear ...
resume /dev/VolGroup00/LogVol01 not found (ignoring)
This message could've been there all along from the beginning,
but I just noticed it now.
Could this be the reason why I'm getting the "missing" message
during the shutdown? If so, where's this line coming from? Kernel?
System?
By the way, when I tried to mount this swap partition to "swap"
in Yast's LVM tool, I get an error that says, "could not set up swap
partition /dev/VolGroup00/LogVol01".
Can Linux have multiple swap partitions? If so, can a swap partition
be a logical partition in an extended volume as in this case of FC3/SuSE 9.3 Pro?
Linux can handle multiple swaps, and they can be in an extended partition.
Can't advise about LVM, as I haven't, as yet, bothered with it.
I did a quick check of the source tree (2.6.11), and couldn't find any obvious candidate for your message - I wonder if it's being issued by a Suse shutdown script.
I don't do Suse, so I don't know what they use, or where you could look.
So, the issue now is the message at the boot and
shutdown as follows even without the mentioning
of the FC3 swap partition in SuSE 9.3 Pro's /etc/fstab:
[boot]
waiting for device /dev/VolGroup00/LogVol01 to appear ...
resume /dev/VolGroup00/LogVol01 not found (ignoring)
[shutdown]
turning off swap - missing
Here, the VolGroup00 is the extended volume created
by FC3 automatically by default during its installation
as well as the LogVol01 logical partition.
And, why SuSE 9.3 Pro's Yast LVM tool doesn't allow
FC3's logical swap partition as swap when LVM itself
sees the logical partition of FC3's.
If Suse only uses the /dev/hdd1 as swap it shouldn't even attempt to use the swap of FC3. It's either in the fstab file or a startup script. Unfortunately, I'm also not familiar with the quirks of Suse.
In the /etc/init.d/boot.d, I found two script files:
K17boot.lvm and S07boot.lvm. These files appear
to turn on logical partitions, and FC3's swap partition
happens to be a logical partition.
Not knowing the difference in K-something and S-something
scripts, I looked at the contents of these files, and they look alike.
Just out of curiosity, I executed some command lines out of K17boot.lvm file,
and they indeed turn on FC3's swap partition, I think. So, could this be
the reason why FC3's swap partition is turned on automatically even though
I do not reference it in the /etc/fstab? But then, how come turning it off doesn't
work if the FC3's swap is turned on automatically during boot?
Also, when the resume kernel option for FC3's swap partition is included
during boot, how come SuSE reports it as not found and ignore it eventually?
I'm a bit perplexed now ...
Anyway, I hope someone could pinpoint where and what to look in startup/
shutdown scripts and correct any anomalies to correct this "turning off swap -
missing" message.
If Linux allows multiple swap partitions even if they're logical partitions under
extended volumes, I'd like to leave them untouched as SuSE had found them
during the boot process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.