To be able to access a CIFS exported file system from a Windows client you must first add a Virtual IP. You must specify this Virtual IP while sharing a file system via CIFS.
cfsshare addvip device address netmask [networkhosts]
# cfsshare addvip eth0 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 eth1 -sys system01 # hares -modify vip1 Device eth2 -sys system02 # haconf -dump -makero
where vip1 is the Virtual IP resource created by the cfsshare addvip command.
where system01 and system02are 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 ]
# cfsshare add -p cifs -v 10.182.79.216 \ -n sh1 sharedg vol1 /mnt1 "readonly=no" all=
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
# cfsshare delete -p cifs /mnt1
Deleting the VIP added previously:
cfsshare deletevip address
# cfsshare deletevip 10.182.79.216