Operating System - HP-UX
1834800 Members
2911 Online
110070 Solutions
New Discussion

Re: HPUX 10.20: Moving Logical Volumes

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

HPUX 10.20: Moving Logical Volumes

I have a K-Class server that I had to rebuild using a "make recovery" tape. I need to mirror root volume group (vg00). When the make_recovery restored the logical volume structure, /usr is now located on a different disk than my primary mirror. Is there a method to moving logical volumes around to different disks within vg00? If so, can this be done at rn level 3?
8 REPLIES 8
Patrick Wallek
Honored Contributor
Solution

Re: HPUX 10.20: Moving Logical Volumes

Yes you can move LVs between disks within a VG. Have a look at the 'pvmove' command.

This command would move /dev/vg00/lvol7, my /usr, from the /dev/dsk/c1t2d0 to /dev/dsk/c1t1d0:

# pvmove -n /dev/vg00/lvol7 /dev/dsk/c1t2d0 /dev/dsk/c1t1d0

Yes you can do this while the machine is up in run-level 3.
S.K. Chan
Honored Contributor

Re: HPUX 10.20: Moving Logical Volumes

Use pvmove but before that the rules of a "pvmove" is that it can be used while your extents are active (meaning at multi-user mode) provided this is NOT true ..

a) Disk stripping is used on the LV.
b) vg00 is in shared mode (eg: MC/Service Guard setup)

The command would be ..

# pvmove -n /dev/vg00/lvolX /dev/dsk/ /dev/dsk/

Sanjay_6
Honored Contributor

Re: HPUX 10.20: Moving Logical Volumes

Hi,

As Patrick has suggested, you should be able to use the pvmove command to move the lv from some other disk to the primary root disk provided you have enough disk space over there. You can do this at run level 3.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: HPUX 10.20: Moving Logical Volumes

Hi Porter:

As Patrick suggested, you can use 'pvmove' command for doing this task. Before that I would check if free space available on the destination disk:

# pvdisplay -v pv_name

Normally, while recovering with the ignite tape, the LVs will be created on the same order and location if the hardware didn't changed.

HTH,
Shiju
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: HPUX 10.20: Moving Logical Volumes

Hi LG Porter


Yes you can move it in runlevel 3 , use pvmove command like


pvmove -n /dev/vg00/lvol*


Manoj Srivastava
PIYUSH D. PATEL
Honored Contributor

Re: HPUX 10.20: Moving Logical Volumes

Hi,

You can definitely issue the pvmove command as suggested on the run level 3.
Just check for the free PE on the destination disk before moving the lv.

Piyush
Noel Miranda_1
Advisor

Re: HPUX 10.20: Moving Logical Volumes

Hi

Moving logical volumes from onde disk to the other can be achieved using the pvmove command...basically this is related to performance issue...the syntax of the command is as follows ...

pvmove -n

for eg:

pvmove -n /dev/vgxx/lvox /dev/dsk/cxtxdx /dev/dsk/cytydy..

but HP doesnt recommend it...

Regards
Neol
Have a great day
Noel Miranda_1
Advisor

Re: HPUX 10.20: Moving Logical Volumes

Hi

Moving logical volumes from onde disk to the other can be achieved using the pvmove command...basically this is related to performance issue...the syntax of the command is as follows ...

pvmove -n

for eg:

pvmove -n /dev/vgxx/lvox /dev/dsk/cxtxdx /dev/dsk/cytydy..

but HP doesnt recommend it...

Regards
Noel
Have a great day