Re: [linux-lvm] Swap on LVM - swapoff problem - more info
Alasdair G Kergon wrote:
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.
I understand that if we start lvm from the initrd (as we do, since we
have root on lvm) lvm init script shouldn't be run?
What about shutdown? Probably is not clean: I cannot stop lvm while root
C/so Re Umberto 23
10128 - Torino
tel. +39-0112301400 - fax +39-0112301422
sito web: http://www.midhgard.it