这个逻辑卷咋配的?
本帖最后由 yuio654 于 2010-07-27 15:45 编辑
11.31 看到是有两个硬盘啊,一个逻辑卷跨两个硬盘?
bash-4.1# ioscan -fnC si disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 0 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP IR Volume
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
disk 4 255/1/0.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
bash-4.1#
bash-4.1# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4353
VGDA 2
PE Size (Mbytes) 32
Total PE 4343
Alloc PE 4076
Free PE 267
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2228736m
VG Max Extents 69648
bash-4.1# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4353
VGDA 2
PE Size (Mbytes) 32
Total PE 4343
Alloc PE 4076
Free PE 267
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2228736m
VG Max Extents 69648
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 56
Allocated PE 56
Used PV 1
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 32
Used PV 1
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 16
Allocated PE 16
Used PV 1
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 4
Used PV 1
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 9728
Current LE 304
Allocated PE 304
Used PV 1
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5344
Current LE 167
Allocated PE 167
Used PV 1
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 8704
Current LE 272
Allocated PE 272
Used PV 1
LV Name /dev/vg00/lvora
LV Status available/syncd
LV Size (Mbytes) 15008
Current LE 469
Allocated PE 469
Used PV 1
LV Name /dev/vg00/lvorad
LV Status available/syncd
LV Size (Mbytes) 80000
Current LE 2500
Allocated PE 2500
Used PV 1
--- Physical volumes ---
PV Name /dev/disk/disk2_p2 PV Status available
Total PE 4343
Free PE 267
Autoswitch On
Proactive Polling On
{:3_191:}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
多谢。为什么VG的大小只是约等于一半硬盘的空间呢?有镜像
这个可以
bash-4.1# diskinfo /dev/rdsk/c2t0d0
SCSI describe of /dev/rdsk/c2t0d0:
vendor: HP
product id: DG146BB976
type: direct access
size: 143 374 744 Kbytes
bytes per sector: 512
bash-4.1#
bash-4.1#
bash-4.1# diskinfo /dev/rdsk/c2t1d0
SCSI describe of /dev/rdsk/c2t1d0:
vendor: HP
product id: IR Volume
type: direct access
size: 143 255 552 Kbytes
bytes per sector: 512
看盘的大小,用diskinfo /dev/rdsk/cxdytz应该可以吧
两块盘,一个光驱,还有磁带机
bash-4.1# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 0 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP IR Volume
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
disk 4 255/1/0.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
bash-4.1#
bash-4.1#
bash-4.1# diskinfo /dev/rdsk/c2t0d0
SCSI describe of /dev/rdsk/c2t0d0:
vendor: HP
product id: DG146BB976
type: direct access
size: 143 374 744 Kbytes
bytes per sector: 512
bash-4.1#
bash-4.1#
bash-4.1# diskinfo /dev/rdsk/c2t1d0
SCSI describe of /dev/rdsk/c2t1d0:
vendor: HP
product id: IR Volume
type: direct access
size: 143 255 552 Kbytes
bytes per sector: 512
这么算只有143G+143G
bash-4.1# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4353
VGDA 2
PE Size (Mbytes) 32
Total PE 4343
Alloc PE 4076
Free PE 267
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2228736m
VG Max Extents 69648
bash-4.1#
这么看vg00的大小是 4043*32M= 129G左右 咋回事呢
本帖最后由 yuio654 于 2010-07-26 11:09 编辑
bash-4.1# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk2 /dev/rdsk/c2t1d0
/dev/rdisk/disk2_p1 /dev/rdsk/c2t1d0s1
/dev/rdisk/disk2_p2 /dev/rdsk/c2t1d0s2
/dev/rdisk/disk2_p3 /dev/rdsk/c2t1d0s3
/dev/rtape/tape1_BEST /dev/rmt/c0t1d0BEST
/dev/rtape/tape1_BESTn /dev/rmt/c0t1d0BESTn
/dev/rtape/tape1_BESTb /dev/rmt/c0t1d0BESTb
/dev/rtape/tape1_BESTnb /dev/rmt/c0t1d0BESTnb
/dev/rdisk/disk3 /dev/rdsk/c2t0d0
/dev/rdisk/disk5 /dev/rdsk/c3t0d0
bash-4.1#
这么看是有三块盘吗 {:3_191:} c3t0d0是光驱,还是看不到盘的大小,难道只能通过pv的大小去算???
回复 2# 服务器88
是11.31。 {:3_190:}
使用命令ioscan -m dsf就可知道同一个盘的两种不同表示盘符的方法。应该是v3的系统吧
从ioscan和vgdisplay的输出就可以看出c2t1d0(也是disk2)是使用了硬RAID的了,vg00只用了c2t1d0,并没用c2t0d0(使用命令strings /etc/lvmtab就能确认了)。所以你说的一个逻辑卷跨2个PV是不对的,不过如果从硬RAID角度来说的话,确实2个硬盘上面都有vg00的数据。
bash-4.1# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk2 /dev/rdsk/c2t1d0 <==
bash-4.1# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
......
Total PE 4343 <==4343*32=138976MB 约和c2t1d0大小一致
Alloc PE 4076
Free PE 267 <==还有没有用到的PE,如果要用掉的话,创建新的LV或扩LV就行。