
11 8 Appendix B Using the Command Line
Creating and Preallocating a File (cvmkle)
Use the cvmkfile command to allocate space for a le on an Xsan volume.
$ cvmkfile [-k affinity] [-p] [-s] [-w] [-z] size(k|m|g) filename
Parameter Description
-k affinity
Allocate space for the le on one of the storage
pools with the specied anity tag.
affinity – the anity tag that’s assigned to
the storage pools where you want the folder’s
contents to be stored
You can use the
show long command of the
cvadmin tool to see a storage pool’s anity tag.
-p
Force future extensions of the le to be aligned
on block boundaries.
-s
Force the le allocation to align with block
boundaries.
-w
Set le size as indicated by size.
-z
Set the contents of the le to zeros.
size(k|m|g)
A number specifying the amount of space to
allocate to the le.
size – a number
k – kilobytes
m – megabytes
g – gigabytes
filename
The path to and name of the le to allocate.
Example
Allocate 2 GB of space for the le “data1” on the storage pool “datasets”:
$ cvmkfile -k datasets 2g data1
Comments to this Manuals