vg_mntx 的 PE 大小由 2M 改成 4M 後,LV pubx 的 LE 個數由原來的 12 個自動改成 6 個,總大小不變,一樣是 24M。
[root@kvm10 ~]# lvdisplay /dev/vg_mntx/pubx --- Logical volume --- LV Path /dev/vg_mntx/pubx LV Name pubx VG Name vg_mntx LV UUID FUbp9Q-jIOJ-rR6r-H2sv-mNqv-rlv5-3jYXEH LV Write Access read/write LV Creation host, time kvm10.deyu.wang, 2019-11-11 14:16:55 +0800 LV Status available # open 0 LV Size 24.00 MiB Current LE 6 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:3
pubx 的 LE 個數由原來的 6 個改成 50 個。
[root@kvm10 ~]# lvresize -l 50 -r /dev/vg_mntx/pubx fsck from util-linux 2.32.1 /dev/mapper/vg_mntx-pubx: 11/6144 files (0.0% non-contiguous), 2012/24576 blocks Size of logical volume vg_mntx/pubx changed from 24.00 MiB (6 extents) to 200.00 MiB (50 extents). Logical volume vg_mntx/pubx successfully resized. resize2fs 1.44.3 (10-July-2018) Resizing the filesystem on /dev/mapper/vg_mntx-pubx to 204800 (1k) blocks. The filesystem on /dev/mapper/vg_mntx-pubx is now 204800 (1k) blocks long.
pubx 的 LE 個數已改成 50 個。
[root@kvm10 ~]# lvdisplay /dev/vg_mntx/pubx | grep LE Current LE 50