System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

can we reallocate space that alrady allocated logical volume

can we reallocate space that alrady allocated logical volume

I have extended the logical volume online using lvextend coomand.

By mistake it happen now can reallocate that space to some other logical volume without datalose ?
4 REPLIES
Jean-Yves Picard
Trusted Contributor

Re: can we reallocate space that alrady allocated logical volume

Hello,

depending on OS.
fsck -f /dev/... to compact filespace.

then lvreduce

Jean-Yves Picard
Ivan Ferreira
Honored Contributor

Re: can we reallocate space that alrady allocated logical volume

If you did not extend the file system, you can use lvreduce again. You should be carefull to not reduce more than the filesystem size.

See also:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1107877
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: can we reallocate space that alrady allocated logical volume

What I need is

Since I hve wrongly extended storage to one lvm.

I have extended /dev/vgoracle/lvl10 by 80GB

Can I have that that storage(80GB) allocated to another lvm (say /dev/vgoracle/lvl11 ?
Tim Nelson
Honored Contributor

Re: can we reallocate space that alrady allocated logical volume

As mentioned previously,

if you have yet to extend the filesystem you will need to reduce lvl10 first, then extend lvl11.

Be sure to back up your data before you reduce, just in case.