From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Swap on LVM - swapoff problem
Date: Mon Apr 7 09:22:02 2003 [thread overview]
Message-ID: <20030407142144.GK1231@tykepenguin.com> (raw)
In-Reply-To: <1049724626.3743.30.camel@ariel>
On Mon, Apr 07, 2003 at 05:10:26PM +0300, George Karaolides wrote:
> Hi Patrick,
>
> > Actually, I'm more interested in the kernel LVM version. The tools
> > have no impact on how swappping works. Sorry I should have said. The
> > first line of /proc/lvm/global should tell you that.
>
> 2.4.18 machines:
>
> # cat /proc/lvm/global
> LVM module LVM version 1.0.1-rc4(ish)(03/10/2001)
>
> 2.4.20 machines:
>
> # cat /proc/lvm/global
> LVM module LVM version 1.0.5+(22/07/2002)
If it was just the 2.4.18 machines I would suggest you get a later LVM, but if
the 2.4.20 boxes do it too then that's obviously not going to help.
> > You should check that that when you do swapoff that the
> > device actually exists: and that the major/minor matches that of the
> > device when it was swapped on. I think /proc/swaps should tell you
> > this.
>
> I can't see anything about device major/minor nos. in /proc/swaps:
>
> # cat /proc/swaps
> Filename Type Size Used Priority
> /dev/vg1/swap partition 1048568 0 -1
>
> Of course I can see the major/minor nos. if I list the device:
>
> # ls -l /dev/vg1/swap
> brw-rw---- 1 root disk 58, 1 Apr 5 22:28 /dev/vg1/swap
>
> So now I need to check if these are the same as when the device was
> swapped on. But no info in /proc/swaps...
I think /proc/swaps works out the name from the major.minor so that's probably
right.
It could just be that the machine has not enough memory to hold all the
processes VM state., but I think it should return ENOMEM for that situation.
/me is baffled.
--
patrick
next prev parent reply other threads:[~2003-04-07 9:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 9:10 [linux-lvm] Swap on LVM - swapoff problem George Karaolides
2003-04-07 9:22 ` Patrick Caulfield [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-07 9:29 George Karaolides
2003-04-07 9:35 ` Patrick Caulfield
2003-04-07 8:31 George Karaolides
2003-04-07 8:41 ` Patrick Caulfield
2003-04-07 7:33 George Karaolides
2003-04-07 7:30 George Karaolides
2003-04-07 8:22 ` Patrick Caulfield
2003-04-07 3:33 Koch, Steffen
2003-04-07 2:48 George Karaolides
2003-04-07 3:52 ` 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=20030407142144.GK1231@tykepenguin.com \
--to=caulfield@sistina.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.