LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-06-2006, 07:19 AM   #1
hvidgaard
LQ Newbie
 
Registered: Mar 2006
Location: Denmark
Distribution: Debian "Sarge"
Posts: 11

Rep: Reputation: 0
mkfs.xfs parameters for raid array


Hi

I am a little in doubt what parameters to use when making my xfs filesystem on a raid5 array with 128kb chunksize. I think I should specify sunit/su and swidth/sw option, but I'm not sure to what.

This is from the man page: http://www.die.net/doc/linux/man/man8/mkfs.xfs.8.html
Quote:
The sunit suboption is used to specify the stripe unit for a RAID device or a logical volume. The suboption value has to be specified in 512-byte block units. Use the su suboption to specify the stripe unit size in bytes. This suboption ensures that data allocations will be stripe unit aligned when the current end of file is being extended and the file size is larger than 512KB. Also inode allocations and the internal log will be stripe unit aligned.
The su suboption is an alternative to using sunit. The su suboption is used to specify the stripe unit for a RAID device or a striped logical volume. The suboption value has to be specified in bytes, (usually using the m or g suffixes). This value must be a multiple of the filesystem block size.
The swidth suboption is used to specify the stripe width for a RAID device or a striped logical volume. The suboption value has to be specified in 512-byte block units. Use the sw suboption to specify the stripe width size in bytes. This suboption is required if -d sunit has been specified and it has to be a multiple of the -d sunit suboption. The stripe width will be the preferred iosize returned in the stat(2) system call.
The sw suboption is an alternative to using swidth. The sw suboption is used to specify the stripe width for a RAID device or striped logical volume. The suboption value is expressed as a multiplier of the stripe unit, usually the same as the number of stripe members in the logical volume configuration, or data disks in a RAID device.
When a filesystem is created on a logical volume device, mkfs.xfs will automatically query the logical volume for appropriate sunit and swidth values.
 
Old 02-12-2007, 08:11 PM   #2
sP1v
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by hvidgaard
Hi

I am a little in doubt what parameters to use when making my xfs filesystem on a raid5 array with 128kb chunksize. I think I should specify sunit/su and swidth/sw option, but I'm not sure to what.

This is from the man page: http://www.die.net/doc/linux/man/man8/mkfs.xfs.8.html
Did you ever find any guides or howtos on setting up an XPS file system? I am attempting todo the same using Software Raid 5 and LVM on a FC6 system, but I am having trouble finding a good installation guide. Any pointers will be greatly appreciated.

-sP1v
 
Old 02-18-2007, 03:51 PM   #3
hvidgaard
LQ Newbie
 
Registered: Mar 2006
Location: Denmark
Distribution: Debian "Sarge"
Posts: 11

Original Poster
Rep: Reputation: 0
no not really...

I used (and are still using) the default values. They work okay for me so far (4x250Gb, 100mbit network), but one day when I upgrade to 1Gbit, perhaps some testing should be done to find the best values (could turn out to be the defaults).

My biggest consern are not throughput, but the ability to, lets say, having 2 htpc's streaming at 6-7mbit each, 1 user reading/writing a large file, and the OS doing some random reads and writes (web/mail/shell/VMware server) without the system feeling slow.

If you find any information regarding optimization, I would like to know
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkfs overwrites RAID partitions erick_el_rojo Linux - General 0 05-02-2005 11:07 AM
mkfs overwrites RAID partition table erick_el_rojo Linux - Enterprise 0 05-02-2005 11:06 AM
help with setting up xfs on raid(0) array Dr Ecology Linux - General 0 06-16-2003 04:43 PM
setting up xfs on raid(0) array Dr Ecology Linux - Newbie 0 06-16-2003 04:29 PM
mkfs and mounting large (1.4TB) hardware raid array. Frustin Linux - General 1 05-20-2002 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration