VERITAS Storage Foundation 4.1 Cluster File System HP Serviceguard Storage Management Suite Extracts, December 2005
Chapter 2, Installing and Configuring
Creating a Dynamic (Shared) Volume
39
Creating a Shared Volume from the Command Line
Create a shared volume on the CVM master. In this example, the volume is 20 MB in size:
# vxassist -g cfsdg make vol1 20M
Activate the shared disk group for shared write access on all nodes:
# vxdg -g cfsdg set activation=sw
Then check the configuration:
# vxprint
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v vol1 fsgen ENABLED 40960 - ACTIVE - -
pl vol1-01 vol1 ENABLED 41760 - ACTIVE - -
sd cfsdg vol1-01 ENABLED 41760 0---
Creating a Cluster File System from the Command Line
On any cluster node, create a file system on the shared storage volume:
# mkfs -F vxfs /dev/vx/rdsk/cfsdg/vol1
If you do not specify size, the complete volume is used for the file system.
Mounting a Cluster File System in Shared Mode from the Command
Line
To mount the file system on all nodes in the cluster, enter.
# cfsmntadm add cfsdg vol1 /mnt all=rw
# cfsmount /mnt
See the cfsmount(1M) and cfsmntadm(1M) for information on adding and mounting a
shared file system.