linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid10n2/xfs setup guidance on write-cache/barrier
@ 2012-03-15  0:30 Jessie Evangelista
  2012-03-15  5:38 ` Stan Hoeppner
  2012-03-17 22:10 ` Zdenek Kaspar
  0 siblings, 2 replies; 32+ messages in thread
From: Jessie Evangelista @ 2012-03-15  0:30 UTC (permalink / raw)
  To: linux-raid

I want to create a raid10,n2 using 3 1TB SATA drives.
I want to create an xfs filesystem on top of it.
The filesystem will be used as NFS/Samba storage.

mdadm --zero /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm -v --create /dev/md0 --metadata=1.2 --assume-clean
--level=raid10 --chunk 256 --raid-devices=3 /dev/sdb1 /dev/sdc1
/dev/sdd1
mkfs -t xfs -l lazy-count=1,size=128m -f /dev/md0
mount -t xfs -o barrier=1,logbsize=256k,logbufs=8,noatime /dev/md0
/mnt/raid10xfs

Will my files be safe even on sudden power loss? Is barrier=1 enough?
Do i need to disable the write cache?
with: hdparm -W0 /dev/sdb /dev/sdc /dev/sdd

I tried it but performance is horrendous.

Am I better of with ext4? Data safety/integrity is the priority and
optimization affecting it is not acceptable.

Thanks and any advice/guidance would be appreciated

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

end of thread, other threads:[~2012-03-23  5:10 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15  0:30 raid10n2/xfs setup guidance on write-cache/barrier Jessie Evangelista
2012-03-15  5:38 ` Stan Hoeppner
2012-03-15 12:06   ` Jessie Evangelista
2012-03-15 14:07     ` Peter Grandi
2012-03-15 15:25       ` keld
2012-03-15 16:52         ` Jessie Evangelista
2012-03-15 17:15           ` keld
2012-03-15 17:40             ` keld
2012-03-15 16:18       ` Jessie Evangelista
2012-03-15 23:00         ` Peter Grandi
2012-03-16  3:36           ` Jessie Evangelista
2012-03-16 11:06             ` Michael Monnerie
2012-03-16 12:21               ` Peter Grandi
2012-03-16 17:15             ` Brian Candler
2012-03-17 15:35             ` Peter Grandi
2012-03-17 21:39               ` raid10n2/xfs setup guidance on write-cache/barrier (GiB alignment) Zdenek Kaspar
2012-03-18  0:08                 ` Peter Grandi
     [not found]       ` <4F64115D.50208@hardwarefreak.com>
     [not found]         ` <20120317223454.GQ5091@dastard>
2012-03-18  2:09           ` raid10n2/xfs setup guidance on write-cache/barrier Peter Grandi
2012-03-18 11:25             ` Peter Grandi
2012-03-18 14:00               ` Christoph Hellwig
2012-03-18 19:17                 ` Peter Grandi
2012-03-19  9:07                   ` Stan Hoeppner
2012-03-20 12:34                     ` Jessie Evangelista
2012-03-18 18:08               ` Stan Hoeppner
2012-03-22 21:26                 ` Peter Grandi
2012-03-23  5:10                   ` Stan Hoeppner
2012-03-16 12:25     ` Stan Hoeppner
2012-03-16 18:01       ` Jon Nelson
2012-03-16 18:03         ` Jon Nelson
2012-03-16 19:28           ` Peter Grandi
2012-03-17  0:02             ` Stan Hoeppner
2012-03-17 22:10 ` Zdenek Kaspar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).