Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED
@ 2003-04-09  1:46 George Karaolides
  2003-04-09  2:23 ` Patrick Caulfield
  0 siblings, 1 reply; 2+ messages in thread
From: George Karaolides @ 2003-04-09  1:46 UTC (permalink / raw)
  To: debian-user, linux-lvm

Hi all,

I've solved the problem with swapoff and LVM swap devices on Debian
woody; and the solution may well apply to installations with the root fs
on LVM using other distributions as well.

The root filesystem on my machines is in a logical volume device, and to
mount this at boot time I needed to create an initrd with
lvmcreate_initrd.  This starts LVM before the root fs is mounted.  The
init scripts installed by the Debian LVM package then start LVM again,
which seems to cause the problem.

Removing the symlink /etc/rcS.d/S25lvm and rebooting seems to have
solved it:

# free
             total       used       free     shared    buffers    
Swap:       786424          0     786424
# swapoff /dev/vg1/swap
# free
             total       used       free     shared    buffers    
Swap:            0          0          0
# swapon /dev/vg1/swap
# free
             total       used       free     shared    buffers    
Swap:       786424          0     786424


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.
|

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED
  2003-04-09  1:46 [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED George Karaolides
@ 2003-04-09  2:23 ` Patrick Caulfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Caulfield @ 2003-04-09  2:23 UTC (permalink / raw)
  To: linux-lvm

On Wed, Apr 09, 2003 at 09:46:16AM +0300, George Karaolides wrote:
> Hi all,
> 
> I've solved the problem with swapoff and LVM swap devices on Debian
> woody; and the solution may well apply to installations with the root fs
> on LVM using other distributions as well.
> 
> The root filesystem on my machines is in a logical volume device, and to
> mount this at boot time I needed to create an initrd with
> lvmcreate_initrd.  This starts LVM before the root fs is mounted.  The
> init scripts installed by the Debian LVM package then start LVM again,
> which seems to cause the problem.

I suspect that the right device node for the swap LV only really exists on the  
initrd used for booting



patrick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-09  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-09  1:46 [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED George Karaolides
2003-04-09  2:23 ` Patrick Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox