Operating System - HP-UX
1834163 Members
2705 Online
110064 Solutions
New Discussion

Moving space from one Logical volume to another

 
SOLVED
Go to solution
Jesse Delk
Frequent Advisor

Moving space from one Logical volume to another

Is there anyway without deleting data to move free space from lvu01 to lvu03? I can't rebuild the LUNs right now. Anyway to even fool it using pointers --> (maybe the wrong word for it). **Example when writting to directory u03/app/oracle/at its actually writting to u01/app/oracle/at

System as it stands now..
$ bdf
Filesystem kbytes used avai
/dev/vg20/lvu03 62771200 58389752 4347296
/dev/vg10/lvu02 52379648 46438688 5895160
/dev/vg10/lvu01 162603008 82647000 79331368
9 REPLIES 9
RAC_1
Honored Contributor
Solution

Re: Moving space from one Logical volume to another

Uner the lvols, if you have free pvs, then you might want to do pvmove to new disk and freed pvs can be allocated elsewhere.

pvmove works within a vg only.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Moving space from one Logical volume to another

Pete Randall
Outstanding Contributor

Re: Moving space from one Logical volume to another

Not really. You're trying to lvreduce and lvextend and there is no way to guarantee that the PEs you lvreduce are not occupied. See the man pages for lvreduce and lvextend.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Moving space from one Logical volume to another

By the way, I was assuming that this was raw data rather than a file system. If it was a file system and you had Online JFS, this would be possible using fsadm. See "man vsadm_vxfs"


Pete

Pete
Jesse Delk
Frequent Advisor

Re: Moving space from one Logical volume to another

I don't believe I'm there yet. Looks like LVextend and lvreduce may help me shrink or grow (but I can't no space available on LUN or VG) /dev/vg20/lvu03....but how do I move space from /dev/vg10/lvu01 to /dev/vg20/lvu03

lvu01 is a logical volume on volume group vg10

lvu03 is a logical volume on volume group vg20
Mark Nieuwboer
Esteemed Contributor

Re: Moving space from one Logical volume to another

You can't
There are differnt disk.
only when you can make a disk free of date after that you can make the vg smaller en extend the other vg with that disk.
If there is data on the disk you can't move the free pe to the other volume group.

grtz, Mark
Jesse Delk
Frequent Advisor

Re: Moving space from one Logical volume to another

Filesystem kbytes Mounted on
/dev/vg20/lvu03 62771200 /u03
/dev/vg10/lvu02 52379648 /u02
/dev/vg10/lvu01 162603008 /u01

In some of the info above, is it being suggested to reduce the logical volume /dev/vg10/lvu01

create a new logical (lets say /dev/vg10/lvu04) and then assign it to File System /u03

File System u03 is where I need the extra space.
Mark Nieuwboer
Esteemed Contributor

Re: Moving space from one Logical volume to another

Jesse,

You can't take free space from one volumegroup to another volumegroup.
What you thing is wrong. The only way to extend a filesystem like u3 is to put extra disks in the vg20 volumegroup.
Maybe you can make a disk free from vg10 but if you can't you must buy bigger disk or extend vg20 with a disk.

grtz. Mark
Jesse Delk
Frequent Advisor

Re: Moving space from one Logical volume to another

Thanks for the help.