linux 逻辑卷 物理卷,linux – 如何查找在LVM中保存逻辑卷的物理卷

pvdisplay命令具有-m选项,用于显示物理扩展区到逻辑卷和逻辑扩展区的映射.

我在测试机器上设置了以下情况:

> 3个1GB的磁盘,每个磁盘都添加到系统中,并用作vg_test的物理卷

> 6个不同大小(从300M到1.1G)的逻辑卷,以便它们分布在物理卷上

在此计算机上运行pvdisplay -m会产生以下输出:

[root@centos6 ~]# pvdisplay -m

--- Physical volume ---

PV Name /dev/sdb

VG Name vg_test

PV Size 1.00 GiB / not usable 4.00 MiB

Allocatable yes

PE Size 4.00 MiB

Total PE 255

Free PE 5

Allocated PE 250

PV UUID eR2ko2-aKRf-uCfq-O2L0-z6em-ZYT5-23YhKb

--- Physical Segments ---

Physical extent 0 to 74:

Logical volume /dev/vg_test/one

Logical extents 0 to 74

Physical extent 75 to 149:

Logical volume /dev/vg_test/two

Logical extents 0 to 74

Physical extent 150 to 249:

Logical volume /dev/vg_test/four

Logical extents 0 to 99

Physical extent 250 to 254:

FREE

--- Physical volume ---

PV Name /dev/sdc

VG Name vg_test

PV Size 1.00 GiB / not usable 4.00 MiB

Allocatable yes

PE Size 4.00 MiB

Total PE 255

Free PE 10

Allocated PE 245

PV UUID rByjXK-NA6D-ifnY-lKdF-eFWg-Ndou-psGJUq

--- Physical Segments ---

Physical extent 0 to 124:

Logical volume /dev/vg_test/three

Logical extents 0 to 124

Physical extent 125 to 224:

Logical volume /dev/vg_test/five

Logical extents 0 to 99

Physical extent 225 to 244:

Logical volume /dev/vg_test/six

Logical extents 255 to 274

Physical extent 245 to 254:

FREE

--- Physical volume ---

PV Name /dev/sdd

VG Name vg_test

PV Size 1.00 GiB / not usable 4.00 MiB

Allocatable yes (but full)

PE Size 4.00 MiB

Total PE 255

Free PE 0

Allocated PE 255

PV UUID TCJnZM-0ss9-o5gY-lgD3-7Kq6-18IH-sN04To

--- Physical Segments ---

Physical extent 0 to 254:

Logical volume /dev/vg_test/six

Logical extents 0 to 254

如您所见,您可以很好地了解6个逻辑卷中每个逻辑卷的范围.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值