Creating and Preallocating a File (cvmkfile)
command to allocate space for a file on an Xsan volume.
$ cvmkfile [-k affinity] [-p] [-s] [-w] [-z] size(k|m|g) filename
Allocate space for the file on one of the storage
pools with the specified affinity tag.
– the affinity tag that’s assigned to
the storage pools where you want the folder’s
contents to be stored
You can use the
command of the
tool to see a storage pool’s affinity tag.
Force future extensions of the file to be aligned
on block boundaries.
Force the file allocation to align with block
Set file size as indicated by
Set the contents of the file to zeros.
A number specifying the amount of space to
allocate to the file.
– a number
The path to and name of the file to allocate.
Allocate 2 GB of space for the file “data1” on the storage pool “datasets”:
$ cvmkfile -k datasets 2g data1
Using the Command Line