Operating System - HP-UX
1753902 Members
9469 Online
108810 Solutions
New Discussion юеВ

Re: How to reduce logical volume size?

 
SOLVED
Go to solution
Bill Hassell
Honored Contributor

Re: How to reduce logical volume size?

As mentioned, lvreduce is NOT the command to use for a filesystem. lvreduce changed the size of the volume--lv commands know nothing about filesystems. They simply manipulate space. Reducing a filesystem (without losing all the data) is virtually impossible. The one exception is the latest version of OnlineJFS version 3.3. This is a priced product from HP. Without it, always treate filesystem reductions as destructive.


Bill Hassell, sysadmin
Naveej.K.A
Honored Contributor

Re: How to reduce logical volume size?

hi,

I may be late to reply to this...
but i got some different views and some different experience. i had ran into a similar thing, when i was first working on extending a filesystem.

fortunately i had the output of lvdisplay and knew how much exact number of LEs were allocated to the logical volume.

suppose the exact original number of LE is 1025. i would do something like,

#lvextend -l 1025 /dev/vgora/lvoracle
now try mounting the filesystem...
sitll not mounting
#extendfs -F vxfs /dev/vgora/rlvoracle
#fsck /dev/vgora/lvoracle
#mount /dev/vgora/lvoracle.

It worked for me...
and that time kapil saved my job!!!!!!!

with best wishes
naveej
practice makes a man perfect!!!
Mark Grant
Honored Contributor

Re: How to reduce logical volume size?

Naveej,

That MIGHT work and obviously, in your case it did and is probably worth a try. I would definately not rely on it though. I'd also be a little suspicious of my fileystem after that.
Never preceed any demonstration with anything more predictive than "watch this"