LVM resize Problem
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
command this is showing old space...
after reboot, this problem is still..
Sorry for my bad english...
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.
its solve d my self
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.
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
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 02:16 PM.|