The following example shows how to assign allocation policies. The example volume set contains two volumes from different classes of storage.
# vxvset -g rootdg list myvset
VOLUME INDEX LENGTH STATE CONTEXT
# mkfs -F vxfs /dev/vx/rdsk/rootdg/myvset
204800 sectors, 102400 blocks of size 1024,
# mount -F vxfs /dev/vx/dsk/rootdg/myvset /mnt1
vol
1 and vol
2 volumes:
# fsapadm define /mnt1 datapolicy vol1
# fsapadm define /mnt1 metadatapolicy vol2
# fsapadm assignfs /mnt1 datapolicy metadatapolicy
The assignment of the policies on a file system-wide basis ensures that any metadata allocated is stored on the device with the policy "metadatapolicy" (vol2
) and all user data is be stored on vol1
with the associated "datapolicy" policy.