HP CIFS Server 3.0f Administrator's Guide verison A.02.03
Example: vxdg -s init dgha c4t2d3
See diskgroup created:
vxdg list
Add diskgroup to cluster:
cfsdgadm add <diskgroup name> all=sw
Example: cfsdgadm add dgha all=sw
Activate diskgroup:
cfsdgadm activate <diskgroup name>
Example: cfsdgadm activate dgha
Create volumn:
vxassist g <diskgroup name> make <volumn name> <size in MB>
Example:
vxassist -g dgha make lvol1 1024M
vxassist -g dgha make lvol2 2048M
newfs -F vxfs /dev/vx/rdsk/dgha/lvol1
newfs -F vxfs /dev/vx/rdsk/dgha/lvol2
Add volumn:
cfsmntadm add <diskgroup name> <volumne> <mount point> all=rw
Example:
cfsmntadm add dgha lvol1 /cfs1 all=rw
cfsmntadm add dgha lvol2 /cfs2 all=rw
Mount CFS mount points:
cfsmount <mount point>
cfsmount /cfs1 /cfs2
If CIFS Server binaries are moved, note that CIFS Server depends on libraries including
/opt/samba/lib. Do the followings:
• Use chatr (see man chatr) to move libraries
• Copy binaries to /cfs1/opt/samba/bin, for example.
• Define "CIFS_BIN" in samba.cntl and samba.mon SG script files.
• Copy smb.conf to /cfs1/etc/opt/samba/smb.conf and define "CONF_FILE" in SG script
files.
• Define "LOG_DIR", "SMBD_PID_FILE", and "NMBD_PID_FILE" in SG script files.
The smb.conf file can be:
[global]
secruity = user
lock directory = /cfs1/var/opt/samba/locks
pid directory = /cfs1/var/opt/samba/locks
private directory = /cfs1/var/opt/samba/private
smb passwd file = /cfs1/var/opt/samba/private/smbpasswd
....
[cfs2]
path = /cfs2/data
browseable = yes
read only = no
164 Configuring HA HP CIFS