我有一个现有的由3个磁盘(ext4)组成的LVM卷组,其中包含4个逻辑卷。还没有准备好跳转到nextgen,我想平衡磁盘上的负载。我见过您可以使用条带(RAID0等效)创建VG,但是我想转换现有的VG。这能办到吗?
发布于 2019-01-13 09:34:06
不知道这一记录有多久,但在2.02.183版本中,man lvconvert显示:
--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转换为条带。现有数据将按原样保留。
发布于 2014-11-11 05:05:22
sudo lvconvert --stripes 3 vg/lv /dev/sda1 /dev/sdb1 /dev/sdc1其中2是条纹的数目,然后是逻辑卷,然后是要横穿的3个设备。RAID 0没有冗余。
https://unix.stackexchange.com/questions/128457
复制相似问题