Creating a VxFS file system

The mkfs command creates a VxFS file system by writing to a special character device file. The special character device must be a Veritas Volume Manager (VxVM) volume. The mkfs command builds a file system with a root directory and a lost+found directory.

Before running mkfs, you must create the target device.

See to your operating system documentation.

If you are using a logical device (such as a VxVM volume), see the VxVM documentation.


Creating a VxFS file system on a Logical Volume Manager (LVM) or Multiple Device (MD) driver volume is not supported in this release. You also must convert an underlying LVM to a VxVM volume before converting an ext2 or ext3 file system to a VxFS file system. See the vxvmconvert(1M) manual page.

See the mkfs(1M) and mkfs_vxfs(1M) manual pages.

When you create a file system with the mkfs command, you can select the following characteristics:

To create 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:
    # /opt/VRTS/bin/mkfs /dev/vx/rdsk/diskgroup/volume 12288
    version 10 layout
    12288 sectors, 6144 blocks of size 1024, log size 256 blocks
    rcq size 1024 blocks
    largefiles  supported
    maxlink     supported
  2. Mount the newly created file system:
    # mount -t vxfs /dev/vx/dsk/diskgroup/volume /mnt1