Digital Equipment Corp/Compaq Unix Servers

Installation and Mangement Guide

Pre Tru64 - 5.x OS Installation

Tru 64 - 5.x OS Installation

Upgrading the Operating System

Patches

Listing Patches on an Alpha System

Configuring Swap Space

Vendor Software Install Updates

C Compilers/Developers Toolkit

Licenses

Kernel Build Section

Logical Storage Manager - Logical Volumes

LSM Disk Mirroring

Adding disks controllers and disks to the system

Hard Disk Partitions

Adding Fibre Disks

Connecting to the HSZ Controller to configure RAID Disks

Restoring the primary and secondary bootstrap programs

File Systems

Network Configuration

NFS Configurations

Updating The Firmware

Using The ARC Utility

Configuring a Console

System Shutdown & Startup Procedures

Prom Level, Boot Commands

Decevent Installation

Diagnostic Tools

Utilities/Commands

Recovering the root password

Digital 4.0D Documentation

Digital 4.0E Documentation

Vendor Support

Installing a New Operating System for Pre-Tru64bit 5.x.

Additional products to be installed after the O/S installation is complete:

  1. Install the latest version of Ladebug, ie: Version 67. This product version is in our reporisoty as /repos1/Dec/ladebug-all-4.x-4.0.67.tar. 
  2. Install SVR4 (ESVF), you will find this product on the Associated Products CD #2.
    This will install 'truss'.  Make a link from /usr/opt/svr4/bin/truss to /bin/truss, ie:
    ln -s /usr/opt/svr4/bin/truss  /bin/truss
  3. Install the latest O/S patch kit.
  4. Install dupatch, this gets installed when you install an O/S patch kit.
  5. Increase the per_proc_address_space is set to the value of max_per_proc_address_space.

-----------------------------------------------------------------------------------------------------

Refer to  the Digital Unix Installation Guide for further help with the installation.

Post Install Steps, gather important files from the system if it was a previously installed system:

/etc/fstab
/etc/sysconfigtab
/etc/resolv.conf
/etc/passwd
/etc/group
/etc/routes
/etc/hosts
/etc/rc.config
/etc/securettys
/etc/dbmap
/etc/usermap
/etc/asmap
/etc/patchmap
/etc/oratab
/etc/inftab
/etc/sybtab
/etc/auto_master
/etc/auto_direct
/etc/tnsnames.ora
/etc/listener.ora
/etc/interfaces.syb

Gather Logical Storage Manager configuration information:

volsave    (Creates a file in /usr/var/lsm/db/LSM.xxx.[sysname]
volprint -Aht > filename
voldisk list > filename
voldg list > filename
voldctl list > filename

Gather Disk Information to files on a disk other than the root disk and disks using LSM, ie:

disklabel dsk0 > /ds3/disk_label/disklabel_dsk0   (/dev/disk/dsk3c)
disklabel dsk1 > /ds3/disk_label/disklabel_dsk1

Gather System Information in a file on your workstation called sysinfo, file to gather are:

Results of the following commands

df -k
swapon -s
netstat -in
netstat -rn
disklabel dsk0 (and all the other dsk's on the system as well)
P00>>>sh dev

Make note of the CDROM device, it will be the first line of the output.


P00>>>sh  (Show all)

Make note of the Firmware Version, it will be the last line in the output

Also run the '/var/sbin/sys_check'  to gather more pertinent information about the system.

This information will get placed in /var/recovery/sys_check.

-----------------------------------------

Halt the system to get to the boot prompt "P00>>>"

shutdown -h now

Show the boot device, cdrom device and disk devices.

P00>>> sho dev

Output similar to the following is displayed

 

cda0 dka500.5.0.1.1    DKa500   RRD46  (RRD signifies the cdromdevice)
boot_dev dkb0.0.0.2.1       DKb0   RZ1CB-CS  (SCSI Disk Device)
ewa0_mode Auto-Negotiate
OR ewa0_mode ewa0.0.0.3.0   00-00=F8-10-C7-41 Twisted-Pair  (10 BaseT)
console serial

NOTE: At the boot prompt, make sure that the follwoing settings are:

OS Type = unix
ewa0_mode  = FastFD

*Other settings for ewa0_mode could be either Twister Pair (10 BaseT) or Full Duplex (100 BaseT)FastFD
*If the system has a ee0 nic card this should always be set to AutoNegotiate.

Change the settings if they are not set correctly.
The example below shows you how to do this.

Shows settings for ewa0_mode, os_type and console, etc....

P00>>> show  | more

For 100BaseT Full Duplex - Set to 'FastFD'.

On some systems (es-40's) 'FastFD' does not work, so you will have to use 'Auto-Negotiate'  instead, you will need to make sure that the switch port is set to Auto as well, and the same goes for the 'FastFD' setting, make sure the switch port matches 100 Full.

P00>>> set ewa0_mode FastFD

P00>>> set ewa0_mode Auto-Negotiate

 Make sure OS Type is set to 'unix'

P00>>> set os_type  unix
 

Make sure Console is set to 'serial'

P00>>> set console serial

Start the Installation

Insert the Digital Unix Operating System CD into the CDROM drive.
Boot the system from the CDROM device to start the installation. 

Example - Booting from the CDROM device dka500.

P00>>> boot dka500

Initializing system for Digital Unix Installation. Please Wait.
Performing CDROM Installation

 

Select option 3 - This option will exit to the unix shell so you can change the existing partition layouts if needed.  Type the following at the unix prompt.

# EDITOR=vi
# TERM=vt100

# disklabel -r dsk0  ( This will show you the layout of the partition table for /dev/dsk0, if the layout is the way you want the disk partitioned then continue with the installation, otherwise modify the partitions using the Hard Disk Partitions guide .

Type 'exit' to go back to the installation process.

After the disks have been partitioned, go on to the next step to finish the installation.
 

Select option #2 - Custom installation.

Enter root password:

Select Location: 36 for US 

Select time zone: 11 for Pacific

Enter the current date: 09-30-98

Enter the current time: 18:25

Select root disk. Example:  rz0.


The root file system will be placed on the "a" partition of this disk.

Choose which partition table to use.

Enter your choice: 2 (Existing table that you partitioned above).

Use this default disk layout (y/n) ?  n

Select UFS  for UNIX file system.

Select disk where the /usr file system will reside.

Select partition where /usr will reside.

Select UFS for Unix file system.

Select the disk where the first swapping area (swap1) will reside.

Select the disk where the second swapping area (swap2) will reside, optional.

Select disk where the /var file system will reside.

Select partition where /var will reside.

Select UFS for UNIX file system.

Sofware subsets to install:

Enter the Number(s) of each item to install on the input line,
press enter to continue and add more number selections at the end of the input line.

Press enter to continue through each screenfull of subsets including at the end.

 

Additional Terminfo databases

Logical Storage Manager Kernel Header and Common Files

Logical Storage Manager Kernel Modules

POLYCTR advfs Kernel Modules

All of the Reference Pages

Software Development Tools and Utilities

Standard Header Files

Standard Programmer Commands

Static Libraries

Logical Storage Manager

Logical Storage Manager GUI

Logical Volume Manager

XVFB

All of the Text Processing
 

Your choices will be displayed for review,  answer the question -

Are these the subsets that should be loaded? [y/n] 
(Answer yes if all the subsets are correct, no to go back and re-enter the subsets).

*** Kernel Configuration and Build Procedure Begins ***
 

System will now reboot

During reboot a message displays 'This system requires a driver for its graphics card.
Enter the driver where the kit can be found or <Return> to cancel:

Press <RETURN> to cancel and continue with the installation.
 

*** Kernel Option Selection ***  Select the following:
 

System V Devices

Logical Volume Manager (LVM)

Streams pckt module (PCKT)

X/Open Transport Interface  (XTISO, TIMOD, TIRDWR)

ISO 9660 Compact Disc File System (CDFS)

Logical Storage Manager (LSM)
 

The above Kernel Modules will now be loaded.
 

Do you want to edit the configuration file?
 
Answer NO, Unless you you need to add a eisa0 controller.
 
If you need to add a eisa0 contoller:

Answer YES and enter (as an example) the following line in the kernel configuration file:

 
controller ace0 at eis0 slot 10 vector aceintr 

NOTE:   The configuration file is /usr/sys/conf/[system-name] in caps

    Example: /usr/sys/conf/RT-DEC06

The kernel is now being rebuilt
 

    **** Performing Kernel Build ****

When the installation is complete there will be logfiles that contain a record of your installation in:
 

    /var/adm/smlogs

The system will reboot when the installation has completed successfully. 

Now confiugre /tmp file system:

Boot from the O/S CD.

P00>>> boot dka400

Initializing system for Digital Unix Installation. Please Wait.
Performing CDROM Installation

Press the return key until you get to the following menu:

1) U.S. English Installation
2) Intallation with Worlwide Language Support
3) Exit Installation

Enter your choice:  3

FSCK the root file system:

fsck /dev/rz0a

mkdir /tmp/r0
mount /dev/rz0a  /tmp/r0
cd /tmp/r0
rm -rf tmp
mkdir /tmp/r0/tmp
newfs /dev/rz0? (NEWFS the /tmp file system)
fsck /dev/rz0?  (FSCK the /tmp file system)
edit fstab - put an entry in for the /tmp filesystem, save and quit.

HALT the system, and at the P00> prompt and boot the system.

halt
P00> boot

Configuring Swap Space

List current swap space:


#swapon -s
 

For 4.x and earlier versions of the O/S Enter swap space specification in /etc/fstab file by edititing the file:


Example of a swap  entry:

/dev/rz0b   swap2    ufs    sw    0    0

For 5.x Tru 64bit O/S enter the swap entry in the /etc/sysconfigtab file under the vm section as well as the deferred swap setting:

vm:

swapdevice=/dev/disk/dsk0b,/dev/disk/dsk1b

vm-swap-eager=0 (To set the system to use deferred mode)

Activate a newly added paging space in /etc/fstab:


#swapon -a /dev/rz1h

Add device /dev/rz1h as swap space.

#swapon /dev/rz1h

To make swap space permanent, you must specify the swap file entry in the
  /etc/fstab file.

Configure swap space as deferred swap space on all Dec installations:


 
On Pre 5.x systems

cd /sbin

mv swapdefault swapdefault.org

On 5.x systems and above

Add the following entry to the /etc/syscnfigtab file under the vm: section

vm:

vm-swap-eager=0 (To set the system to use deferred mode)

(This will keep the kernel from using up all of the primary swap space,
if you want a further definition of eager swap do a man on swapon).

Changing the boot flags after the installation is complete:

Halt the system so that you can change the boot flags by issuing the following console commands to set your default bootpath variable and to boot your system disk to multiuser:
 

P00>>> set boot_osflags A

P00>>> set bootdef_dev dka0  --> 'dka0' is just an example of a default boot device.

P00>>> boot

Updating the /etc/securettys file so that root users can login via telnet:

Update '/etc/securettys' with a one line entry 'ptys' at the end of the file.

Save and exit the file.

Compilers Information:

Load the compilers at Customers request, and that you have verified this with the content manager, usually 'st-xxxxx' boxes only.

To install the compilers Go to the C Compilers/Developers Toolkit Section.

License and Register a subset package:

Execute the license script file provided by our Compaq on-site representative, otherwise see installing licenses for information on how to get and register licenses -->  Licenses,
 

 NOTE: The license database resides in  /var/adm/lmf/ldb, do not modify or remove this file.

Execute the license script file in the repository -   /repos1/Dec/lic-all-2001lmflic.csh

cd /repos1/Dec

./lic-all-2001lmflic.csh

To manually license and register a subset package, you will need the license packs to do this and issue the following commands.

lmf

select: [register, enter info, x, reset, list, exit]
 

lmf> register

A register form is displayed, place cursor at the first field, ie: Issuer:, append the line after the 'colon' of Issuer, enter the correct information here, DEC, then press the escape key, move to the next file and append the line in the same manner as before, and press escape again to exit the append mode, and move to next field, and so on. 

Once you have finished entering the field then save the file with 'x'.  If the checksum passes it will tell you and you will be placed at the lmf> prompt.

lmf> reset

lmf> list

lmf> exit

Load additional packages from the O/S Installation Media that you may have missed
at installation time.

 

mount CDROM device

Example: mount -r /dev/rz5c /cdrom

setld -l /cdrom/ALPHA/BASE
 

Choose the subsets that you want to install from the subsets listed on the screen.

Example:

Choices: 5-7 10-12 19-23 27-28 38 41 47-48 

Enter 'Y' to accept and load.
 

When the load is complete the screen will display subsets loaded successfully.

Finish building out the system per the Unix SysAdmin Checklist per Users request.

TRU 64 - 5.x O/S Installation

Additional products to be installed after the O/S installation is complete:

  1. Install the latest version of Ladebug, ie: Version 67, per Carla Curtis Compaq's on-site support person.  This product version is in our reporisoty as /repos1/Dec/ladebug-all-5.x-4.0.67.tar.
    Go to the link below to go to Compaq's ladebug download site if you want a more current version than what is listed above:

http://www.compaq.com/products/software/ladebug/download-install-unix.html

  1. Install SVR4 (ESVF), you will find this product on the Associated Products CD #2 under Extended_System_V/kit. Use setld -l to install this product and select option 3) All of the above.
    This will install 'truss'.  Make a link from /usr/opt/svr4/bin/truss to /bin/truss, ie:
    ln -s /usr/opt/svr4/bin/truss  /bin/truss
  2. Install the latest O/S patch kit.
  3. Install dupatch, this gets installed when you install an O/S patch kit.
  4. Increase the per_proc_address_space is set to the value of max_per_proc_address_space, see kernel section for this setting.

----------------------------------------------------------------------------------------------------------------

Refer to  the Digital Unix Installation Guide for further help with the installation.

Tru64 - 5.1 - O/S patch in the repository1 as t64v51as0003-20010521.tar

Post Install Steps, gather important files from the system if it was a previously installed system:

/etc/fstab
/etc/sysconfigtab
/etc/resolv.conf
/etc/passwd
/etc/group
/etc/routes
/etc/hosts
/etc/rc.config
/etc/securettys
/etc/dbmap
/etc/usermap
/etc/asmap
/etc/patchmap
/etc/oratab
/etc/inftab
/etc/sybtab
/etc/auto_master
/etc/auto_direct
/etc/tnsnames.ora
/etc/listener.ora
/etc/interfaces.syb

Gather Logical Storage Manager configuration information:

volsave    (Creates a file in /usr/var/lsm/db/LSM.xxx.[sysname]
volprint -Aht > filename
voldisk list > filename
voldg list > filename
voldctl list > filename

Gather Disk Information to files on a disk other than the root disk and disks using LSM, ie:

disklabel dsk0 > /ds3/disk_label/disklabel_dsk0   (/dev/disk/dsk3c)
disklabel dsk1 > /ds3/disk_label/disklabel_dsk1

Gather System Information in a file on your workstation called sysinfo, file to gather are:

Results of the following commands

df -k
swapon -s
netstat -in
netstat -rn
disklabel dsk0 (and all the other dsk's on the system as well)
P00>>>sh dev

Make note of the CDROM device, it will be the first line of the output.


P00>>>sh  (Show all)

Make note of the Firmware Version, it will be the last line in the output

Also run the '/var/sbin/sys_check'  to gather more pertinent information about the system.

This information will get placed in /var/recovery/sys_check.

------------------------------------

Halt the system to get to the boot prompt "P00>>>"

shutdown -h now

Show the boot device and cdrom device.

P00>>> sho dev

Output similar to the following is displayed

 

cda0 dka500.5.0.1.1    DKa500   RRD46  (RRD signifies the cdromdevice)
boot_dev dkb0.0.0.2.1       DKb0   RZ1CB-CS  (SCSI Disk Device)
ewa0_mode Auto-Negotiate
OR ewa0_mode ewa0.0.0.3.0   00-00=F8-10-C7-41 Twisted-Pair  (10 BaseT)
console serial

NOTE: At the boot prompt, make sure that the follwoing settings are:

OS Type = unix
ewa0_mode  = FastFD

*Other settings for ewa0_mode could be either Twister Pair (10 BaseT) or Full Duplex (100 BaseT)FastFD
*ee0 Nic card should alwasy be set to Augo Negotiate.

Change the settings if they are not set correctly.
The example below shows you how to do this.

Show settings for ewa0_mode, os_type and console, etc....

P00>>> show  | more

100BaseT Full Duplex - Set this to 'FastFD'.

On some systems (es-40's) 'FastFD' does not work, so you will have to use 'Auto-Negotiate'  instead, you will need to make sure that the switch port is set to Auto as well, and the same goes for the 'FastFD' setting, make sure the switch port matches 100 Full.

P00>>> set ewa0_mode FastFD

Start the Installation

Insert the Digital Unix Operating System CD into the CDROM drive.
Boot the system from the CDROM device to start the installation. 


Example - Booting from the CDROM device dka500.

P00>>> boot dka500

Initializing system for Digital Unix Installation. Please Wait.
Performing CDROM Installation

Press the return key until you get to the following menu:

1) U.S. English Installation
2) Intallation with Worlwide Language Support
3) Exit Installation

Enter your choice:  3

# EDITOR=vi
# TERM=vt100

# disklabel -r dsk0  ( This will show you the layout of the partition table for /dev/dsk0, if the layout is the way you want the disk partitioned then continue with the installation, otherwise modify the partitions using the Hard Disk Partitions guide .

Type 'exit' to go back to the installation process.


Press the return key until you get to the following menu:

1) U.S. English Installation
2) Intallation with Worlwide Language Support
3) Exit Installation

Enter your choice:  1

Enter a password to use as the root (superuser) password.

Enter root password:
Retype root password:

Choose a hostname for this system.

Enter the hostname for this system:  rt-alp03  (As an example).

Select the location that best describes your site (Time Zone) from the list.

21) PST8PDT  (This number may change on installations)

Enter your choice: 21

Enter the current date (mm-dd-[cc]yy): 02-15-2001

Enter the current time in 24 hour format (hh:mm):  15:55

The date and time has been set to Thu 15 15:55:00 PDT 2000

Is this correct  (y/n) ?  y

***** Software Selection *****

** Reviewing available software for:
        Tru64 UNIX 5.x Operating System
    Please wait ...

The following options are available:

1) All Software
2) Mandatory Only
3) Customize

Enter your choice:  3

Optional software subsets to choose from list:

Additional Terminfo databases
All of the Ref Pages (18-23 possibly, these numbers may be different on other installations)
GNU Revision
Ladebug Debugger
Ladebug Debugger Release Notes
Software Development
Standard Header Files
Standard Programmer Commands
Static Libraries
Kernel Debugging Tools
Logical Storage Manager  (Install the LSM GUI as well, this will install the LSM GUI Administrator)
System Accounting Utilities

After selecting the above the installation displays:

The following subsets will be loaded:

Displays the above software list to be loaded.

Space required in (root/usr/var): 81.9MB/331MB/5.8MB
Are these the software subsets that should be loaded (y/n) ? y

***** Kernel Options Selection *****

The following options are available:
bulletSelect "ALL Options" to automatically build all mandatory and all optional kernel components into the tailored kernel.
bulletSelect "Mandatory Only" to automatically build only the mandatory kernel components into the tailored kernel.
bulletSelect "Customize" to manually select the optional kernel components. You will be prompted for your selection later in the installation process after all software subsets have been loaded and the system has been rebooted from the new system disk.  The mandatory kernel components will be automatically included in the custom-build kernel.

1) All Options
2) Mandatory Only
3) Customize

Enter your choice:  1

***** File System Selection *****

Would you like to use LSM (y/n) ?  n

Choose your file system layout:
bulletThe default file system layout installs the operating system onto a single disk, and provides the most typical file system configuration.
bulletThe Custom file system layout lets you choose the partition and file system type individually for each of the file systems created by the installation process.

1) Default file system layout
2) Custom file system layout

Enter your choice:  2

Select a disk for the root file system.  The root file system will be placed on the "a" partition of the disk you choose.

Device        Size   Controller        Model                        Location
Name       in GB         Type
1) dsk0        8.5         SCSI         BB00911CA0         bus-1-targ-0-lun-0
2) dsk1        8.5         SCSI         BB00911CA0         bus-1-targ-1-lun-0
3) dsk2        8.5         SCSI         BB00911CA0         bus-1-targ-2-lun-0
4) dsk3        8.5         SCSI         BB00911CA0         bus-1-targ-6-lun-0

Enter your choice:  1

The dsk0 disk has a partition table that is not recommended.

Choose which partition table to use.

1) Recommended table
2) Existing table

Enter your choice:  2

Enter your choice:  1

Select the file system type for the root file system.

1) UFS -- UNIX File System
2) AdvFS  -- Advanced File System

Enter your choice:  1

Select the disk where the /usr file system will reside.

Enter Your choice:  1

Select the dsk0 partition where the /usr file system will reside.  A size of 700MB or greater is recommended to allow for additional layered software and furture upgrade considerations.

1)        b             2.0GB             262144             4456447             c
2)        d             750MB          4456448            5992447             c
3)        e             150MB          5992448            6299647             c
4)        f              150MB          6299648            6606847             c
5)       g              5.3GB           6606848          17773523             c

Enter your choice:  2

Select the file system type for the /usr file system.

1) UFS -- UNIX File System
2) AdvFS -- Advanced File System

Enter your choice:  1

Select the disk where the first swapping area (swap1) will reside.

Enter your choice:  1

Select the dsk0 partition where the first swapping area (swap1) will reside.

1)        b             2.0GB             262144             4456447             c
2)        e             150MB          5992448            6299647             c
3)        f              150MB          6299648            6606847             c
4)       g              5.3GB           6606848          17773523             c


Enter your choice:  1

You may choose to have a second swapping area (swap2).
Do you want a second swapping area (y/n) ?  n

Should /var be a separate file system (y/n)  y

Select the disk where the /var file system will reside.

Enter your choice:  1

Select the dsk0 partition where the /var file system will reside.

1)        e             150MB          5992448            6299647             c
2)        f              150MB          6299648            6606847             c
3)       g              5.3GB           6606848          17773523             c

Enter your choice: 1

Select the file system type for the /var file system.

Enter your choice:  1   (UNIX File System)

You have requested this file system layout:

*  root file system on dsk0a,  type UFS
*  /usr file system on dsk0d,  type UFS
*  /var file system on dsk0e, type UFS
*  first swapping area (swap1) will be on dsk0b
* no second swapping area (swap2)

Is this the correct file system layout (y/n) ?  y

You have now answered all questions needed to install the operating system.  Press CTRL/C to cancel the installation; or type "history" to modify your earlier answers;  or prerss RETURN to proceed with installation:

Continuing installation ...

The installation procedure will now load a total of XX software subsets on your disk partitions.

The installation software has successfully installed your system.
There are logfiles that contain a record of your installation in /var/adm:

install.cdf                         -                 Configuration description file
install.log                         -                 General log file
install.FS.log                   -                 File system creation logs
setld.log                          -                  Log for the setld(8) utility
fverify.log                        -                  Verification log file

The above message is also recorded in /etc/motd.

I/O error (error 5) for block.....  this is okay, it is complaining about the CDROM drive.

System halting messages will be displayed before rebooting.
halted CPU 0

CPU 0 booting.

Checking for installation Tasks ...
Configuring "Hardware Kernel Modules"
Configuring "Base System - Hardware Support"  continues with configuring the system.

The system name assigned to your machine is 'xx-xxxxx'

***** Kernel Configuration and Build Procedure *****

The system will now automatically build a kernel with all options and then reboot.

***** Performing Kernel Build *****

The entire set of new functionally has been enabled.

Halting CPU messages display
CPU 0 booting

The system will now display the following menu so that you can finish setting up the system, ie: network configuration.

Compaq Tru64 UNIX V5.1 (Rev. 732) (st-alp05) console

login: root

Password:

Can't find an OSF-BASE, UNIX-WORKSTATION, or UNIX-SERVER license PAK

Compaq Tru64 UNIX V5.1 (Rev. 732); Mon May 20 16:45:31 PDT 2002

The installation software has successfully installed your system.

There are logfiles that contain a record of your installation. These are:

/var/adm/smlogs/install.cdf - configuration description file

/var/adm/smlogs/install.log - general log file

/var/adm/smlogs/install.FS.log - file system creation logs

/var/adm/smlogs/setld.log - log for the setld(8) utility

/var/adm/smlogs/fverify.log - verification log file

 Tru64 UNIX Version V5.1 (Rev. 732) System Setup

To prepare this system for general use, the Product Authorization Keys (PAKs)

that were purchased with it must be installed to allow users to log in and

access licensed software packages. In addition, several Tru64 UNIX subsystems,

such as networking, mail, printing, and others, must be configured.

This setup utility, in addition to allowing for the configuration of

Tru64 UNIX subsystems, provides information on other tasks that

you may want to do during or after the setup utility runs. You can access

this information from the following menu. If you want to view this information,

do so before choosing option 5. This information is also available in the

Installation Guide, a printed document shipped with your system.

1) Read this first!

2) Information about loading license PAKs

3) Information about accessing online documentation

4) Information about adding users

5) Begin system configuration

6) Exit

Please enter a number (1 to 6): 5

 Tru64 UNIX: System Setup

Tru64 UNIX System Setup provides Quick Setup and Custom Setup options.

Quick Setup leads you through a set of steps to set up a typical UNIX system.

This includes networking, user services, time services, printers, and other

basics.

Custom Setup examines your system and lists the relevant tasks for configuring

your computer. These tasks are listed in the order most frequently performed.

You can run Quick Setup to get a basic configuration and then use Custom Setup

for any custom configuration settings.

Select Cloning Information to read how to clone an existing system setup onto

other systems or save a setup for cloning.

1) Quick Setup

2) Custom Setup

3) Cloning Information

4) Exit

Please enter your selection [1]:

Use the following keys when working with SysMan applications on a terminal:

Quick Setup: Set up the Network Interface Card (NIC)

Step 2:

Go through the Network Configuration menus to setup the network and when the Network Confiugration is complete exit to get to the login prompt.

The system is ready.

You can login and continue with configuring the system.

Login: 

Now confiugre /tmp file system:

Boot from the O/S CD.

P00>>> boot dka500

Initializing system for Digital Unix Installation. Please Wait.
Performing CDROM Installation

Press the return key until you get to the following menu:

1) U.S. English Installation
2) Intallation with Worlwide Language Support
3) Exit Installation

Enter your choice:  3

FSCK the root file system:

fsck /dev/disk/dsk0a

mkdir /tmp/r0
mount /dev/disk/dsk0a  /tmp/r0
cd /tmp/r0
rm -rf tmp
mkdir /tmp/r0/tmp
newfs /dev/rz0? (NEWFS the /tmp file system)
fsck /dev/dsk0?  (FSCK the /tmp file system)
edit fstab - put an entry in for the /tmp filesystem, save and quit.

HALT the system, and at the 'P00>>>' prompt boot the system.

halt
P00>>> boot

Updating the /etc/securettys file so that root users can login via telnet:

Update '/etc/securettys' with a one line entry 'ptys' at the end of the file.

Save and exit the file.

Compilers Information:

Load the compilers at Customers request, and that you have verified this with the content manager, usually 'st-xxxxx' boxes only.

To install the compilers Go to the C Compilers/Developers Toolkit Section.

License and Register a subset package:

See installing licenses for information on how to get and register licenses -->  Licenses,
   

Load additional packages from the O/S Installation Media that you may have missed
at installation time.

 

mount CDROM device

Example: mount -r /dev/rz5c /cdrom

setld -l /cdrom/ALPHA/BASE
 

Choose the subsets that you want to install from the subsets listed on the screen.

Example:

Choices: 5-7 10-12 19-23 27-28 38 41 47-48 

Enter 'Y' to accept and load.
 

When the load is complete the screen will display subsets loaded successfully.

Kernel Build Section

Note: The dflssiz parameter is not used in Tru64 V5.x Unix.
You do not need to edit the /sys/conf/{hostname} file.  All Admin controlled parameters now reside in /etc/sysconfigtab. If you are not familiar with 'vi' editor then follow the directions below for changing the parameters in the sysconfigtab file.

Pre Tru64 V5.x Unix dflssiz setting when running the doconfig utility:

Modify the Kernel to increase the dflssiz (Default stack size limit) to 9097152 and increase maxusers to 512. 

The default stack size needs to be increased so that the Informix 'onspaces' command can be used from the command line.

Re-Build the kernel:

  Set Environment Variables:

EDITOR=vi; export EDITOR

TERM=vt100; export TERM

Backup the existing kernel file and start the kernel configuration utility:

cp /vmunix /vmunix.sav

doconfig   (This is the kernel configuration utility)


A configuration file with the name [SYSTEM-NAME] already exists.
Do you want to replace it?  (y/n) [n]:  Y

Select the following kernel options if they are present: 

System V Devices
Logical Volume Manager (LVM)
STREAMS pckt module (PCKT)
X/Open Transport Interface (XTISO, TIMOD, TIRDWR)
ISO 9660 Compact Disc File System (CDFS)
Logical Storage Manager (LSM)

Enter the selection number for each kernel option you want.

 
For example:  1 3 [18]: 1 2 7 9 10 13

Do you want to edit the configuration file?  (y/n) y  (answer n for Tru64 V5.0, the parameters below are now handled by the sysconfigdb utility.)

Look for the name "dflssiz", it will be in the Special Options section with
dfldsiz, maxdsiz, maxusers and maxssiz. If it is not there then add it.

dflssiz         9097152 (You don't need to do this in O/S Versions 5.0 and above).
maxusers    512  or  1024, depending on the amount of memory on the system.

When the Kernel Build process is complete move the new kernel in place:

mv /usr/sys/[SYSTEM-NAME]/vmunix  /vmunix

Example:

mv /usr/sys/RT-DEC01/vmunix /vmunix

Shutdown and reboot the system:

shutdown -r now

Tru64 Unix - kernel parameter settings:


Configuring Shared memory parameters in the /etc/sysconfigtab file:
 

Enter the shared memory parameters in the file /etc/sysconfigtab.

cp /etc/sysconfigtab /etc/sysconfigtab.sav

vi /etc/sysconfigtab 

proc:
    maxusers = 1024
    max_proc_per_user = 8192
    max_threads_per_user = 20000

    per_proc_data_size = 4589934592
    max_per_proc_data_size = 4589934592
    max_per_proc_address_space = 4589934592
    per_proc_address_space = 4589934592

    per_proc-data_size = 4589934592
    per_proc_stack_size = 1073741824

ipc:
msg-max = 8192
msg-mnb = 16384
msg-mni = 10000
msg-tql = 500
shm-max = 2147483647
shm-min = 1
shm-mni=500
shm-seg=250
sem-mni=2000
sem-msl = 3200
sem-opm = 800
sem-ume = 2000
sem-vme = 2000
sem-vmx = 65534
sem-aem = 32768
ssm-threshold=0
num-of-sems = 2048
max-kernel-ports = 22487

 
Write, save and quit the editor.

Shutdown and reboot the system.

/usr/sbin/shutdown -r now 
(This will reboot the system and come back up in Multi-User Mode).

You can update the memory copy of the sysconfigdb database if you want to do a quick test on these new parameters.

To update a kernel parameter in a particular subsystem:

Example in updating enhanced_core_name and enhanced_core_max_versions in the proc subsystem:

/sbin/sysconfig -r proc enhanced_core_name=1

/sbin/sysconfig -r proc enhanced_core_max_versions=4

List the updated kernel values in the proc subsystem:

/sbin/sysconfig -q proc | grep enhanced

To update the memory copy of the sysconfigdb database.

/sbin/sysconfigdb -s

List the entire sysconfigdb database

/sbin/sysconfigdb -l  

List just the shared memory parameters:

/sbin/sysconfigdb -l ipc

Query attribute information which includes the attribute type, the operations supported, and the minimum and maximum values allowed for the attribute. Note:  The minimum and maximum values means length and size for attributes of char and binary types, respectively.  If you omit the attribute list, information about all attributes in the specified subsystem is displayed:

To list information for proc and attribute open_max_soft

#/sbin/sysconfig -Q proc open_max_soft

proc:
open_max_soft -        type=INT  op=CQ   min_val=0  max_val=4096

To list infomation for all attributes:

#/sbin/sysconfig -Q proc

If you are not familiar with the editor utility 'vi' then use the sysconfigdb utility instead of directly editing the sysconfitab file.

Using the sysconfigdb command to modify the /etc/sysconfigtab database automatically updates the in-memory copy of the database. This ensures that the kernel has immediate access to any changes. The file is also automatically merged during an update installation and changes will be merged into the new system.

cd /etc

Create a file called memory_params.stanza and populate the file with the following information in stanza format (label left flush, parameters indented):

vi /etc/memory_params.stanza

proc:
   
    max-threads-per-user = 1024
    max-proc-per-user = 600
    maxusers = 1024
   
ipc:
    msg-max = 8192
    msg-mnb = 16384
    msg-mni = 10000
    msg-tql = 500
    shm-max = 2147483647
    shm-min = 1
    shm-mni = 500
    shm-seg = 250
    sem-mni = 2000
    sem-msl = 3200
    sem-opm = 800

  
sem-ume = 2000

    sem-vme = 2000
    sem-vmx = 65534
    sem-aem = 32768
    ssm-threshold = 0
    num-of-sems = 2048

    aio-max-num = 128
    max-kernel-ports = 22487

    port-hash-max-num = 1124350
    port-reserved-max-num = 22487
    set-max-num = 1029

advfs:
    AdvfsCacheMaxPercent = 7
    AdvfsMinFragGrps = 16
    AdvfsMaxFragGrps = 48
    AdvfsAccessMaxPercent = 25
    AdvfsMinFreeAccess = 128
    AdvfsSyncMmapPages = 1
    AdvfsDomainPanicLevel = 1
    AdvfsCacheHashSize = 1024


vfs:
    io-throttle-shift = 1
    io-throttle-maxmzthruput = 1

To add a subsystem (ie advfs) to the sysconfigtab file use this syntax:

# sysconfigdb -a -f {filename} {subsystem}

This will place a new subsystem with it's related parameters at the bottom of the /etc/sysconfigtab file. 

Example:

# sysconfigdb -a -f memory_params.stanza advfs

To update an existing subsystem (ie proc) in the sysconfigtab file you need to edit the memory_params.stanza file and place the changes under the desired label.  Then use this syntax:

# sysconfigdb -m -f {filename} {subsystem}

Example:

# sysconfigdb -m -f memory_params.stanza proc

Using this Compaq/Dec approved method for making these changes will also cause the operating system to look for the file that contained the added/updated information and merge it's contents into the sysconfigtab after OS upgrades and /or Kernel rebuilds. Do a man on sysconfigdb for more options.

Upgrading the Operating System.

Pre-5.x

Review "Performing Update Installation" chapter in the Digital Installation Guide.

Save data from /, /usr, /var, /opt. 
 

If room on the server in a filesystem unaffected by the upgrade (such as /data1/oldsys),
copy critical directories/files there.  The followin is a list of file to save:

/etc/fstab
/etc/sysconfigtab
/etc/resolv.conf
/etc/passwd
/etc/group
/etc/routes
/etc/hosts
/etc/rc.config
/etc/securettys
/etc/dbmap
/etc/usermap
/etc/asmap
/etc/patchmap
/etc/oratab
/etc/inftab
/etc/sybtab
/etc/auto_master
/etc/auto_direct
/etc/tnsnames.ora
/etc/listener.ora
/etc/interfaces.syb

Gather Logical Storage Manager configuration information:

volsave    (Creates a file in /usr/var/lsm/db/LSM.xxx.[sysname]
volprint -Aht > filename
voldisk list > filename
voldg list > filename
voldctl list > filename

Gather Disk Information to files on a disk other than the root disk and disks using LSM, ie:

disklabel dsk0 > /ds3/disk_label/disklabel_dsk0   (/dev/disk/dsk3c)
disklabel dsk1 > /ds3/disk_label/disklabel_dsk1

Gather System Information in a file on your workstation called sysinfo, file to gather are:

Results of the following commands

df -k
swapon -s
netstat -in
netstat -rn
disklabel dsk0 (and all the other dsk's on the system as well)
P00>>>sh dev

Make note of the CDROM device, it will be the first line of the output.


P00>>>sh  (Show all)

Make note of the Firmware Version, it will be the last line in the output

Have a full OpenVision backup made of the server before starting.
 

Make sure you have enough space in the root filesystem for the upgrade (at least 20Meg).

Shutdown databases and other software, such as tuxedo, apache, etc....


If you are unable to clear out all processes, then reboot the system.
 

Bring the server down to the prom level and check the current firmware version.

sync; sync

halt 

At the [P00>>>] prompt, type "show version".


Check this version against the minimum requirement needed for the operating system
you are upgrading (found in the Install Manual or release notes).

Reboot the server and check the installed products:

At the [P00>>>] prompt, type "boot". 

Once booted, type "setld -i | pg" to get listing of installed products. 
Make note of any non-standard products.
 

Check for the correct device name for the CDROM:

While the system is running:


cd /dev 

file rrz*c | grep RRD - File type RRD45 is the cdrom device. 

Example:

file rrz*c | grep RRD
/dev/rz6c:  character special (8/6146) SCSI #0 RRD45 disk #48 .....

From the boot prompt "P00>>>"

At the [P00>>>] prompt, type "show device"

This will list the devices on the system, the CDROM device will have type of "RRD##", and the boot device name to use would be in the format of DKA###, this will be on the same line. 

Example:

dka500.5.0.1.1     DKA500          RRD45   0436

Shutdown system again and check for the boot drive name:

sync 

sync 

halt 

To get the name of boot drive - usually DKA0.0.0.1.0.

At the boot prompt [P00>>>], type "show | more"
 

Check the setting of ewa0_mode

This tells you if the system is set to Twisted Pair(10 BaseT),
FastFD(100 BaseT - Full Duplex), or Auto-Negotiate:

At the boot prompt [P00>>>], type:

sho ewa0_mode
 

To change the ewa0_mode to 100 BaseT

P00>>>set ewa0_mode FastFd 

To change ewa0_mode to auto-negotiate, the preferred setting.

P00>>>set ewa0_mode auto-negotiate
 

At the boot prompt check what the boot_dev is and then boot to single user mode.

P00>>> sho boot_dev

dka0.0.0.1.0

P00>>> boot -flag s dka0.0.0.1.0  or

P00>>> boot -fl s dka0

Check and mount filesystems once the system is up in single-user mode.

/sbin/bcheckrc  

Now insert the Operating System CD into the cdrom drive.
 

Run installupdate to upgrade the Operating System.
 
NOTE2: rz6c is used here as an example of a CDROM device.

Set environment variables:

EDITOR=vi; export EDITOR

TERM=vt100; export TERM

Start the update:

Unmount /tmp and /home if they are mounted.

/sbin/installupdate -i /dev/rz6c

The following messages will appear:

recommending that a backup be done...do you want to continue? y 

checking current state of system...may take up to 10 minutes... 

xxx subsets will be installed....
Base System
....copying from /updmnt/ALPHA/BASE/....

Merge completed successfully (repeated several times) 

Exiting Update Installation.....
Server will automatically reboot.

After the reboot....configuration begins.

The following messages will appear:
 

Configuring "Base System" 

Merge completed successfully.... 

Configuring....(goes through all the subsets)
 

Next, the Kernal Option Selection menu will appear.

Select the following:

System V Devices 

Logical Volume Manager (LVM)....if it's a selection 

STREAMS pckt module (PCKT) 

X/Open Transport Interface (XTISO, TIMOD, TIRDWR) 

ISO 9660 Compact Disc File System (CDFS) 

Logical Storage Manager (LSM) 

Next you will be prompted to edit the configuration file, answer no.

NOTE: If adding a eisa0 controller then answer yes and make sure the following line is included in the file, the slot number may be different:

controller ace0 at eisa0 slot 10 vector aceintr

Write, save and quit the editor.

The kernel is then built and the server will automatically reboot itself. 

Now perform post-installation tasks:
 

Review logs:
cd /var/adm/smlogs

Check the following log files:

update.log 

it.log 

upd_custom_files 

upd_mergefail_files 

upd_obsolete_files 

Check differences on known files (and ones in upd_custom_files).

cd /sbin 

diff /sbin/nfsmount nsfmount.PreUPD 

If the differences are for the automouter to start then -
"mv nfsmount.PreUPD nfsmount". Otherwise update the new file.
 

Review the config file:

cd /sys/conf 

diff <hostname> <hostname>.bck 

Most likely the only change will be "maxusers".

Now rebuild the kernel and reboot the server:
 

cp /vmunix /vmunix.save 

doconfig -c <hostname> or just doconfig (You will be prompted for hostname).

Note: hostname is in all caps with no dashes, ie SPDEC04. 

Do not edit the config file
Display will say "performing kernel build"...

 

When the kernel build is complete:

shutdown -r now

5.x Upgrade

 

Review "Performing Update Installation" chapter in the Digital Installation Guide.

Save data from /, /usr, /var, /opt. 
 

If room on the server in a filesystem unaffected by the upgrade (such as /data1/oldsys),
copy critical directories/files there.  The followin is a list of file to save:

/etc/fstab
/etc/sysconfigtab
/etc/resolv.conf
/etc/passwd
/etc/group
/etc/routes
/etc/hosts
/etc/rc.config
/etc/securettys
/etc/dbmap
/etc/usermap
/etc/asmap
/etc/patchmap
/etc/oratab
/etc/inftab
/etc/sybtab
/etc/auto_master
/etc/auto_direct
/etc/tnsnames.ora
/etc/listener.ora
/etc/interfaces.syb

Gather Logical Storage Manager configuration information:

volsave    (Creates a file in /usr/var/lsm/db/LSM.xxx.[sysname]
volprint -Aht > filename
voldisk list > filename
voldg list > filename
voldctl list > filename

Gather Disk Information to files on a disk other than the root disk and disks using LSM, ie:

disklabel dsk0 > /ds3/disk_label/disklabel_dsk0   (/dev/disk/dsk3c)
disklabel dsk1 > /ds3/disk_label/disklabel_dsk1

Gather System Information in a file on your workstation called sysinfo, file to gather are:

Results of the following commands

df -k
swapon -s
netstat -in
netstat -rn
disklabel dsk0 (and all the other dsk's on the system as well)
P00>>>sh dev

Make note of the CDROM device, it will be the first line of the output.


P00>>>sh  (Show all)

Make note of the Firmware Version, it will be the last line in the output

Have a full OpenVision backup made of the server before starting.
 

Make sure you have enough space in the root filesystem for the upgrade (at least 20Meg).

Shutdown databases and other software, such as tuxedo, apache, etc....


If you are unable to clear out all processes, then reboot the system.
 

Bring the server down to the prom level and check the current firmware version.

sync; sync

halt 

At the [P00>>>] prompt, type "show version".


Check this version against the minimum requirement needed for the operating system
you are upgrading (found in the Install Manual or release notes).

Reboot the server and check the installed products:

At the [P00>>>] prompt, type "boot". 

Once booted, type "setld -i | pg" to get listing of installed products. 
Make note of any non-standard products.
 

Check for the correct device name for the CDROM:


cd /dev 

file rrz*c | grep RRD - File type RRD45 is the cdrom device. 

Example:

file rrz*c | grep RRD
/dev/rz6c:  character special (8/6146) SCSI #0 RRD45 disk #48 .....

 

Shutdown system again and check for the boot drive name:

sync 

sync 

halt 

At the [P00>>>] prompt, type "show | more"
To get the name of boot drive - usually DKA0.0.0.1.0. 

Check the setting of ewa0_mode

This tells you if the system is set to Twisted Pair(10 BaseT),
FastFD(100 BaseT - Full Duplex), or Auto-Negotiate:

At the boot prompt [P00>>>], type:

sho ewa0_mode
 

To change the ewa0_mode to 100 BaseT

P00>>>set ewa0_mode FastFd 

To change ewa0_mode to auto-negotiate, the preferred setting.

P00>>>set ewa0_mode auto-negotiate
 

Now boot into single user mode:

At the boot prompt check what the boot_dev is and then boot to single user mode.

P00>>> sho boot_dev

P00>>> boot -flag s dka0.0.0.1.0  or

P00>>> boot -fl s dka0

Check and mount filesystems.

/sbin/bcheckrc  

Now insert the Operating System CD into the cdrom drive.
 

Run installupdate to upgrade the Operating System.
 
NOTE2: rz6c is used here as an example of a CDROM device.

Set environment variables:

EDITOR=vi; export EDITOR

TERM=vt100; export TERM

Start the update:

/sbin/installupdate -i /dev/disk/cdrom0c

The following messages will appear:

Initializing new version information (OSF) ... done

Update Installation has detected the following update installable products on your system:

Tru64 UNIX V5.0A Operating System ( Rev 1094 )

These products will be updated to the following versions:

Tru64 UNIX V5.1 Operating System ( Rev 732 )

It is recommended that you update your system firmware and perform a complete system backup before proceeding.  A log of this update installation can be found at /var/adm/smlogs/update.log

Do you want to continue the Update Installation? (y/n) []: y

Do you want to select optional kernel components? (y/n) [n]: y

Do you want to archive obsolete files? (y/n) [n]: n

*** Checking for conflicting software ***

You may receive the following message about the C++ Compiler if it was previously installed on the system, only st-xxxxx systems should have the C++ Compiler installed.

The following software my require reinstallation after the Update Installation is completed:

Compaq C++ Version 6.2 for Tru64 UNIX Sstems
Ladebug Debugger Version 4.0-48, for Digital UNIX

Do you want to continue the Update Installation? (y/n) [y]: y

*** Determining installed Operating System software ***

Working ...

*** Determining kernel components ***

 

 

*** KERNEL OPTION SELECTION ***

Selection Kernel Option

--------------------------------------------------------------

1 System V Devices
2 NTP V3 Kernel Phase Lock Loop (NTP_TIME)
3 Kernel Breakpoint Debugger (KDEBUG)
4 Packetfilter driver (PACKETFILTER)
5 IP-in-IP Tunneling (IPTUNNEL)
6 IP Version 6 (IPV6)
7 Point-to-Point Protocol (PPP)
8 STREAMS pckt module (PCKT)
9 Data Link Bridge (DLPI V2.0 Service Class 1)
10 X/Open Transport Interface (XTISO, TIMOD, TIRDWR)
11 Digital Versatile Disk File System (DVDFS)
12 ISO 9660 Compact Disc File System (CDFS)
13 Audit Subsystem
14 ATM UNI 3.0/3.1 ILMI (ATMILMI3X)
15 IP Switching over ATM (ATMIFMP)
16 LAN Emulation over ATM (LANE)
17 Classical IP over ATM (ATMIP)

--- MORE TO FOLLOW ---

Enter your choices or press <Return> to display the next screen.

Choices (for example, 1 2 4-6): 1 8 10 12

 
18 ATM UNI 3.0/3.1 Signalling for SVCs (UNI3X)
19 Asynchronous Transfer Mode (ATM)
20 Advanced File System (ADVFS)

The following choices override your previous selections:

21 All of the above
22 None of the above
23 Help
24 Display all options again

--------------------------------------------------------------

 Enter your choices, choose an overriding action or press <Return> to confirm previous selections.

Choices (for example, 1 2 4-6): 1 8 10 12 20

You selected the following kernel options:

System V Devices
STREAMS pckt module (PCKT)
X/Open Transport Interface (XTISO, TIMOD, TIRDWR)
ISO 9660 Compact Disc File System (CDFS)
Advanced File System (ADVFS)
Is that correct? (y/n) [y]: y

*** Checking for file type conflicts ***

Working....Wed Aug 8 11:15:15 PDT 2001

The following directories on this system conflict with assigned file types originally shipped in the operating system. This can be caused, for example, if a symbolic link is replaced with a real directory. These conflicts must be resolved before an update installation can be performed on this system. The original file status information can be found in the subset inventory files located in the /usr/.smdb. directory. For later review, this message is also logged in /var/adm/smlogs/update.log The update procedure will exit and return the system to its original state.

./home must be Directory

Returning system to Pre-Update state...done.

Exiting Update Installation...

Removing temporary update installation files...done.

A log of the Update Installation has been recorded in the file

/var/adm/smlogs/update.log.

 Exiting the installupdate process.

Do you want to return to multi-user mode (y/n) [n]:

:$ pwd

/

:$ ls -ld /home

lrwxrwxrwx 1 root system 7 May 24 2000 /home -> /pswork

:$ rm /home 

Restart the update:

:$/sbin/installupdate -i /dev/disk/cdrom0c

You will be prompted again for Kernel Options, enter those again as you did above in the section KERNEL OPTION SELECTION.

The following files on this system conflict with assigned file types originally shipped in the operating system. This can be caused, for example, if a symbolic link is changed to a file. These conflicts must be resolved in order for Update Installation to preserve your customizations. You can preserve these customizations by exiting the update and resolving the file type conflicts before restarting the Update Installation. If you continue with the update, any customizations made to these files will be lost. The original file status information can be found in subset inventory files located in the /usr/.smdb. directory. For later review, this message is also logged in /var/adm/smlogs/update.log. ./usr/ccs/lib/cmplrs/cxx/_main.o should be Symbolic Link to ../../_main.o

/tmp is a filesystem

Do you want to continue the Update Installation? (y/n) [n]: n

:$unmount /tmp

:$/sbin/installupdate -i /dev/disk/cdrom0c

You will be prompted again for Kernel Options, enter those again as you did above in the section KERNEL OPTION SELECTION.

*** Checking for obsolete files ***

 *** Checking file system space ***

ils: cannot stat /.profile (No such file or directory)

ils: cannot stat /.profile (No such file or directory)

ils: cannot stat /.profile (No such file or directory)

Update Installation is now ready to begin software load. Please check the /var/adm/smlogs/update.log file for errors after the installation is complete.

 *** Load Tru64 UNIX V5.1 Operating System ( Rev 732 ) Software Subsets ***

 checking current state of system...may take up to 10 minutes... 

xxx subsets will be installed....
Base System
....copying from /updmnt/ALPHA/BASE/....

Merge completed successfully (repeated several times) 

Exiting Update Installation.....
Server will automatically reboot.

After the reboot....configuration begins.

The following messages will appear:
 

Configuring "Base System" 

Merge completed successfully.... 

Configuring....(goes through all the subsets)
 

Now perform post-installation tasks:
 

Review logs:
cd /var/adm/smlogs

Check differences on known files (and ones in upd_custom_files).

cd /sbin 

diff /sbin/nfsmount nsfmount.PreUPD 

If the differences are for the automouter to start then -
"mv nfsmount.PreUPD nfsmount". Otherwise update the new file.
 

Review the sysconfigtab and kernel config file, you should not have to make any changes everything that was there before should still be the same except for possible added items.

cd /etc/sys 

diff <hostname> <hostname>.bck 

Most likely the only change will be "maxusers".

cd /etc

diff sysconfigtab sysconfigtab.bck

Now rebuild the kernel and reboot the server:
 

cp /vmunix /vmunix.save 

doconfig -c <hostname> or just doconfig (You will be prompted for hostname).

Note: hostname is in all caps with no dashes, ie SPDEC04. 

Do not edit the config file
Display will say "performing kernel build"...

 

When the kernel build is complete:

shutdown -r now

Test out the upgrade...

Try multiple telnets from another system to ensure you can have more than three logins at
the same time. This will make sure there is no user license problems.

Startup any database servers available to be sure they come up successfully.

Once the system have been up and running and used by the user for a while, remove the root
files backed up to /data#/oldsys.
You will also need to clean up the *PreUPD files created by the upgrade process.
This can be done by running the "setup" program and selecting "Update Administration Utility"
and then "Unprotected Customized File Administration".

Adding a disk controller and disks to a Digital system.

You should have already added the controller hardware to the system.

In order to make sure the firmware can see the new controller,
stop the boot process by pushing the halt button in on the system then power up the system.


At the P00> prompt, check for the new device.

P00>show device

Note:
the bus id of the new device, for example pkc0 is bus id C and DKC100 is the drive on bus C and its lun is 1.

Adding a controller with disk drives to the system:


Login as root. Save backup copies of the kernel and configuration file. SYSNAME is typically
the name of the system in caps, ie: SPDEC04 cp /vmunix /vmunix.bak cp /usr/sys/conf/SYSNAME /usr/sys/conf/SYSNAME.bak shutdown -h now

Boot genvmunix.


This kernel has all available drivers loaded. It will recognize the new hardware.
You should see the new device during boot.

Login as root and create a new configuration file.


The output of the sizer command is a configuration file that contains the statements for the
new device. It is put in /tmp with the name you specified on the command line.

sizer -n SYSNAME

diff /usr/sys/conf/SYSNAME /tmp/SYSNAME|more

Find the statements that contain the new device information and edit /usr/sys/conf/SYSNAME to add the statements.

Create the new kernel. /usr/sbin/doconfig -c SYSNAME Once successfully completed, move the new kernel into place. mv /usr/sys/SYSNAME/vmunix /vmunix shutdown -r now You should see the new device during the boot process. 

Build the device files for the disks.


Digital uses a formula to calculate the device number. You will need the bus id and the lun of
the drive.
The bus letter signifies a digit. Bus A=0, B=1, C=2 etc.
The formula is: bus id * 8 + lun.
The lun is the scsi id on the disk, in the following example, it is 1 and this disk is a RZ29B.
For example disk DKC100 would be: (bus id C=2) 2 * 8 + 1 = 17. cd /dev ./MAKEDEV rz17 There will be a device file for each partition of the disk. You can now label the disk and newfs the partition you want  to use.

Partition disks using the disklabel command.

Device Naming Conventions are as follows:

4.0D - /dev/rrz?  and  /dev rz?

5.0A - /dev/disk/dsk?  and  /dev/rdisk/dsk?

5.1A - /dev/disk/dsk?  and  /dev/rdisk/dsk?

During the O/S installation do the following to partition the boot disk.
Check the Digital Unix Installation Guide Appendix H-1 which provides the default disk partitions that are supported. 

These can be modified as shown below.

At the type of installation selection:

Default Installation

Custom Installation

Unix shell

Select Option 3 - Unix Shell 

At the unix "#" prompt, type:
 

TERM=vt100; export TERM 

EDITOR=vi; export EDITOR 

Note: Never zero out the 'a' partition on any disk, the first block of every UFS (block 0) is reserved for a boot, or initialization, program. This program is known as the primary boot block.

Disk Partition and File System Layout guidlines for the Operating System with  2 - 2GB disks and 1024MB of memory.

    Device  Partition  Mount Point  512Byte Blks  1024Byte Blks
    rz0  a  /(default)  200MB  100MB
    rz0  b  swap  1024MB  512MB
    rz0  c  entire disk  4096MB  2048MB
    rz0  d  /var  300MB  150MB
    rz0  e  /tmp  300MB  150MB
    rz0  h  /products  2272MB  1136MB
    rz1  b  swap  1024MB  512MB
    rz1  d  /usr  1600MB  800MB
    rz1  e  /home or /pswork  1472MB  736MB

Disk Partition and File System Layout guidelines for the Operating System with 2 - 4GB disks and 1024MB of memory.

     Device   Partition  Mount Point   512Byte Blks  1024Byte Blks
    rz0  a  /(default)  200MB  100MB
    rz0  b  swap  2048MB  1024MB
    rz0  c  entire disk  8192MB  4096MB
    rz0  d  /home  1600MB  800MB
    rz0  e  /var  400MB  200MB
    rz0  f  /tmp  400MB  200MB
    rz0  g  /products  4648MB  2324MB
    rz1  b  swap  2048MB  1024MB
    rz1  d  /usr  1600MB  800MB
    rz1  e  /datax  4344MB  2172MB

 

disklabel -r /dev/rz0


This reads the disk label informatin.
You may not have device rz0, it could be rz8 etc....., rz0 is just an example but in
most cases you will have rz0.

If you receive an error then the disk is unlabeled, do the following to label the disk:

cd /dev

./MAKEDEV rz0  (For Tru64 5.0 and above you will not have to issue this command)

disklabel -z rz0  ( This will mark all file system types as unused )

disklabel -wr -t ufs rz0 RZ1CB-CA (Label the disk with default partitions, to find the type of disk do the following)

# cd /dev/rdisk

# file dsk?   You should see the type of disk, ie: RZ1CB-CA

disklabel -e rz0 (This will put you in the editor mode to change partition sizes, if you plan to use the whole disk, ie: the 'C' partition you won't need to run this command to partition the disk, just newfs /dev/rdisk/dsk?c) 

Example of a modified Partition Table:

The sizes and offsets are in 512byte blocks.

Partition Sizes and File System Mount Points as per the partition layout below:

     1024 byte block                 512 byte block

Calculate the size, ie:  128*2048 = 262144

a = 134,217,728 MB       /             262144*512     (128*2048=262122)

b = 805,306,368 MB     swap         1572864*512     (768*2048=1572864)

c = 4,290,600,960 GB                   8380080*512        Entire disk

e = 2,122,317,824 GB   /ds1         4145152*512    (2024*2048=4145152)

f = 256,901,120 MB      /tmp         501760*512    (245*2048=501760)

g = 717,225,984 MB     /usr           1400832*512     (684*2048=1400832)

h = 254,631,936 MB     /var           497328*512    (left over)

 

 
Partition SIZE OFFSET File System Type
a: 262144 0 4.2BSD
b: 1572864 262144 unused
c: 8380080 0 unused
d: 0 0  unused
e: 4145152 1835008  4.2BSD
f: 501760 5980160 4.2BSD
g: 1400832 6481920 4.2BSD
h: 497328 7882752  4.2BSD

 

Save and exit the editor --> shift/: wq!

Write new label y/n?:  y

disklabel -r rz8 (Read the label and check the sizes, make sure these are correct) 

exit the editor --> shift/q!

exit at the '#' prompt. (This will put you back into the Installation Menu) 

After the O/S Installation has completed make a backup copy of the disk partition table:

disklabel -r rz0 > /usr/[system_name]/disklabel_rz0  or

disklabel -r dsk0 > /usr/[system_name]/disklabel_dsk0

To go back to the procedures to installing the O/S click here --> Installing the OS 

Once unix is installed you can use the above disklabel procedures to partition the rest of
the disks.

When all the disks have been partitioned then you will run the commands to make file systems on these devices:

Creating File Systems on disk devices.

newfs /dev/rz10a 
Create a file system on rz10a through rz10h, one partition at a time
.

Example:

newfs /dev/rz10a
newfs /dev/rz10d ..... newfs /dev/rz10h 

mount /dev/rz10d  /products

Modify the /etc/fstab file to reflect the new devices and mount points.

Example of entries in the /etc/fstab file:

/dev/rz10a   /home   ufs rw 1 2
/dev/rz10d   /products   ufs rw 1 2

If the partition table gets corrupted you can set it to a back to the default partition table by: 

disklabel -z rz10; disklabel -wr -t ufs rz10 RZ1CB-CA

Edit the partition table again.

If you are restoring any 'a' partition using the dd command you must change the FSTYPE in
the partition table from 4.2BSD to unused by doing the following:

disklabel -e rz0

You wil now be able to restore  the 'a' partition. 

Once the 'a' partition is restored the partition table will be restored to its original state with
the correct FSTYPE.

Changing the size of a existing partition using the disklabel command:

IF you want to change the size of an existing partition you must first change the FSTYPE on an existing partition from 4.2BSD to 'unused'.  Be very carefull with this command, and do not change the 'a' boot partition and /usr, and /var partitions, because you will lose data on these partitions.

#disklabel -r dsk0 > /usr/[system_name]/disklabel_dsk0.bkup

#disklabel -s -F dsk0g unused 

#disklabel -s -F dsk0h unused

#disklabel -e dsk0  (Modify just the size of the 'g' partitions and 'h' partitions).

#newfs /dev/rdisk/dsk0g

#newfs /dev/rdisk/dsk0h

Adding Fibre Disks

Setting the KGPSA to run on Fabric. On some systems you have to be in diagnostic to refresh the nvram on the fibre card.  If the system does not respond to the -show adapter command, try running under diag mode, as follows:

P00>>> set mode diag
P00>>> wwidmgr -show adapter  (note: if you get the message 'wwwidmgr available only prior to booting' issue the following command from the boot prompt).

P00>>> init

P00>>> wwidmgr -show adapter

item    adapter             WWN                         Current/top         next/top

[0]      pga0.0.0.3.1    1000-0000-c920-eda0     loop                 loop

To change the topology mode to fabric

P00>>> wwidmgr -set adapter -item 0 -topo fabric

You should now be able to see the fibre cards with the correct topology

P00>>> wwidmgr -show adapter

You can also issue the following commands as well.

P00>>> show dev kgpsa*

P00>>> wwidmgr -show reachability

P00>>> wwidmgr -show wwid

If the system is up in multi-user mode issue the following command to see fibre devices.

# hwmgr -view dev   (You should be looking for the following, ie: example of disks attached to an HP - XP512)

/dev/disk/dsk9c        HP         OPEN-9*7    bus-1-targ-0-lun-0

or

/dev/cport/scp0

Connecting to the HSZ Controller to configure RAID Disks:

Get a listing of the Disks connected to the HSZ Controller:

From the list below look for the the sequence /dev/cport/scpX, (X=scp port number, ie: 0 or 1).  Use this sequence to connect to the HSZ Controller shown below.

# hwmgr -view dev

HWID: Device Name Mfg Model Location
------------------------------------------------------------------------------
3: scp (unknown) (unknown)
4: /dev/kevm
45: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0
52: /dev/disk/dsk0c COMPAQ BD009122C6 bus-1-targ-0-lun-0
53: /dev/disk/dsk1c COMPAQ BD009122C6 bus-1-targ-1-lun-0
54: /dev/disk/dsk2c COMPAQ BD009122C6 bus-1-targ-2-lun-0
55: /dev/disk/dsk3c COMPAQ BD009122C6 bus-1-targ-3-lun-0
56: /dev/disk/dsk4c COMPAQ BD009122C6 bus-1-targ-4-lun-0
57: /dev/disk/dsk5c COMPAQ BD009122C6 bus-1-targ-5-lun-0
58: /dev/disk/dsk6c COMPAQ BD009122C6 bus-1-targ-6-lun-0
59: /dev/disk/dsk7c DEC HSZ50-AX bus-2-targ-2-lun-0
60: /dev/disk/dsk8c DEC HSZ50-AX bus-2-targ-2-lun-1
61: /dev/disk/dsk9c DEC HSZ50-AX bus-2-targ-2-lun-2
62: /dev/disk/dsk10c DEC HSZ50-AX bus-2-targ-2-lun-3
63: /dev/disk/dsk11c DEC HSZ50-AX bus-2-targ-2-lun-4
64: /dev/disk/dsk12c DEC HSZ50-AX bus-4-targ-3-lun-0
65: /dev/disk/dsk13c DEC HSZ50-AX bus-4-targ-3-lun-1
66: /dev/disk/dsk14c DEC HSZ50-AX bus-4-targ-3-lun-2
67: /dev/disk/dsk15c DEC HSZ50-AX bus-4-targ-3-lun-3
68: /dev/disk/dsk16c DEC HSZ50-AX bus-4-targ-3-lun-4
69: /dev/cport/scp0 HSZ50-AX bus-2-targ-2-lun-0
70: /dev/cport/scp1 HSZ50-AX bus-4-targ-3-lun-0
74: /dev/disk/cdrom1c DEC RRD47 (C) DEC bus-0-targ-5-lun-0
75: /dev/dmapi/dmapi

Issue the following command to connect to a particular HSZ Controller using the SCP port number that you gathered from the hwmgr command:

# /usr/lbin/hsxterm5 -F /dev/cport/scpX  (X=SCP port number)

HSZ-2>

Examples below of replacing a failed drive.

st-alp03.peoplesoft.com:# hwmgr -view devices

HWID: Device Name Mfg Model Location

------------------------------------------------------------------------------

4: /dev/kevm

43: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0

48: /dev/disk/dsk0c COMPAQ BB00911CA0 bus-0-targ-0-lun-0

49: /dev/disk/dsk1c COMPAQ BB00912301 bus-2-targ-0-lun-0

56: /dev/disk/dsk2c DEC HSZ80 bus-1-targ-1-lun-0

57: /dev/disk/dsk3c DEC HSZ80 bus-1-targ-1-lun-1

58: /dev/disk/dsk4c DEC HSZ80 bus-1-targ-1-lun-2

59: /dev/disk/dsk5c DEC HSZ80 bus-1-targ-1-lun-3

60: /dev/cport/scp1 HSZ80CCL bus-1-targ-1-lun-4

61: /dev/disk/cdrom1c COMPAQ CRD-8402B bus-3-targ-0-lun-0

===========

 dsk2c: character special (19/71) SCSI #1 "HSZ80" disk #3 (SCSI ID #1) (SCSI LUN

#0) errors = 2/0

=====

Now you will be working from the HSZ80 Controller command prompt, ie: HSZ80>

Show the disk device information:

HSZ80> sho dev

Name Type Port Targ Lun Used by

------------------------------------------------------------------------------

DISK10000 disk 1 0 0 RAID0

DISK10100 disk 1 1 0 RAID1

DISK10200 disk 1 2 0 RAID2

DISK10300 disk 1 3 0 RAID3

DISK20000 disk 2 0 0 RAID0

DISK20100 disk 2 1 0 RAID1

DISK20200 disk 2 2 0 RAID2

DISK20300 disk 2 3 0 RAID3

DISK30000 disk 3 0 0 RAID0

DISK30100 disk 3 1 0 RAID1

DISK30200 disk 3 2 0 RAID2

DISK30300 disk 3 3 0 RAID3

DISK40000 disk 4 0 0 RAID0

DISK40100 disk 4 1 0 RAID1

DISK40200 disk 4 2 0 RAID2

DISK40300 disk 4 3 0 RAID3

DISK50000 disk 5 0 0 RAID0

DISK50100 disk 5 1 0 RAID1

DISK50200 disk 5 2 0 FAILEDSET

DISK50300 disk 5 3 0 RAID3

DISK60000 disk 6 0 0 RAID0

DISK60100 disk 6 1 0 RAID1

DISK60200 disk 6 2 0 RAID2

DISK60300 disk 6 3 0 RAID2        (This is now the new disk that was configured into raidset RAID2 when the bad disk was replaced with the new disk)

Show the Storageset information:

HSZ80> sho raidsets

Name Storageset Uses Used by

------------------------------------------------------------------------------

RAID0 raidset DISK10000 D100

DISK20000

DISK30000

DISK40000

DISK50000

DISK60000

RAID1 raidset DISK10100 D101

DISK20100

DISK30100

DISK40100

DISK50100

DISK60100

RAID2 raidset DISK10200 D102

DISK20200

DISK30200

DISK40200

DISK60200

DISK60300

RAID3 raidset DISK10300 D103

DISK20300

DISK30300

DISK40300

DISK50300

HSZ80> 

Steps in replacing a defective disk:

1. Replace the failed drive with the new drive.

2. From the HSZ80 command line do the following:

HSZ80> SET RAID2 NOPOLICY
HSZ80> DELETE FAIL DISK50200     (Delete the failed disk DISK50200)
HSZ80> SET RAID2 REMOVE=DISK60300   (Remove disk from the raidset,  it then gets marked as a failedset)
HSZ80> SET RAID2 REPLACE=DISK50200
HSZ80> DELETE FAIL DISK60300      (Delete the failed DISK60300 and add it as a SPARE DISK  shown below)
HSZ80> ADD SPARE DISK60300       (Adds disk60300 as spareset)
HSZ80> SET RAID2 POLICY=BEST PER_FORMANCE

Now show the new storageset information:

HSZ80> show stor

Name Storageset Uses Used by

------------------------------------------------------------------------------

RAID0 raidset DISK10000 D100

DISK20000

DISK30000

DISK40000

DISK50000

DISK60000

RAID1 raidset DISK10100 D101

DISK20100

DISK30100

DISK40100

DISK50100

DISK60100

RAID2 raidset DISK10200 D102

DISK20200

DISK30200

DISK40200

DISK50200        (This is now the new drive)

DISK60200

RAID3 raidset DISK10300 D103

DISK20300

DISK30300

DISK40300

DISK50300

SPARESET spareset DISK60300   (This is now the spareset)

FAILEDSET failedset

Restoring the primary and secondary bootstrap programs:

To restore a  bootstrap program that is corrupted or is accidently changed through the disklabel command do the following using disk dsk0 as an example:

Boot system from the Operating System CD and exit to the unix shell.

#disklabel -R -r -tufs dsk0 RZ1DB-CA  /mdec/rzboot   /mdec/bootrz

Logical Storage Manager

In order to use the LSM GUI Storage Administrator program you must have it installed on the system.  Check to see if it is installed by issueing the following setld command, shown below. If OSFLSMX11510 shows not installed as shown below, then you must install it in order to use it:

setld -i | grep -i lsm  (You will see something like what is shown below)

OSFLSMBASE510    installed    Logical Storage Manager (System Aministrator)

OSFLSMBIN510      installed    Logical Storage Manager Kernel Modules

OSFLSMX11510      not installed  Logical Storage Manager GUI (System Administrator)

Installing the LSM GUI Logical Storage Manager

Insert the Operating System CD 1 of 1 into the cdrom drive.

Mount the CD as follows:

# mount /dev/disk/cdrom0c /cdrom

# cd /cdrom/ALPHA/BASE

# setld -l /cdrom/ALPHA/BASE

Select the number corresponding to the subset Logical Storage Manager (GUI), press return to scroll through the menus and then at the last screen enter the subset number and press return and answer 'y' to start the installation.

The following will be displayed:

X  subsets will be installed.

X of X subsets installed successfully

Or:

If you get an error during the subset installation you will be prompted on what to do to get the subset installed, as shown below:

Installing this subset on your current configuration would create an inconsistent system.

In order to proceed, you must do the following:

  1. Shutdown the system to single user mode.
  1. Use "dupatch" to remove:

Tru64_Unix_V5.1 Patch 00260  - Patch: Fix for V5.1 dynamic loader

  1. Install this subset  -  OSFLSMX11510
  2. Install the following patches in the same dupatch installation session, ie: /products/ospatches/patch_kit - this is the directory where you untared the patch kit from /repos1/Dec.

    Tru64_Unix_v5.1 Patch 00260  -  Patch: Fix for V5.1 dynamic loader
    Tru64_Unix_v5.1 Patch 00262  -  Patch: Fix for loader and ldd
    Tru64_Unixv5.1 Patch  00265   -  Patch: Fix for loader does not report error
  3. Reoot the system.

Initialize Logical Storage Manager (LSM) by creating the rootdg group, using the 'volsetup' program.

  1. Check to see if the 're' disk type is in the disktap file:

#grep re /etc/disktab

  1. Write the label using the disktype of 're':
  2. #disklabel -wr rrz8c re

  3.  Initialize LSM and create the rootdg group, and enter the disks to use in LSM:

#/usr/sbin/volsetup


LSM: Creating Logical Storage Manager device special files.

Approximate maximum number of physical disks that will be managed by LSM ? [10]
Enter the disk(s) to add into the rootdg disk group.

? rz8c rzc17c rzd17c
?     (NOTE: Enter a blank line to end the list of disks).

Initialize vold and the root disk group: 

Add disk rz8c to the root disk group as rz8c:
Addition of disk rz8c as rz8c succeeded.

Add disk rzc17c to the root disk group as rzc17c:
Addition of disk rzc17c as rzc17c succeeded.

Add disk rzd17c to the root disk group as rzd17c:
Addition of disk rzd17c as rzd17c succeeded.

Initialization of vold and the root disk group was successful.

  1. After initilization was successfull the following processes will be started:

vold -k
/usr/sbin/volnotify -eicfd
/usr/sbin/volwatch -m
volnotify -p -f -w 15

Set the following environment variables before bringing up the LSM GUI:

#DISPLAY=tl-sun50:0; export DISPLAY
#TERM=vt100; export TERM

Pre T4u64 5.1 - Bring up the LSM Graphical interface also known as Visual Administrator "dxlsm":

 
# /usr/bin/X11/dxlsm & 

Right click on options
Click on Format
Click on Mbytes


Right click on rz8c Icon.
on rz8c Max Free Space = 34,453,496k

Divide 34453496 by whatever number will result in 4GB for each volume or whatever size you will be using for each volume.

 
34453496/8=4306687 

Left click on rz8c D(isk) icon to highlight.
From the tool bar click on Basic-Ops
    Click on UFS Operations
   Click on Create
    Click on Simple

Volume name: Predefined ie: vol01
Volume size = 4306687k (The sum you calculated above, 4GB)
Usage type: fsgen
Create file system: Yes
FS type: ufs
Mount file system: Yes
Mount Point: /data1
Mount Automatically: Yes
Apply 

df -k  To see if the disks were mounted with the correct size.

Repeat the steps above to create file systems on the remaining disks in the rootdg group.

Tru64 5.1 - Bring up the LSM Graphical storage administrator interface "lsmsa":

  1. /usr/bin/lsmsa

You will be prompted to login to the storage administrator:

Server Host: rt-alp05.peoplesoft.com
User Name: root
Password:

Once logged in the interface will be displayed, this is a windows based gui that looks alot like Sun Enterprise Volume Manager.

  1. Create Volumes and File Systems.
bulletClick on Volumes from the left box
bulletClick on New from the Tool Bar
bulletThe following is already selected:
bulletDisk Group Name -
bulletVolume Name
bulletClick on Maxsize if you want to use the entire volume size otherwise enter the size you want the file system to be.
bulletClick on Concatenated if non-raid.
bulletClick on Assign Disks
bulletClick on the disks you want to use from the display and press OK.
bulletClick on Add File System and enter Mount Point
bulletClick on ufs
bulletClick OK
bulletClick OK to start the creation

When the volume and file system creation is complete the file system will be automatically mounted.

LSM Disk Mirroring:
bulletInitialize the Volumes:

/usr/sbin/volsetup   (If you need to re-initialize the volumes you will need to use the -o force option, ie:  /usr/sbin/volsetup -o force)

Enter the disk(s) to add into the rootdg disk group.
NOTE:  Enter a blank line to end the list of disks. 

Examples below -  Using dsk14 and dsk15:

dsk14
dsk15

Initialize vold and the root disk group:
Add disk dsk14 to the root disk group as dsk14:
Addition of disk dsk14 as dsk14 succeeded.
Add disk dsk15 to the root disk group as dsk15:
Addition of disk dsk15 as dsk15 succeeded.
Initialization of vold and the root disk group was successful.

Create the volmirror leaving enough space for logging, ie: subtract the size of logging from the total size of the volumes.  Issue the following comand to see the size of the volumes.

/sbin/volprint -h

Disk group: rootdg

TY   NAME              ASSOC           KSTATE       LENGTH    PLOFFS    STATE   TUTILO  PUTILO
dg   rootdg             rootdg

dm  dsk14              dsk14                             286745376
dm  dsk15              dsk15                             286745276

You will need to subtract the logsize from the LENGTH of the volume above to reserver space for the logs.  To use 2 blocks the calculation is:

512*2048=1048576
286745376-1048576=285696800

The minimum DRL length is 65 blocks for a cluster environment, and 2
blocks for a non-cluster environment. By default, LSM configures a
larger log subdisk for the DRL than needed. This allows you to use the
volume if the system becomes a Tru64 UNIX cluster member. If you con-
figure a DRL size less than 65 blocks for a non-cluster environment,
DRL is disabled for that volume if you later migrate it to a cluster
environment.

bulletCreate the volumes for the mirror:

/sbin/volassist make volmirror 285696800 dsk14
/sbin/volassist mirror volmirror dsk15

The above step 'mirror volmirror dsk15' will take quite a while to complete depending of the size of the volume.  When this step is complete the 'TEMPRMSD' status changes to 'ACTIVE' in the volprint output, see below.

# volprint -Ahtv
Disk group: rootdg

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

v volmirror fsgen ENABLED ACTIVE 285696800 SELECT -
pl volmirror-01 volmirror ENABLED ACTIVE 28569600 CONCAT - RW
sd dsk14-01 volmirror-01 dsk14 0 28569600 0 dsk14 ENA
pl volmirror-02 volmirror ENABLED TEMPRMSD 284648224 CONCAT - WO
sd dsk15-01 volmirror-02 dsk15 0 28569600 0 dsk15 ENA

bulletAdd the logs for the mirrored volumes:

/sbin/volassist -g rootdg addlog volmirror dsk14
/sbin/volassist -g rootdg addlog volmirror dsk15

bulletPrint mirror information:

# volprint
Disk group: rootdg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -

dm dsk14 dsk14 - 286745376 - - - -
dm dsk15 dsk15 - 286745376 - - - -

v volmirror fsgen ENABLED 285696800 - ACTIVE ATT1 -
pl volmirror-01 volmirror ENABLED 285696800 - ACTIVE - -
sd dsk14-01 volmirror-01 ENABLED 285696800 0 - - -
pl volmirror-02 volmirror ENABLED 285696800 - TEMPRMSD ATT -
sd dsk15-01 volmirror-02 ENABLED 285696800 0 - - -
pl volmirror-03 volmirror ENABLED LOGONLY - ACTIVE - -
sd dsk14-02 volmirror-03 ENABLED 3965 LOG - - -
pl volmirror-04 volmirror ENABLED LOGONLY - ACTIVE - -
sd dsk15-02 volmirror-04 ENABLED 3965 LOG - - -

# volstat
OPERATIONS BLOCKS AVG TIME(ms)
TYP NAME READ WRITE READ WRITE READ WRITE
vol volmirror 28 11 392 156 3.3 9.6

bulletNow create a file system using the newly created volume.

Bring up 'dxlsm' or 'lsmsa'

To use 'lsmsa' do the following.

export DISPLAY=tl-sun56:0.0

/usr/bin/lsmsa &

Enter 'roots' password and press ok.

You will see a windows based LSM tool.

From the left side of the window, click on Volumes

From the right side of the window, click on volmirror to highlight

From the top toolbar, click on Volumes

Click on File System

Click on New

Enter Mount Point:, ie:  /data1

Make sure UFS is checked and then click on Apply.  This will take a while to complete.  When completed the file system will be mounted automatically.

bulletPerform a full listing of the volumes:

# /usr/sbin/volprint -Aht
Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

dg rootdg default default 0 1074532500.1026.st-alp06.peoplesoft.com

dm dsk14 dsk14 sliced 4096 286745376 -
dm dsk15 dsk15 sliced 4096 286745376 -

v volmirror fsgen ENABLED ACTIVE 285696800          SELECT   -
pl volmirror-01 volmirror ENABLED ACTIVE 285696800 CONCAT   -     RW
sd dsk14-01 volmirror-01 dsk14 0 285696800          0        dsk14 ENA
pl volmirror-02 volmirror ENABLED ACTIVE 285696800 CONCAT   -     RW
sd dsk15-01 volmirror-02 dsk15 0 285696800          0        dsk15 ENA
pl volmirror-03 volmirror ENABLED ACTIVE LOGONLY   CONCAT   -     RW
sd dsk14-02 volmirror-03 dsk14 285696800 3965      LOG      dsk14 ENA
pl volmirror-04 volmirror ENABLED ACTIVE LOGONLY   CONCAT   -     RW
sd dsk15-02 volmirror-04 dsk15 285696800 3965      LOG      dsk15 ENA

# df -k /data1
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/vol/rootdg/volmirror 138592955 1 124733658 0% /data1

LSM command line commands:

To display the logical storage manager configuration:

Login as root.

# volprint -Aht  (You will get a listing of the LSM configuration as shown below, this is just an example)

Disk group: rootdg

DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

dg rootdg default default 0 820695940.1026.rt-dec02.peoplesof
t.com

dm dsk2 dsk2 sliced 4096 258401008 -

v vol01 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol01-01 vol01 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-01 vol01-01 dsk2 0 20971520 0 dsk2 ENA

v vol02 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol02-01 vol02 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-02 vol02-01 dsk2 20971520 20971520 0 dsk2 ENA

v vol03 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol03-01 vol03 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-03 vol03-01 dsk2 41943040 20971520 0 dsk2 ENA

v vol04 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol04-01 vol04 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-04 vol04-01 dsk2 62914560 20971520 0 dsk2 ENA

v vol05 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol05-01 vol05 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-05 vol05-01 dsk2 83886080 20971520 0 dsk2 ENA

v vol06 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol06-01 vol06 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-06 vol06-01 dsk2 104857600 20971520 0 dsk2 ENA

v vol07 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol07-01 vol07 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-07 vol07-01 dsk2 125829120 20971520 0 dsk2 ENA

v vol08 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol08-01 vol08 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-08 vol08-01 dsk2 146800640 20971520 0 dsk2 ENA

v vol09 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol09-01 vol09 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-09 vol09-01 dsk2 167772160 20971520 0 dsk2 ENA

v vol10 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol10-01 vol10 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-10 vol10-01 dsk2 188743680 20971520 0 dsk2 ENA

v vol11 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol11-01 vol11 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-11 vol11-01 dsk2 209715200 20971520 0 dsk2 ENA

v vol12 fsgen ENABLED ACTIVE 20971520 SELECT -
pl vol12-01 vol12 ENABLED ACTIVE 20971520 CONCAT - RW
sd dsk2-12 vol12-01 dsk2 230686720 20971520 0 dsk2 ENA

v vol13 fsgen ENABLED ACTIVE 6742768 SELECT -
pl vol13-01 vol13 ENABLED ACTIVE 6742768 CONCAT - RW
sd dsk2-13 vol13-01 dsk2 251658240 6742768 0 dsk2 ENA

Saving LSM Configuration:


Run the following command to save the LSM configuration, this configuration can be used in restoring the LSM configuration.  Make sure that you place the LSM configuration directory in a separate filesystem or to tape or another system, so that you have a backup of the LSM configuration.

To save the LSM configuration:

volsave  Saves to directory /usr/var/lsm/db/LSM.[date], inside the directory are config files as shown below.

# pwd
/var/lsm/db
# ls -l
total 1
dr-xr-x--- 3 root system 512 Oct 10 12:24 LSM.20031010095859.ui-alp01

# pwd
/var/lsm/db/LSM.20031010095859.ui-alp01
# ls -l
total 4
-r--r----- 1 root system 222 Oct 10 12:22 header
dr-xr-x--- 2 root system 512 Oct 10 12:26 rootdg.d
-r--r----- 1 root system 512 Oct 10 12:22 volboot
-r--r----- 1 root system 747 Oct 10 12:22 voldisk.list

To restore the LSM configuration after a new O/S installation:

mkdir -p /usr/var/lsm/db

copy the LSM.[date] configuration to the /usr/var/lsm/db directory, ie:

cd /usr/var/lsm/db

cp -R /data1/lsm_backup/* .

Note: You may have to run volsetup before running volrestore, but try the volrestore first.

volrestore -f

volprint (To list the LSM configuration, you should see something like the following):

# volprint
Disk group: rootdg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -

dm dsk3 dsk3 - 8375968 - - - -
dm dsk4 dsk4 - 8375968 - - - -
dm dsk5 dsk5 - 8375968 - - - -
dm dsk6 dsk6 - 8375968 - - - -

v vol01 fsgen ENABLED 33503232 - ACTIVE - -
pl vol01-01 vol01 ENABLED 33503232 - ACTIVE - -
sd dsk3-01 vol01-01 ENABLED 8375328 0 - - -
sd dsk4-01 vol01-01 ENABLED 8375968 8375328 - - -
sd dsk5-01 vol01-01 ENABLED 8375968 16751296 - - -
sd dsk6-01 vol01-01 ENABLED 8375968 25127264 - - -

Network Configuration
 

Set up the network by running setup or netconfig for 5.X TRU 64bit.
 
NOTE: You can manually change information in /etc (hosts, routes, *conf*)and then run /usr/sbin/rcinet restart instead of running setup.

NOTE: Network card settings at the P00>>> prompt, are as follows:

*Settings for ewa0_mode could be either Twister Pair (10 BaseT) or Full Duplex (100 BaseT)FastFD
*ee0 Nic card should alwasy be set to Augo Negotiate.

From the Unix prompt "#" run setup for 4.x O/S levels, for 5.x TRU 64bit run netconfig. 

# setup 

Select option #1 (Network Configuration)

C  (Configure Network Interface)

Yes (Do you want to configure ? y/n)

Select network interface:

This will probabally be tu0 (TenBase T or tu1 100Full Base T)

Enter the host name or answer "Y" if the is correct.

Enter the IP-Address

Enter the Sub Net Mask: 255.255.255.0

Answer "N[o]" to additional ifconfig flags

Answer "N[o]" to configure another network

Press Enter to finish
 

Select option #2 (Enable/Disable Network Daemon)
 

Answer "N[o]" to rwhod

Answer "N[o]" to routed/gated or press return if you don't want either

Answer "Y[es]" to static route

default

Example: 207.135.41.10 

Gateway Name or address.
This is the  servers IP-Address replacing the last two digits with 10

Answer "No" to finish static route

Select 5 to exit.

Answer "Y[es]" to restart the netework

Select option 2 ( Bind Configuration)

Enter

Add

C (Configure)

Bind Domain Name = peoplesoft.com

C (Client)

C (Continue)

Bind Server Name = psp-dns-01

Bind Server Address = 207.135.40.140

Add to hosts = No

Press Enter to "Enter hostname of Bind Server: <ENTER>"

Y (Finished entering Bind Services)

N (Would you like Bind to change hostname)

Select 1) To Querry /etc/hosts file first.

Select 15) To exit.
 

Select option 4 (NFS Configuration) 

NOTE: It is better to configure NFS manually.
 

Enter (NFS Locking enabled - default yes)

Enter (Exporting directories - default no)

Enter (Block I/O Daemons [7] - default 7)

N (Run PC-NFS daemon? y/n)

Y (Automount daemon)
Enter --> %automount -f /etc/auto-master

Y (Correct)

tl-sun04 (Remote host name)

/data1/cdroms/[Unix Platform] (Remote directory)

/jukebox1 (Mount Point)

Does not exist - creating it

read only y?  Y

Enter

Enter

C (Confirm)

Stop/Start Daemons now y?  Y

15 (Exit setup menu) 

NOTE: The above NFS Configuration will put an entry in /etc/fstab

    You must remove this entry.

NFS Configurations

The Following entries should be entered into the /etc/auto_master file, if you don't set the proto=tcp then the default would be udp which poses a problem when copying data from an NFS mounted file system:

/-     /etc/auto_direct        -proto=tcp,ro,soft,bg,intr
/-     /etc/auto_netapp     -proto=tcp,rw,intr

For new installs update the file rc.config.common in /etc to the following:

AUTOMOUNT_ARGS="-f /etc/auto_master"

AUTOMOUNT="1"

Updating the Firmware

To update the Firmware you will need to get the Firmware CD from the Library.

Firmware update for O/S 4.0D

Shutdown the system to the boot prompt.

/usr/sbin/shutdown -h now

P00>> boot [cdrom device]  ie:  dka400

The screen will display README-FIRST information.

Press Enter to continue

Enter "Unix" at the prompt

UPD> Update (You will the the [UPD>] prompt throughout the rest of this update)

UPD> Verify (Make sure that arcflash, pkb0, pkc0, srmflash have passed.

UPD> Exit

Do you want to do a manual update: (u/n)?  n

Please reset the system ............

 

Firmware update for O/S 4.0E and 4.0F

Shutdown the system to the boot prompt.

/usr/sbin/shutdown -h now

P00>> boot [cdrom device]  ie:  dka400

The screen will display README-FIRST information.

Press Enter to continue

Bootfile: [Press enter to continue]

 

NOTE: On 4.x systems:

UPD> update

Warning: updates may take several minutes to complete for each device.

AlphaBIOS ........................Passed

srmflash ...........................Passed

UPD> verify  [To make sure the above passed]

AlphaBIOS ........................Passed

srmflash ...........................Passed


NOTE: On Tru 64bit 5.x systems


Please enter your operating systems OS_TYPE:
  [NT,UNIX,OpenVMS]: UNIX

UPD> update

Confirm update on:
arcflash
pkb0
pkc0
srmflash
[Y/N] y

arcflash        Updating to 4.xx-x... Verifying 4.xx-x... PASSED
pkb0            Updating to Axx... Verifying Axx...    PASSED
pkc0            Updating to Axx... Verifying Axx...    PASSED
srmflash        Updating to 5.x.x... Verifying 5.x.x...PASSED

If the above items did not pass then call Digital/Compac Unix Support for assistance.

UPD> exit

Configuring a Console

To change the console from Graphics to Serial.

Shutdown the system to the boot prompt.

/usr/sbin/shutdown -h now

Display the system boot settings and to see if the console is set as graphics.

P00> sho

console = graphics

Connect a graphics monitor to the system. 
You will need the ECU V1.11A Dec Alpha Configuration Diskette inserted into the diskette drive on the system.
You can find the diskette in the Media Library in the 4.0E O/S packet.

P00>>> run ecu   (To boot from the Floppy Diskette)

This brings up the NT Configuration Utility

Press Enter at the "OK" box.

Move the cursor to Save and Exit

A Menu may display with a message
'System Time does not match message'  or an option to
Save Configuration',
at this point do not do any thing just follow the instructions
below to halt the system.

Press the Halt button on the system

Press the Reset button on the system

Press the Halt button again to turn off the halt function

P00>>>set console serial

Power OFF the system
Disconnect the grarphics console.

Power ON the system

Go to the Terminal Server Console --- You should see the system boot messages
on the screen, if not then exit out of the Terminal Server Console screen and
open up a new terminal session on your Sun desktop and login to the Terminal Server
Console, you should now see the boot messages on the screen.

If you receive an error from the console when booting up that ewa0_mode is wrong:
 

tu0: DECchip 21040: Revision:2.3

tu0: bad console (ew_)mode selected for device

tu0 in pci slot 0 not configured 

At the boot prompt, change the setting on 'ewa0_mode' from FastFD 100BaseT Full Duplex
to Twisted Pair. The interface card could be a 10BaseT card not 100BaseT card. 

P00>>>set ewa0_mode Twisted Pair 

Vendor Software Install updates

 

C Compilers/Developers Toolkit

NOTE: For system running 5.x and above - Ladebug gets installed during the O/S Installation.  If you need to install a more current version then what is installed during the O/S installation then you must first remove the current Ladebug version (setld -d LDBBASE[ver], LDBDOC[ver], LDBMAN[ver]), then install the new Ladebug version (You can get the most current version ladebug 4.0.67 from the repository)

Use the Digital Unix Software Product Library CD #1 



# mount -r /dev/rz5c  /cdrom  (file /dev/rrz*c | grep RRD  to find the cdrom device name)

# cd cxx600/kit

Note: For some CDs, It does not show every subsets under kit directory, but it shows as a installation options when you run "setld -l ." 

# setld -l .

The subsets will be displayed for the C++ Compiler installation.

Choose options you wish to install:

1)    DIGITALl C++ HTML documentation

2)    DIGITAL C++ V5.7 (-oldcxx) compiler

3)    DIGITAL C++ Version 6.1 for DIGITAL UNIX Systems

4)    Ladebug Debugger Version 4.0-48 Release Notes

5)    Ladebug Debugger Version 4.0-48

6)    Ladebug Debugger graphical user interface

Or you may choose one of the following options:

7)    ALL of the above

8)    CANCEL selections and redisplay menus

9)    EXIT without installing any subsets

Press RETURN to display the next screen:

Enter your choices or press RETURN to redisplay menus.

Choices ( for example, 1 2 4-6):  7

You are installing the following optional subsets:

DIGITAL C++ HTML documentation

DIGITAL C++ V5.7 (-oldcxx) compiler

DIGITAL C++ Version 6.1 for DIGITAL UNIX Systems

Ladebug Debugger Version 4.0-48 Release Notes

Ladebug Debugger Version 4.0-48

Ladebug Debugger graphical user interface

Is this correct? (y/n):  y

Installation in process .........................

When all subsets installed successfully then issue the follwoing commands to verify the success of the installation:

# setld -i | grep CXX | grep installed  (  DIGITAL C++ subsets should show "installed")

# setld -i | grep LDB | grep installed ( Ladebug Debugger should show "installed")

Remove any Installed Compiler subsets before installing new Compiler subsets:

Issue the following commands to remove installed compiler subsets.

List the Compiler Subsets installed:

# setld -i | grep CXX | grep installed

CXXBASE600    installed    DIGITAL C++ Version 6.0 for DIGITAL UNIX Systems

CXXHTML600    installed    DIGITAL C++ HTML documentation

CXXOLD600    installed      DIGITAL C++ V5.7 (-oldxx) compiler.

# setld -i | grep LDB | grep installed

LDBBASEV40444    installed    Ladebug Debugger Version 4.0-44

LDBDOCV40444    installed    Ladebug Debugger Version 4.0-44 Release Notes

LDBGUIV40444    installed    Ladebug Debugger graphical user interface

Remove the Compileer Subsets from the above listing:

# setld -d CXXBASE600 CXXHTML600 CXXOLD600

Deleting "DIGITAL C++ HTML documentation" (CXXHTML600)

Deleting "DIGITAL C++ Version 6.0 for DIGITAL UNIX Systems" (CXXBASE600)

Deleting "DIGITAL C++ V5.7 (-oldxx) compiler" (CXXOLD600)

# setld -d LDBBASEV40444 LDBDOCV40444 LDBGUIV40444

Deleting "Ladebug Debugger graphical user interface" (LDBGUIV40444)

Deleting "Ladebug Debugger Version 4.0-44 Release Notes" (LDBDOCV40444)

Deleting "Ladebug Debugger Version 4.0-44" (LDBBASEV40444)

To go to Compaqs  Digital Unix web site click here--->http://www.unix.digital.com/dtk

Download Software -
Click on the products below that you wish to download from Compaqs web site.

    Compaq C Compiler
    Visual Threads
    Ladebug
    Graphical Program Analysis Tools
    Program Analysis Tools
  1. Uncompress and unpack the downloaded tar file:
    # gunzip -dc xxxnnn.tar.gz | tar xvf -
    This creates a
    unique subdirectory in your scratch directory, for each component.
  2. See Preinstallation Requirements and the component-specific installation and release notes and perform any
    action required prior to the component's installation.
  3. Check for the presence of any currently installed subsets for the component and delete all of them:
    # /usr/sbin/setld -i
    # /usr/sbin/setld -d currently-installed-subset
  4. Some components have multiple subsets. The following example shows how to list any installed subsets whose
    names include "GPA":

    # /usr/sbin/setld -i | grep GPA | grep installed

  5. Install the new version from the component's kit subdirectory. For example:
    # /usr/sbin/setld -l Component_Directory/kit
    See Directory Structure for the component directory name.
  6. Repeat steps 4 through 8 for each component to be installed.
  7. When finished installing, you can delete the scratch directory, if desired.

Installation Guide for Compaq C Compiler Developers' Toolkit Supplement V4.0F

Developers' Toolkit Supplement V4.0F provides state-of-the-art software development tools for Versions 4.0D, 4.0E,
and 4.0F of Tru64 UNIX (formerly DIGITAL UNIX). The tools deliver better performance and brand-new features
to these platforms.

The kit is a fully-supported, free upgrade for all users who have an active Developers Toolkit license
(which all users doing software development should have).

It contains the indicated versions of the following components:
bulletCompaq C (V6.1-110), formerly DEC C, is a standards-compliant, multidialect, and feature rich implementation
of the C language. It contains a highly optimizing code generator specifically designed to exploit the 64-bit Alpha
architecture. It is particularly well-suited and contains extended support for systems programming,
parallel programming, and mathematical computing.
bulletVisual Threads (V1.1-015) lets you analyze and debug multithreaded applications for problems such as deadlock,
protection of shared data, and thread usage errors. It can also be used to monitor the thread-related
performance of the application.
bulletLadebug (V4.0-54) debugger is a powerful fully symbolic source-level debugger that helps you locate
run-time errors (bugs) in your code.
bulletGraphical Program Analysis Tools (V2.0-7) make it easy to analyze a program for efficiency, memory bugs,
and the use of shared resources.
bulletProgram Analysis Tools (V1.0) help profile and debug applications through new commands that speed
learning and use. They offer new defaults and options, improved support for pthread applications,
and new reference pages and tutorials.

The software and documentation for each component are contained in a compressed tar file that can be downloaded
from this site (no printed documentation is provided with this Supplement).

 

© Compaq Computer Corporation 1999. All Rights Reserved.

COMPAQ, the Compaq logo, and the DIGITAL logo are registered in the U.S. Patent Trademark Office. UNIX is a
registered trademark and The Open Group is a trademark of The Open Group in the U.S. and other countries.
Other product names mentioned herein may be the trademarks of their respective companies.

Compaq Computer Corporation shall not be liable for technical or editorial errors or omissions contained herein.
The information in this document is subject to change without notice.

Purchasing a Developers' Toolkit License

The use of the Developers' Toolkit Supplement requires a Developers' Toolkit license, which you can order as one of
the following:

Software Licenses:

Traditional License: QL-MT5A*-AA
1 Concurrent Use License: QL-MT5AM-3B
5 Concurrent Use License: QL-MT5AM-3C
10 Concurrent Use License: QL-MT5AM-3D

Other options:

Software Product Services: QT-MT5A*-**

 

Service and Support

Compaq provides a variety of service and support options. For more information, or if you have any questions about
the installation or operation of any Developers' Toolkit Supplement component, contact your local Compaq sales office.

Thank you for your interest in the Developers' Toolkit Supplement. We hope to continue providing quality software
products that contribute to the success of your business.

Compaq C (V6.1-110)

The Compaq C compiler, formerly DEC C, is a standards-compliant, multidialect, and feature rich implementation of the
C language. It contains a highly optimizing code generator specifically designed to exploit the 64-bit Alpha architecture.
It is particularly well-suited and contains extended support for systems programming, parallel programming, and
mathematical computing.

This new version of Compaq C provides:
bulletA proven and reliable compiler that incorporates many important bug fixes from previous versions.
bulletAn improved code generator/optimizer that exploits the latest Alpha hardware technology.
bulletA significantly improved diagnostic facility: better messages, more messages (including uninitialized variable
detection, run-time array bounds checking, and unused header file detection), and improved command-line
and #pragma diagnostic controls (including lint-style message groups).
bulletA full implementation of the OpenMP Parallel Programming API for shared memory multi-processing.
bulletNew features from C9X (the proposed revision to the ANSI/ISO C Standard), including restricted pointers,
variable length arrays, interspersed declarations and statements, and initializers with designators.

Installation

Visual Threads (V1.1-015)

Visual Threads lets you analyze and debug multi-threaded applications. It can be used to:
bulletAutomatically diagnose common problems such as deadlock, protection of shared data, and thread usage errors.
bulletMonitor the thread-related performance of the application, helping you identify bottlenecks or locking granularity
problems.

It is a unique debugging tool because it can be used to identify problem areas even if an application does not show
any specific problem symptoms. Visual Threads provides the following:
bulletEvent Collection: Collects detailed information about the significant thread state changes that occur during the
running of a multithreaded application.
bulletEvent Display: At any time, you can view the dynamic display of events as they occur, with options to filter for
specific types of events.
bulletAutomatic Rule-based Analysis: Detects violation conditions by evaluating the events against a set of enabled
rules. Several predefined rules look for data protection errors, deadlock conditions, and programming errors.
bulletRule Customization: Lets you use templates to define your own rules to specify criteria for violation conditions.
In particular, you can specify rules to monitor or identify performance problems.
bulletCustomized Actions: Suspends execution of the application when it detects violation conditions. You can choose
from several options at this point, including invoking the debugger in the appropriate context for the application.
bulletPlayback: Records events to a trace file so you can play back and analyze them later. This is especially useful if
you want to analyze a trace file iteratively, perhaps using different rules each time as you discover more information.
bulletStatistics: Provides easy access to object-level statistics and current state information, including use of
resources (for example, the mutexes held by a particular thread). You can use this information to look for
performance problems and to fine tune the application.
bulletThread and Event Visualization: Graphically and continuously displays the state of the program threads and the
frequency of thread related events.

 

Visual Threads can be used with any Tru64 UNIX application that uses POSIX threads (DECthreads) or is written in
Java. It is designed for multi-threaded applications of all sizes - applications with anywhere from two threads to
hundreds of threads.

New features for this version of Visual Threads include many user interface enhancements, and:
bulletThe ability to specify application environment variables from within the Visual Threads GUI.
bulletThe command vttrace can be used to create a trace file outside the Visual Threads GUI.
bulletA new statistic for monitoring cumulative locked and wait time on locks.
bulletControl panel additions: scrolling capability, lines or tickmarks to show the number of CPUs
(and compare to active threads), and multiple colors to distinguish blocked threads.

Installation

Ladebug (V4.0-54)

The Ladebug debugger is a powerful fully symbolic debugger that helps you locate run-time errors (bugs) in your code.
Key features allow you to:
bulletPerform source-level debugging
bulletAttach to a running process
bulletDebug programs with shared libraries
bulletDebug multithreaded applications
bulletDebug multiprocess applications, including programs that fork/exec
bulletPerform remote client/server debugging
bulletPerform kernel debugging
bulletProvide internationalization support for local language characters

 

Ladebug supports the debugging of programs written in C, C++, Fortran, Fortran 90, Ada and COBOL. Ladebug features
expression evaluation using the syntax of the source programming language.

Installation

Graphical Program Analysis Tools (V2.0-7)

The Graphical Program Analysis Tools make it easy to analyze the run-time behavior of a program for efficiency,
memory bugs, and use of shared resources. The tools include:
bulletProcess Viewer: Graphically displays performance information about processes and child processes running on
specified (local or remote) Tru64 UNIX systems.
bulletMemory Profiler: Graphically displays how your application uses memory over the course of its execution, for
example, showing how much is allocated for various purposes and how frequently your application is allocating
and deallocating memory. This tool helps you understand if an application uses memory inefficiently, for example,
fragmented memory allocations.
bulletPerformance Profiler: Gathers and analyzes, in graphical form, run-time statistics on your application, such as
CPU usage by function or line and test coverage.
bulletHeap Analyzer: Finds and displays in graphical form memory errors and memory leaks in your application.
bulletMan Page Browser: Used for searching, navigating, and printing manpages in a graphical, scrollable hypertext
window.

Installation

Program Analysis Tools (V1.0)

The Program Analysis Tools help profile and debug applications through shell commands. The tools in this version
provide new commands that speed learning and use. They offer new defaults and options, improved support for
pthread applications, and new reference pages and tutorials. The tools include:
bulletHiprof: A call-graph profiler that collects information on the cpu-time that a program uses. It instruments the
program, executes it, and displays the profile using an improved gprof. A new profiling style provides an enhanced
alternative to traditional cc -pg profiling, allowing shared libraries to be profiled and per-source-line cpu-time to
be displayed.
bulletPixie: An instrumenting instruction-count profiler, primarily for use in profile-directed optimization (with the cc
command's -feedback, -cord, and -om options) and test coverage analysis. This version of pixie supports recent
compiler releases and provides per-thread profiles. A new prof command allows the display of per-source-line
profiles for the cc -p and uprofile profilers.
bulletThird Degree: A memory-access checker. It instruments a program, executes it, and displays a log of
memory-related errors that it detected. By default, the third command unintrusively checks for memory leaks and
malloc/free errors. Optionally, it can also report accessing invalid addresses and reading uninitialized heap and stack.
The new -g option allows the instrumented program to be debugged while running checks.
bulletAtom: A framework for writing new program analysis tools. Atom provides a high level API to its instrumentation
services, so that a new tool's instrumentation and run-time analysis code can be implemented in a few lines of C.
The API is compatible with the prerequisite Tru64 UNIX header files, and the new -g and -w options help debug
and productize tools.

Installation

Installation Information

bulletPreinstallation Requirements
bulletInstallation Instructions
bulletComponent-Specific Installation and Release Notes

 

Preinstallation Requirements

bulletThe Developers' Toolkit Supplement, Version 4.0F can be installed on any of the following operating systems:
bulletDIGITAL UNIX Version 4.0D
bulletDIGITAL UNIX Version 4.0E
bulletTru64 UNIX Version 4.0F

 

The Compaq C compiler and Program Analysis Tools components require patches to be installed first for the earlier
operating systems:

Operating System Patch Kit
DIGITAL UNIX Version 4.0D DIGITAL UNIX V4.0D Patch Kit 4 (or later)
DIGITAL UNIX Version 4.0E DIGITAL UNIX V4.0E Patch Kit 2 (or later)

 

Additional preinstallation requirements for each component follow:
bulletCompaq C
bulletVisual Threads
bulletLadebug
bulletGraphical Program Analysis Tools
bulletProgram Analysis Tools

 

Please also review each component's installation and release notes for more information.

Compaq C

Before installing this new version of Compaq C:
bulletDelete any earlier versions of this kit:
bullet# /usr/sbin/setld -d DTKCMPLR410 DTKCMPDOC410
# /usr/sbin/setld -d DTCCMPLR100 DTCCMPDOC100
bulletDelete any Developers' Toolkit Supplement driver patch kits:
bullet# /usr/sbin/setld -i | grep DTAPATCH
# /usr/sbin/setld -d subset-name

 

Visual Threads

Preinstallation requirements for Visual Threads are as follows:
bulletTru64 UNIX subsets OSFBASE425 or higher and OSFPGMR425 or higher are required. Subset OSFLIBA425 or higher
is optional but is required for instrumentation rules such as race detection.
bulletJava Run-time Environment (JRE) Version 1.1.7B-2 (subset JAVJRE117) or any higher version of JRE Version 1.1 is
required. However, JRE Version 1.2 is not supported (from any Java subset).

If no acceptable JRE subset is installed, Visual threads tries to validate that /usr/bin/java (provided by
either an OSFJAVA or JAVA11 subset) is an acceptable version to use.

You can download Java from Compaq's Web site for Java on Tru64 UNIX.
bulletThe Atom instrumentation toolkit provided with the Program Analysis Tools V1.0 (included in this Developers'
Toolkit Supplement) is required.
bulletThe Help system support, GPABASE207 (provided with the Graphical Program Analysis Tools included in this
Developers' Toolkit Supplement), is required.
bulletThe Ladebug debugger included in this Developers' Toolkit Supplement is recommended, although not required.

 

Ladebug

There are no additional requirements.

Graphical Program Analysis Tools (GPA)

Although GPA will work with other versions of the Atom-based Program Analysis Tools, Compaq recommends that you
install the Program Analysis Tools V1.0 included in this Developers' Toolkit Supplement to provide the best functionality.

Program Analysis Tools

Preinstallation requirements for the Program Analysis Tools are as follows:
bulletIf an Atom Advanced Development Kit (ATMBASE400 subset) is installed, it must be deleted before installing any
required operating system patch kit or the Program Analysis Tools included in this Developers' Toolkit Supplement.
bulletUsing a version of the Graphical Program Analysis Tools other than the one included in this Developers' Toolkit
Supplement is not recommended when this Program Analysis Tools component is installed.

 

Installation Instructions

You can install one or more individual components, subject to any dependencies listed in Preinstallation Requirements.
Each component's kit, including documentation, is in a compressed tar file that you download onto your system.

Follow these steps to download and install each component that you want:

  1. Log in as root or change to the root account on the system where the component is to be installed.
  2. Back up your system disk before installing any software (refer to your system documentation).
  3. Create a scratch directory to receive the downloaded component tar file(s), and change to that directory. You
    can download all component tar files to, and install from, the same directory.
  4. Click on one of the following to download that component's tar file (xxxnnn.tar.gz). You will be prompted to
    specify the target directory on your system:

Download Software

    Compaq C Compiler
    Visual Threads
    Ladebug
    Graphical Program Analysis Tools
    Program Analysis Tools
  1. Uncompress and unpack the downloaded tar file:
    # gunzip -dc xxxnnn.tar.gz | tar xvf -
    This creates a
    unique subdirectory in your scratch directory, for each component.
  2. See Preinstallation Requirements and the component-specific installation and release notes and perform any
    action required prior to the component's installation.
  3. Check for the presence of any currently installed subsets for the component and delete all of them:
    # /usr/sbin/setld -i
    # /usr/sbin/setld -d currently-installed-subset
  4. Some components have multiple subsets. The following example shows how to list any installed subsets whose
    names include "GPA":

    # /usr/sbin/setld -i | grep GPA | grep installed

  5. Install the new version from the component's kit subdirectory.
    For example:
    # /usr/sbin/setld -l Component_Directory/kit
    See
    Directory Structure for the component directory name.
  6. Repeat steps 4 through 8 for each component to be installed.
  7. When finished installing, you can delete the scratch directory, if desired.

 

Component Directory Structure

Unpacking the downloaded tar file for a component creates a component directory with the following name:

Component Directory Name
Compaq C Compaq_C_Compiler
Visual Threads Visual_Threads
Ladebug Ladebug
Program Analysis Tools Program_Analysis_Tools
Graphical Program Analysis Tools Program_Analyzers

 

Each directory has a kit subdirectory, which contains the subsets to install, and a doc subdirectory, which contains
that component's release notes and possibly installation information.

Component Installation and Release Notes

Before installing any component, please read the following component-specific documents in addition to the
Preinstallation Requirements:
bulletCompaq C installation
bulletCompaq C release notes
bulletVisual Threads installation
bulletVisual Threads release notes
bulletLadebug release notes
bulletLadebug internationalization notes
bulletGraphical Program Analysis Tools installation
bulletGraphical Program Analysis Tools release notes
bulletProgram Analysis Tools release notes

 

These documents indicate where they and any other online documentation can be found after component installation

DECevent Installation and Usage

To install DECevent on a Digital Unix System:
 

mkdir /usr/opt/kits

cd /usr/opt/kits

tar xvf  /repos1/Dec/diau280.tar

tar xvf /repos1/Dec/diauknl281.tar

cd /usr/opt/kits

setld -l .

Select option 1) All of the above 

When installation complete you will see the message 

DECevent IVP completed sussessfully.

If you have installed DECevent from the Associated Products CD you can run the command:

/usr/sbin/diasetup

'diasetup' to make DECevent start on reboot

To execute the 'dia' command: 

/usr/sbin/dia -R -i cpu | more  (ctrl/Z to exit  or 'q' to exit)

/usr/sbin/dia -t s:01-dec-1998:11:45:00 -i cpu > /tmp/errpt_file

/usr/sbin/dia -R | more

You can search for start (/start) to see hardware information.

Diagnostic Tools

Reports all hardware/software detected events/problems.

uerf -R | more  

uerf -R | grep Firmware (Shows Firmware Level)

uerf -S  (Produces a summary report).

Decevent - Event reporter (Decevent must be installed on the system  -->

Show everything from information in the messages file to hardware information and error reporting.

dia -R | more

At the boot Promt level type the following:

P00>>> sho error

P00>>> sho config

P00>>> sho fru

P00>>> sho dev

Utilities/Commands

Display CDROM Device

file /dev/rrz*c | grep RRD - Example of what you will see:

rrz6c:  character special (8/6146) SCSI #0 RRD45 disk #48 (SCSI ID #6) (SCSI LUN #0)

Recover the root password.

Boot the system in single user mode, you will not be asked for a password, change the password and reboot the system.
bulletboot -flags s

Gather System Information.
bulletRun the following command to gather system information:

# /usr/sbin/sys_check

The system information will be placed in /var/recovery/sys_check

Display current swap space configured on system.
bulletswapon -s

Update the memory copy of the sysconfigdb database and list entries in the /etc/sysconfigtab database after modifying the /etc/sysconfigtab file.

Update the memory copy of the sysconfigdb database, you don't need to reboot when this command is used.
bullet/sbin/sysconfigdb -s

List the whole sysconfigdb database
bullet/sbin/sysconfigdb -l  

List just the shared memory parameters
bullet/sbin/sysconfigdb -l ipc 

Display Firmware Level, CPU's, Disks, Hardware/Software Detected
problems, and other usefull information.

uerf -R  | grep Firmware (Shows Firmware Level)

uerf -R | more (Reports all hardware-detected and software-detected events(problems).

uerf -S (Produces a summary report).
 

Decevent utility - Event report writer.

Reports hardware/software problems in more detail than 'uerf'.
This utility will need to be installed, it is not included as  part of the O/S installation.

dia -R | more
 

SCU - Scsi Cam Utility.

Lists devices, targets and luns, shows disk capacity information, etc...

scu show edt  (List devices and what the Target and Luns are)

scu show edt b # t # l # full (Gives a full detailed list of the Bus #, Target # and Lun #)

scu -f /dev/rrz24c show capacity (Shows Disk Capacity information - ie: size of disk)
 

Check the password and group files for inconsistencies.

pwck and grpck (Checks the consistency of the passwd and group files)
 

SETlD - Software subset management utility.


The syntax of the setld command is as follows:

setld [ -D root-path ] -c subset-id message
setld [ -D root-path ] -d subset-id [ subset-id... ]
setld [ -D root-path ] -i [ subset-id [ subset-id... ]
setld [ -D root-path ] -l location [ subset-id [ subset-id... ]]
setld [ -D root-path ] -v subset-id [ subset-id...]

Inventory the system or any specified subset, lists all subsets installed and not installed.

setld -i 

Spcecify an alternative root directory.

setld -D /usr/doctools -i 

Loads the software kits that are in the specified location.


setld -l /mnt/ALPHA/BASE

Load the named software kit to be installed.

setld -l /mnt/ALPHA/BASE

To load a product off of the cdrom, in this case installing compilers.

setld -l  /cdrom/ALPHA/BASE/compilers 

License Management Facility

lmf list full | more 

Display the license database in full, and what products are licensed and active.
 

Shutdown Commands

Halt the system.

shutdown -h  now

Shutdown the system and reboot.

shutdown -r now

Boot Prompt Commands

Boot the system to single user mode from the boot prompt.

P00>>>boot -flag s dka0.0.0.1.0


Boot device dka0' could be different on each system.
Use the command 'sho dev' at the boot prompt P00>>to see what the
boot deveice is.

Boot to multi-user mode if the boot flag is set to  boot_osflags A.

P00>>>boot  

The Sizer command displays information about the O/S Version, CPU, root device, and the kernel name.

sizer -p (Displays the number of available CPU's)

sizer -c (Displays the CPU type of the running CPU)

sizer -r (Displays the name of the root device)

sizer -v (Displays the operating system version string)

sizer 

Usage: sizer
-c    Returns cpu type.
-r    Returns root device.
-v    Returns version string.
-n name   Create a config file using this name.
-b    Returns the booted kernel's filename.
-m    Returns the booted kernel's module list.
-M    Returns the booted kernel's foreign kit list.
-p    Returns the number of processors available.
-wt   Returns workstation display type.
-wu   Returns workstation display units.
-wc   Returns workstation console selected.
-wk   Returns workstation keyboard name.
-wp   Returns workstation pointer name.
-gt   Returns graphics controller information.
-gr   Returns graphics controller resolution.
-l    Returns the lite system flag.
-atm   Returns success if an ATM adaptor is present.

Setting or changing the Timezone:

Issue the following command, and you will be prompted to enter new
timezone information:

 
# /usr/sbin/timezone

To List CPU States issue the following command:

# /usr/sbin/pset_info

Prom Level, Boot Commands

To boot from the generic kernel from the boot prompt.

P00>>> boot -fi genvmunix

To boot from a previous kernel from the boot prompt, example below.

P00>>> boot -fi vmunix.PrevPatch 

To halt the system to the boot prompt "P00>>>"

shutdown -h now  

Displays all devices and settings

P00>>>sho | more

Displays just the disk, scsi, and network devices

P00>>>sho dev 

Set the network to 100BaseT Full duplex

P00>>>set ewa0_mode FastFD

Set the network to 10BaseT

P00>>>set ewa0_mode TwistedPair

Set the boot flags to boot to multi-user mode automatically

P00>>>set boot_osflags A

Boot the system to single user mode from the boot prompt 'P00>>>'.

When booting into single user mode you will not be asked for a password.

P00>>>boot -flag s dka0.0.0.1.0   or
P00>>>boot -flag s dka0  or

P00>>>boot -flag s
P00>>>boot -fl s

Boot device 'dka0' used above as an example could be different on each system.

Use the command 'sho dev' to see what the boot device is.


 

Boots to multi-user mode if the boot flag is set to boot_osflags A.

P00>>> boot

Displays system memory

P00>>> sho mem

When the system is up type 'uerf -R | more' and scroll through until you see the line that specifies 'physical memory'.

Displays all the options you can use with the sho command

P00>>>help sho

Displays the system hardware configuration

P00>>>sho config

System Shutdown & Startup Procedures

Shutdown and halt the system.

shutdown -h now

Shutdown and reboot the system.

shutdown -r now

Fast Shutdown and reboot to multi user mode.

shutdown -fr now

Shutdown and boot up in single user mode.

shutdown now

From the console prompt [P00>>>], boot to single user mode, you will not be asked for a password when booting to single user mode.
bulletboot -fl s

Recovering the root password
bulletIf you have forgotten the root password and cannot sudo into the system here is how to reset the root password.
bulletShutdown the system, you will probabally have to halt the system by pressing the halt button on the front of the system, then press the reset button to reboot the system.   It will boot up to the boot prompt, here you can boot to single user mode.
bulletP00>>>boot -flag s

When the system is up at the root prompt '#' do the following.
bulletmount -u /  (Sets the root volume to writable)
bulletbcheckrc  -  (Checks and mounts file systems)
bulletpasswd root  ( Set the root password, once set reboot the system)
bulletPress the halt button on the front of the system so the system will boot multi-user.
bulletshutdown -r now

Creating and Administering the UNIX File System

The newfs command formats a disk partition and creates a usable UNIX
file system.


Using the information in the disk label or the default values specified in the /etc/disktab file,
the newfs command builds a file system on the specified disk partition.
You can also use newfs command options to specify the disk geometry.

 

The newfs command has the following syntax:
 

/sbin/newfs [-N] [fs_options] device [disk_type]

You must specify the unmounted, raw device (for example, /dev/rrz0a).

Example of running newfs on device /dev/rrz1c

newfs /dev/rrz1c
 

Checking File Systems

The fsck program checks UNIX file systems and performs some corrections to help ensure
a reliable environment for file storage on disks. 
The fsck program can correct file system inconsistencies such as unreferenced inodes,
missing blocks in the free list, or incorrect counts in the superblock.

File systems can become corrupted in many ways, such as improper shutdown procedures,
hardware failures, and power outages and power surges. 
A file system can also become corrupted if you physically write protect a mounted file
system, take a mounted file system off line, or if you do not synchronize the system
before you shut the system down.

 

The fsck command has the following syntax:
 

/usr/sbin/fsck [options...] [file system...]
If you do not specify a file system, all the file systems in the /etc/fstab file are checked.

Example of running fsck on file system /home:
 

fsck /home
 
This will check the /home file system and prompt you to fix any problems.

fsck -y /home

This will check the /home file system and fix and problems automatically.

 

Mounting File Systems
 

When the system is booted, file systems that are defined in the /etc/fstab file are
mounted.
The /etc/fstab file contains entries that specify the device and partition where the file
system is located, the mount point, and additional information about the file system,
such as file system type. 
If you are in single-user mode, the root file system is mounted read only.
 

To change a file system's mount status, use the mount command with the -u option. 
This is useful if you try to reboot and the /etc/fstab file is unavailable.  

If you try to reboot and the /etc/fstab file is corrupted, use a command similar to the
following:  

mount -u  /dev/rz0a  /  

The /dev/rz0a device is the root file system.
The following is an example of an /etc/fstab file:
 

/dev/rz2a    /   ufs   rw   1    1
/dev/rz0g    /usr   ufs   ufs    1    2
/dev/rz2b    swap1   ufs    sw   0    2
/dev/rz0b    swap2   ufs    sw   0    2
/dev/rz2g    /var    ufs    rw   1    2
 

Unmounting File Systems
The umount command has the following syntax.

 

umount [-afv] [-host] [-ttype] [mount_point]
umount /home

 

Mounting nfs File Systems
 

mount -r tl-nfs:/repository1 /repos1

mount -r tl-sun04:/data1/cdroms/Dec /jukebox1

mount -r tl-sun04:/data1/cdroms/Misc /jukebox2

Monitoring Disk Use
 

The df command has the following syntax:
 

df [-eiknPt] [-F fstype] [file] [file_system]

df -k 

Displays the total space, amount used, amount available, the percentage used
and the directory on which the file system is mounted.

The -k option reports disk space in 1024-byte blocks.
Without the -k option, disk space is reported in 512-byte blocks.

df -k /home  

Filesystem   1024-blks    used   avail    capacity    mounted on
/dev/rz2a    30686   21438   6178    77%   /home 

 

Digital Unix Licensing Instructions

Renewing the Compaq/Digital yearly license pak

Requesting a Digital Unix License 

Registering a Digital Unix License 

Deleting a Digital Unix License

Status Listing of a Digital Unix License

Loading and Unloading a Digital Unix License


Requesting a Digital Unix License

Contact the Program Manager 'Connie Davis' at 1-508-467-3604 and request a script
that will automate the process of loading PAK information into the LMF database.

OR


To request a PAK script on-line, send the following message with 'all' of  the requested fields below completed to:

'[email protected]'

DIGITAL License PAK ON-LINE FORM

Subject: Request for a DIGITAL UNIX PAK Script.
Please send me the PAK script for DIGITAL UNIX.

Company Name: _________________________________
Contact Name: _________________________________
Internet mail address: __________________________________
System identification number(S/N):_________________________________
 
First time 'One Year License Pak' installation, using a script file:


NOTE: This License Pak will expire in one year.

When you receive the License PAK script file:

Download it to a Unix system and scale it down to the following products:

AXP-BOOKBROWSER,
DUNIX-AXP-COBOL,
DUNIX-AXP-CXXOSF,
DUNIX-AXP-DCE-APP-DEV,
DUNIX-AXP-DCE-CDS,
DUNIX-AXP-DCE-PKT-PRIV,
DUNIX-AXP-DCE-RT-SVC,
DUNIX-AXP-DCE-SECURITY,
DUNIX-AXP-LSM-OA,
DUNIX-AXP-OSF-BASE,
DUNIX-AXP-OSF-DEV,
DUNIX-AXP-OSF-SVR,
DUNIX-AXP-OSF-USR.

After editing the script file, copy it to the repository in the Dec directory,naming
the file lic-all-decmmyy.sh.

Login as root to the system you are going to install the license PAK on.

ftp the lic-all-dec.sh script file from the repository to the /tmp directory on the system
you are installing the license to.

cd /tmp

chmod +x lic-all-dec.sh

Run the script file to load the license PAK into the license database.

./lic-all-dec.sh

Displays the License PAK information, making sure that the Termination Date is correct, it should expire in one year.

lmf list full | more

Update an existing License Pak using the License PAK script file:
Complete steps 1-5 above.

cd /usr/var/adm/lmf

mv ldb ldb.date

Digital Unix Licensing Instructions

Runs the script file to load the license PAK into the license database.

./lic-all-dec.sh

Display the License PAK information, making sure that the Termination Date is correct, it should expire in one year.

lmf list full | more


Registering a Digital Unix License


 
You must first get the Digital License Pak that comes with the Digital system when
shippedIf you can't find the Digital License Pak then look in Carol Ds'Shiell's office
in the file cabinet next to the door, look on the left side in the back for the Digital
folder.

When registering a License Pak you will log into the system as root,  using an xterm
window. 

You must use xterm to register a license pak.

Run the lmf register command

# lmf register

This will bring up a form to fill out, and this is when you will use the license pak
information sheet that you acquired from the Digital System or from Carol's office.

While in the form:

Move your cursor to the first item
Issuer: Enter an  'a' to append the line,
Enter Dec and press <esc> to get out of append mode.

Move to the next item
Authorization Number: Append the line the same way as described for 'Issuer:',
always pressing the <esc> key to end the append mode.

 

When all the information has been entered from the License Pak Sheet then save
and exit.
 
You should see the message 'License Pak successfully added', or you may receive
the message 'Checksum Invalid'.

Make sure that you do not have any typing errors.

If you do have a typing error then you can modify the Pak by typing:


#lmf modify [Product Name:] (ie: OSF-BASE).
Save and exit.

Example of the lmf register Form:

Licensed Software Product
Product Authorization Key
Enter data on lines terminated with :
    Issuer:
   Authorization Number:
    Product Name:
   Producer:
   Number of units:
    Version:
   Product Release Date:
   Key Termination Date:
 Availability Table Code:
   Activity Table Code:
     Key Options:
   Product Token:
    Hardware-Id:
   Checksum:
Comment:

 

Now you will need to enable the license.


# lmf reset
 

Check the status of the lmf database.


# lmf list

The license for the product that you just added should show enabled.



Deleting a Digital Unix License

Before deleteting a license make sure that you have a backup copy of the license data.

cp /usr/var/adm/lmf/ldb  /usr/var/adm/lmf/ldb.[MMDDYY]

Now you are ready to delete a license.

lmf delete OSF-DEV

Althouth this command removes the license data from the kernel cache, existing users of the product are allowed to finish using it.  

Status listing of a Digital Unix Licenses Database

To list the license database information:

 

lmf list full | more   (This is a long listing).

lmf list   (This is a short listing).


Loading and Unloading a Digital Unix License

Use the load command to copy the license details for a specified product from the license database to the kernel cache.

As an argument to the load command, specify the number of users that you want to be able to use the product.

Example: 

If you want to load only enough license units for five users, for the product ALLSUM   enter the following command:

# lmf load 5 ALLSUM

Example:

Suppose you have registered and loaded the license for the
product ALLSUM with a 10-user Activity License. 

You could restrict the license to be a seven-user license by entering the
following command:

# lmf unload 3 ALLSUM

Renewing the Compaq/Digital yearly license pak.

PeopleSofts Yearly Licenses are located in /repos1/Dec/LIC:

  1. Run the license pak script file from the repsoitory, ie: for the year 2002 it is /repos1/Dec/LIC/lic-all-2003lmflic.csh

Note: The yearly license pak script is sent to Jennifer from Compaq and then Miriam Cabellero (Our Compaq on-site support rep.) has to request a special license for OSF-BASE of which we add to the license script file that Jennifer gives us.

  1. Before running this script you must remove the old license database.
bulletcd /var/adm/lmf
bulletmv ldb ldb.SAV
bulletcd /repos1/Dec
bullet./lic-all-2003lmflic.csh
bulletlmf reset (To reset update the license database)

To  register a subset package, you will need the license packs to do this and issue the following commands.

lmf

select: [register, enter info, x, reset, list, exit]
 

lmf> register

A register form is displayed, place cursor at the first field, ie: Issuer:, append the line after the 'colon' of Issuer, enter the correct information here, DEC, then press the escape key, move to the next file and append the line in the same manner as before, and press escape again to exit the append mode, and move to next field, and so on. 

Once you have finished entering the field then save the file with 'x'.  If the checksum passes it will tell you and you will be placed at the lmf> prompt.

lmf> reset

lmf> list

lmf> exit

Patches

Follow this link to the Compaq patch web-site: -->

http://ftp1.support.compaq.com/public/dunix

The following patches are available on our repository in /repos1/Dec/OS:

5.1_t64v51as0003-20010521.tar

5.1_t64v51as0003-20010521.tar

5.1_t64v51b19-c0164601-16326-e-20021206.tar  -  HP Tru64 UNIX V5.1 PK5 (BL19)

5.1A_t64v51ab01as0001-20020116.tar

5.1A_t64v51ab01as0001-20020116.tar

5.1A_t64v51ab3-c0088900-16325-e-20021206.tar   - HP Tru64 UNIX V5.1A PK3 (BL3)

5.1B_t64v51bb1as0001-20021229.tar

4.0F_duv40fb18-c0090000-16320-e-20021206.tar  -  HP Tru64 UNIX V4.0F PK7 (BL18)

Note: Patch kit definitation:

IF the name of the patch is t64v51as0003-20010521.tar - then the definition is Tru64 Version 5.1 AlphaServer patch 0003, created on May, 21st 2001.

Patch Kit Installation Requirements

To successfully install DIGITAL UNIX, ASE, or TCR patch kits, your system must meet the
following requirements:

Be running the appropriate version of DIGITAL UNIX, ASE, or TCR.

Contain the necessary temporary and permanent storage space described in the Patch Summary and Release Notes document for the kit you are installing.

Patch Kit Distributions

DIGITAL UNIX, ASE, and TCR patch kits are available from the Internet and on CD-ROM.

Patch Kits on the Internet

Patch kits are available publicly on the Internet through the Compaq Services Web page located at:


http://www.service.digital.com/patches/index.html

Patches distributed over the Internet are provided in a tar file that you must unpack on your system or on an NFS mountable file system.

The tar file for each operating system version will contain patch kits for that version of the operating system and patch kits for the applicable ASE and TCR software products. For example, the DIGITAL UNIX 4.0B patch tar file will contain the DIGITAL UNIX 4.0B patch kit and the TCR1.4A patch kit.


The content of each patch tar file is summarized in the 00-READ-ME-FIRST file contained in the tar file.
This letter should be the first thing you read after unpacking the tar file.

Patch kits on CD-ROM.

The latest DIGITAL UNIX Patch CD-ROM is packaged with each new DIGITAL UNIX operating system order, or it can be obtained as follows:

You can receive the DIGITAL UNIX Patch CD-ROM automatically if you purchase the layered
product patch subscription service (order number QT-3CSAA-C8).

You can order the DIGITAL UNIX Patch CD-ROM separately (order number QA-MT4AA-H8).

Customers in the United States can place orders by calling 1-800-DIGITAL; customers in other countries should contact your local Compaq sales office or authorized reseller for pricing and availability.

The DIGITAL UNIX Patch CD-ROM contains all of the latest patch kits for the supported versions of DIGITAL UNIX, ASE, and TCR. The patch kits on the CD-ROM are provided in an expanded form (rather than a tar file) so they can be installed directly from the disk. The 00-READ-ME-FIRST file on the CD-ROM lists the contents of the disk and provides other inform

3.1 Summary of Steps for Using Patch Kits

The following list summarizes the steps necessary to install patches on your system. The referenced sections provide the full details. Compaq recommends that you familiarize yourself with these steps before attempting to install DIGITAL UNIX, ASE, or TCR patch kits.

1.Prepare your system for patch installation (see Section 3.2).

2.Make the patch distribution available to your system (see Section 3.3).

3.Load any new patch tools provided with the new patch distribution (see Section 3.4).

4.Set the patch baseline in multiuser mode, if system files have been changed manually (see Section 3.6).

5.Perform patch preinstallation check in multiuser mode (see Section 3.5).

6.Install patches in single-user mode (see Section 3.7).

7.Rebuild the kernel and reboot the system.

3.2 Preparing to Install Patches

Before using the latest DIGITAL UNIX, ASE, or TCR patch distribution, make sure that your system meets the required criteria and that you perform certain preinstallation tasks, as described in the following sections.


Required System Software

You must have the appropriate versions of DIGITAL UNIX, ASE, and TCR installed on your system to install patch kits. There are separate patch kits for each version of the DIGITAL UNIX, ASE, and TCR products. The patch kits will not install on any other version of those products. For example, the DIGITAL UNIX 4.0D patch kit will only install on DIGITAL UNIX Version 4.0D.

 
Backing Up Your System

It is recommended that you backup your /, /usr, and /var file systems prior to installing patches or baselining your system.

Required Storage Space

Refer to the Patch Summary and Release Notes for the required storage space.

Making the Patch Distribution Available

DIGITAL UNIX, ASE, and TCR patches are available from the Compaq Services Web page or the DIGITAL UNIX Patch CD-ROM. Once you have obtained the patch distributions use the following instructions to make the patch kits available to the system targeted for update:

1.Ensure the installation prerequisites described in Section 3.2 are met.

2.If you are using patch tar files obtained via the Internet from the Compaq Services Web page, you must expand the tar file to access the patch kits.

The tar file can be expanded on any NFS mountable file system. It is recommended that the file system not exist in /usr or /var of the system that will be patched. For example:

# /usr/sbin/mount /dev/rz3g /PatchKits

# cd /PatchKits

# mkdir kit8

Copy or ftp the patch kit to /PatchKits/kit8. For example:

# cp DUV40BAS00008-19980821.tar /PatchKits/kit8

# script untar.log

# tar -xpvf DUV40BAS00008-19980821.tar

View the untar-kit.log for errors or failures untarring the file.

Once the tar file has been expanded, make the file system containing the patch kits available to the system being patched. For example, on the system being patched do
the following:

# /usr/sbin/mount /PatchKits/kit8@hostname /mnt

3.If you are using the DIGITAL UNIX Patch CD-ROM you need only mount the CD-ROM, as the
information on the CD-ROM is already expanded. For example:

# usr/sbin/mount -r /dev/rz4a /mnt

3.4 Loading New Patch Tools

The patch kits deliver updated patch tools to your system. It is important that you run the dupatch utility located in the /patch_kit directory every time you obtain new patch tar files or a new DIGITAL UNIX Patch CD-ROM.


3.7 Installing and Enabling Patches

Patch installation is performed through dupatch. The -l of the setld command is disabled for patch subsets.

Before beginning the installation, make sure that you have completed all of the preliminary steps:

Make sure you have met the installation prerequisites described in Section 3.2.


Make sure you made the patch distribution available to your system, as described in Section 3.3.

Make sure you loaded any new patch tools, as described in Section 3.4.

Make sure that you performed the patch preinstallation check, as described in Section 3.5.

If needed, make sure that system patch baseline as been set, as described in Section 3.6.

The following steps provide instructions for installing and enabling DIGITAL UNIX, ASE, and TCR patches:

1.Shut down the system to single-user mode. For example:

# /usr/sbin/shutdown -h +5 "Applying 4.0B and TCR Patches"

2.Reboot to single-user mode from the console prompt, using a command like the following:

>>>boot -fl s [boot_dev]

Example: boot -fl s dka0

3.After the system shuts down and reboots to single-user mode, mount the file system that contains the /usr and /var directories. Use the bcheckrc command to check and mount all the UFS and AdvFS file systems, then issue the update command and activate your swap partition with swapon:

# /sbin/bcheckrc

# /sbin/update

# /sbin/swapon -a

4.If you are using the Logical Storage Manager, enter the lsmbstartup command:

# /sbin/lsmbstartup

5.If you need access to the network, enter the rcinet command to start the network:

# /usr/sbin/rcinet start

Informational messages will appear on the screen.

6.Run the dupatch utility. (This step assumes that the patch kit is available to your system, as described in Section 3.3, and that the new patch tools have been loaded, as described in Section 3.4). Enter 1 at the "Enter your choice" prompt to the invoke the patch installation session:

# dupatch

Enter path to the top of the patch distribution or enter "q" to quit:

Example:  /usr/patches/patch_kit

DIGITAL UNIX Patch Utility (Rev. 25)
==========================
- This dupatch session is logged in /var/adm/patch/log/session.log

Main Menu:
---------

1) Patch Installation
2) Patch Deletion

3) Patch Documentation
4) Patch Tracking

5) Patch Baseline Analysis/Adjustment

h) Help on Command Line Interface

q) Quit

Enter your choice: 1


7.When the patch installation menu is displayed. Enter 2, at the "Enter your choice" prompt:

DIGITAL UNIX Patch Utility (Rev. 25)
==========================
- This dupatch session is logged in /var/adm/patch/log/session.log

Patch Installation Menu:
-----------------------

1) Pre-Installation Check ONLY
2) Check & Install (requires single-user mode)

b) Back to Main Menu
q) Quit

Enter your choice: 2


8.You will be presented with the list of patch kits that are provided in the patch distribution and that apply to your system. Compaq recommends that you install all patch kits (choice 3 ) that apply to your system. For example:

The products listed below are optional:

There may be more optional products than can be presented on a single screen. If this is the case, you can choose products screen by screen or all at once on the last screen.
All of the choices you make will be collected for your confirmation before any products are installed.

1) Patches for Digital UNIX V4.0B
2) Patches for TruCluster Available Server Software V1.4A

Or you may choose one of the following options:

3) ALL of the above
4) CANCEL selections and redisplay menus
5) EXIT without installing any products

Enter your choices or press RETURN to redisplay menus.

Choices (for example, 1 2 4-6): 3



9.The program lists your choices and asks to confirm your choices. For example:

You are installing patches (to be selected) from the following
products:

Patches for Digital UNIX V4.0B
Patches for TruCluster Available Server Software V1.4A

Is this correct? (y/n): y


10.You have the option to make patches reversible so you can return the system to its state prior to the installation of a patch. Enter y or press Return to make the patches reversible. For example:

Do you want the patches to be reversible? [y]: [Return]

By default, backup copies of the installed patches are saved in /var/adm/patch/backup. If you have limited space in /var, you may want to make the backup directory the mount point for a separate disk partition, an NFS mounted directory, or a symbolic link to another file system.

If you answer no to this question, the existing system files will not be saved and the installed patches will not be reversible. Compaq recommends that you install patches so they are reversible.

11.The program describes your backup setup and asks you if you want to proceed:

Do you want to proceed with the installation with this setup? [y]: [Return]

12.You are asked to record your name as the person installing the patches and to add any comments you would like stored for future reference. For example:

Your name: Mary Smith

Enter any notes about this operation that you would like stored for future reference. To end your input, enter a period (.) and press Return.

: Removing patches 6.00, 12.00, and 22.00 until the
: firmware can be updated to the proper revision.
: . [Return]

13.The program lists the patches available for installation on your system. This list may be different from system to system because dupatch does not display available patches that are already installed on your system.
You can selectively choose patches for installation, install all patches, cancel selections and redisplay menus, or exit without installing any patches. For example:

Enter your choices or press RETURN to display the next screen.

Choices (for example, 1 2 4-6) :
.
.
.
130) Patch 0381.00 - Motif Toolkit Correction
131) Patch 0384.00 - Various X11 Server Corrections

Or you may choose one of the following options:

134) ALL of the above
133) CANCEL selections and redisplay menus
134) EXIT without installing any patches


Selecting CANCEL cancels your patch selections and returns to the patch list and selection menus so you can reselect patches for installation.

Selecting EXIT returns you to the dupatch installation menu.

14.The preinstallation check is performed to verify that the patches will install. If the preinstallation check is successful dupatch proceeds with the installation. If the preinstallation check fails, dupatch lists the specific patches that fail and asks how you want to proceed:

Select the action you'd like to take:

1) proceed with the patches that passed the check
2) select patches again

3) go back to the previous menu

If you choose to proceed with patches that passed the preinstallation check, dupatch will start installing those patches and provide informational messages on the screen. The whole dupatch session is logged to ensure you can view any messages that may scroll off the screen.

If patch installation is blocked due to missing or unknown system files, refer to Section 3.6.

15.Review the dupatch session log, /var/adm/patch/log/session.log, to ensure that the installation was successful. Note any special patch instructions, informational messages, and error messages.

16.Assuming patch installation was successful, rebuild the kernel (vmunix), save the existing kernel, move the new kernel into place, and reboot the system. For more information, see the DIGITAL UNIX System Administration manual.

In general the following steps are necessary.

Note: For systems running  Version 5.x the patch process will build the kernel and make the necessary backups of the kernel, you will need to supply the Kernel Name, ie: [RT-ALP01], this is located in /usr/sys/conf/RT-ALP01, verify what the kernel name is before running the dupatch patch kit installation utility. 

The following is an example of  the kernel build section at the end of the patch kit installation:

Beginning kernel build...

 Do you have a pre-existing configuration file?: y

Enter the name of the pre-existing configuration file or

press RETURN to use : ST-ALP05

*** KERNEL CONFIGURATION AND BUILD PROCEDURE ***

Saving /sys/conf/ST-ALP05 as /sys/conf/ST-ALP05.bck

Do you want to edit the configuration file? (y/n) [n]: n

 *** PERFORMING KERNEL BUILD ***

To configure the Kernel manually follow the procedures below:


a.Configure a new vmunix. For example:

# doconfig -c HOSTNAME

b.Save the existing vmunix. For example:

# cp /vmunix /usr/vmunix.prekit11-<yyyymmdd>

c.Install the newly built kernel (vmunix). For example:

# mv /usr/sys/HOSTNAME/vmunix /vmunix

d.Reboot the system. For example:

# /usr/sbin/shutdown -r +5 "Reboot a with newly installed patches"


3.8 Removing Patches

To remove patches from your system you use the Patch Deletion option of the dupatch Main Menu. The system must be in single-user mode to remove patches. Note that the -d option to the setld command is disabled for patch subsets.

3.8.1 Steps for Removing Patches

The following steps show how to remove patches:

Caution

See Section 3.8.2 before using the "delete all" option of the Patch Deletion menu.

1.Shut down the system to single-user mode. For example:

# /usr/sbin/shutdown -h +5 "Removing Patches"

2.After the system shuts down to single-user mode, mount the file system that contains the /usr and /var directories. Use the bcheckrc command to check and mount all the UFS and AdvFS file systems. Then issue the update command and activate your swap partition with swapon:

# /sbin/bcheckrc # /sbin/update # /sbin/swapon -a

If you are using the Logical Storage Manager, run lsmbstartup:

# /sbin/lsmbstartup

3.If you need access to the network, use the following command to start the network:

# /usr/sbin/rcinet start

Informational messages will appear on the screen.

4.Run dupatch, select 2 for patch removal:

# dupatch

DIGITAL UNIX Patch Utility
==========================
(This dupatch session is logged in /var/adm/patch/log/session.log)

Main Menu:
----------

1) Patch Installation
2) Patch Deletion

3) Patch Documention 4) Patch Tracking

5) Patch Baseline Analysis/Adjustment

h) Help on Command Line Interface

q) Quit

Enter your choice: 2

5.You are asked to record your name as the person removing the patches and to add any comments you would like stored for future reference. For example:

Your name: Mary Smith

Enter any notes about this operation that you would like stored for future reference. To end your input, enter a period (.) and press Return.

: Removing patches 6.00, 12.00, and 22.00 until the
: firmware can be updated to the proper revision.
: . [Return]

6.Select and verify the patches to remove through the patch selection menus. Once the patch selection is done, dupatch removes the selected patches and provides informational messages on the screen. The dupatch session is logged to /var/adm/patch/log/session.log.

7.Review the session log to ensure the removal was successful. Note any special patch instructions, informational messages, and error messages.

8.If there are no error messages, follow the instructions for disabling the patches that are listed in the session log. Depending upon the deleted patches, you may need to rebuild the kernel or reboot the system.

3.8.2 Using the "delete all patches" Option

The Delete Patch menu applies to all setld-based patches installed on your system; it does not focus on any specific patch kit. This menu allows you to delete a specific patch, a list of patches, or all patches from your system.

The Delete Patch menu lists every setld-based patch on your system, regardless of which patch kit installed them.
Therefore, if you select the "delete all patches" menu item, it will remove all setld-patches from your system.

For example, if chose the "install all patches" menu item when installing Patch Kit-0009 and then decided to remove those patches, you would have to specify the patch ID of all Patch Kit-0009 patches in the Delete Patch menu. If, instead, you select the "delete all patches" menu item, then all setld-based patches that were installed on your system would be deleted, not just those from Patch Kit-0009.

Listing Patches on a Alpha System:

Login to the system as root and run the following command.

#dupatch

* Previous session logs saved in session.log.[1-25]

Tru64 UNIX Patch Utility (Rev. 29-02)
==========================
- This dupatch session is logged in /var/adm/patch/log/session.log

Main Menu:
---------

1) Patch Installation
2) Patch Deletion

3) Patch Documentation
4) Patch Tracking

5) Patch Baseline Analysis/Adjustment

h) Help on Command Line Interface

q) Quit

Enter your choice: 4

Tru64 UNIX Patch Utility (Rev. 29-02)
==========================
- This dupatch session is logged in /var/adm/patch/log/session.log

Patch Tracking Menu:
-------------------

1) List installed patches
2) List installed patch files
3) List patch kit information on installed patches
4) Show Patch History for selected patches
5) Show System Patch History

b) Back to Main Menu
q) Quit

Enter your choice: 3

Patch Tracking Selection Menu:
------------------------------

1) List Release kit information
2) List Customer Specific kit information
3) List All kit information

b) Back to Tracking Menu
q) Quit

Enter your choice: 3

Gathering details of relevant patches, this may take a bit of time


Patches installed on the system came from following patch kits:
--------------------------------------------------------------

- T64V51AS0003-20010521 OSF510