« Return to Thread: mkfs.xfs, lvm, multi-terrabyte hardware array and luks

Re: mkfs.xfs, lvm, multi-terrabyte hardware array and luks

by Eric Sandeen-3 :: Rate this Message:

Reply to Author | View in Thread

pgf111000 wrote:
> When I try to format partitions above 2-3gb my opteron experiences heavy io
> wait; the mkfs.xfs fails, and I receive the following....
>
>  "mkfs.xfs: libxfs_device_zero write failed: Input/output error"
>
> When I format partions below 2-3gb, there is no problem whatsoever.  I can
> mkfs.xfs on a +2-3GB non-luks formated partition without a problem... any
> thoughts?

Sounds like a LUKS problem, maybe it can't do those large offsets?  xfs
certainly can...

I bet you'll find that the 2GB size is the threshold... xfs is just
trying a write():

        if ((bytes = write(fd, z, bytes)) < 0) {
                fprintf(stderr, _("%s: %s write failed: %s\n"),
                        progname, __FUNCTION__, strerror(errno));

maybe try a simple dd write at the end of your large luks device, see
how that goes.

-Eric


 « Return to Thread: mkfs.xfs, lvm, multi-terrabyte hardware array and luks