HP-UX Reference (11i v2 04/09) - 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 on the command line 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.
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 layout 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 information
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. The value of bsize must be based on a power of 2
selected from the range 1024 bytes to 8192 bytes. The default is 1024 bytes for file
systems 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.
See the "VxFS Version 5 Disk Layout File System Sizes" topic in this section for
more information. If bsize is not specified, the block size defaults are set to the
appropriate value, based on size, when a file system is created.
inosize=n
n is the on-disk inode structure size for files on the file system. The valid values are
256 and 512 bytes. The default is 256. There is usually no reason to increase the
inode size, and not using the default value can adversely affect file system perfor-
mance.
largefiles|nolargefiles
Controls the largefiles flag for the file system. If largefiles is specified, the bit
is set and files two gigabytes or larger can be created. If nolargefiles is
specified, the bit is cleared and files created on the file system are limited to less
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 1M−−441