NAME
newfs (vxfs) — construct a new VxFS file system
SYNOPSIS
/usr/sbin/newfs -F vxfs
[-V]
[-v]
[-R
swap]
[-l]
[-B]
[-O
disk_type]
[mkfs_vxfs_options]
special
DESCRIPTION
The
newfs -F vxfs
command builds a VxFS file system by invoking
mkfs.
In addition to file system type specification,
newfs
takes a variety of options, listed below.
A character (raw) file,
special,
(for example,
/dev/rdsk/c0t6d0)
must also be specified.
Options
newfs
recognizes the following options:
- -F vxfs
Specify the file-system type
vxfs,
required for a VxFS file system.
- -V
Echo the completed command line, but perform no other
actions. 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.
- -v
Verbose.
newfs
prints out its actions, including the parameters passed
to
mkfs.
- -l
Set the
largefile compatibility bit
for the file system, allowing files larger than 2 Gbytes to be created.
(See the
-o largefiles
option in the
mkfs_vxfs(1M)
manual page.)
- -R swap
Reserve
swap
Mbytes of swap space past the end of the file system.
This option decreases the size of the file system to
be created by the given number of Mbytes. This option cannot
be used if the file-system size is also specified using
-s
(see
mkfs_vxfs
options below).
- -B
Reserve space for boot programs past the end of the
file system. If file
/usr/lib/uxbootlf
is present on the system, sufficient space to accommodate
that file is reserved; otherwise 691 Kbytes 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 below).
- -O disk_type
Use disk parameters from the entry for the named
disk_type
in
/etc/disktab.
This option is provided for backward compatibility with
previous HP-UX releases. Any parameters specified on the
command line will override the corresponding values in
/etc/disktab.
Any values not specified in the command line and not shown in
/etc/disktab
will be defaulted.
Both
-R
and
-B
options may be given in the same command line. In this
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.
mkfs_vxfs Options
The following additional command-line options can be used
to override default parameters passed to
mkfs_vxfs:
- -s size
File system size in
DEV_BSIZE
blocks (defined in
<sys/param.h>).
The default value used 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, the letter
k,
m,
or
g
can be
appended to the number to indicate that the value is
in kilobytes, megabytes, or gigabytes, respectively.
- -b block_size
File system block size in bytes. The default value used is
1024 bytes.
- -o largefiles | nolargefiles
Controls the
largefile compatibility bit
for the file system. By default the bit is not set, and
files created on the file system will be limited to less
than 2 gigabytes in size.
If
largefiles
is specified, the bit is set and the maximum file size for files
created on the file system is not limited to 2 gigabytes (see
mkfs_vxfs(1M)
mount_vxfs(1M)
and
fsadm_vxfs(1M))
This option is only valid for a Version 3 disk layout.
The default is
nolargefiles,
although the default may change in the future.
EXAMPLES
Execute
newfs
to create a VxFS file system on
/dev/rdsk/c1t5d0
and reserve 40 Mbytes of swap space.
newfs -F vxfs -R40 /dev/rdsk/c1t5d0
FILES
- /etc/disktab
Disk description file.
- /etc/fstab
Static information about the file systems.