User Tools

Site Tools


hp_ux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hp_ux [2010/12/16 13:01] michaelhp_ux [2021/04/24 07:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== HP-UX ====== ====== HP-UX ======
  
 +[[Software Management]]
 +
 +  * Verzeichnis der allgemeinen Cluster-Config: /etc/cmcluster.conf
   * Verzeichnis der Pakete:  /etc/cmcluster/   * Verzeichnis der Pakete:  /etc/cmcluster/
   * Linux TOP -> UNIX Glance   * Linux TOP -> UNIX Glance
Line 9: Line 12:
   cmhaltpkg   cmhaltpkg
   cmmodpkg -e   cmmodpkg -e
 +  cmcheckconf -P
 +  cmapplyconf -P 
 +  cmcheckconf -v -K -C tsmbcicl.ascii
 +  cmcheckconf -v -C tsmbcicl.ascii
 +  cmcheckconf -v -k -C tsmbcicl.ascii
  
   * Cluster-Pakete schwenken    * Cluster-Pakete schwenken 
Line 82: Line 90:
  
 Vor jedem dsmsrv start müssen die Filesysteme gemoutet werden und die Umgebungswvariablen angepasst werden. Vor jedem dsmsrv start müssen die Filesysteme gemoutet werden und die Umgebungswvariablen angepasst werden.
-Die nötigen Dateien liegen unter /root/tsm/+Die nötigen Dateien liegen unter /var/hzd/admin/tsm/
   /root/tsm/mount_tsmx   /root/tsm/mount_tsmx
   /root/tsm/tsmx_env   /root/tsm/tsmx_env
Line 102: Line 110:
   * ioscan   * ioscan
  
-ioscan -fNC$class where class in lsdev+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      H/W Path  Driver S/W State   H/W Type     Description 
 +================================================================ 
 +fc        0  0/2/1/  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/  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/  td    CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter 
 +                      /dev/td2 
 +fc        3  0/4/2/  td    CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter 
 +                      /dev/td3 
 +fc        4  0/5/1/  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/  fcd   CLAIMED     INTERFACE    HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2) 
 +                      /dev/fcd5 
 + 
 + 
 +fcmsutil /dev/fcd1 (vpd) 
 + 
  
   * LVM   * LVM
Line 109: Line 148:
  
  
 +===== 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      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
 +
 +  *Creating the files to search upon. Based on the directory
 +   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.
 +
 +  *Compiling device file list.
 +
 +  *Beginning the device file search.
 +
 +    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)
 +
 +       * Reading Current System Information
 +       * Selecting System Image To Clone
 +       * Selecting Target Disk
 +       * Selecting Volume Manager For New System Image
 +       * Analyzing For System Image Cloning
 +       * Creating New File Systems
 +       * Copying File Systems To New System Image
 +       * Making New System Image Bootable
 +       * Unmounting New System Image Clone
 +
 +=======  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)
 +
 +       * Clone Disk:               /dev/disk/disk87
 +       * Clone EFI Partition:      AUTO file present, Boot loader present
 +       * Clone Rehost Status:      SYSINFO.TXT not present
 +       * Clone Creation Date:      09/30/13 08:12:41 EDT
 +       * Last Sync Date:           None
 +       * Clone Mirror Disk:        None
 +       * Mirror EFI Partition:     None
 +       * Original Disk:            /dev/disk/disk86
 +       * Original EFI Partition:   AUTO file present, Boot loader present
 +       * Original Rehost Status:   SYSINFO.TXT not present
 +       * Booted Disk:              Original Disk (/dev/disk/disk86)
 +       * Activated Disk:           Original Disk (/dev/disk/disk86)
 +
 +=======  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 
  
hp_ux.1292504487.txt.gz · Last modified: 2021/04/24 07:38 (external edit)