Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference (Volume 4 of 9): Section 1M: System Administration Commands (N-Z) > n

newfs_vxfs(1M)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

newfs — create a new VxFS file system

SYNOPSIS

/usr/sbin/newfs [-F vxfs] [-B] [-O disk_type] [-R swap] [-V] [-v] [mkfs_vxfs_options] special

DESCRIPTION

newfs -F vxfs builds a VxFS file system by invoking mkfs. special specifies a character (or raw) file (for example, /dev/rdsk/c0t6d0).

Options

newfs recognizes the following options:

-F vxfs

Specify the file-system type vxfs.

-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 below).

-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 defaulted.

-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

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.

-v

Specify verbose mode. newfs prints out its actions, including the parameters passed to mkfs.

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.

mkfs_vxfs Options

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.

-o largefiles | nolargefiles

Valid only for the Version 3 and later 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) mount_vxfs(1M) and fsadm_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 gigabytes.

EXAMPLES

To create a VxFS file system on /dev/rdsk/c1t5d0 and reserve 40 megabytes of swap space.

newfs -F vxfs -R40 /dev/rdsk/c1t5d0

FILES

/etc/disktab

Disk description file.

/etc/fstab

Static information about the file systems.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2000 Hewlett-Packard Development Company, L.P.