关于磁盘的一些问题,一致未解,求高手明示一下。
/dev/vg00
PE Size (Mbytes) 32
Total PE 4343
Alloc PE 2862
Free PE 1481
--- Physical volumes ---
PV Name /dev/disk/disk3_p2
PV Status available
Total PE 4343
Free PE 1481
4343*32 = 138 976 M
4343*32*1024 = 142 311 424 K
pvdisplay -v /dev/disk/disk3_p2 |more
Cur LV 12
PE Size (Mbytes) 32
Total PE 4343
Free PE 1481
Allocated PE 2862
ioscan -m dsf |grep disk3_p2
/dev/rdisk/disk3_p2 /dev/rdsk/c0t2d0s2
diskinfo /dev/rdsk/c0t2d0s2
# diskinfo /dev/rdsk/c0t2d0s2
SCSI describe of /dev/rdsk/c0t2d0s2:
vendor: HP
product id: IR Volume
type: direct access
size: 142332928 Kbytes
bytes per sector: 512
两台机器
HP-UX hp870yl1 B.11.31 U ia64 0244194684 unlimited-user license
对于两太机器上硬盘的情况有些不解的地方,请教一下大家。
root@hp870yl1[/] # ioscan -fnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 3 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP IR Volume
/dev/disk/disk3 /dev/disk/disk3_p2 /dev/rdisk/disk3 /dev/rdisk/disk3_p2
/dev/disk/disk3_p1 /dev/disk/disk3_p3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p3
disk 4 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP DG146BB976
/dev/disk/disk4 /dev/rdisk/disk4
disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP DG146BB976
/dev/disk/disk5 /dev/rdisk/disk5
disk 7 64000/0xfa00/0x7 esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk7 /dev/rdisk/disk7
disk 23 64000/0xfa00/0x8 esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk23 /dev/rdisk/disk23
disk 24 64000/0xfa00/0x9 esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk24 /dev/rdisk/disk24
disk 25 64000/0xfa00/0xa esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk25 /dev/rdisk/disk25
disk 26 64000/0xfa00/0xb esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk26 /dev/rdisk/disk26
disk 27 64000/0xfa00/0xc esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk27 /dev/rdisk/disk27
disk 28 64000/0xfa00/0xd esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk28 /dev/rdisk/disk28
disk 29 64000/0xfa00/0xe esdisk CLAIMED DEVICE NETAPP LUN
/dev/disk/disk29 /dev/rdisk/disk29
root@hp870yl1[/] # ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 2 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 0 0/2/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 1 0/2/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP IR Volume
/dev/dsk/c0t2d0 /dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s1 /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s1 /dev/rdsk/c0t2d0s3
disk 8 0/3/0/0/0/0.1.17.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 9 0/3/0/0/0/0.1.17.0.0.0.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d1 /dev/rdsk/c4t0d1
disk 10 0/3/0/0/0/0.1.17.0.0.0.2 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d2 /dev/rdsk/c4t0d2
disk 11 0/3/0/0/0/0.1.17.0.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d3 /dev/rdsk/c4t0d3
disk 12 0/3/0/0/0/0.1.17.0.0.0.4 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d4 /dev/rdsk/c4t0d4
disk 13 0/3/0/0/0/0.1.17.0.0.0.5 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d5 /dev/rdsk/c4t0d5
disk 14 0/3/0/0/0/0.1.17.0.0.0.6 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d6 /dev/rdsk/c4t0d6
disk 15 0/3/0/0/0/0.1.17.0.0.0.7 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c4t0d7 /dev/rdsk/c4t0d7
disk 6 0/3/0/0/0/1.1.17.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 16 0/3/0/0/0/1.1.17.0.0.0.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d1 /dev/rdsk/c2t0d1
disk 17 0/3/0/0/0/1.1.17.0.0.0.2 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d2 /dev/rdsk/c2t0d2
disk 18 0/3/0/0/0/1.1.17.0.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d3 /dev/rdsk/c2t0d3
disk 19 0/3/0/0/0/1.1.17.0.0.0.4 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d4 /dev/rdsk/c2t0d4
disk 20 0/3/0/0/0/1.1.17.0.0.0.5 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d5 /dev/rdsk/c2t0d5
disk 21 0/3/0/0/0/1.1.17.0.0.0.6 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d6 /dev/rdsk/c2t0d6
disk 22 0/3/0/0/0/1.1.17.0.0.0.7 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c2t0d7 /dev/rdsk/c2t0d7
root@hp870yl1[/] #
已 /dev/vgdata 为例。
root@hp870yl1[/] # vgdisplay -v /dev/vgdata |more
--- Volume groups ---
VG Name /dev/vgdata
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 85
Open LV 85
Max PV 16
Cur PV 5
Act PV 5
Max PE per PV 1599
VGDA 10
PE Size (Mbytes) 128
Total PE 7995
Alloc PE 7212
Free PE 783
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 3198g
VG Max Extents 25584
--- Logical volumes ---
省略。。。。
--- Physical volumes ---
PV Name /dev/dsk/c4t0d0
PV Name /dev/dsk/c2t0d0 Alternate Link
PV Status available
Total PE 1599
Free PE 0
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c4t0d1
PV Name /dev/dsk/c2t0d1 Alternate Link
PV Status available
Total PE 1599
Free PE 0
Autoswitch On
Proactive Polling On
省略。。。。。。
root@hp870yl1[/] # ioscan -m dsf |grep c4t0d0
/dev/rdisk/disk7 /dev/rdsk/c4t0d0
root@hp870yl1[/] # diskinfo /dev/rdisk/disk7
SCSI describe of /dev/rdisk/disk7:
vendor: NETAPP
product id: LUN
type: direct access
size: 209715200 Kbytes
bytes per sector: 512
root@hp870yl1[/] # diskinfo /dev/rdsk/c4t0d0
SCSI describe of /dev/rdsk/c4t0d0:
vendor: NETAPP
product id: LUN
type: direct access
size: 209715200 Kbytes
bytes per sector: 512
----------------------------------------------
逻辑卷组/dev/vgdata 大小
PE Size (Mbytes) 128
Total PE 7995
128*7995*1024 = 1 047 920 640 K
上述空间等于所有
--- Physical volumes ---
空间加和。
PV Name /dev/dsk/c4t0d0
PV Name /dev/dsk/c2t0d0 Alternate Link
PV Status available
Total PE 1599
Free PE 0
Autoswitch On
Proactive Polling On
每个物理卷 空间大小 1599*128*1024 = 209 584 128 k
问题一:
PV Name /dev/dsk/c4t0d0
PV Name /dev/dsk/c2t0d0 Alternate Link
/dev/dsk/c2t0d0 在这里起什么作用?
类似这样的卷组用vgcreate 命令怎么创建?
根据上述 ioscan -m dsf |grep c4t0d0 内容。
用/dev/disk/disk7 代替 /dev/dsk/c4t0d0 意义是不是一样。
PV Name /dev/dsk/c4t0d0
--- Physical volumes ---
PV Name /dev/disk/disk7
问题二: # ioscan -fnNC disk
命令列出的 Description 列
内容为
HP IR Volume
HP DG146BB976
NETAPP LUN
各代表什么意思?
问题三:
新机器来了。或接手一台机器,怎么知道那个磁盘被使用。
对于没有在 pvdisplay,中找到的磁盘 是不是就意味着闲置没用。
磁盘插到机器上是不是就可以在
oscan -fnNC disk
ioscan -m dsf
里看到?
本人干接触这些还请高手赐教。明示
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
2楼兄弟回答的很详细了
学习,顶顶顶
不是高手,高手是不会管这些问题的...