public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* How to format RAID1 correctly
@ 2014-09-24  0:46 Helmut Tessarek
  2014-09-24  2:05 ` Helmut Tessarek
  2014-09-24  2:07 ` Eric Sandeen
  0 siblings, 2 replies; 12+ messages in thread
From: Helmut Tessarek @ 2014-09-24  0:46 UTC (permalink / raw)
  To: xfs

The information provided in the FAQ and on several web sites is not really
useful regarding RAID1.

According to the FAQ (entry 35):
The correct options to format a RAID1 (2 disks) with 64k chunk size is:
mkfs.xfs -d su=64k -d sw=1 /dev/mapper/data
But it also states that it would be automatically detected and used correctly,
yet
mkfs.xfs /dev/mapper/data
yields a different result:

[root@atvie01s ~]# mkfs.xfs -f /dev/mapper/data

meta-data=/dev/mapper/data       isize=256    agcount=4,
agsize=244173876 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=976695504, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=476902, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

Formel 1:

[root@atvie01s ~]# mkfs.xfs -f -d su=64k -d sw=1 /dev/mapper/data

meta-data=/dev/mapper/data       isize=256    agcount=32,
agsize=30521728 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=976695296, imaxpct=5
         =                       sunit=16     swidth=16 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=476902, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0


Another inconsistency is that RAID1 doesn't use striping, so the chunk size
should be irrelevant in the first place.

So what is ultimately the correct way to format a RAID1?

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

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

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

end of thread, other threads:[~2014-09-24 19:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24  0:46 How to format RAID1 correctly Helmut Tessarek
2014-09-24  2:05 ` Helmut Tessarek
2014-09-24  2:07 ` Eric Sandeen
2014-09-24  2:11   ` Helmut Tessarek
2014-09-24  2:21     ` Eric Sandeen
2014-09-24  2:30       ` Helmut Tessarek
2014-09-24  3:05     ` stan hoeppner
2014-09-24  3:15       ` Helmut Tessarek
2014-09-24  4:09         ` Stan Hoeppner
2014-09-24 15:53           ` Helmut Tessarek
2014-09-24 16:18             ` Eric Sandeen
2014-09-24 19:06             ` Stan Hoeppner

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