Re. the problem with swapoff returning "invalid argument" with LVM devices on a Debian woody system, I now have some more info. The problem is caused by running vgscan while swap is active on the LVM device (not necessarily actually using swap space; just active). If after that a swapoff is attempted, swapoff returns "Invalid argument". The lvm init script runs vgscan, and where LVM has already been activated using initrd and an LVM swap device is already activated, this breaks swapoff. I modified the "start" case of the lvm init script to run swapoff before running vgscan, and swapon after. That solved the problem. I don't know if this will cause any other problems, but I don't think it will. When swapping on LVM, swapoff must be run before running vgscan manually, too, or swapoff will break again. -- Best regards, | George Karaolides Planitis Communications Ltd., | | tel: +357 22 45 65 00 Office 102, 11 Florinis Street, | | web: www.planitis.net Nicosia CY 1065, | | email: george.karaolides@planitis.net Republic of Cyprus. | _______________________________________________ linux-lvm mailing list linux-lvm@sistina.com http://lists.sistina.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/