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

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

             reply	other threads:[~2003-04-09  4:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  4:42 George Karaolides [this message]
2003-04-09  6:38 ` [linux-lvm] Swap on LVM - swapoff problem - more info Alasdair G Kergon

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=1049881311.8416.142.camel@ariel \
    --to=george.karaolides@planitis.net \
    --cc=debian-user@lists.debian.org \
    --cc=linux-lvm@sistina.com \
    --cc=patrick@debian.org \
    /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