Operating System - HP-UX
1748166 Members
3634 Online
108758 Solutions
New Discussion юеВ

Pvmove in the root volume group

 
ASSIST
Frequent Advisor

Pvmove in the root volume group

Hi everybody! Can anyone tell me if I can make a pvmove of all the lvols of the vg00 placed in one disk to another disk of the vg00 too, without problems?

Thanks.
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Pvmove in the root volume group

I would be VERY careful trying to use pvmove with anything related to VG00. Some of the LVOLs probably would not be a problem, like /usr, /var, /opt, but I don't know that I would want to try moving something like swap, /, or /stand. You must take into consideration that vg00 has special requirements for how it is laid out because it contains the boot information.

Hope this helps you.
MARTINACHE
Respected Contributor

Re: Pvmove in the root volume group

Hi,

I'm not sure that il will work.

I suggest you 2 solutions :

1) You can mirror your disk but I suppose that if you want to pvmove, you didn't bought MIRROR/UX.

2) Create an Ignite Tape (make_recovery -ACi)

Boot on this tape
Modify the root disk in order to restore vg00 on the other disk.
This work fine with a lot of security.

Regards,

Patrice.
Patrice MARTINACHE
MARTINACHE
Respected Contributor

Re: Pvmove in the root volume group

Hi,

I'm not sure that il will work.

I suggest you 2 solutions :

1) You can mirror your disk but I suppose that if you want to pvmove, you didn't bought MIRROR/UX.

2) Create an Ignite Tape (make_recovery -ACi)

Boot on this tape
Modify the root disk in order to restore vg00 on the other disk.
This work fine with a lot of security.

Regards,

Patrice.
Patrice MARTINACHE
ASSIST
Frequent Advisor

Re: Pvmove in the root volume group

Finally I've test it in a test machine.

I've pvmove all the lvols of the vg00 in the same order they where placed in the original disk (lvol1 has to be the first lvol in the boot disk).
lvlnboot -v gave me the correct information and i could reboot the machine from the new disk without problems.

I know that althoug it works it's a little bit risked method, but i only need a backup to do it without risks.

Re: Pvmove in the root volume group

Hi,

It will not work becuase you need to create boot LIF for booting the drive.

Thanks
Darrel Louis
Honored Contributor

Re: Pvmove in the root volume group

Hi,

these are the steps you need to perform.
- Make a Ignite Recovery tape + Fullbackup
- pvcreate -B
- mkboot -l /dev/rdsk/
- mkboot -a "hpux /stand/vmunix" /dev/rdsk/

Or, use the -lq option to allow your system to boot in the event that one of your disks is unavailable, resulting in a loss of quorum.

- mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/
If you choose, you can set the alternate boot path variable according to
- setboot -a

- vgextend /dev/vg00 /dev/dsk/
move root
- pvmove /dev/vg00/lvol1 /dev/dsk/ /dev/dsk/
move swap
- pvmove /dev/vg00/lvol2 /dev/dsk/ /dev/dsk/
- pvdisplay -v /dev/dsk/
- lvlnboot -R /dev/vg00
- lvlnboot -v /dev/vg00
- pvmove other Logical Volumes
- vgreduce the old disk.


Good Luck

Darrel