LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2013, 02:28 PM   #1
vngarla12
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
resize logical volume - resize2fs says Couldn't find valid filesystem superblock


Hello,

I am trying to resize a logical volume and the corresponding partition.
I increased the logical volume size to 100GB (from 4GB):

lvextend -L100G /dev/vg00/var

And then I tried to resize the filesystem:

resize2fs /dev/vg00/var

I get the following error message:

resize2fs 1.39 (29-May-2006)
resize2fs: Filesystem has unsupported feature(s) while trying to open
/dev/vg00/var Couldn't find valid filesystem superblock.

How do I resize the filesystem? The logical volume has 100GB, but the mounted filesystem only has 4GB?

TIA!

Here is the output of df -k:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 4161152 356108 3805044 9% /
/dev/mapper/vg00-usr 4128448 1401408 2517328 36% /usr
/dev/mapper/vg00-var 4128448 2200112 1718624 57% /var
/dev/mapper/vg00-home 4128448 3760740 157996 96% /home
none 6138460 20220 6118240 1% /tmp


This is the output of lvdisplay:
--- Logical volume ---
LV Name /dev/vg00/usr
VG Name vg00
LV UUID hYUm5T-q0gi-xc3I-wHwv-mJXc-SUBk-62w2MQ
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/vg00/var
VG Name vg00
LV UUID 19TaCi-UtWt-wDpd-kMHT-zgbm-Osaj-1oy93T
LV Write Access read/write
LV Status available
# open 1
LV Size 100.00 GB
Current LE 25600
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/vg00/home
VG Name vg00
LV UUID TpHgKT-QVBd-V4EH-kZuR-IoS1-1AL6-DQqzB3
LV Write Access read/write
LV Status available
# open 1
LV Size 100.00 GB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

And the output of mount:
/dev/md1 on / type ext3 (rw)
none on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/vg00-usr on /usr type ext4 (rw)
/dev/mapper/vg00-var on /var type ext4 (rw,usrquota)
/dev/mapper/vg00-home on /home type ext4 (rw,usrquota)
none on /tmp type tmpfs (rw) none on
/proc/sys/fs/binfmt_misc type binfmt_misc (rw)

And the output of vgdisplay:
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 925.51 GB
PE Size 4.00 MB
Total PE 236931
Alloc PE / Size 52224 / 204.00 GB
Free PE / Size 184707 / 721.51 GB
VG UUID Zls0eQ-uguS-GdSm-XjSF-xZPF-e3xH-zO8XDh

Last edited by vngarla12; 03-02-2013 at 02:30 PM.
 
Old 03-02-2013, 02:43 PM   #2
vngarla12
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
solved: should have called resize4fs
 
Old 03-02-2013, 05:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
That's a very old version of e2fsprogs. Any reasonably current version of resize2fs would (er, should) have worked.
What distro/kernel are you running (uname -a) ?.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize the Logical volume navin.altair Linux - Hardware 2 02-16-2012 09:32 PM
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 07:21 AM
[SOLVED] tune2fs says Couldn't find valid filesystem superblock anon091 Linux - Newbie 8 05-13-2010 08:22 AM
How to resize a logical volume mounted as /var (FC9) prabhatsoni Linux - Hardware 10 01-04-2009 03:40 PM
superblock error after resizing logical volume austin_it Linux - General 3 11-29-2007 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:03 AM.

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