The following script creates a large number of files to demonstrate the benefit of allocating data:
dd if=/dev/zero of=/mnt1/$i bs=65536 count=1
Before the script completes, vol1
runs out of space even though space is still available on the vol2
volume:
The solution is to assign an allocation policy that allocates user data from the vol1
volume to v
ol2
if space runs out.
Allocating data from vol1 to vol2
# fsapadm define /mnt1 datapolicy vol1 vol
2
You must have system administrator privileges to create, remove, change policies, or set file system or Storage Checkpoint level policies. Users can assign a pre-existing policy to their files if the policy allows that. Policies can be inherited for new files.