Guest

Cisco TrafficDirector

Product Installation Guide (No title available)

 Feedback

Table of Contents

This appendix describes how to mount the TrafficDirector CD-ROM on AIX and HP-UX systems. It includes general information only. For more detailed instructions, see your AIX or HP-UX operating system documentation.

This appendix contains:

Mounting and Unmounting a CD-ROM on AIX Systems


Caution   You must use this CD-ROM mounting procedure to successfully install TrafficDirector. If you use the standard UNIX mount command, the installation will fail.

You can install TrafficDirector from a CD-ROM mounted on the local TrafficDirector system or from a CD-ROM mounted on a remote system.

This section contains the following information:

Mounting a Local CD-ROM Drive

To mount a local CD-ROM drive:


Step 1   Insert the TrafficDirector CD-ROM.

Step 2   Become the superuser by entering the command su and the root password at the command prompt, or log in as root. The command prompt changes to the pound sign (#).

Step 3   If the /cdrom directory does not already exist, enter the following command to create it:

# mkdir /cdrom

 

Step 4   Start SMIT by entering:

# smit

 

Step 5   From the SMIT System Management menu, select System Storage Management (Physical & Logical Storage).

Step 6   Select File Systems.

Step 7   Select Add/Change/Show/Delete File Systems.

Step 8   Select CDROM File Systems.

Step 9   Select Add a CDROM File System

Step 10   Click the DEVICE name List button, and select the device name (such as cd0) from the list that appears.

Step 11   Enter the name of a mount point directory (such as /cdrom) in the Mount Point field.

Step 12   Check for messages in the Output: field.

If you have already performed this procedure, or if another device is already mounted on the mount point, the process fails.

Step 13   Click Cancel to clear the Add CDROM File System dialog box.

Step 14   To stop SMIT, press F12 or select Exit > Exit SMIT.

Step 15   Enter the following command:

# smit mountfs

 

The Mount a File System dialog box appears.

Step 16   Select the device name of the CD-ROM drive that you want to mount (such as cd0) from the list that appears.

Step 17   In the DIRECTORY over which to mount field, enter the name of a mount point directory (for example, /cdrom).

Step 18   Select cdrfs as the filesystem type.

Step 19   Set the Mount as Read-Only system field to yes.

Step 20   Check for messages in the Output: field. If the mount is successful, there are no messages.

Step 21   Click Done.

Step 22   To exit SMIT, click Cancel.


Mounting a Remote CD-ROM Drive

To mount a remote CD-ROM drive:


Step 1   Perform all steps described in "Mounting a Local CD-ROM Drive" on the remote workstation.

Step 2   Enter the following command:

# smit mknfsexp

 

The Add a Directory to Exports List dialog box appears.

Step 3   Enter the CD-ROM mount point directory (such as /cdrom) in the PATHNAME of directory to export field.

Step 4   Use the arrow buttons to change the Mode to Export Directory field to read-only.

Step 5   Enter the appropriate information, if necessary, into the other fields.

Step 6   Check for messages in the Output: field.

Step 7   Click Done.

Step 8   To exit SMIT, click Cancel.

Step 9   After working on the remote workstation, log in as root on the local workstation

Step 10   Enter the following command:

    # mount remote_hostname:remote_exported_filesystem_name \ 
    local_mount_point
    
     
    
For example, to mount the /cdrom remote filesystem from the workstation zen to the local /cdrom directory, you would enter this command:

    # mount zen:/cdrom /cdrom
     
    

Unmounting a Local CD-ROM Drive


Step 1   Unmount the CD-ROM filesystem by performing one of the following procedures:

   a. As root, enter:

    # cd
    
    # unmount themountpoint
     
    
where themountpoint is the directory on the local system on which you mounted the CD-ROM.

For example, if you mounted the CD-ROM on the local directory /cdrom, enter unmount / cdrom:

Or,

   a. As root, start SMIT by entering smit.

   b. Select System Storage Management.

   c. Select File Systems.

   d. Select Unmount a File System.

   e. Enter the mountpoint in the Name of the file system to unmount field.

   f. Click OK.

Step 2   Remove the CD-ROM and store it in a safe place.


Unmounting a Remote CD-ROM Drive


Step 1   As root, start SMIT on the remote system by entering smit.

Step 2   Select System Storage Management (Physical & Local Storage).

Step 3   Select File Systems.

Step 4   Select Add/Change/Show/Delete File Systems.

Step 5   Select Network File System (NFS).

Step 6   Select Network File System (NFS) again.

Step 7   Select Remove a Directory from Exports List.

Step 8   Enter the CD-ROM mount point directory (such as /cdrom) in the PATHNAME of exported directory to be removed field. Click OK.

Step 9   As root, enter the following commands on the remote and local systems:

# cd

# unmount mountpoint

 

Where mountpoint is the directory on the system on which you mounted the CD-ROM. For example, if you mounted the CD-ROM on the directory /cdrom on both the local and remote systems, enter unmount /cdrom on both systems:


Note   Alternatively, you can use SMIT to unmount the CD-ROM filesystem on the local system as explained in the "Unmoun ting a Local CD-ROM Drive" section.

Step 10   Remove the CD-ROM and store it in a safe place.


Mounting and Unmounting a CD-ROM on HP-UX Systems

You can install CD One from a CD-ROM mounted on the CD One server system or from a CD-ROM mounted on a remote HP-UX system.

The native HP-UX mount command does not support CD-ROM filesystem formats that conform to the ISO 9660 Rockridge extensions standard. All CiscoWorks2000 installation CDs use this format. To mount CW2000 CD-ROMs, you must use Portable Filesystem (PFS), which allows access to CD-ROM filesystems that use the ISO 9660 Rockridge extension format.


Caution   You must use this CD-ROM mounting procedure to successfully install TrafficDirector. If you use the standard UNIX mount command, the installation will fail.

This section contains the following information:

Prerequisites for Mounting the CD-ROM


Note   To verify or set up any of these prerequisites, log in as superuser (enter the command su) or log in as root. The command prompt changes to the pound sign (#).

The following are prerequisites for mounting the CD-ROM:

  • You must install patch PHCO_16438 (or any later patch) from Hewlett-Packard before running PFS on an HP-UX 11.0 system.

  • The NFS client and server must be running.

  • The system hostname and IP address must resolve correctly.

  • You must have network loopback and networking in general configured before running PFS on HP-UX.

Use the command netstat -rn to show the network routing tables; the entry lo0 is for the loopback interface.

Verifying or Installing the Patch

To verify that the correct patch is installed and configured, enter this command:

# swlist -l fileset -a state | grep -i phco_16438

 

Output similar to the following is displayed to indicate that the patch is installed and configured properly.

PHCO_16438
PHCO_16438.PHCO_16438				 configured
 

If the patch is installed but not configured, enter this command:

# swconfig PHCO_16438

 

If the patch is corrupt or transient, you can reinstall it by using the swinstall GUI and selecting both reinstall lines under Options.


Note   Both reinstall lines must be checked or the patch will not be reinstalled.

Verifying NFS Client and Server are Running

To mount the CD-ROM, NFS and mountd must both be running. To verify, enter this command:

# rpcinfo -p

 

Output similar to the following appears:

program	vers		proto		port 
100000	2		tcp		111	rpcbind 
100000	2		udp		111	rpcbind 
100024	1		udp		789	status 
100024	1		tcp		791	status 
100021	1		tcp		795	nlockmgr 
100021	1		udp		1035	nlockmgr 
100021	3		tcp		799	nlockmgr 
100021	3		udp		1036	nlockmgr 
100020	1		udp		1037	llockmgr 
100020	1		tcp		804	llockmgr 
100021	2		tcp		807	nlockmgr 
100068	2		udp		1040	cmsd 
100068	3		udp		1040	cmsd 
100068	4		udp		1040	cmsd 
100068	5		udp		1040	cmsd 
100083	1		tcp		1036	ttdbserver 
100005	1		udp		831	mountd 
100005	1		tcp		833	mountd 
100003	2		udp		2049	nfs 
 

If NFS or mountd is missing:


Step 1   Verify the /etc/rc.config.d/nfsconf file:

# more /etc/rc.config.d/nfsconf
 

Step 2   Look for the following:

NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
START_MOUNTD=1

Step 3   If the values are different, use a text editor to open the file.

Step 4   Verify that NFS and mountd are both set to 1.

Step 5   Save the changes.

Step 6   Exit the text editor.

Step 7   To restart the NFS server and client processes, enter these commands:

# /sbin/init.d/nfs.server start

# /sbin/init.d/nfs.client start

 

Step 8   To verify that the NFS and mountd processes are present, enter this command:

# rpcinfo -p



Verifying the System Hostname and IP Address Resolves

To verify that the system name is resolved, enter this command:

# nslookup hostname 
 

The correct hostname must appear.

To verify that the IP address has resolved, enter this command:

# nslookup IP address 
 

The correct IP address must appear.

To resolve NIS issues, ensure the system uses the local /etc/hosts file. To do this, move the /etc/resolv.conf and /etc/nsswitch.conf files, if they exist, to their_name.old.

If the hosts file is large, you can shorten it to just the localhost and hostname and IP addresses as in the following example.

# more /etc/hosts 
# @(#)hosts $Revision: 1.9.212.1 $ $Date: 95/10/12 19:28:22 $
#
# The form for each entry is:
#
#
# For example:
# 192.1.2.34 hpfcrm loghost
#
# See the hosts(4) manual page for more information.
XXX.XXX.XXX.XXX Your_host_name
127.0.0.1 localhost loopback

Verifying the Network Loopback is Enabled

For HP-UX 11.0 systems, enable network loopback (if it is not already enabled) by adding LOOPBACK_ADDRESS=127.0.0.1 to the /etc/rc.config.d/netconf file.

To verify that network loopback is enabled, enter this command:

# netstat -rn
 

Output similar to the following appears:

Routing tables
Destination     Gateway         Flags   Refs     Use  Interface  Pmtu 
PmtuTime
127.0.0.1       127.0.0.1       UH         0    2897  lo0        4608
171.69.217.60   127.0.0.1       UH         1    2299  lo0        4608
default         171.69.217.254  UG         5   86356  lan0       1500
171.69.217.0    171.69.217.60   U          0    7702  lan0       1500
 

The entry lo0 is for the loopback interface.

Undoing Errors

To undo errors, stop any PFS daemons that are running and restart them. If you had difficulty starting PFS or if you used the umount command instead of the pfs_umount command, you must reboot the system to reestablish the proper settings.


Note   You must reboot the system any time you use the umount command instead of pfs_umount on the PFS-mounted CD-ROM.

Mounting a Local CD-ROM Drive


Note   You must use this CD-ROM mounting procedure to successfully install the product.


Step 1   Insert the TrafficDirector CD-ROM into the CD-ROM drive.

Step 2   To disable mounting of the CD-ROM drive as a CDFS filesystem, edit the /etc/fstab file.

For example, if the /etc/fstab file contains data similar to the following:

1. Copy the /etc/fstab to /etc/fstab.old.

2. To remove the last line, edit /etc/fstab:

    /dev/vg00/lvol3 / hfs rw,noquota 0 1 
    /dev/vg00/lvol1 /stand hfs rw,noquota 0 1 
    /dev/vg00/lvol6 /opt hfs rw,noquota 0 2 
    /dev/vg00/lvol7 /tmp hfs rw,noquota 0 3 
    /dev/vg00/lvol8 /usr hfs rw,noquota 0 2 
    /dev/dsk/c1t2d0 /cdrom cdfs ro,suid 0 0
     
    

Step 3   To create the PFS mount point, enter this command:

# mkdir /cdrom

 

Step 4   Make sure the path /usr/sbin is in the path environment variable.

Step 5   To start the PFS daemons to allow network access on the server and client systems, enter these commands:

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd 4 &
 

Note   You must start pfs_mountd first.

Step 6   To verify that the processes are running, enter this command:

# ps -ef | grep pfs
 

Output similar to the following is displayed:

root  1196  1195  0 14:07:28 ttyp1     0:00 pfs_mountd.rpc
root 1224 1208 0 14:07:47 ttyp1 0:00 pfsd.rpc
root 1210 1208 0 14:07:41 ttyp1 0:00 pfsd.rpc
root 1217 1208 0 14:07:44 ttyp1 0:00 pfsd.rpc
root 8669 7686 0 15:49:25 ttyp3 0:00 /usr/sbin/pfsd 4
root 8670 8669 0 15:49:25 ttyp3 0:00 pfsd.rpc
root 8617 7686 0 15:48:33 ttyp3 0:00 /usr/sbin/pfs_mountd
root 8739 7686 1 15:50:49 ttyp3 0:00 grep pfs

Step 7   To mount the CD-ROM, enter this command:

# pfs_mount -o xlat=unix /dev/rdsk/cXtXd0 /pfs_cdrom 
 

where cNtNd0 is the CD-ROM device file on your system.

Replace the N with the correct numerical information for your system. To identify the device, enter this command:

ioscan -funC disk

 

For example, the following command mounts the device /dev/rdsk/c1t2d0 to the /cdrom directory:

pfs_mount -o xlat=unix /dev/rdsk/c1t2d0 /cdrom


Note   PFS must use the raw or rdsk device file.


Unmounting the CD-ROM Drive


Step 1   Log into the system as superuser.

Step 2   Enter the following commands:

# cd /

# pfs_umount /cdrom

 

Step 3   To eject the CD-ROM from the drive, press the eject button.

Step 4   Remove the CD-ROM and store it in a safe place.


Accessing the CD-ROM from a Remote System


Note   You must use this CD-ROM mounting procedure to install the product successfully.


Step 1   To access the TrafficDirector CD-ROM from a remote machine, log in as superuser.

Step 2   On the remote machine, mount the CD-ROM as described in the "Mounting a Local CD-ROM Drive" section

Step 3   Add the following entry to the file /etc/pfs_exports (create the file if it does not already exist):

/cdrom -access=client

 

where cdrom is the directory where you mounted the CD-ROM, and client is the name of the host on which you want to install the software.

Step 4   To export the directory you just mounted, enter this command:

# pfs_exportfs -a -v
 

Step 5   On the local system (the system on which you want to install the software):

Step 6   Start the pfs daemons as described in the section "Mounting a Local CD-ROM Drive" section

Step 7   To mount the CD-ROM, enter this command:

# pfs_mount remotehost:remote_mount_point local_mount_point
 

where remotehost is the name of the remote system, remote_mount_point is the name of the CD-ROM mount point on the remote system, and local_mount_point is the name of the CD-ROM mount point on the local system.

For example, this command mounts the /cdrom directory of the remote system named hello to the /cdrom directory of the local system:

# pfs_mount hello:/cdrom /cdrom.
 

Unexporting the CD-ROM Filesystem

After you have installed TrafficDirector and the necessary device packages, you might want to unexport the exported CD-ROM filesystem.


Step 1   Log into the local HP-UX workstation as root.

Step 2   Unmount the directory for the local workstation by entering this command:

# pfs_umount local_mount_point
 

For example, this command unmounts the /cdrom directory on the local system:

# pfs_umount /cdrom
 

Step 3   Log into the remote HP-UX workstation as root.

Step 4   Remove the following line from the /etc/pfs_exports file:

/cdrom -access=client
 

where cdrom is the directory where you mounted the CD-ROM, and client is the name of the host on which you want to install the software.

Step 5   To unexport the filesystem, enter this command:

# pfsexportfs -u /server_mount-point
 

For example, this command unexports the /cdrom directory on the remote system:

# pfs_exportfs -u /cdrom
 

Step 6   Unmount the CD-ROM as described in the section "Unmounting the CD-ROM Drive" section