Util-Linux package development
 help / color / mirror / Atom feed
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 23:46:24 +0200	[thread overview]
Message-ID: <20110811214624.GE32051@nb.net.home> (raw)
In-Reply-To: <20110811181454.GD32051@nb.net.home>

On Thu, Aug 11, 2011 at 08:14:54PM +0200, Karel Zak wrote:
> 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.

 Ah... sorry, I didn't read your e-mail too carefully.

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

 Right, so if you have 4096 page size, then 4096 * 4294967295 is the
 max size...

 I think the problem is kernel version string -- "3.0". The mkswap
 code uses the version string to set the limit.

 The problem should be fixed in 2.20-rc1, commit
 fa7e0d6d442de9f5940f99fd93f4522602439131.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      parent reply	other threads:[~2011-08-11 21:46 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
2011-08-11 18:52   ` Florian Pritz
2011-08-11 21:46   ` Karel Zak [this message]

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=20110811214624.GE32051@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