5.6 HP StorageWorks X9000 File Serving Software User Guide (TA768-96035, June 2011)

NOTE: If your file and directory allocation policies are different and you want to make them the
same, first verify that the file allocation policy is set correctly. Next, set the directory allocation
policy to NONE. The directory allocation policy then reverts to its default value, which is the policy
set for file allocation.
Setting a file allocation policy
To set a file allocation policy, use the following command:
<installdirectory>/bin/ibrix_fs_tune -f FSNAME {-h HOSTLIST|-g GROUPLIST}
s LVNAMELIST p POLICY [-S STARTSEGNUM]
For example, to set the ROUNDROBIN policy for files only on NFS-exported file system ifs1 on
file serving node s1.hp.com, starting at segment ilv1:
<installdirectory>/bin/ibrix_fs_tune -f ifs1 -h s1.hp.com -p ROUNDROBIN -s ilv1
Setting a directory allocation policy
To set a directory allocation policy, use the following command. The -R argument declares that
the policy is for directories only.
<installdirectory>/bin/ibrix_fs_tune -f FSNAME {-h HOSTLIST|-g GROUPLIST}
-p POLICY [-S STARTSEGNUM] [-R]
For example, to set the ROUNDROBIN directory allocation policy on NFS-exported file system
ifs1 for file serving node s1.hp.com, starting at segment ilv1:
<installdirectory>/bin/ibrix_fs_tune -f ifs1 -h s1.hp.com -p ROUNDROBIN -R
Setting segment preferences
There are two ways to prefer segments for X9000 clients, NFS/CIFS servers, or hostgroups:
Prefer a pool of segments for the clients to use.
Prefer a single segment for files created by a specific user or group on the clients.
Both methods can be in effect at the same time. For example, you can prefer a segment for a user
and then prefer a pool of segments for the clients on which the user will be working.
If you have set segment preferences and need to change them later on, use the ibrix_fs_tune
command to specify the new segment preferences.
Creating a pool of preferred segments
A segment pool can consist of individually selected segments, all segments local to an NFS/CIFS
server, or all segments. Clients will apply the allocation policy that is in effect for them to choose
a segment from the segment pool.
NOTE: Segments are always created in the preferred condition. If you want to have some segments
preferred and others unpreferred, first select a single segment and prefer it. This action unprefers
all other segments. You can then work with the segments one at a time, preferring and unpreferring
as required. By design, the system cannot have zero preferred segments. If only one segment is
preferred and you unprefer it, all segments become preferred.
When preferring multiple pools of segments (for example, one for X9000 clients and one for
NFS/CIFS clients), make sure that no segment appears in both pools.
Use the following command to specify the pool by logical volume name (LVNAMELIST):
<installdirectory>/bin/ibrix_fs_tune -f FSNAME {-h HOSTLIST|-g GROUPLIST} -s LVNAMELIST
Use the following command and the LOCAL keyword to create a pool of all segments on NFS/CIFS
servers. Use the ALL keyword to restore the default segment preferences (for more information see
“Restoring the default segment preference” (page 119)).
118 Using file allocation