Previous  |  Next  >  
Product: File System Guides   
Manual: File System 4.1 Administrator's Guide   

Mounting a File System

You can mount a VxFS file system by using the mount command. If you enter this command, the generic mount command parses the arguments and the -F fstype option executes the mount command specific to that file system type. For VxFS and VERITAS-installed products, the generic mount command executes the VxFS mount command from the directory /sbin/fs/vxfs3.5. If the -F option is not supplied, the command searches the file /etc/fstab for a file system and an fstype matching the special file or mount point provided. If no file system type is specified, mount uses the default file system type (VxFS).

How to Mount a File System

After you create a VxFS file system, you can use the mount command to mount the file system:


mount [-F vxfs] [generic_options] [-r] [-o specific_options] \
special mount_point

vxfs

File system type.

generic_options

Options common to most other file system types.

specific_options

Options specific to VxFS.

-o ckpt=ckpt_name

Mounts a VERITAS Storage Checkpoint.

-o cluster

Mounts a file system in shared mode. Available only with the VxFS cluster file system feature.

special

Block special device.

mount_point

Directory on which to mount the file system.

-r

Mounts the file system as read-only.

Mount Options

The mount command has numerous options to tailor a file system for various functions and environments. Some specific_options are listed below.

  • Security feature
  • If security is important, use blkclear to ensure that deleted files are completely erased before the space is reused.
  • Support for large files
  • If you specify the largefiles option, you can create files larger than two gigabytes on the file system. The default option is largefiles.
  • Support for cluster file systems
  • If you specify the cluster option, the file system is mounted in shared mode. Cluster file systems depend on several other VERITAS products that must be correctly configured before a complete clustering environment is enabled.
  • Using Storage Checkpoints
  • The ckpt=checkpoint_name option mounts a Storage Checkpoint of a mounted file system that was previously created by the fsckptadm command.
  • Using Storage Checkpoints
  • The ckpt=checkpoint_name option mounts a Storage Checkpoint of a mounted file system that was previously created by the fsckptadm command.
  • Using databases
  • If you are using databases with VxFS and if you have installed a license key for the VERITAS Quick I/O for Databases feature, the mount command enables Quick I/O by default (the same as specifying the qio option). The noqio option disables Quick I/O. If you do not have Quick I/O, mount ignores the qio option. Alternatively, you can increase database performance using the mount option convosync=direct, which utilizes direct I/O. See Quick I/O for Databases for more information.
  • News file systems
  • If you are using cnews, use delaylog (or tmplog),mincache=closesync because cnews does an fsync() on each news file before marking it received. The fsync() is performed synchronously as required, but other options are delayed.
  • Temporary file systems
  • For a temporary file system such as /tmp, where performance is more important than data integrity, use tmplog,mincache=tmpcache.

See Choosing mount Command Options and the following manual pages for more information about the mount command and its available options:

fstab(4)
fsckptadm(1M)
mount(1M)
mount_vxfs(1M)

Example

To mount the file system /dev/vx/dsk/fsvol/vol1 on the /ext directory with read/write access and delayed logging, enter:


 # mount -F vxfs -o delaylog /dev/vx/dsk/fsvol/vol1 /ext

How to Edit the fstab File

You can edit the /etc/fstab file to automatically mount a file system at boot time. You must specify:

  • the special block device name to mount
  • the mount point
  • the file system type (vxfs)
  • the mount options
  • the backup frequency
  • which fsck pass looks at the file system

Each entry must be on a single line. See the fstab(4) manual page for more information about the /etc/fstab file format.

Here is a typical fstab file with the new file system on the last line:


# System /etc/fstab file. Static
# information about the file systems
# See fstab(4) and sam(1M) for further
# details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vx/dsk/fsvol /ext vxfs delaylog 0 2
 ^ Return to Top Previous  |  Next  >  
Product: File System Guides  
Manual: File System 4.1 Administrator's Guide  
VERITAS Software Corporation
www.veritas.com