Table of Contents

HP-UX

Software Management

cmviewcl

cmrunpkg
cmhaltpkg
cmmodpkg -e
cmcheckconf -P
cmapplyconf -P 
cmcheckconf -v -K -C tsmbcicl.ascii
cmcheckconf -v -C tsmbcicl.ascii
cmcheckconf -v -k -C tsmbcicl.ascii

tsm1: /root# cat env_tsm1

  export DSMSERV_DIR=/opt/tivoli/tsm/server/bin
  export DSMSERV_CONFIG=/tsm1/server/dsmserv.opt
  cd /tsm1/server
  tsm1: /root# cat mount_tsm1
  #!/bin/sh
  vgchange -a e /dev/vgxy
  ...
  mount /dev/vgxy/lvoly /tsm1
  mount /dev/vgxy/lvolx /tsm1/server
  mount -o largefiles /dev/vgxy/lvol1 /tsm1/db
  mount -o largefiles /dev/vgyz/lvol1 /tsm1/recoverylog
  mount -o largefiles /dev/vgab/lvol1 /tsm1/recoverylog2
  mount -o largefiles /dev/vgcb/lvol1 /tsm1/disk
  tsm1: /root# cat umount_tsm1
  #!/bin/sh
  umount /tsm1/server    
  umount /tsm1/db
  umount /tsm1/recoverylog
  umount /tsm1/recoverylog2
  umount /tsm1/disk
  umount /tsm1
  vgchange -a n /dev/vgxy
  vgchange -a n /dev/vgyz
  vgchange -a n /dev/vgav
  vgchange -a n /dev/vgcb

ioscan -fnkC autoch

TSM-Server Software Upgrade

Beispielhafte Zusammenstellung verfügbarer Pakete

TIVsmS64.server 	        PA-RISC 64 bit server
TIVsmS64.license 	        PA-RISC 64 bit license enablement
TIVsmS64IA.server 	        Itanium® 64 bit server
TIVsmS64IA.license 	        Itanium 64 bit license enablement
TIVsmHsta64.storage_agent 	PA-RISC 64 bit storage agent
TIVsmHstaIA.storage_agent 	Itanium 64 bit storage agent
TIVsmDD64_PA11_23.tsmscsi 	Tivoli Storage Manager device driver for 64 bit 11.23 PA-RISC OS
TIVsmDD64_IA11_23.tsmscsi 	Tivoli Storage Manager device driver for 64 bit 11.23 Itanium OS

Eine Liste aller installierten Tivoli Pakete

cbbtsm1: /root# swlist | grep TIV
  TIVsm64                               5.5.0          IBM Tivoli Storage Manager Client
  TIVsmS64IA                            5.4.0.0        IBM Tivoli Storage Manager Server
  TIVsmS64IA                            5.4.5.1        IBM Tivoli Storage Manager Server

Datenbank und Konfiguration sichern

backup db type=full devclass=tape_device_class scratch=yes 

Notieren welche Pakete wo laufen

cmviewcl

Pakete anhalten

cmhaltpkg $paketname

Entfernen der Server-Installation

swremove TIVsmS64,r=5.4.5.1
swremove TIVsmS64

Installieren der Neuen Version (je ein Befehl für 5.5.0.0, 5.5.4.0, 5.5.4.2)

swinstall -s /pfad/zur/datei/ -x ask=as_needed  TIVsmS64

Vor jedem dsmsrv start müssen die Filesysteme gemoutet werden und die Umgebungswvariablen angepasst werden. Die nötigen Dateien liegen unter /var/hzd/admin/tsm/

/root/tsm/mount_tsmx
/root/tsm/tsmx_env
/root/tsm/umount_tsmx

Erstmaliges manuelles starten des Servers

./dsmserv -upgradedb

Bei Versionssprung:

register licence /opt/tivoli/tsm/server/bin/tsmee.lic

Nachdem alle Clusterknoten und alle Clusterpakete fertig sind können diese wieder per Clustermanager gestartet werden

cmrunpkg $paketname

Pakete auf autostart setzen

cmmodpkg -e $paketname

ioscan -fNC $class where class in lsdev For HDD

  ioscan -nfC disk

For tape drive

  ioscan -nfC tape

For LAN - Ethernet Card

  ioscan -nfC LAN

For FC - Fiber Channel

  ioscan -nfC FC

WWNs herausbekommen: unixha1:/root# ioscan -knfC fc Class I H/W Path Driver S/W State H/W Type Description

fc 0 0/2/1/0 fcd CLAIMED INTERFACE HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)

                    /dev/fcd0

fc 1 0/2/1/1 fcd CLAIMED INTERFACE HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)

                    /dev/fcd1

fc 2 0/3/2/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter

                    /dev/td2

fc 3 0/4/2/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter

                    /dev/td3

fc 4 0/5/1/0 fcd CLAIMED INTERFACE HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)

                    /dev/fcd4

fc 5 0/5/1/1 fcd CLAIMED INTERFACE HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)

                    /dev/fcd5

fcmsutil /dev/fcd1 (vpd)

vgcreate -V 2.0 -S 1t -s 4m vg01

Additional Swap Space

Quelle: http://h30499.www3.hp.com/t5/System-Administration/HOW-TO-INCREASE-SWAP-SPACE/td-p/5220211#.UbWaF9hvfzI

‎01-19-2010 09:19 AM Hi Eric:

You don't need to extend primary swap — and as you have found, you can't easily do it. Generally you would re-ignite your server and choose a larger primary swap then.

Device swap space must be allocated contiguously. That is, without intervening disk extents used or free for another logical volume.

All this is moot. All you need to do is allocate secondary device swap somewhere. Whether or not it resides on vg00 is immaterial.

Secondary or primary device swap are equivalent. Simply add secondary device swap.

Do something like:

# lvcreate -C y -r n -L 32768 -n lvolN /dev/vgXX # swapon -p /dev/vgXX/lvolN

See the manpages for more information. You can do this without a reboot. Remember to add activation of the secondary device swap so built to '/etc/fstab':

/dev/vgXX/lvolN … swap pri=0 0 0

As you can see, the secondary device swap can be on any volume group you choose.

Regards!

…JRF…

devices: 10003 vgdisplay -v vg08 10004 pwe 10005 pwd 10006 ioscan -m lun > lun.out 10007 vi lun.out 10008 ioscan -m dsf 10009 vi lun.out 10010 ioscan -hw_path -H 64000/0xfa00/0x186 10011 ioscan -m hwpath -H 64000/0xfa00/0x186

swlist | grep OE model machinfo ioscan -fnH “legacy hardware path” ioscan -Cdisk ↔ ioscan -NCdisk

# ioscan -NCdisk H/W Path Class Description

64000/0xfa00/0x1 disk HP HSV200 64000/0xfa00/0x2 disk HP HSV200 64000/0xfa00/0x3 disk HP HSV200 64000/0xfa00/0x4 disk HP HSV200 64000/0xfa00/0x5 disk HP 36.4GST336753LC 64000/0xfa00/0x6 disk HP 73.4GST373454LC 64000/0xfa00/0x7 disk HP 73.4GST373454LC 64000/0xfa00/0x8 disk TEAC DV-28E-C

ioscan -uC disk (u = usable = kein echter scan)

# ioscan -m hwpath -H 0/4/1/0.6.37.0.0.0.4 Lun H/W Path Lunpath H/W Path Legacy H/W Path

64000/0xfa00/0x4

                0/4/1/0.0x50001fe1501077ad.0x4004000000000000   0/4/1/0.6.37.0.0.0.4

Physik zur Logik: # ioscan -m lun -H 64000/0xfa00/0x4 Class I Lun H/W Path Driver S/W State H/W Type Health Description

disk 79 64000/0xfa00/0x4 esdisk CLAIMED DEVICE online HP HSV200

           0/3/1/0.0x50001fe1501077ac.0x4004000000000000
           0/3/1/0.0x50001fe1501077ad.0x4004000000000000
           0/3/1/0.0x50001fe1501077a8.0x4004000000000000
           0/3/1/0.0x50001fe1501077a9.0x4004000000000000
           0/4/1/0.0x50001fe1501077ac.0x4004000000000000
           0/4/1/0.0x50001fe1501077ad.0x4004000000000000
           0/4/1/0.0x50001fe1501077a8.0x4004000000000000
           0/4/1/0.0x50001fe1501077a9.0x4004000000000000
                    /dev/disk/disk79   /dev/rdisk/disk79

Get legacy pathes to agile device: # ioscan -m dsf /dev/disk/disk79 Persistent DSF Legacy DSF(s)

/dev/disk/disk79 /dev/dsk/c9t0d4

                       /dev/dsk/c11t0d4
                       /dev/dsk/c5t0d4
                       /dev/dsk/c7t0d4
                       /dev/dsk/c17t0d4
                       /dev/dsk/c19t0d4
                       /dev/dsk/c13t0d4
                       /dev/dsk/c15t0d4

root@rx26-137 [/root] # ioscan -m dsf /dev/dsk/c9t0d4 Persistent DSF Legacy DSF(s)

/dev/disk/disk79 /dev/dsk/c9t0d4

GET WWIF FOR DISK # scsimgr get_attr -a wwid -D /dev/rdisk/disk79

      SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk79

name = wwid current = 0x600508b40007551c0000f00043260000 default = saved =

IOFIND output. Preview list of … SUMMARY:


Legacy dsf list : /var/adm/iofind/logs/093013_070610/pathDSFlist.txt Files matching legacy dsfs : /var/adm/iofind/logs/093013_070610/dsf_match_files.txt Device file mapping : /var/adm/iofind/logs/093013_070610/DSFmapping.txt Files searched upon for legacy : None. iofind file search exclusion list : /var/adm/iofind/cfg/iofind_exclude.cfg Summary log : /var/adm/iofind/logs/093013_070610/summary.txt

UPDATES: Software.hp.com

# iofind -n -i /tmp/DSFs -R -p

specified this could take a long time. Note that, directories

 and files specified in /var/adm/iofind/cfg/iofind_exclude.cfg
 will be omitted during search. You may edit and customize
 as you need.
  The following occurrences of /dev/dsk/c5t0d1 was found in file /tmp/DSFs:
  FileName:Line Number: Matching Pattern
  ______________________________________
  /tmp/DSFs:3:/dev/dsk/c5t0d1

Do you want iofind to replace /dev/dsk/c5t0d1 with /dev/disk/disk76 :(Y)Yes;(N)No;Q(Quit) ?

Do you want iofind to replace /dev/dsk/c5t0d1 with /dev/disk/disk76 :(Y)Yes;(N)No;Q(Quit) ?

Do you want iofind to replace /dev/dsk/c5t0d1 with /dev/disk/disk76 :(Y)Yes;(N)No;Q(Quit) ?Y

Replaced /dev/dsk/c5t0d1 with /dev/disk/disk76 in file /var/adm/iofind/logs/093013_081520/preview//tmp/DSFs
  The following occurrences of /dev/dsk/c7t0d1 was found in file /tmp/DSFs:
  FileName:Line Number: Matching Pattern
  ______________________________________
  /tmp/DSFs:7:/dev/dsk/c7t0d1

Do you want iofind to replace /dev/dsk/c7t0d1 with /dev/disk/disk76 :(Y)Yes;(N)No;Q(Quit) ?Y

Replaced /dev/dsk/c7t0d1 with /dev/disk/disk76 in file /var/adm/iofind/logs/093013_081520/preview//tmp/DSFs
  The following occurrences of /dev/dsk/c9t0d1 was found in file /tmp/DSFs:

# drd clone -t /dev/disk/disk87

======= 09/30/13 08:12:29 EDT BEGIN Clone System Image (user=root) (jobid=rx26-137)

======= 09/30/13 08:44:23 EDT END Clone System Image succeeded. (user=root) (jobid=rx26-137)

root@rx26-137 [/root] # drd status

======= 09/30/13 08:46:35 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=rx26-137)

======= 09/30/13 08:46:50 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=rx26-137)

scsimgr get_stat -C disk -I 52 scsimgr inquiry -C disk -I 52

while bdf do sleep 5 done

/etc/autoparms.log

Errors für devices auslesen

Alle LUNs:

  scsimgr get_stat all_lun |grep -e LUN -e failures |more

oder einzelne devices:

  scsimgr get_stat -D /dev/rmt/j1a_03_e10 all_lpt 
  
  
  
  

ioscan -kfnC fc

The devices on my system are /dev/td0, etc. To show info including WWN, run:

  /opt/fcms/bin/fcmsutil /dev/td0