LinuxQuestions.org
Help answer threads with 0 replies.
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-12-2009, 07:59 AM   #1
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Rep: Reputation: 16
Question LVM resize Problem


Hi,
I'm using lvm technology..on RHEL5
when i reduce my Logical Volume space via lvreduce & lvresize command
the command is :-
#lvreduce -L -200M /dev/vg1/lv1
this is reduce properly..
then free space showing in volume group,
but when i see my mounted partition with
#df -h
command this is showing old space...
after reboot, this problem is still..
why...
Sorry for my bad english...

Last edited by bharatlalgupta; 03-12-2009 at 08:08 AM. Reason: some note
 
Old 03-12-2009, 08:17 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
The filesystem and the LVM are two different things. You lay the filesystem on top of the LVM. By doing lvreduce you have told LVM to reduce the size of the logical volume (not really a "partition"). However, you've done nothing to affect the size the filesystem was configured for (though you have taken the rug out from underneath it).

What you needed to do was FIRST shrink the filesystem and THEN lvreduce the logical volume. If you had any data in the filesystem in the space that was lvreduced then you've corrupted the filesystem.

What I would suggest at this point:
1) Save everything in the filesystem to another location or backup media.
2) Try running doing the filesystem resize. (e.g. use the resize2fs command if it is an ext2 or ext3 filesystem).
3) Check your data and restore anything that is missing.
 
0 members found this post helpful.
Old 12-21-2009, 01:10 AM   #3
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Cool hello

its solve d my self
 
Old 12-21-2009, 09:33 AM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Bharatlalgupta you should post your solution so that anyone that finds this in the archive will know what you did and not have to ask the same question.
 
Old 12-22-2009, 01:00 AM   #5
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 79
Blog Entries: 1

Original Poster
Rep: Reputation: 16
hello jlightner
suppose u have 500M lvm partition now u resize it to 200M so its cause of lvreduce.
when u reduce lvm it must be your logical volume is offline & and use the following steps:---

# umount /dev/volume_group/logical_volume
# e2fsck -f /dev/volume_group/logical_volume
# resize2fs dev/volume_group/logical_volume 200M
# lvredice /dev/volume_group/logical_volume -L 200M


hello Jlightner
can u help me on hp unix OS flavour ,e-book,vmware or x86 arch supportable OS...
If u can so plz help me

Last edited by bharatlalgupta; 12-22-2009 at 01:08 AM.
 
  


Reply

Tags
error, lvm


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
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 12:26 PM
Resize LV with LVM Slipstream2006 Linux - General 4 03-30-2007 10:47 AM
LVM Resize - After logical resize, FS size does not match physical size. spectra Linux - Software 6 11-01-2006 12:28 PM
resize LVM partition bkesting Linux - General 3 06-17-2005 10:28 AM
Cant resize with LVM plz help sendas4 Linux - General 4 10-21-2004 08:05 PM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration