HP Serviceguard Enterprise Cluster Master Toolkit User Guide, June 2014

Replace the "XXX.XXX.XXX.XXX/xxx.xxx.xxx.xxx" with one relocatable IP address and subnet
mask for the Serviceguard package.
Copy the workgroup line from the /etc/opt/samba/smb.conf file.
Copy the NetBIOS name line from the same file, or enter the UNIX host name for the server
on the NetBIOS name line.
Add in the rest of desired configuration items.
Include all users of HP CIFS Server with their passwords for all instances in all nodes using
the command smbpasswd <username> where the username must already exist in the
standard UNIX passwd file.
To use a shared file system, the file system must reside on shared storage.
Shared Configuration
Using LVM
To configure a shared file system managed by LVM, you need to create volume groups and
logical volumes on the shared disks, and then construct a new file system for each logical
volume for the HP CIFS Server file system (and HP CIFS Server configuration files). For more
information on configuring LVM and creating a file system, see the Managing ServiceGuard
manual available at http://www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard .
For a local configuration, you must install and configure the HP CIFS Server in the same
location on both the primary and all backup nodes and set up identical (or equivalent)
configuration files in the same directory on all nodes.
The following is an example of configuring shared storage for a CIFS Server package. In this
example, consider that /shared/smb1 is a shared file system directory, which resides on a
logical volume "lvol1" in a shared volume group "/dev/vg01".
1. Create a Volume Group "vg01" for a shared storage.
2. Create a Logical Volume "lvol1" for the "vg01".
3. Construct a new file system on the Logical Volume "lvol1".
4. Create a directory "/shared/smb1" on a local disk.
5. Mount device "/dev/vg01/lvol1" to the "/shared/smb1" .
6. Copy all the necessary files depending on the configuration.
7. Unmount "/shared/smb1".
Using VxVM
To configure a shared file system which is managed by VxVM, you need to create disk groups
and logical volumes on the shared disks and construct a new file system for each logical
volume for the HP CIFS Server file system and HP CIFS Server configuration files.
The following is an example of configuring the above steps using VxVM:
1. Create a Disk Group "DG_00" on the shared storage.
2. Create Logical volume "LV_00" on the Disk Group "DG_00".
3. Construct a new file system on the Logical Volume "LV_00".
4. Create a directory "/shared/smb1" on a local disk.
5. Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/smb1".
6. Copy all the necessary files depending on the configuration.
7. Unmount "/shared/smb1".
Using CFS
To configure a Samba package in a CFS environment, the SG CFS packages must be running to
enable the Samba package to access CFS mounted file systems. For more information on how to
configure SG CFS packages, see the Serviceguard Manual. Create a directory /shared/smb1
126 Using SAMBA Toolkit in a Serviceguard Cluster