HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
m
mkfs_vxfs(1M) mkfs_vxfs(1M)
nau=n
n is the number of allocation units on the file system. This option is not applica-
ble to the Version 3 and 4 disk layouts. For disk layout Version 2, if nau is
specified, then ausize is determined by evenly dividing the sectors among the
allocation units. By default, the number of allocation units is based on the value
of ausize.
ninode=n
n is the maximum number of inodes in the file system. The actual maximum
number of inodes is n rounded up to an appropriate boundary. The digit 0 and
the string unlimited both mean that the number of inodes is unlimited. The
default is unlimited.
version=n
n is the VxFS disk layout version number. Valid values are 2, 3, and 4.
EXAMPLES
To use mkfs to create a VxFS file system on
/dev/rdsk/c0t6d0
:
mkfs -F vxfs /dev/rdsk/c0t6d0 1024
To use mkfs to determine the command that was used to create the VxFS file system on
/dev/rdsk/c0t6d0
:
mkfs -F vxfs -m /dev/rdsk/c0t6d0
To create a VxFS file system on /dev/vgqa/lvol1
, with a Version 4 disk layout and largefiles capabil-
ity:
mkfs -F vxfs -o version=4,largefiles /dev/vgqa/lvol1
WARNINGS
If you want to reuse a special device that was previously used by LVM, you must first wipe out all the LVM
information remaining on the disk. Use pvremove(1M) to remove the LVM information before executing
mkfs_vxfs(1M). (You can also remove the LVM information by initializing the device with mediainit(1), but
that is slower.)
The
-o largefiles option should be used with care, since older applications will not react correctly
when confronted with large files.
RETURN VALUE
Upon successful completion, the mkfs command returns a value of 0. The return value is 1 if a syntax
error occurs. Other errors return a value of 32.
SEE ALSO
bdf(1M), chmod(1), chown(2), df_vxfs(1M), fs_vxfs(4), fsadm_vxfs(1M), fsck_vxfs(1M), group(4), mkfs(1M),
mount_vxfs(1M), newfs_vxfs(1M), passwd(4), pvremove(1M).
STANDARDS CONFORMANCE
mkfs : SVID3
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1M−−489