public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* mkfs.xfs error creating large agcount an raid
@ 2011-06-25 19:49 Marcus Pereira
  2011-06-26  2:09 ` Stan Hoeppner
  0 siblings, 1 reply; 15+ messages in thread
From: Marcus Pereira @ 2011-06-25 19:49 UTC (permalink / raw)
  To: linux-xfs

I have an issue when creating xfs volume using large agcounts on raid 
volumes.

/dev/md0 is a 4 disks raid 0 array:

----------------------------------------
# mkfs.xfs -V
mkfs.xfs version 3.1.4

# mkfs.xfs -d agcount=1872 -b size=4096 /dev/md0 -f
Warning: AG size is a multiple of stripe width.  This can cause performance
problems by aligning all AGs on the same disk.  To avoid this, run mkfs with
an AG size that is one stripe unit smaller, for example 147840.
log stripe unit (524288 bytes) is too large (maximum is 256KiB)
log stripe unit adjusted to 32KiB
meta-data=/dev/md0               isize=256    agcount=1872, 
agsize=147968 blks
          =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=276810752, imaxpct=5
          =                       sunit=128    swidth=512 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=135168, version=2
          =                       sectsz=512   sunit=8 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
mkfs.xfs: pwrite64 failed: No space left on device

# mkfs.xfs -d agcount=1871 -b size=4096 /dev/md0 -f
Warning: AG size is a multiple of stripe width.  This can cause performance
problems by aligning all AGs on the same disk.  To avoid this, run mkfs with
an AG size that is one stripe unit smaller, for example 147840.
log stripe unit (524288 bytes) is too large (maximum is 256KiB)
log stripe unit adjusted to 32KiB
meta-data=/dev/md0               isize=256    agcount=1871, 
agsize=147968 blks
          =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=276810752, imaxpct=5
          =                       sunit=128    swidth=512 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=135168, version=2
          =                       sectsz=512   sunit=8 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

----------------------------------------------

Any agcount greater then 1871 will lead an error, below that is OK.
I have the same issue when creating xfs volumes on a lvm stripe but with 
different agcounts.

When the volume is not on an raid array any number of agcount is OK, so 
seems the problem is when sunit/swidth is used.

Marcus

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-06-28  1:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-25 19:49 mkfs.xfs error creating large agcount an raid Marcus Pereira
2011-06-26  2:09 ` Stan Hoeppner
2011-06-26  5:53   ` Marcus Pereira
2011-06-26 21:26     ` Stan Hoeppner
2011-06-26 23:29       ` Stan Hoeppner
2011-06-26 23:59     ` Dave Chinner
2011-06-27  3:33       ` Stan Hoeppner
2011-06-27  4:14         ` Marcus Pereira
2011-06-27  8:55           ` Stan Hoeppner
2011-06-27 13:04             ` Paul Anderson
2011-06-27 15:10               ` Eric Sandeen
2011-06-27 15:27                 ` Paul Anderson
2011-06-27 15:37                   ` Eric Sandeen
2011-06-27 20:55                   ` Stan Hoeppner
2011-06-28  1:22                   ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox