Re: mkswap fails to use more than 2GiB and doesn't recognize LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux