Swap on LVM - swapoff problem
Hi Patrick,
Quoted 1 line
Odd, it seems fine here. what version LVM are you using ?
1.0.4 on Debian GNU/Linux 3.0r1 "woody"
Some machines have the Debian package from stable (version 1.0.4-4) and some the version from testing (version 1.0.4-6)
The problem is identical on all machines: swapoff does not work if the LVM swap device is listed in /etc/fstab, but works just fine if swap on the LVM swap device is started manually with swapon after the system starts.
Thanks,
| George Karaolides Planitis Communications Ltd., | | tel: +357 22 45 65 00 Office 102, 11 Florinis Street, | | web: www.planitis.net Nicosia CY 1065, | | email: [email protected] Republic of Cyprus. |
Quoted 8 lines · George Karaolides
Hi Patrick,
Quoted 1 line
Odd, it seems fine here. what version LVM are you using ?
1.0.4 on Debian GNU/Linux 3.0r1 "woody"
Some machines have the Debian package from stable (version 1.0.4-4) and some the version from testing (version 1.0.4-6)
Actually, I'm more interested in the kernel LVM version. The tools have no impact on how swappping works. Sorry I should have said. The first line of /proc/lvm/global should tell you that.
Quoted 4 lines
The problem is identical on all machines: swapoff does not work if the LVM swap device is listed in
/etc/fstab, but works just fine if swap on the LVM swap device is started manually with swapon after the system starts.
Yes, I tried that. You should check that that when you do swapoff that the device actually exists: and that the major/minor matches that of the device when it was swapped on. I think /proc/swaps should tell you this.
Signature · 1 line
patrick