文档介绍:惠普UNIX 硬盘和LVM管理介绍
邓攀
pan_deng@
中国惠普有限公司
2004年8月
什么是 Logical Volume Manager?
disc MANAGEMENT subsystem
NOT a filesystem
application
device
file
disc
driver
LVM
HP-UX kernel
LVM原理
physical volumes
物理卷
对应单个硬盘或磁盘阵列柜里的LUN
Volume group
卷组
Logical volumes
逻辑卷
VG01
VG01
lvol1
/dev/rdsk/c0t0d0
/dev/rdsk/c0t1d0
lvol3
lvol2
磁盘使用分类1 :内置或外置磁盘
内置硬盘和单独的外置磁盘或无raid功能的磁盘柜:
A3312 SC10
磁盘使用分类2: SCSI磁盘阵列柜
外置的SCSI磁盘阵列柜:
AutoRaid
使用iosan等命令只能看到控制器和LUN(logic unit)。如果需要查看具体的物理硬盘信息,可使用以下命令:
#arraydsp –i(显示autoraid 序列号)
Arrays known to the ARMServer:
arrays with S/N: 000000786B74
#arraydsp –a <S/N>(显示autoraid相关部件全部信息)
磁盘使用分类3:光纤磁盘阵列柜1
惠普外置的光纤磁盘阵列柜最主要有两种:
FC60: VA系列(VA7110,VA7410等)
磁盘使用分类3:光纤磁盘阵列柜2
使用ioscan等命令只能看到控制器和LUN(logic unit)。如果需要查看具体的物理硬盘信息,可使用以下命令:
FC60:
#amdsp –i(显示FC60序列号)
#amdsp -a <S/N>(显示FC60相关部件全部信息)
VA系列
#armdsp –i(显示FC60序列号)
#armdsp -a <S/N>(显示FC60相关部件全部信息)
使用ioscan查看外设
# ioscan –f
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
root 0 root CLAIMED BUS_NEXUS
cell 0 0 cell CLAIMED BUS_NEXUS
ioa 0 0/0 sba CLAIMED BUS_NEXUS SBA
ba 0 0/0/0 lba CLAIMED BUS_NEXUS LBA
lan 0 0/0/0/1/0 gelan CLAIMED INTERFACE 1000Base-T
ext_bus 0 0/0/0/2/0 c720 CLAIMED INTERFACE SCSI Fast Wide
disk 0 0/0/0/2/ sdisk CLAIMED DEVICE HP Disk
ctl 0 0/0/0/2/ sctl CLAIMED DEVICE Initiator
# ioscan # short listing of all devices
# ioscan -f # full listing of all devices
# ioscan -kf # full listing, using cached information
# ioscan -fH 0/0/0/1/0 # full listing of device at 0/0/0/1/0
# ioscan -fC disk # full listing of "disk" class devices
上表中的I(红色)是Instance,是按照硬件加入顺序顺序生成的,一旦生成就不会自动改变
使用ioscan查看相关设备文件
# ioscan -fun list all devices and device files
# ioscan -funC disk list all disk devices and device files
# ioscan -funC tape list all tape drives and device files
# ioscan –funH 0/0/1/0/ list all device files for the device at 0/0/1/0/
Class I
tape 1
Descriptio