You cannot see this page without javascript.

진주성 블로그 방문하기

기술문서 HP-UX 유지보수 방안

2017.09.02 18:19

gupy1004 조회 수:2310

Troubleshooting/Maintenance of  HP-UX


정보 수집과 문제 확인 방법 :

  • dmesg  --> 부팅되고 현재 발생되는 에러 내용 확인
  • /var/adm/syslog/syslog.log  -->  system log
  • /opt/resmon/log/error.log  -->
  • /etc/shutdownlog  --> shutdown information
  • /etc/rc.log  -->  system startup log
  • /var/tombstones/ts99  --> crash analysis file
  • cstm  -  command line support tool manager
  • mstm  -  menu based support tool manager
    • <alt><underlined letter of command>
    • <tab>  -->  to move to another portion of the screen, such as the drop down menu area
  • Service Processor
    • <ctrl> + <b> from a serial console
    • he  - help
    • co  - return to console mode (exits the program)
    • sl  - show log



패닉 발생및 리부팅시

Check these files for clues:

  • /var/tombstones/ts99
  • /etc/shutdownlog


Bad disk

1.  Check the syslog (/var/adm/syslog/syslog.log) looking for disk errors.
2.  Check the ioscan (ioscan -fnC disk), looking for NO_HW rather than Claimed.
3.  If diaglogd is running then check STM logs (/var/opt/resmon/log/event.log)
4.  Check the volume group to see if the disk is listed and whether there is any problem  with it's status (vgdisplay -v | more)
5.  Check lvmtab to see if the disk is supposed to be in a volume group (strings /etc/lvmtab | more)

리부팅후 파일시스템 마운트 문제

1.  Reactivate the Volume Group  -->  vgchange -a y /dev/<volume group>
2.  Remount the filesystems  -->  mount -a
3.  If still no success then perform a filesystem check  -->  fsck /dev/<volumegroup>/<logicalvolume>
4.  Remount the filesystems  -->  mount -a
5.  Check to see if all the filesystems are there:
          a)  bdf
          b)  compare with /etc/fstab

파일시스템 full

du -kx / | sort -rn | more
du -akx | sort -nr | more

Shows directories on the local filesystem and how much space they are taking up

NFS 마운트 - Permission Denied

1.  Check to see if the format of the /etc/exports file is correct on the server that is the nfs server.

2.  exportfs -av to export the filesystem

3.  Check the /etc/fstab file on the client to make sure that it is correct

4.  /usr/sbin/showmount -e <server>  on the client to show what is being exported

5.  To bypass the /etc/exports file execute the following on the nfs server:     exportfs -i -o rw <filesystem>.


NFS Server 기동 문제

/etc/rc.config.d/nfsconf  --> NFS_SERVER=1

Verify the proper processes are running:

/sbin/init.d/nfs.server stop

The processes should NOT be running:

# ps -ef|grep nfsd
# ps -ef|grep rpc.mountd
# ps -ef|grep rpc.lockd
# ps -ef|grep rpc.statd

/sbin/init.d/nfs.server start

아래 데몬들이 실행 되고 있는지 확인:

# ps -ef|grep nfsd
    root  3444     1  0 10:39:12 ?         0:00 /usr/sbin/nfsd 4
    root  3451  3444  0 10:39:12 ?         0:00 /usr/sbin/nfsd 4
    root  3449  3444  0 10:39:12 ?         0:00 /usr/sbin/nfsd 4
    root  3445  3444  0 10:39:12 ?         0:00 /usr/sbin/nfsd 4
# ps -ef|grep rpc.mountd
    root  3485     1  0 10:42:09 ?         0:00 rpc.mountd
# ps -ef|grep rpc.lockd
    root  3459     1  0 10:39:12 ?         0:00 /usr/sbin/rpc.lockd
# ps -ef|grep rpc.statd
    root  3453     1  0 10:39:12 ?         0:00 /usr/sbin/rpc.statd


NFS를 사용하기 위해서는 아래 프로세서가 실행 되고 있는지 확인:

# ps -ef|grep rpc.mountd
# rpc.mountd   or  /usr/sbin/rpc.mountd
# ps -ef|grep rpc.mountd
    root  3485     1  0 10:42:09 ?         0:00 rpc.mountd


/etc/inetd.conf needs to have the proper services active (not commented out)

##
# WARNING: The rpc.mountd should now be started from a startup script.
#          Please enable the mountd startup script to start rpc.mountd.
##
#rpc  stream tcp  nowait  root  /usr/sbin/rpc.rexd     100017  1    rpc.rexd
rpc  dgram  udp  wait    root  /usr/lib/netsvc/rstat/rpc.rstatd   100001  2-4  rpc.rstatd
rpc  dgram  udp  wait    root  /usr/lib/netsvc/rusers/rpc.rusersd  100002  1-2  rpc.rusersd
rpc  dgram  udp  wait    root  /usr/etc/rpc.mountd  100005  1  rpc.mountd -e
rpc  dgram  udp  wait    root  /usr/lib/netsvc/rwall/rpc.rwalld   100008  1    rpc.rwalld
#rpc  dgram  udp  wait    root  /usr/sbin/rpc.rquotad  100011  1    rpc.rquotad
rpc  dgram  udp  wait    root  /usr/lib/netsvc/spray/rpc.sprayd   100012  1    rpc.sprayd



랜카드 문제:

The lanadmin utility provides NIC statistics
The nettladmin utility provides packet trace information


미러링된 디스크 교체:

  • Replace the disk
    • Hot swap can be performed while system is up
    • Not hot swappable means the system must be brought down
  • Reboot the system into single user mode
    • shutdown -r 0, unless the system is powered off already, then power it back on
    • interrupt the boot
    • bo pri (or bo alt if the disk that was replaced was the primary boot disk)
    • IPL>hpux -is -lq (;0)/stand/vmunix
  • vgcfgrestore -n /dev/vg00 /dev/rdsk/c?t?d?
  • vgsync /dev/vg00
  • mkboot /dev/rdsk/c?t?d?
  • mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c?t?d?
  • shutdown -r 0
  • lvlnboot -v /dev/vg00  to verify that the disk is seen as bootable

 

소프트웨어 설치 이슈(swinstall, sd, etc)

    ERROR:   "server::/tmp/omni_tmp/packet":  You do not have the
         required permissions to perform this operation.  Check
         permissions using the "swacl" command or see your system
         administrator for assistance.  Or, to manage applications
         designed and packaged for nonprivileged mode, see the
         "run_as_superuser" option in the "sd" man page.
WARNING: More information may be found in the daemon logfile on this
         target (default location is
         server:/var/adm/sw/swagentd.log).

Bounce swagentd daemon:  /usr/sbin/swagentd -r

 

진주성 블로그 방문하기
CLOSE