VERITAS File System 4.1 Administrator's Guide

VERITAS File System Quick Reference
Veritas File System Quick Reference
Appendix A 187
Before running mkfs, you must create the target device. Refer to your operating system
documentation for more information. If you are using a logical device (such as a VxVM
volume), see the VxVM documentation for instructions on device initialization.
How to Create a File System
To create a file system, use the mkfs command:
mkfs [-F vxfs] [generic_options] [-o specific_options] special [size]
vxfs The file system type.
generic_options Options common to most other file system types.
specific_options Options specific to VxFS.
-o N Displays the geometry of the file system and does not write to the
device.
-o largefiles Allows users to create files larger than two gigabytes. The default
option is largefiles.
special The character (raw) device or VERITAS Volume Manager volume.
size The size of the new file system (in sectors).
See the following manual pages for more information about creating VxFS file systems:
mkfs(1M)
mkfs_vxfs(1M)
Example A-1 To create a VxFS file system 12288 sectors in size on VxVM
volume
Enter:
# mkfs -F vxfs /dev/vx/rdsk/diskgroup/volume 12288
Information similar to the following displays:
version 6 layout
262144 sectors, 262144 blocks of size 1024, log size 1024 blocks
largefiles supported
At this point, you can mount the newly created file system.