Results 1 to 5 of 5
Hello,
I have a problem with my Mandora platform when I boot.
It is a problem with the swap that I cannot solve.
Here is the message I have:
"
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-01-2006 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 11
swap problem when booting
Hello,
I have a problem with my Mandora platform when I boot.
It is a problem with the swap that I cannot solve.
Here is the message I have:
"
... swapon: /dev/Volgroup00-logVol01 : device or ressource busy
"
Thank in advance for any help
- 12-01-2006 #2
That's odd. Try this:
You should see one line. Mine says:Code:grep swap /etc/fstab
/dev/hda5 swap swap defaults 0 0
If you see some of that Volgroup stuff, then it's coming from /etc/fstab. You might try just editing it to look something like mine (of course you have to have the right partition).
- 12-01-2006 #3
It looks like your swap partition is actually a logical volume, and I don't think that will work. I think swap has to be a regular partition.
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 12-02-2006 #4Just Joined!
- Join Date
- Oct 2006
- Posts
- 11
Bonjour,
I have to admit that I am far from being a linux expert. I try to read manuals but I really don't have the mind of a programmer ...
I have to say a word about the way I installed Mandriva. Before I had Fedora core 5 installed on my computer, in an extended partition. When I moved to Mandriva 2006, during the partionning step, everything has been done automatically. I think it used fedora's partitions.
I remember I had a volgroup00 with three logical volumes: logvol00 (/ root), logvol01 (swap), logvol02 (/home).
So, I deleted the swap partition that was in the logical volume.
I created a new partition, sda6, in the extended partition where I have Mandriva Linux.
Also I did:
>mkswap /dev/sda6
>swapon /dev/sda6
and I added "/dev/hdxx swap swap sw 0 0" in the file " /etc/fstab".
I don't have anymore problem when I boot.
If I do:
>swapon -s
I have:
>Filename Type Size Used Priority
>/dev/sda6 partition 2048248 0 -1
It seems to be ok ...
I still have a problem when I shutdown:
"
Unmounting file systems:
Shutting down LVM: /dev/dvd : open failed : No medium found
Can't desactivate volume group "VolGroup00" with 1 open logical volume(s) [Failed]
"
Before I made the changes regarding swap, I had something similar with
LogGroup00-LogVol01 (that was the swap).
Any other good idea ?
Thanks
- 12-04-2006 #5Just Joined!
- Join Date
- Oct 2006
- Location
- Surrey, UK
- Posts
- 22
There are 2 problems here.
The reference to /dev/dvd can be sorted by adding a line to /etc/lvm/lvm.conf to tell LVM to ignore unsuitable devices. The line should be something like:
filter = ["r|/dev/dvd|"]
The r means reject (ignore) and it is followed by a regular expression to match the devices to ignore. Make sure such a line is placed BEFORE any line of the form:
filter = ["a/.*/"]
which means accept everything!
The second message about not being able to deactivate the volume group "VolGroup00" makes sense as I think this is your root partition. It can't deactivate that because the shutdown script is running from it! I don't know of a way round that but maybe it doesn't matter.
Terry


Reply With Quote
