HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
m
mkfs_vxfs(1M) mkfs_vxfs(1M)
NAME
mkfs - construct a VxFS file system
SYNOPSIS
/usr/sbin/mkfs
[-F vxfs][-V] -m
special
/usr/sbin/mkfs
[-F vxfs][-V]
[
-o [N][
X][ninode=n][nau=n][bsize=n][logsize=n][
ausize=n][aufirst=n]
[
aupad=n][version=n][
inosize=n][largefiles|nolargefiles ]]special size
DESCRIPTION
mkfs creates a VxFS file system by writing on the special device file, unless either the
-o N or
-m option
is specified. special must be the first argument after the options are given. The file system is created based
on the options and size specified on the command line. The numeric size specifies the number of sectors in
the file system. By default, size is specified in units of
DEV_BSIZE sectors (currently, 1024 bytes). If size
is not specified,
mkfs determines the size of the special device.
size can also be specified with a suffix to indicate a unit of measure other than sectors. Append
k or K
to
indicate the value is in kilobytes,
m or M to indicate megabytes, or g or G to indicate gigabytes. An
appended letter can be separated from the number by a space. In that case, enclose the letter and number
in a set of quotes, for example:
"512 k"
mkfs
builds a file system with a root directory and a lost+found directory (see fsck_vxfs(1M)). The file
system can have disk layout Version 2, disk layout Version 3, or disk layout Version 4. Version 2 supports
dynamic inode allocation. Version 3 adds support for large files and large UIDs. Version 4 adds support for
Access Control Lists. On HP-UX 11.1x systems, the default is Version 4. On HP-UX 11.0 systems, the
default is Version 3. You can choose the disk layout version with the
version=n option (see below).
Inode allocation is done dynamically. There are a minimum number of inodes allocated to the file system
by
mkfs, and any other inode allocations are done on an as-needed basis during file system use.
Options
mkfs recognizes the following options:
-F vxfs Specify the VxFS file system type.
-m Display the command line which was used to create the file system. The file system
must already exist.
-V Echo the completed command line, but do not execute the command. The command
line is generated by incorporating the user-specified options and other information
derived from /etc/fstab . This option allows the user to verify the command line.
-o specific_options
Specify options specific to the VxFS file system type. specific_options is a comma
separated list of suboptions and/or keyword/attribute pairs.
The following specific_options are valid on a VxFS file system:
N Do not write the file system to the special file. This option gives all the informa-
tion needed to create a file system but does not create it.
X Create a file system in a file. Used for debugging only.
aufirst=n
n is the starting block number, in blocks of size bsize, of the first allocation unit.
This option allows the allocation units to be aligned to a particular boundary,
such as a cylinder boundary. This option is not applicable to Version 3 and 4 disk
layouts, which always set the starting block number to zero.
aupad=n
n is the size, in blocks of size bsize, of the padding to leave between the end of
the inode list and the first data block in each allocation unit. This option allows
the data blocks of an allocation unit to be aligned to a particular boundary, such
as a cylinder boundary. This option is ignored for Version 3 and 4 disk layouts.
ausize=n
n is the size, in blocks of size bsize, of an allocation unit. This option is not
HP-UX 11i Version 1: September 2005 − 1 − Hewlett-Packard Company Section 1M−−487