NAME [Toc] [Back]
newfs_vxfs: newfs - create a new VxFS file system
SYNOPSIS [Toc] [Back]
newfs [-F vxfs] [-B] [-O disk_type] [-R swap] [-V] [-v]
DESCRIPTION [Toc] [Back]
newfs -F vxfs builds a VxFS file system by invoking mkfs. special
specifies a character (or raw) file (for example, /dev/rdsk/c0t6d0).
Options [Toc] [Back]
newfs recognizes the following options:
-B Reserve space for boot programs past the end of
the file system. If the file /usr/lib/uxbootlf is
present on the system, sufficient space to
accommodate that file is reserved; otherwise 691
kilobytes are reserved. This option decreases the
size of the file system being created. This
option cannot be used if the file-system size is
also specified using -s (see mkfs_vxfs options
-F vxfs Specify the file-system type vxfs.
-O disk_type Use disk parameters from the disk_type named in
/etc/disktab. This option is provided for
backward compatibility with previous HP-UX
releases. Any parameters specified on the command
line will the corresponding values in
/etc/disktab. Any values not specified in the
command line and not shown in /etc/disktab are
-R swap Reserve swap megabytes of swap space past the end
of the file system. This option decreases the
size of the file system to be created by the
specified number of megabytes. -R cannot be used
if the file-system size is also specified using -s
(see mkfs_vxfs options below).
-v Specify verbose mode. newfs prints out its
actions, including the parameters passed to mkfs.
-V Echo the completed command line, but do not
execute the command. If not valid, -V prints an
error message. 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.
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
NOTE: You can specify the -R and -B options in the same command line.
In that case, both the requested swap space and the space needed for
boot programs are reserved. These options are used when the file
system size is defaulted to the size of the entire disk.
The following additional command-line options can be used to override
default parameters passed to mkfs_vxfs:
-b block_size File system block size in bytes. The default value
is 1024 bytes for 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. 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
-o largefiles | nolargefiles
Valid only for the Version 4 and 5 disk layouts.
This option 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 files system are
limited to less than two gigabytes. The default
is nolargefiles. See mkfs_vxfs(1M),
-s size File system size in DEV_BSIZE blocks (defined in
<sys/param.h>). The default value is the size of
the entire disk or disk section, minus any swap or
boot space requested. The size specifies the
number of sectors in the file system. By default,
size is specified in units of DEV_BSIZE sectors.
However, you can append a suffix to size to
indicate another unit of measure. Append k or K
to indicate that the value is in kilobytes, m or M
to indicate megabytes, or g or G to indicate
Operands [Toc] [Back]
newfs recognizes the following operand:
special A character (raw) file.
EXAMPLES [Toc] [Back]
To create a VxFS file system on /dev/rdsk/c1t5d0 and reserve 40
megabytes of swap space.
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003
newfs -F vxfs -R40 /dev/rdsk/c1t5d0
FILES [Toc] [Back]
/etc/disktab Disk description file.
/etc/fstab Static information about the file systems.
SEE ALSO [Toc] [Back]
fsadm_vxfs(1M), mkfs(1M), mkfs_vxfs(1M), mount_vxfs(1M), newfs(1M),
Hewlett-Packard Company - 3 - HP-UX 11i Version 2: August 2003 [ Back ]