HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)

m
mkfs_vxfs(1M) mkfs_vxfs(1M)
NAME
mkfs_vxfs: mkfs - construct a VxFS file system
SYNOPSIS
mkfs [-F vxfs][-V
] -m special
mkfs [-F vxfs][-V
][-o [N][X][bsize=bsize][
inosize=n][largefiles|nolargefiles]
[
logsize=n][ninode=n][
version=n]]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 4 or 5. Version 4 adds support for Access Control Lists. You can
choose the disk layout version with the version=n option (see below).
The number of inodes allocated to a system depends on the disk layout version. 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 arguments
aufirst, aupad, ausize, and nau, are no longer supported.
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 infor-
mation needed to create a file system but does not create it.
X Create a file system in a file. Used for debugging only.
bsize=bsize
bsize is the block size for files on the file system and represents the smallest
amount of disk space allocated to a file. bsize must be a power of 2 selected
from the range 1024 bytes to 8192 bytes. The default is 1024 bytes for file sys-
tems smaller than two terabytes. For Version 5 disk layout file systems larger
than two terabytes, the maximum file system size is dependent on the block
size. A four terabyte file system requires a 1K block size, An eight terabyte
file system requires a 2K block size, a 16 TB file system requires a 4K block
size, and a 32 TB file system requires an 8K block size. If bsize is not
specified, the block size defaults to the appropriate value when a file system is
created.
Section 1M432 Hewlett-Packard Company 1 HP-UX 11i Version 2: August 2003