Linux LVM users
 help / color / mirror / Atom feed
From: George Karaolides <george.karaolides@planitis.net>
To: debian-user@lists.debian.org, linux-lvm@sistina.com
Subject: [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED
Date: Wed Apr  9 01:46:01 2003	[thread overview]
Message-ID: <1049870776.8446.42.camel@ariel> (raw)

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

             reply	other threads:[~2003-04-09  1:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  1:46 George Karaolides [this message]
2003-04-09  2:23 ` [linux-lvm] Re: Swap on LVM - swapoff problem - SOLVED Patrick Caulfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1049870776.8446.42.camel@ariel \
    --to=george.karaolides@planitis.net \
    --cc=debian-user@lists.debian.org \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox