Article 59CB2 why is the resizing failing

why is the resizing failing

by
rbarden22
from LinuxQuestions.org on (#59CB2)
Do you know why this will not resize from 2.7TB to 10TB I just added to sdb.?

[root@nmt01 ~]# pvscan
PV /dev/sda3 VG centos lvm2 [<4.00 TiB / 0 free]
PV /dev/sdb VG centos lvm2 [<10.00 TiB / 0 free]
Total: 2 [<14.00 TiB] / in use: 2 [<14.00 TiB] / in no VG: 0 [0 ]
[root@nmt01 ~]# lvextend -r -L +10G /dev/mapper/centos-opt_zl_nwi_var
Insufficient free space: 2560 extents needed, but only 0 available
[root@nmt01 ~]# clear
[root@nmt01 ~]# lvdisplay

--- Logical volume ---
LV Path /dev/centos/opt_zl_nwi_var
LV Name opt_zl_nwi_var
VG Name centos
LV UUID FegcJe-m67s-uvfe-wgeb-mKXz-Aw4Z-pCZW8s
LV Write Access read/write
LV Creation host, time localhost, 2020-04-13 09:11:02 +0000
LV Status available
# open 1
LV Size 12.65 TiB
Current LE 3316984
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 65536
Block device 253:3

[root@nmt01 ~]# resize2fs /dev/centos/opt_zl_nwi_var
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/centos/opt_zl_nwi_var
Couldn't find valid filesystem superblock.
[root@nmt01 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 4 0 wz--n- <14.00t 0

[root@nmt01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
opt_zl centos -wi-ao---- 800.00g
opt_zl_nwi_var centos -wi-ao---- 12.65t
root centos -wi-ao---- 450.00g
swap centos -wi-ao---- 128.00g
[root@nmt01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 450G 389G 62G 87% /
devtmpfs 126G 0 126G 0% /dev
tmpfs 126G 0 126G 0% /dev/shm
tmpfs 126G 250M 126G 1% /run
tmpfs 126G 0 126G 0% /sys/fs/cgroup
/dev/sda2 1.1G 179M 860M 18% /boot
/dev/mapper/centos-opt_zl 800G 502G 299G 63% /opt/zl
/dev/mapper/centos-opt_zl_nwi_var 2.7T 1.8T 935G 66% /opt/zl/nwi/var
tmpfs 26G 0 26G 0% /run/user/91
tmpfs 26G 0 26G 0% /run/user/0
tmpfs 26G 4.0K 26G 1% /run/user/42
tmpfs 26G 0 26G 0% /run/user/1004
[root@nmt01 ~]#

This didn't work either.

[root@nmt01 ~]# lvextend -r -L +10G /dev/mapper/centos-opt_zl_nwi_var
Insufficient free space: 2560 extents needed, but only 0 available
You have mail in /var/spool/mail/root
[root@nmt01 ~]#latest?d=yIl2AUoC8zA latest?i=VKCAkccjo2U:zqkn3Ag1kMc:F7zBnMy latest?i=VKCAkccjo2U:zqkn3Ag1kMc:V_sGLiP latest?d=qj6IDK7rITs latest?i=VKCAkccjo2U:zqkn3Ag1kMc:gIN9vFwVKCAkccjo2U
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments