From: Karel Zak <kzak@redhat.com>
To: Florian Pritz <bluewind@xinu.at>
Cc: util-linux@vger.kernel.org
Subject: Re: mkswap fails to use more than 2GiB and doesn't recognize LVM
Date: Thu, 11 Aug 2011 20:14:54 +0200 [thread overview]
Message-ID: <20110811181454.GD32051@nb.net.home> (raw)
In-Reply-To: <4E43F629.6040408@xinu.at>
On Thu, Aug 11, 2011 at 05:32:57PM +0200, Florian Pritz wrote:
> 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
It seems correct. The swap header does not allow to address more than
UINT_MAX pages. You have to create more swap areas or use system with
bigger pages.
> > 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.
:-)
> busybox mkswap crates the expected 8GiB swap, so I think this is a bug.
Do you see see 8GiB swap area in /proc/swaps after swapon? I don't
think so...
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2011-08-11 18:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-11 15:32 mkswap fails to use more than 2GiB and doesn't recognize LVM Florian Pritz
2011-08-11 18:14 ` Karel Zak [this message]
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=20110811181454.GD32051@nb.net.home \
--to=kzak@redhat.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox