Operating System - HP-UX
1752687 Members
5390 Online
108789 Solutions
New Discussion

SUMMARY: Successful LVM to VxVM migration with agile DSFs on HP-UX 11.31 0909

 
VK2COT
Honored Contributor

SUMMARY: Successful LVM to VxVM migration with agile DSFs on HP-UX 11.31 0909

Hello,

Several days ago I upgraded several of
my servers to HP-UX 11.31 DCOE 0909.

Since VxVM is seldom taught or used, I usually
dedicate at least one server to run it.

So, here was the test I did and the results.
Overall, it was a smooth and pleasant
migration.

a) Original server running HP-UX 11.31 DCOE
0909 with LVM.

# lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk4_p2
Root: lvol3 on: /dev/disk/disk4_p2
Swap: lvol2 on: /dev/disk/disk4_p2
Dump: lvol2 on: /dev/disk/disk4_p2, 0

b) Migration to VxVM by using agile DSF (now supported with VxVM 5.x):

# /etc/vx/bin/vxcp_lvmroot -b -v disk6

In around 15-20 minutes, the whole migration
was completed.

c) Reboot the server and test:

# /etc/vx/bin/vxgetrootdisk
disk6_p2

# cat /stand/bootconf
l /dev/disk/disk6_p2

# setboot -v
Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk4)
Autoboot is ON (enabled)
TEST CURRENT DEFAULT
---- ------- -------
all on on
SELFTESTS on on
early_cpu on on
late_cpu on on
FASTBOOT on on
Platform on on
Full_memory on on
Memory_init on on
IO_HW on on
Chipset on on

Important thing to note:

Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk6) (VxVM)

Alternate bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk4) (LVM)

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4_p2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk4_p2
Root: lvol3 on: /dev/disk/disk4_p2
Swap: lvol2 on: /dev/disk/disk4_p2
Dump: lvol2 on: /dev/disk/disk4_p2,

# /etc/vx/bin/vxlvmvglist | awk NF
LVM VOLUME GROUP INFORMATION
Name Type Physical Volumes
vg00 Non-Root c2t1d0

# /etc/vx/bin/vxdevlist
DEVICE DISK GROUP STATUS
disk5 - - LVM
disk4_p2 - - LVM
disk6_p2 rootdisk01 rootdg online

In other words, this server has two boot disks
(agile DSFs disk4 and disk6) running two
different volume managers!

With a simple reboot one can toggle between
LVM and VxVM.

Maybe this helps someone one day.

Cheers,

VK2COT
VK2COT - Dusan Baljevic