Operating System - HP-UX
1834254 Members
3530 Online
110066 Solutions
New Discussion

Re: Running vxcp_lvmroot errors

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Running vxcp_lvmroot errors

I am trying to convert a servers LVM HP-UX root disk, vg00 to Veritas controlled, VxVM.. When running vxcp_lvmroot on the 2nd disk to set it up under Veritas controll I am receiving the following error:

=>/etc/vx/bin/vxcp_lvmroot -v -b c2t5d0
vxcp_lvmroot 08:08: Gathering information on LVM root volume group vg00
vxcp_lvmroot 08:08: Checking specified disk(s) for usability
vxcp_lvmroot 08:08: Starting up VxVM
vxcp_lvmroot 08:08: Preparing disk c2t5d0 as a VxVM root disk
vxcp_lvmroot 08:08: Adding disk c2t5d0 to rootdg as DM rootdisk01
vxcp_lvmroot 08:08: Copying /dev/vg00/lvol1 (hfs) to /dev/vx/dsk/rootdg/standvol
xcp_lvmroot 08:08: Cloning /dev/vg00/lvol2 (swap) to /dev/vx/dsk/rootdg/swapvol
vxcp_lvmroot 08:08: Copying /dev/vg00/lvol3 (vxfs) to /dev/vx/dsk/rootdg/rootvol
vxcp_lvmroot 08:09: Copying /dev/vg00/lvol4 (vxfs) to /dev/vx/dsk/rootdg/homevol
vxcp_lvmroot 08:09: Copying /dev/vg00/lvol5 (vxfs) to /dev/vx/dsk/rootdg/optvol
vxcp_lvmroot 08:17: Copying /dev/vg00/lvol6 (vxfs) to /dev/vx/dsk/rootdg/tmpvol
vxcp_lvmroot 08:17: Copying /dev/vg00/lvol7 (vxfs) to /dev/vx/dsk/rootdg/usrvol
vxcp_lvmroot 08:22: Copying /dev/vg00/lvol8 (vxfs) to /dev/vx/dsk/rootdg/varvol
vxcp_lvmroot 08:27: Setting up disk c2t5d0 as a boot disk
Could not open /usr/sbin/diag/lif/updatediaglif2: No such file or directory
vxcp_lvmroot: ERROR: Making rootdisk01 into a bootable disk
vxcp_lvmroot 08:27: Cleaning up
vxcp_lvmroot 08:27: DM rootdisk01 (DA c2t5d0) could not be removed
vxcp_lvmroot 08:27: Reason follows
vxvm:vxdg: ERROR: disassociating disk-media rootdisk01:
Cannot remove last disk in disk group
vxcp_lvmroot 08:27: Clean up complete
=>

What do I need to do to correct this issue and proceed ??

Thanks
6 REPLIES 6
MikeL_4
Super Advisor

Re: Running vxcp_lvmroot errors

I found the issue here was the pa offline diag's were not installed... I have that there now and I tried to rerun the vxcp_lvmroot command and now received the following issue:

=>/etc/vx/bin/vxcp_lvmroot -v -b c2t5d0
vxcp_lvmroot 13:31: Gathering information on LVM root volume group vg00
vxcp_lvmroot 13:31: Checking specified disk(s) for usability
vxcp_lvmroot: ERROR: Disk c2t5d0 is in use as DM rootdisk01 in DG rootdg

How do I wipe this out in order to redue the process ?

Hasan  Atasoy
Honored Contributor
Solution

Re: Running vxcp_lvmroot errors

hi;

problem is , in the first run rootdg ( vxvm volume group ) is created and your disk is put on that dg. so you need to remove that volume group and start the process from scratch .

1. vxdg -g rootdg rmdisk c2t5d0
2. vxdg deport rootdg

Hasan.
MikeL_4
Super Advisor

Re: Running vxcp_lvmroot errors

Received these errors:

=>vxdg -g rootdg rmdisk c2t5d0
vxvm:vxdg: ERROR: Disk c2t5d0 not found in configuration

=>vxdg deport rootdg
vxvm:vxdg: ERROR: Disk group rootdg: deport failed: Operation not allowed on root disk group
Robert-Jan Goossens_1
Honored Contributor

Re: Running vxcp_lvmroot errors

Because c2t5d0 is the last disk in the diskgroup you will need to destroy the diskgroup.

# vxdg destroy rootdg

MikeL_4
Super Advisor

Re: Running vxcp_lvmroot errors

Received the following error when trying the vxdg destroy command:

=>vxdg destroy rootdg
vxvm:vxdg: ERROR: Disk group rootdg: deport failed: Operation not allowed on root disk group
MikeL_4
Super Advisor

Re: Running vxcp_lvmroot errors

On the Veritas Support Site I got the following fix to the problem that worked:

1. touch install-db in /etc/vx/reconfig.d/state.d (to prevent VM daemon running upon rebot).

2. reboot server

3. Run vxcp_lvmroot -v again

=>/etc/vx/bin/vxcp_lvmroot -v -b c2t5d0
vxcp_lvmroot 07:52: Gathering information on LVM root volume group vg00
vxcp_lvmroot 07:52: Checking specified disk(s) for usability
vxcp_lvmroot 07:52: Starting up VxVM
vxcp_lvmroot 07:52: Preparing disk c2t5d0 as a VxVM root disk
vxcp_lvmroot 07:52: Adding disk c2t5d0 to rootdg as DM rootdisk01
vxcp_lvmroot 07:52: Copying /dev/vg00/lvol1 (hfs) to /dev/vx/dsk/rootdg/standvol
vxcp_lvmroot 07:52: Cloning /dev/vg00/lvol2 (swap) to /dev/vx/dsk/rootdg/swapvol
vxcp_lvmroot 07:52: Copying /dev/vg00/lvol3 (vxfs) to /dev/vx/dsk/rootdg/rootvol
vxcp_lvmroot 07:53: Copying /dev/vg00/lvol4 (vxfs) to /dev/vx/dsk/rootdg/homevol
vxcp_lvmroot 07:53: Copying /dev/vg00/lvol5 (vxfs) to /dev/vx/dsk/rootdg/optvol
vxcp_lvmroot 08:01: Copying /dev/vg00/lvol6 (vxfs) to /dev/vx/dsk/rootdg/tmpvol
vxcp_lvmroot 08:02: Copying /dev/vg00/lvol7 (vxfs) to /dev/vx/dsk/rootdg/usrvol
vxcp_lvmroot 08:07: Copying /dev/vg00/lvol8 (vxfs) to /dev/vx/dsk/rootdg/varvol
vxcp_lvmroot 08:11: Setting up disk c2t5d0 as a boot disk
vxcp_lvmroot 08:11: Installing fstab and fixing dev nodes on new root FS
vxcp_lvmroot 08:11: Installing bootconf & rootconf files in new stand FS
vxcp_lvmroot 08:11: Current setboot values:
vxcp_lvmroot 08:11: Primary: 10/0/15/0.6.0
vxcp_lvmroot 08:11: Alternate: 10/0/14/0.0.0
vxcp_lvmroot 08:11: Making disk c2t5d0 (10/0/15/0.5.0) the primary boot disk
vxcp_lvmroot 08:11: Making disk c2t6d0 (10/0/15/0.6.0) the alternate boot disk
vxcp_lvmroot 08:11: Disk c2t5d0 is now a VxVM rootable boot disk
=>