|
|
VxVM User's Guide
vxfs
as the file system type.
Create a vxfs
file system on an existing volume as follows:
mkfs [-F vxfs] [generic_options] [-o specific_options] special_file sizewhere
vxfs
is the file system type, generic_options are the options common to most file systems, specific_options are options specific to the vxfs
file system, special_file is the full pathname of the volume on which to create the file system (such as /dev/vx/rdsk/pubs
), and size is the size of the new file system.
For more information about the options and variables available for use with the mkfs
command, see the mkfs
(1M) manual page.
To create a file system on a volume called /dev/vx/rdsk/pubs
, first create a volume called pubs using vxassist
. Refer to Chapter 12, "Volume CLI Operations" for instructions on how to create volumes using vxassist
.
To create a vxfs
file system on the newly-created pubs
volume, enter the following:
mkfs -F vxfs /dev/vx/rdsk/pubs 12288
Mkfs: make vxfs file system? (DEL if wrong)If you have not changed your mind after several seconds, the file system is created, and information similar to the following appears:
12288 sectors, 6144 blocks of size 1024 1320 inodes, 5294 data blocks, log size 512 1 allocation units of 5630 blocks, 1320 inodes, 5294 data blocks first allocation unit starts at block 514 overhead per allocation unit is 336 blocks
The newly-created file system can now be mounted.
mount [-F vxfs][generic_options][-o specific_options] block_special \ mount_pointwhere block_special is a block special device and mount_point is the location where the file system will be mounted.
To mount the file system /dev/vx/dsk/pubs
, enter:
mount -F vxfs /dev/vx/dsk/pubs /pubs
umount block_special | mount_pointwhere block_special is a block special device and mount_point is the location where the file system is mounted.
To unmount the file system /dev/vx/dsk/pubs
, enter:
umount /dev/vx/dsk/pubs
vxfs
file system (on a volume) can be resized using the fsadm
command, as described in this section. Note that the fsadm
command resizes the file system only.
Alternatively, the vxresize
command can be used to resize both a file system and its underlying volume to a specified new volume length. Refer to the vxresize
(1M) manual page for further information.
vxfs
file system is not large enough, you can increase the length of the file system. If the underlying volume is not already large enough to accommodate the new file system size, you need to increase the size of the volume first (using vxassist
). The new size of the file system is specified in units of 512-byte blocks (or sectors).
Extend a vxfs
file system as follows:
fsadm [-F vxfs] [-b newsize] [-r rawdev] mount_pointwhere newsize is the size to which the file system will grow (in sectors), and rawdev can optionally be used to specify the pathname of the raw device if it cannot be determined by
fsadm
.
To extend a vxfs
file system using /pubs
as a mount point, enter:
fsadm -F vxfs -b 22528 /pubs
vxfs
file system than you need, you can decrease the size of the file system.
vxfs
file system as follows:
fsadm [-F vxfs] [-b newsize] [-r rawdev] mount_pointwhere newsize is the size to which the file system will grow (in sectors), and rawdev can optionally be used to specify the pathname of the raw device if it cannot be determined by
fsadm
.
To shrink a vxfs
file system to 20480 sectors using /pubs
as a mount point, enter:
fsadm -F vxfs -b 20480 /pubs
mount
When invoked without any options, the mount command displays file system information similar to the following:
/ on /dev/root read/write/setuid on Thu May 26 16:58:24 1994 /proc on /proc read/write on Thu May 26 16:58:25 1994 /dev/fd on /dev/fd read/write on Thu May 26 16:58:26 1994 /tmp on /tmp read/write on Thu May 26 16:59:33 1994 /var/tmp on /var/tmp read/write on Thu May 26 16:59:34 1994