HPUX 11.31永久设备文件名相关命令及用法
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
HPUX 11.31永久设备文件名相关命令及用法
最经在网上看到有人对HPUX 11.31永久设备文件名的相关命令及用法进行介绍,觉得总结得不错并且精简适用,摘抄下来供兄弟们参考:
V3版本的一个最大的变化就是磁盘设备名(device special file-DSF) 的变化,采用简洁的称为永久设备名(Persistent device special files),即类似于Tru64及AIX的diskn的名称方式,尽管为了兼容性,还保留了传统的硬件路径式的命名方式(即cXtYdZ)。下面介绍针对永久设备名的出现几个命令的使用。
一、ioscan的用法
# ioscan -N –fknCdisk 显示永久设备名
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE TEAC DV-28E-
C
/dev/disk/disk2 /dev/rdisk/disk2
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 36.4GST33675
3LC
/dev/disk/disk3 /dev/rdisk/disk3
/dev/disk/disk3_p1 /dev/rdisk/disk3_p1
/dev/disk/disk3_p2 /dev/rdisk/disk3_p2
/dev/disk/disk3_p3 /dev/rdisk/disk3_p3
disk 5 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP 36.4GST33675
3LC
/dev/disk/disk5 /dev/rdisk/disk5
# ioscan -m lun 显示永久设备名
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE online TEAC
DV-28E-C
0/0/2/0.0.0x0.0x0
/dev/disk/disk2 /dev/rdisk/disk2
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE online HP 36.4
GST336753LC
0/1/1/0.0x1.0x0
/dev/disk/disk3 /dev/rdisk/disk3
/dev/disk/disk3_p1 /dev/rdisk/disk3_p1
/dev/disk/disk3_p2 /dev/rdisk/disk3_p2
/dev/disk/disk3_p3 /dev/rdisk/disk3_p3
disk 5 64000/0xfa00/0x5 esdisk CLAIMED DEVICE online HP 36.4
GST336753LC
0/1/1/1.0x2.0x0
/dev/disk/disk5 /dev/rdisk/disk5
/dev/disk/disk5_p2 /dev/rdisk/disk5_p2
/dev/disk/disk5_p3 /dev/rdisk/disk5_p3
# ioscan -m dsf 查看永久设备名和旧设备名之间的对应关系
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk2 /dev/rdsk/c0t0d0
/dev/rdisk/disk3 /dev/rdsk/c2t1d0
/dev/rdisk/disk3_p1 /dev/rdsk/c2t1d0s1
/dev/rdisk/disk3_p2 /dev/rdsk/c2t1d0s2
/dev/rdisk/disk3_p3 /dev/rdsk/c2t1d0s3
/dev/rdisk/disk5 /dev/rdsk/c3t2d0
# ioscan -P health -C disk检查磁盘online状态
Class I H/W Path health
===============================
disk 2 64000/0xfa00/0x0 online
disk 3 64000/0xfa00/0x1 online
disk 5 64000/0xfa00/0x5 online
二、取消或恢复旧设备命
# rmsf –L 取消旧设备命
WARNING: This command may be disruptive to the system.
Before running this command, make sure you have first run
iofind(1M) and migrated all applications using legacy device
special files. Please refer to the man page of rmsf(1M) to
verify the possible side effects of the option '-L'.
Do you want to continue ?
(You must respond with 'y' or 'n'.): y
rmsf: Legacy mode has been successfully disabled
# ioscan -funCdisk
# insf –L 恢复旧设备名
This command will re-install all legacy I/O nodes and legacy DSFs.
Do you want to continue ?
(You must respond with 'y' or 'n'.): y
insf: Legacy mode has been successfully enabled
# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================= disk 1 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2