Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

To create a file system
Use the mkfs command to create a file system:
mkfs [-F vxfs] [-m] [generic_options] [-o specific_options] \
special [size]
Specifies the VxFS file system type.-F vxfs
Displays the command line that was used to create the file
system. The file system must already exist. This option
enables you to determine the parameters used to construct
the file system.
-m
Options common to most other file system types.generic_options
Options specific to VxFS.-o specific_options
Displays the geometry of the file system and does not write
to the device.
-o N
Allows users to create files larger than two gigabytes. The
default option is largefiles.
-o largefiles
Specifies the special device file location or character device
node of a particular storage device.
special
Specifies the number of 1024-byte sectors in the file system.
If size is not specified, mkfs determines the size of the special
device.
size
Example of creating a file system
The following example creates a VxFS file system of 12288 sectors in size on a
VxVM volume.
To create a VxFS file system
1
Create the file system:
# mkfs -F vxfs /dev/vx/rdsk/diskgroup/volume 12288
version 7 layout
262144 sectors, 262144 blocks of size 1024, log size 1024 blocks
largefiles supported
2
Mount the newly created file system.
# mount -F vxfs /dev/vx/rdsk/diskgroup/volume /mnt1
131Quick Reference
Creating a VxFS file system