VERITAS File System 4.1 Administrator's Guide

Multi-Volume File Systems
Allocation Policies
Chapter 9146
0 51200 1250 49950 vol1
1 51200 16 51184 vol2
The assignment of policies on a file system-wide basis ensures that any metadata allocated is
stored on the device with the policy metadatapolicy (vol2) and all the user data is stored on
vol1 with the associated datapolicy policy.
The effects of creating a number of files is shown in the following script:
i=1
while [ $i -lt 1000 ]
do
dd if=/dev/zero of=/mnt1/$i bs=65536 count=1
i=’expr $i + 1’
done
Before the script completes, it runs out of space even though space is still available on the
vol2 volume:
# fsvoladm list /mnt1
devid size used avail name
0 51200 51200 0 vol1
1 51200 221 50979 vol2
To allocate user data from the vol1 volume and then use vol2 if space runs out, assign the
allocation policy as follows:
# fsapadm define /mnt1 datapolicy vol1 vol2
You must have system administrator privileges to create, remove, or change policies, and set
file system or Storage Checkpoint level policies. Users can assign a pre-existing policy to their
files if the policy allows. Policies can be inherited for new files.