變更 LV 的 PE 數量

  1. 查詢 LV vg_mntx=pub 有 6 個 PE。
    [root@kvm7 ~]# lvdisplay /dev/vg_mntx/pub | grep LE
      Current LE             6
    
  2. LV vg_mntx=pub PE 數量改成 10 個。
    [root@kvm7 ~]# lvresize --extents 10 -r /dev/vg_mntx/pub
      Size of logical volume vg_mntx/pub changed from 24.00 MiB (6 extents) to 40.00 MiB (10 extents).
      Logical volume vg_mntx/pub successfully resized.
    resize2fs 1.42.9 (28-Dec-2013)
    Filesystem at /dev/mapper/vg_mntx-pub is mounted on /mnt/pub; on-line resizing required
    old_desc_blocks = 1, new_desc_blocks = 1
    The filesystem on /dev/mapper/vg_mntx-pub is now 40960 blocks long.
    
  3. 再查詢 LV vg_mntx=pub 有 10 個 PE。
    [root@kvm7 ~]# lvdisplay /dev/vg_mntx/pub | grep LE
      Current LE             10