Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP CIFS Server 3.0g Administrator's Guide version A.02.03.01: HP-UX 11i v1, v2 and v3 > Chapter 2 Installing and Configuring the HP CIFS Server

Step 1: Installing HP CIFS Server Software

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

If the HP CIFS Server software has been pre-installed on your system, you may skip Step 1 and go directly to "Step 2: Running the Configuration Script".

If you want to use the CIFS File System Module (CFSM) feature on an HP-UX release 11i v3 system, see section “Procedures for Updating a New Version When Using CFSM” for detailed procedures before you update to a new version of HP CIFS Server.

HP CIFS Server Upgrades:

If you are upgrading an existing HP CIFS Server configuration, HP recommends that you create a backup copy of your current environment. The SD install procedure may alter or replace your current configuration files. All files under /var/opt/samba, /etc/opt/samba and /opt/samba must be saved in order to ensure that you will be able to return to your current configuration, if necessary. For example:

$ stopsmb

or if winbind is in use, then do:

$ stopsmb -w

$ mkdir /tmp/cifs_save

$ tar -cvf /tmp/cifs_save/var_backup.tar /var/opt/samba

$ tar -cvf /tmp/cifs_save/etc_backup.tar /etc/opt/samba

$ tar -cvf /tmp/cifs_save/optsamba_backup.tar /opt/samba

Do not use the -o option with the tar command. This will ensure proper file ownership.

If a problem with the upgrade does occur, use SD to remove the entire HP CIFS Server product and restore your previous backup version. Once this is done, you may restore the saved configuration files and the HP CIFS Server. For example:

$ tar -xvf /tmp/cifs_save/var_backup.tar

$ tar -xvf /tmp/cifs_save/etc_backup.tar

$ tar -xvf /tmp/cifs_save/optsamba_backup.tar

This procedure is not intended to replace a comprehensive backup strategy that includes user data files.

If you are in security = domain, or security = ads mode, it will probably be necessary to re-join an HP CIFS Server to the domain once you restore your previous backup version. See Chapter 4 “NT Style Domains” and Chapter 5 “Windows 2000/2003 Domains” for details on how to re-join an HP CIFS Server to a Windows domain.

Overview:

Installation of the HP CIFS Server software includes loading the HP CIFS Server filesets using the swinstall(1M) utility, completing the HP CIFS configuration procedures, and starting Samba using the startsmb script.

Installing From a Software Depot File:

To install the HP CIFS Server software from a depot file, such as those downloadable from http://www.hp.com/go/softwaredepot, enter the following at the command line:

swinstall options -s /path/filename ProductNumber

Where ProductNumber is either B8725AA for HP-UX 11i v1 and v2 or CIFS-SERVER for HP-UX 11i v3.

options is -x autoreboot=true

path must be an absolute path, it must start with /, for example,/tmp.

filename is the name of the downloaded depot file, usually a long name of the form:

B8725_AA.02.02..HP-UX_11.23...32+64.depot

An Example

For example, if you attempt to install the HP CIFS Server A.02.02 on HP-UX 11i v2 system from a downloaded depot file, enter the command line as shown below:

swinstall -x autoreboot=true \

-s /tmp/B8725_AA.02.02_HP-UX_11.23_IA+PA.depot B8725AA

Procedures for Updating a New Version When Using CFSM

If you want to use the CIFS File System Module (CFSM) feature on an HP-UX release 11i v3 system, each time you update to a newer version of HP CIFS Server, it requires a system re-boot after the update is complete. To avoid a system re-boot, you must perform the steps described below. For detailed information about the CFSM feature, see Chapter 12, “ CIFS File System Module Support”.

Steps Before Updating the HP CIFS Server

Use the following steps before updating the HP CIFS Server:

  1. Use the umount command to unstack CFSM from any file system where it is stacked.

    For example, the following command unstacks CFSM when unmounting the physical file system mounted on /mnt:

    umount /mnt

  2. Use the following commands to set both cfsm and cfsmdr modules to the unused state:

    kcmodule cfsmdr = unused

    kcmodule cfsm = unused

Steps After Updating the HP CIFS Server

Use the following steps after the update of the HP CIFS Server is complete:

  1. Use the following commands to set both cfsm and cfsmdr modules to the auto state:

    kcmodule cfsmdr = auto

    kcmodule cfsm = auto

  2. Execute the mount command with the "-o stackfs=cfsmtemplate" option to stack and mount the file system.

    For example, the following command stacks CFSM onto the physical file system using the cfsmtemplate template, when mounting the physical file system mounted on /mnt:

    mount -F vxfs -o stackfs=cfsmtemplate /dev/dsk/c1t2d3 /mnt

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.