LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   LVM resize Problem (https://www.linuxquestions.org/questions/linux-general-1/lvm-resize-problem-711016/)

bharatlalgupta 03-12-2009 06:59 AM

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...

MensaWater 03-12-2009 07:17 AM

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.

bharatlalgupta 12-21-2009 12:10 AM

hello
 
its solve d my self

MensaWater 12-21-2009 08:33 AM

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.

bharatlalgupta 12-22-2009 12:00 AM

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


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