HP CIFS Server 3.0k Administrator's Guide version A.02.04
smbpasswd -c /etc/opt/samba/pkg1/smb.conf.pkg1 -a username
smbclient -s /etc/opt/samba/pkg1/smb.conf.pkg1 //ha_server1/lvm1a
-c ls
testparm -s /etc/opt/samba/pkg1/smb.conf.pkg1
smbstatus -s /etc/opt/samba/pkg1/smb.conf.pkg1
• Network File System (NFS) and Veritas Cluster File System (CFS)
NFS and Veritas CFS permits concurrent file access from multiple nodes. Since most file
locking mechanisms do not span across multiple systems, you should use extra caution
when configuring CIFS Server in an NFS or a CFS environment. See Chapter 2, section
"Special Concerns when Using HP CIFS Server with a Network File System (NFS) or a
Clustered File System (CFS)".
Caution should be used when using NFS or CFS to share the locks and private directory
files, only one CIFS instance should be active at any given time. CIFS may prevent multiple
instances from starting if they share the CIFS configured PID files.
• Using NFS to Share the Locks and Private Directory Files
If NFS is used to share to the locks and private directory files from multiple nodes as single
instances, the following procedures may help to prevent configuration errors. The NFS
Server must permit access to the 'root' user to the CIFS directories.
For the NFS example:
Execute the following commands on the NFS server:
mkdir -p -m 777 /exported
mkdir -p -m 755 /exported/looks
mkdir -p -m 700 /exported/private
mkdir -p -m 777 /exported/data
vi /etc/exports
/exported -anon=root root=host:nfsclient1:nfsclient2
Run the following command to export all directories listed in /exported to NFS clients:
exportfs -a
Execute the following commands on an NFS client:
vi /etc/fstab
nfsserver:/exported /mnt/nfsserver nfs defaults 0 0
mkdir -p /mnt/nfsserver
mount /mnt/nfsserver
An example of smb.conf is as follows:
[Global]
security = user
lock directory = /mnt/nfsserver/locks
pid directory = /mnt/nfsserver/locks
private directory = /mnt/nfsserver/private
smb passwd file = /mnt/nfsserver/private/smbpasswd
[nfs]
path = /mnt/nfsserver/data
browseable = yes
read only = no
For the CFS example:
Run the following command on the CFS master node to start HA cluster:
180 Configuring HA HP CIFS