首页>
技术资讯>
详情

近期HP-UX的一些问题的总结

2016-05-31 来源:CloudBest 阅读量: 3,275
关键词:


  作者: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 access 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
  
  

热门推荐 查看更多