Veritas Storage Foundation 5.1 SP1 Cluster File System Administrator"s Guide (5900-1738, April 2011)
For example:
# cfsshare addvip lan0 10.182.79.216 \
255.255.240.0 10.182.79.215
The cfsshare addvip command lets you specify only one network interface, that
is assumed to be present on all cluster nodes. If you want to specify different
network interfaces for different cluster nodes, then you need to run certain VCS
commands. For example:
# haconf -makerw
# hares -local vip1 Device
# hares -modify vip1 Device lan1 -sys system01
# hares -modify vip1 Device lan2 -sys system02
# haconf -dump -makero
where vip1 is the Virtual IP resource created by the cfsshare addvip command.
where system01 and system02 are the cluster nodes.
Adding and sharing a file system via CIFS:
cfsshare add -p cifs -v address -n cifs_share_name \
shared_disk_group shared_volume mount_point \
share_options all=[ mount_options ]
For example:
# cfsshare add -p cifs -v 10.182.79.216 \
-n sh1 sharedg vol1 /mnt1 "readonly=no" all=
Note: You can also use the -C option to specify the CIFS share options.
See the cfsshare(1M) manual page for more information.
Run the following command to the display the currently exported file systems:
# cfsshare display
SAMBASHARE RESOURCE MOUNTPOINT SAMBASHARE OPTIONS
sambashare1 /mnt1 path=/mnt1;readonly=no
Deleting a previous shared file system:
cfsshare delete -p cifs mount_point
For example:
167Common Internet File System
Administering Common Internet File System