From: Joel Uckelman <uckelman@nomic.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] can't use swap after switch to LVM
Date: Sun, 09 Apr 2006 19:31:33 +0200 [thread overview]
Message-ID: <20060409173133.AC8FDEA78@charybdis.ellipsis.cx> (raw)
I just switched my desktop FC5 system from using software RAID over regular
partitions to using software RAID over LVM; everything works fine, except
I can't enable my swap.
On boot, I get the following messages:
device-mapper: device 9:1 too small for target
device-mapper: dm-linear: Device lookup failed
device-mapper: error adding target to table
.
.
.
Unable to find swap-space signature
My swap volume is listed like this in my /etc/fstab:
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
If I try to format the swap volume, mkswap tells me that it's too small:
# mkswap /dev/mapper/VolGroup00-LogVol01
mkswap: error: swap area needs to be at least 40kB
But 'lvm lvs' reports that's it's 1GB:
LogVol01 VolGroup00 -wi-d- 1.00G
I've tried deleting and recreating the swap volume:
# lvm lvremove VolGroup00/LogVol01
# lvm lvcreate -L 1024M -n LogVol01 VolGroup00
device-mapper: reload ioctl failed: Invalid argument
Failed to activate new LV.
Does anyone have an idea of what's going wrong here?
--
J.
next reply other threads:[~2006-04-09 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-09 17:31 Joel Uckelman [this message]
2006-04-09 22:11 ` [linux-lvm] can't use swap after switch to LVM Joel Uckelman
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=20060409173133.AC8FDEA78@charybdis.ellipsis.cx \
--to=uckelman@nomic.net \
--cc=linux-lvm@redhat.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;
as well as URLs for NNTP newsgroup(s).