From: Florian Pritz <bluewind@xinu.at>
To: util-linux@vger.kernel.org
Subject: mkswap fails to use more than 2GiB and doesn't recognize LVM
Date: Thu, 11 Aug 2011 17:32:57 +0200 [thread overview]
Message-ID: <4E43F629.6040408@xinu.at> (raw)
[-- Attachment #1: Type: text/plain, Size: 799 bytes --]
Hi,
I'm running util-linux 2.19.1 with a x86_64 linux 3.0.1 on Arch Linux.
mkswap displays the following output when trying to create swap on a
8GiB logical volume.
> # mkswap /dev/mapper/vg_brynhild-swap
> mkswap: warning: truncating swap area to 2097144 KiB
> mkswap: /dev/mapper/vg_brynhild-swap: warning: don't erase bootbits sectors
> on whole disk. Use -f to force.
> Setting up swapspace version 1, size = 2097140 KiB
> no label, UUID=5eae2d8b-f664-46f5-983c-bdcd4301fa66
I tried adding -p 8589934592 to force 8GiB, but that doesn't change
anything.
It also fails to see that we are using LVM so this is not a real device
and we won't overwrite any boot sectors.
busybox mkswap crates the expected 8GiB swap, so I think this is a bug.
--
Florian Pritz
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next reply other threads:[~2011-08-11 15:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-11 15:32 Florian Pritz [this message]
2011-08-11 18:14 ` mkswap fails to use more than 2GiB and doesn't recognize LVM Karel Zak
2011-08-11 18:52 ` Florian Pritz
2011-08-11 21:46 ` Karel Zak
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=4E43F629.6040408@xinu.at \
--to=bluewind@xinu.at \
--cc=util-linux@vger.kernel.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 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.