歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 近期HP-UX的一些問題的總結

近期HP-UX的一些問題的總結

日期:2017/3/6 15:46:18   编辑:關於Unix
作者:albert 1、請問HP-UX是不是只能在HP的 UNIX 機上用的操作系統啊? 回答:它只能運行在HP的精簡指令級硬件平台上,除了PA-RISC系列,部分HP-UX支持64bit的Itanium系列都可以。 2、如何在 unix 下看cpu的速率和硬盤的大小,命令是什麼? 回答:diskinfo
  作者:albert
  
  1、請問HP-UX是不是只能在HP的UNIX機上用的操作系統啊?
  回答:它只能運行在HP的精簡指令級硬件平台上,除了PA-RISC系列,部分HP-UX支持64bit的Itanium系列都可以。
  
  2、如何在unix下看cpu的速率和硬盤的大小,命令是什麼?
  回答:diskinfo /dev/rdsk/c0t0d0 (硬盤大小)
  SAM--> Performance Monitor -> System Property
  
  
  3、怎麼在hp-ux下做磁盤鏡像?
  回答:A.鏡像前的情況:
   .先確定如下情況:
   主磁盤是: /dev/dsk/c1t4d0
   鏡像的磁盤是: /dev/dsk/c2t4d0
   (用命令“ ioscan –fnC disk”可以查看)
   確定系統是否安裝MirrorDisk/UX:用“swinstall –l bundle”查看
   B.鏡像的步驟:
   .使用參數“-B”創建一個用於鏡像的可引導的LVM磁盤:
   pvcreate -f -B /dev/dsk/c2t4d0
   .將上一步LVM磁盤添加到根卷組中:
   vgextend /dev/vg00 /dev/dsk/c2t4d0
   .將新磁盤制作成引導磁盤,需要注意的是要使用字符設備:
   mkboot /dev/rdsk/c2t4d0
   .將鏡像到可引導的磁盤。要確保vg00中的所有設備均已鏡像,即在所有的lv0l1到 lv0lx上執行命令lvextend,要確保lv0l1是鏡像的第一邏輯卷。若lv0l1不是第一邏輯卷,系統就不能鏡像啟動。
   lvextend -m 1 /dev/vg00/lv0l1 /dev/dsk/c2t4d0
   lvextend -m 1 /dev/vg00/lv0l2 /dev/dsk/c2t4d0
   lvextend -m 1 /dev/vg00/lv0l3 /dev/dsk/c2t4d0
   lvextend -m 1 /dev/vg00/lv0l4 /dev/dsk/c2t4d0
   ………
   .拷貝正確的AUTO文件到新的LIF區,注意使用字符設備:
   mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c1t4d0
   mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c2t4d0
  
   .指定引導邏輯卷、根邏輯卷、主交換邏輯卷(用swapinfo確定交換邏輯卷在什麼地方)、轉儲邏輯卷,為根和交換鏡像拷貝更新包含在BDRA中等啟動信息:
   lvlnboot -b /dev/vg00/lvol1
   lvlnboot -r /dev/vg00/lvol3
   lvlnboot -s /dev/vg00/lvol2
   lvlnboot -d /dev/vg00/lvol2
   .恢復所有的BDRA信息:
   lvlnboot -R
  
   .確定引導邏輯卷、根邏輯卷、主交換邏輯卷以及轉儲邏輯卷的設置:(檢查鏡像正確與否)
   lvlnboot -v
   .顯示當前的主引導路徑和替代引導路徑:
   setboot
  
  
  4、關於autofs和automounter的區別
  回答:AUTOFS
   One set-on/off variable.
   The /usr/sbin/automount script checks the AUTOFS variable in
   /etc/rc.config.d/nfsconf. If the AUTOFS variable is set to one, then
   /usr/lib.netsvc/fs/autofs/automount is executed.
  automounter (old)
  autofs (new)
   They are two versions of automount.
   In future releases, only the autofs version of automount will be
   supported.
  automount
   automount - install automatic mount points or automatically
   mount NFS file systems
  automountd
   automountd - autofs mount/unmount daemon
   The autofs filesystem monitors attempts to aclearcase/" target="_blank" >ccess directories within it and notifies the automountd daemon to mount the autofs filesystem.
   If the file system is not accessed within an appropriate interval,
   the automountd daemon unmounts the file system.
  
  
  5、如何查看IP?
  回答:使用netstat –in
  
  
  6、如何查看內存?
  回答:1、使用dmesg
   2、SAM--> Performance Monitor -> System Property->m
  
  

Copyright © Linux教程網 All Rights Reserved