首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否可以将现有的LVM转换为条带(RAID0 eq)?

是否可以将现有的LVM转换为条带(RAID0 eq)?
EN

Unix & Linux用户
提问于 2014-05-08 10:21:00
回答 2查看 4K关注 0票数 6

我有一个现有的由3个磁盘(ext4)组成的LVM卷组,其中包含4个逻辑卷。还没有准备好跳转到nextgen,我想平衡磁盘上的负载。我见过您可以使用条带(RAID0等效)创建VG,但是我想转换现有的VG。这能办到吗?

EN

回答 2

Unix & Linux用户

发布于 2019-01-13 09:34:06

不知道这一记录有多久,但在2.02.183版本中,man lvconvert显示:

代码语言:javascript
复制
--stripes Number
       Specifies the number of stripes in a striped LV. This is the number of PVs
       (devices) that a striped LV is spread across. Data that appears sequential in
       the LV is spread across multiple devices in units of the stripe size (see
       --stripesize). This does not apply to existing allocated space, only newly
       allocated space can be striped.

因此,它实际上不会将现有的LV转换为条带。现有数据将按原样保留。

票数 1
EN

Unix & Linux用户

发布于 2014-11-11 05:05:22

代码语言:javascript
复制
sudo lvconvert --stripes 3 vg/lv /dev/sda1 /dev/sdb1 /dev/sdc1

其中2是条纹的数目,然后是逻辑卷,然后是要横穿的3个设备。RAID 0没有冗余。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/128457

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档