Re: [linux-lvm] Swap on LVM - swapoff problem - more info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 09, 2003 at 12:41:51PM +0300, George Karaolides wrote:
> The problem is caused by running vgscan while swap is active on the LVM
> device (not necessarily actually using swap space; just active).  

> I modified the "start" case of the lvm init script to run swapoff before
> running vgscan, and swapon after.

If you really want to experiment with swap on an LVM volume (why?) you 
should resequence your startup so that vgscan gets run *after* /etc
is mounted but *before* setting up swap.

It's rather late running vgscan after you've *already* started up LVM.
vgscan should be run to detect LVM-related disk configuration changes
*before* using LVM proper.

Alasdair
-- 
agk@uk.sistina.com

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux