lvm 坏了一个磁盘的卷组_如何在保留数据的同时从LVM组中删除磁盘

lvm 坏了一个磁盘的卷组

This is the scenario:

这是场景:

I want to remove a old hard disk which is a LVM PV and contains data. There is free space available on other PVs in the VG. It should move the data from the disk to be removed to other PVs and then remove the disk.

我想删除一个旧的硬盘 ,它是LVM PV并包含数据。 VG中其他PV上有可用空间 。 它应将数据从要删除的磁盘移动到其他PV,然后再删除磁盘。

The process to remove sdb from VG vg is as follows.

从VG vg删除sdb过程如下。

First, distribute old extends from sdb to other PV

首先,将旧版本从sdb分发到其他PV

# pvmove /dev/sdb

it will take much time.

这将花费很多时间。

Second, delete sdb

二,删除sdb

# vgreduce vg /dev/sdb

Now, you can physically remove the sdb disk.

现在,您可以物理删除sdb磁盘。

Then you can add new disks and extend the VGs.

然后,您可以添加新磁盘并扩展VG

Answered by anonymous.
匿名回答。


After vgreduce, you may wipe the labels on the disk by

vgreduce之后,您可以通过以下方式擦除磁盘上的标签:

# pvremove /dev/sdb

翻译自: https://www.systutorials.com/how-to-delete-a-disk-from-a-lvm-group-while-keeping-the-data/

lvm 坏了一个磁盘的卷组

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值