Thursday, April 14, 2011

HP-UX Minimal OS Installation


HP-UX Minimal OS Installation
To cold-install HP-UX 11.0, you must have the following:
A supported HP 9000 server or workstation (see Appendix A)
64 MB memory, minimum
128 MB swap space, minimum 
2GB root disk volume, minimum
You will need the following CD’s ready:
HP-UX 11.0 Install/Update/Recovery CD, March 2001 or later. 
Core OS Options CD (for technical servers and workstations).
 
Support Plus CD, March 2001 or later (for hardware/critical patch bundle, diagnostics and iCOD product), is needed.
HP-UX 11.0 Application Software CDs
  1. ____ Make sure all peripherals are turned on.
  2. ____ Turn on the server or recycle the power.
  3. ____ Load the Install and Core OS CDROM into the CD-ROM driver.
  4. ____ Interrupt the autoboot process, by pressing any key during the 10 second interval that is given. This is so the system can be booted from the Core OS CDROM.
  5. ____ Once autoboot was been interrupted you should now see the autoboot menu.
  6. ____ Boot from the device that contains the Core OS CDROM. Usually the alternative boot path is the CDROM drive. 
    But to verify that you can type
     search and view all defined boot devices. 
    bo alt
     OR bo
  7. ____ You should now be asked: Interact with IPL (Y or N) ?> Type n.
  8. ____ The install kernel will take 3-5 minutes to install.
  9. ____When that has completed a screen will appear asking for the keyboard language of the console. Respond with the correct number and press ENTER.
  10. ____ The Welcome to Ignite-UX screen will be displayed.
  11. ____ Tab to Install HP-UX field and press Enter.
  12. ____ From the User Interface and Media Options screen, verify that these choices are selected: 
    Source Location Options: Media-only installation – installing from the local CD drive.
    User Interface Options:
     Guided Installation – provides an install wizard with limited choices.
  13. ____Now proceed through each screen to configure your system: 
    Basic Configuration: Commercial Servers – this will install HP-UX 11.0 Core OS software, required ACE patches, general recommended core (XSWGR1100), latest hardware-enablement and critical (HWCR) patches, diagnostic products and COD Client Product for HP-UX 11.0 
    Software Selection: Select needed mass-storage and networking I/O driver products.
    Languages: Click the Languages button to view CDE-languages bundles to be loaded.
     Global is set by default when installing on workstations, resulting in all available CDE-language bundles being installed. Global (Non-CDE) is set when installing on servers to indicate that a generic, CDE-language bundle will be installed.
  14. ____ Review any messages that Ignite-UX encountered. Resolve any errors before continuing with the installation.
  15. ____ Select: Finish
  16. ____ The system will now configure the disk(s) and load a minimum set of commands and libraries. Software Distributor will  download all the products and patches from the CD.
  17. ____ As prompted, replace the HP-UX 11.0 Install/Update/Recovery CD with the requested CD from the media box.
  18. ____ The system will automatically reboot after all software has been loaded.
  19. ____ Set_parms will run and asked you to set
root password
date,
time,
time zone,
IP address
other network parameters.

Helping  Other  People  Excel





Tuesday, April 5, 2011

MIRRORING ROOT VOLUME in HP-UX

MIRRORING THE ROOT VOLUME 

1. First create a bootable logical volume disk. 

2. Mirror the root logical volume to new disk: 
#lvextend –m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0 

3. Mirror the Primary Swap area: 
Lvextend –m 1 /dev/vg00/prswaplv /dev/dsk/c0t1d0 

4. Verify the LVM was updated: 
#lvlnboot –v 

BREAKING A MIRROR FOR BACKUP PURPOSES 

Mirrors are created and broken from an lvol level. Remember this. If you want to break the mirror for /dev/vg00/lvol1 which may be mounted at / do the following: 

#lvsplit /dev/vg00/lvol1      
This will by default create a
new, unmounted lvol called lvol1b. You could also do the following: 

#lvsplit –s backup /dev/vg00/lvol1    
This does the same, but names it lvol1backup  
Mount the new lvol to what ever you want, and back it up. 

REMIRRORING AFTER BACKUP 

After you are finished, you must remirror and sync with existing and new data created on The active mirror.  Use this command (using the lvol1b from example above): 
#lvmerge /dev/vg00/lvolb /dev/vg00/lvol1 

REMOVING A MIRROR (SO YOU CAN PULL A DRIVE) 

1. You must first remove the association between each lvol associated with the drive. Use the following command to view the current mirrored lvol’s: 
#lvlnboot –v 

2. Break the mirror and remove the pv/lvol association for each lvol. 
This example removes PV /dev/dsk/c1t0d0 from /dev/vg00/lvol2, and lvol3. Assuming that there was only 1 other disk in the mirror set: 

#lvreduce –m 0 /dev/vg00/lvol2 /dev/dsk/c1t0d0
#lvreduce –m 0 /dev/vg00/lvol3 /dev/dsk/c1t0d0 

EXTENDING EXISTING FILE SYSTEMS ONLINE IN HP-UX


EXTENDING ONLINE JFS FILESYSTEMS
If you want to extend /usr from 300MB to 600MB, and there is available space, do the following:
              
1. Determine lvol # of /usr. Type: 

#bdf

Make note of the lvol that is mounted to /usr.

2. Increase lvol6 to 600MB:  
/sbin/lvextend -L 600 /dev/vg00/lvol6 (-L is new size in MB)


3. Extend the file system using OnlineJFS:         
#/sbin/fsadm –F vxfs –b 600m /usr (m is for MB)


In this example you want to extend /usr from 300MB to 600MB but there is no available space in the volume group that the /usr filesystem is on. In this case you would 
extend the volume group, then the logical volume, and finally the filesystem.

1. If adding disk online (disk array), create device files:   

#insf –e   (verify  #ioscan –fnC disk) 


2. Prepare disks for Logical Volume Manager (LVM) structures:    
#pvcreate /dev/rdsk/???


3. Make space available for volgroup:     
#vgextend /dev/vg00 /dev/dsk/c?d?s?


4. Increase lvol6 to 600MB:  
/sbin/lvextend -L 600 /dev/vg00/lvol6 (-L is new size in MB)


5. Extend the file system using OnlineJFS:         
#/sbin/fsadm –F vxfs –b 600m  /usr  (m is for MB)

EXTENDING EXISTING FILE SYSTEMS (If Non ONLINE JFS)

If you want to extend /usr from 300MB to 600MB, and there is available space, do the following:
  a. Determine lvol # of /usr. Type:

#bdf

Make note of the lvol that is mounted to /usr. 
b. Unmount the file system.
    
#umount /usr      

If you run into problems you may have to boot into single user mode, or you may need to kill all processes associated with /usr.

#fuser –k /usr

c. Increase lvol6 to 600MB: 

#/sbin/lvextend -L 600 /dev/vg00/lvol6

d. Resize the file system to size of lvol6          
#/sbin/extendfs /dev/vg00/rlvol6

e. Now mount the file system:           
#/sbin/mount /dev/vg00/lvol6 /usr

f. Make sure changes took effect using bdf.

g. If you are in single user mode, type the following to get to run-level 3:

#init 3
         

CREATING A BOOT DISK – ROOT VOLUME in HP-UX SERVER

CREATING A BOOT DISK – ROOT VOLUME in HP-UX SERVER 


1. First create a bootable logical volume disk. 
#pvcreate –B /dev/rdsk/c0t1d0  


2. Add the PV to vg00. 
#vgextend /dev/vg00 /dev/dsk/c0t1d0
 

3. Place Boot Utilities on disk:   
#mkboot /dev/rdsk/c0t1d0 


4. Add the AUTO File to the LIF area:  
#mkboot –a “hpux –lq (;0)/stand/vmunix” /dev/rdsk/devicefile