Home > other >  lvm size extended but cant see on disk space
lvm size extended but cant see on disk space

Time:12-31

I extended LVM size with 2T partition. size must be increased from 14T to 16T, But I cant see the new size on disk space

lsblk output turns 16T, but df -vh output turns 14T

[@]# lsblk
NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0                   2:0    1    4K  0 disk 
sda                   8:0    0   40G  0 disk 
├─sda1                8:1    0    1G  0 part /boot
└─sda2                8:2    0   39G  0 part 
  ├─cl-root         253:0    0   35G  0 lvm  /
  └─cl-swap         253:1    0    4G  0 lvm  [SWAP]
sdb                   8:16   0    2T  0 disk 
└─sdb1                8:17   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdc                   8:32   0    2T  0 disk 
└─sdc1                8:33   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdd                   8:48   0    2T  0 disk 
└─sdd1                8:49   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sde                   8:64   0    2T  0 disk 
└─sde1                8:65   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdf                   8:80   0    2T  0 disk 
└─sdf1                8:81   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdg                   8:96   0    2T  0 disk 
└─sdg1                8:97   0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdh                   8:112  0    2T  0 disk 
└─sdh1                8:113  0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA
sdi                   8:128  0    2T  0 disk 
└─sdi1                8:129  0    2T  0 part 
  └─vg_data-lv_data 253:2    0   16T  0 lvm  /DATA

[@]# df -vh
/dev/mapper/vg_data-lv_data   14T   13T  1.6T  89% /DATA

CodePudding user response:

Did you resize the volume?

resize2fs -p /dev/mapper/...

CodePudding user response:

It's ext4 filesystem. Since you are hitting the 16TB mark which is the maximum support limit for ext4. I would strongly recommend you to convert the filesystem to XFS. please refer this link to convert EXT4 to XFS without data restore

  • Related