LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2020, 02:46 AM   #1
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Rep: Reputation: Disabled
why is the resizing failing


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 ~]#
 
Old 10-22-2020, 06:20 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,806

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
The resize2fs is for ext3 and ext4 filesystems only.
Check your file system type
Code:
mount | grep /dev/centos/opt_zl_nwi_var
 
1 members found this post helpful.
Old 10-22-2020, 09:18 AM   #3
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
its a xfs filesystem.
 
Old 10-22-2020, 09:23 AM   #4
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
so I thought lvextend would work. but its telling me I don't have insufficient free space. it shows the new space when I do a lvs - shows 12.65t

[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
 
Old 10-22-2020, 09:32 AM   #5
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by rbarden22 View Post
its a xfs filesystem.
For XFS, try xfs_growfs instead of resize2fs
 
Old 10-22-2020, 09:39 AM   #6
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
wow this is crazy... shows xfs is not mounted but it shows it here.

[root@nmt01 ~]# xfs_growfs /dev/centos-opt_zl_nwi_var
xfs_growfs: /dev/centos-opt_zl_nwi_var is not a mounted XFS filesystem
[root@nmt01 ~]# ^C
[root@nmt01 ~]# findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /dev/mapper/centos-root xfs rw,relatime,seclabel,attr2,inode64,noquota
├─/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime,seclabel
│ ├─/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup tmpfs tmpfs ro,nosuid,nodev,noexec,seclabel,mode=755
│ │ ├─/sys/fs/cgroup/systemd cgroup cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup cgroup rw,nosuid,nodev,noexec,relatime,net_prio,net_cls
│ │ ├─/sys/fs/cgroup/devices cgroup cgroup rw,nosuid,nodev,noexec,relatime,devices
│ │ ├─/sys/fs/cgroup/hugetlb cgroup cgroup rw,nosuid,nodev,noexec,relatime,hugetlb
│ │ ├─/sys/fs/cgroup/perf_event cgroup cgroup rw,nosuid,nodev,noexec,relatime,perf_event
│ │ ├─/sys/fs/cgroup/cpuset cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset
│ │ ├─/sys/fs/cgroup/freezer cgroup cgroup rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/pids cgroup cgroup rw,nosuid,nodev,noexec,relatime,pids
│ │ ├─/sys/fs/cgroup/blkio cgroup cgroup rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/memory cgroup cgroup rw,nosuid,nodev,noexec,relatime,memory
│ │ └─/sys/fs/cgroup/cpu,cpuacct cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu
│ ├─/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/selinux selinuxfs selinuxfs rw,relatime
│ ├─/sys/kernel/debug debugfs debugfs rw,relatime
│ └─/sys/kernel/config configfs configfs rw,relatime
├─/proc proc proc rw,nosuid,nodev,noexec,relatime
│ ├─/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=25,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12807
│ │ └─/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,relatime
│ └─/proc/fs/nfsd nfsd nfsd rw,relatime
├─/dev devtmpfs devtmpfs rw,nosuid,seclabel,size=131965200k,nr_inodes=32991300,mode=755
│ ├─/dev/shm tmpfs tmpfs rw,nosuid,nodev,seclabel
│ ├─/dev/pts devpts devpts rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000
│ ├─/dev/mqueue mqueue mqueue rw,relatime,seclabel
│ └─/dev/hugepages hugetlbfs hugetlbfs rw,relatime,seclabel
├─/run tmpfs tmpfs rw,nosuid,nodev,seclabel,mode=755
│ ├─/run/user/1004 tmpfs tmpfs rw,nosuid,nodev,relatime,seclabel,size=26396220k,mode=700,uid=1004,gid=1005
│ ├─/run/user/0 tmpfs tmpfs rw,nosuid,nodev,relatime,seclabel,size=26396220k,mode=700
│ ├─/run/user/91 tmpfs tmpfs rw,nosuid,nodev,relatime,seclabel,size=26396220k,mode=700,uid=91,gid=91
│ └─/run/user/42 tmpfs tmpfs rw,nosuid,nodev,relatime,seclabel,size=26396220k,mode=700,uid=42,gid=42
├─/boot /dev/sda2 xfs rw,relatime,seclabel,attr2,inode64,noquota
├─/opt/zl /dev/mapper/centos-opt_zl xfs rw,relatime,seclabel,attr2,inode64,noquota
│ └─/opt/zl/nwi/var /dev/mapper/centos-opt_zl_nwi_var xfs rw,relatime,seclabel,attr2,inode64,noquota
├─/var/lib/nfs/rpc_pipefs sunrpc rpc_pipefs rw,relatime
└─/cgroup/memory memory cgroup rw,relatime,memory
 
Old 10-22-2020, 09:40 AM   #7
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
└─/opt/zl/nwi/var /dev/mapper/centos-opt_zl_nwi_var xfs rw,relatime,seclabel,attr2,inode64,noquota

shows xfs.
 
Old 10-22-2020, 10:03 AM   #8
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by rbarden22 View Post
└─/opt/zl/nwi/var /dev/mapper/centos-opt_zl_nwi_var xfs rw,relatime,seclabel,attr2,inode64,noquota

shows xfs.
Please try xfs_growfs on the mount point, so

Code:
xfs_growfs  /dev/mapper/centos-opt_zl_nwi_var
 
1 members found this post helpful.
Old 10-22-2020, 10:19 AM   #9
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
[root@nmt01 ~]# xfs_growfs /dev/mapper/centos-opt_zl_nwi_va
xfs_growfs: /dev/mapper/centos-opt_zl_nwi_va is not a mounted XFS filesystem
[root@nmt01 ~]#
 
Old 10-22-2020, 10:21 AM   #10
rbarden22
LQ Newbie
 
Registered: Mar 2020
Posts: 18

Original Poster
Rep: Reputation: Disabled
dc.901 you rock that worked!!!!!!! super appreciate you all also!! thanks so much!!

[root@nmt01 ~]# xfs_growfs /dev/mapper/centos-opt_zl_nwi_var
meta-data=/dev/mapper/centos-opt_zl_nwi_var isize=512 agcount=4, agsize=178059520 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=712238080, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=347772, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 712238080 to 3396591616
[root@nmt01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 450G 338G 113G 76% /
devtmpfs 126G 0 126G 0% /dev
tmpfs 126G 0 126G 0% /dev/shm
tmpfs 126G 4.1G 122G 4% /run
tmpfs 126G 0 126G 0% /sys/fs/cgroup
/dev/sda2 1.1G 179M 860M 18% /boot
/dev/mapper/centos-opt_zl 800G 505G 296G 64% /opt/zl
/dev/mapper/centos-opt_zl_nwi_var 13T 2.1T 11T 17% /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 ~]#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resizing PV does not work (lvm) after resizing partition deadeyes Red Hat 5 03-11-2011 11:19 AM
LXer: Resizing Linux partitions, Part 2: Advanced resizing LXer Syndicated Linux News 0 09-02-2010 04:41 AM
[SOLVED] Resizing window content when resizing window? (Debian squeeze) mike11 Linux - Newbie 2 03-04-2010 02:14 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration