我已经安装了带有lvm2-2.02.111-2的RHEL 6.6。
在这台机器上,我为一个卷设置了一个非常不寻常的LVM:将它分割为4个段中的31个磁盘4 + TB。
现在的问题是,我需要扩展LV + 100GB,我应该在系统中添加多少个100GB磁盘?
下面提取信息以供参考。
谢谢!
[root@archive ~]# pvs | grep vg_str_data |wc -l
31
[root@archive ~]# lvs -a -o segtype,devices,lv_name,vg_name /dev/vg_str_data/lv_str_data
Type Devices LV VG
striped /dev/sdi(0),/dev/sdj(0),/dev/sdk(0),/dev/sdd(0),/dev/sde(0),/dev/sdf(0),/dev/sdg(0),/dev/sdl(0),/dev/sdm(0),/dev/sdn(0) lv_str_data vg_str_data
striped /dev/sdo1(0),/dev/sdo2(0),/dev/sdo3(0),/dev/sdo5(0),/dev/sdo6(0),/dev/sdp1(0),/dev/sdp2(0),/dev/sdp3(0),/dev/sdp5(0),/dev/sdp6(0) lv_str_data vg_str_data
striped /dev/sdr1(0),/dev/sdr2(0),/dev/sdr3(0),/dev/sdr5(0),/dev/sdr6(0),/dev/sds1(0),/dev/sds2(0),/dev/sds3(0),/dev/sds5(0),/dev/sds6(0) lv_str_data vg_str_data
striped /dev/sdt1(0),/dev/sdo2(15252),/dev/sdo3(15252),/dev/sdo5(15252),/dev/sdp2(15252),/dev/sdp3(15252),/dev/sdp5(15252),/dev/sdr1(15354),/dev/sdr2(15354),/dev/sdr3(15354) lv_str_data vg_str_data
[root@archive ~]# lvdisplay -m /dev/vg_str_data/lv_str_data
--- Logical volume ---
LV Path /dev/vg_str_data/lv_str_data
LV Name lv_str_data
VG Name vg_str_data
LV UUID RcYdq5-yzxc-feL0-GuVN-flKK-0oYA-TZbzre
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 4.10 TiB
Current LE 1074110
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Segments ---
Logical extents 0 to 767989:
Type striped
Stripes 10
Stripe size 4.00 KiB
Logical extents 767990 to 920509:
Type striped
Stripes 10
Stripe size 4.00 KiB
Logical extents 920510 to 1074049:
Type striped
Stripes 10
Stripe size 4.00 KiB
Logical extents 1074050 to 1074109:
Type striped
Stripes 10
Stripe size 4.00 KiB
最佳答案
所以,我想通了。答案是否定的。每张+10个10gb的磁盘都可以做到(调整卷大小+ 100gb)。
附言顺便说一句,谢谢您的帮助。
关于linux - 如何在RHEL LVM2上调整剥离的LV的大小?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38242231/