linux lvm在线数据迁移,LVM物理卷迁移

在Linux环境中,成功创建了物理卷/dev/sdd,并将其添加到卷组vg_test中。然后尝试使用pvmove命令迁移物理卷/dev/sdc的数据到/dev/sdd,迁移过程完成,显示了迁移进度。最后通过vgdisplay命令确认vg_test卷组的状态和详细信息。
摘要由CSDN通过智能技术生成

[root@test-204 ~]# pvcreate /dev/sdd

Physical volume "/dev/sdd" successfully created

[root@test-204 ~]# pvmove /dev/sdc /dev/sdd

Physical Volume "/dev/sdd" not found in Volume Group "vg_test"

[root@test-204 ~]# vgextend vg_test /dev/sdd

Volume group "vg_test" successfully extended

[root@test-204 ~]# pvmove /dev/sdc /dev/sdd

/dev/sdc: Moved: 1.8%

/dev/sdc: Moved: 19.6%

/dev/sdc: Moved: 37.0%

/dev/sdc: Moved: 52.9%

/dev/sdc: Moved: 64.7%

/dev/sdc: Moved: 71.5%

/dev/sdc: Moved: 79.4%

/dev/sdc: Moved: 88.7%

/dev/sdc: Moved: 100.0%

[root@test-204 ~]# vgdisplay -v vg_test

DEGRADED MODE. Incomplete RAID LVs will be processed.

Using volume group(s) on command line

Finding volume group "vg_test"

--- Volume group ---

VG Name vg_test

System ID

Format lvm2

Metadata Areas 2

Metadata Sequence No 6

VG Access read/write

VG Status resizable

MAX LV 0

Cur LV 1

Open LV 1

Max PV 0

Cur PV 2

Act PV 2

VG Size 15.99 GiB

PE Size 4.00 MiB

Total PE 4094

Alloc PE / Size 1792 / 7.00 GiB

Free PE / Size 2302 / 8.99 GiB

VG UUID b1pnZ1-byAA-6OpR-4nDD-sPhx-PX6F-JGOvC2

--- Logical volume ---

LV Path /dev/vg_test/lv

LV Name lv

VG Name vg_test

LV UUID XV4oMz-RAZN-WmOK-b1tR-dDWh-Vl2m-SuVvAN

LV Write Access read/write

LV Creation host, time test-204, 2017-04-12 14:06:15 +0800

LV Status available

# open 1

LV Size 7.00 GiB

Current LE 1792

Segments 1

Allocation inherit

Read ahead sectors auto

- currently set to 256

Block device 253:2

--- Physical volumes ---

PV Name /dev/sdc

PV UUID iN2rC3-RfXa-zlN6-LxNN-zexj-uFI3-Cy0Frv

PV Status allocatable

Total PE / Free PE 2047 / 2047

PV Name /dev/sdd

PV UUID Mf2aVw-yNk2-roNE-D0zu-QGkT-Wly0-Wg5GNR

PV Status allocatable

Total PE / Free PE 2047 / 255

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值