1753857 Members
7131 Online
108809 Solutions
New Discussion юеВ

Re: vxrootmir ERROR

 
g0nz0
Occasional Advisor

vxrootmir ERROR

The system gives an error when trying to mirror ("VxVM") with a newly installed disk in the system.

The error is as follows:

hub0x002:/# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t1d0s2 auto:hpdisk rootdisk02 rootdg online
c2t8d0 auto:hpdisk c2t8d0 aplic2_dg online
c4t8d0 auto:hpdisk c4t8d0 aplic2_dg online

hub0x002:/# idisk -wf /tmp/partitionfile /dev/rdsk/c2t0d0
hub0x002:/# insf -eC disk
hub0x002:/# mkboot -e -l /dev/dsk/c2t0d0

hub0x002:/# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t1d0s2 auto:hpdisk rootdisk02 rootdg online
c2t8d0 auto:hpdisk c2t8d0 aplic2_dg online
c4t8d0 auto:hpdisk c4t8d0 aplic2_dg online

hub0x002:/# vxdctl enable
hub0x002:/# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:none - - online invalid
c2t1d0s2 auto:hpdisk rootdisk02 rootdg online
c2t8d0 auto:hpdisk c2t8d0 aplic2_dg online
c4t8d0 auto:hpdisk c4t8d0 aplic2_dg online

hub0x002:/# /etc/vx/bin/vxdisksetup -iB c2t0d0s2 format=hpdisk

hub0x002:/# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:hpdisk - - online
c2t1d0s2 auto:hpdisk rootdisk02 rootdg online
c2t8d0 auto:hpdisk c2t8d0 aplic2_dg online
c4t8d0 auto:hpdisk c4t8d0 aplic2_dg online

hub0x002:/var/adm/syslog# vxdg -g rootdg adddisk rootdisk01=c2t0d0s2
hub0x002:/var/adm/syslog# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2t0d0s2 auto:hpdisk rootdisk01 rootdg online
c2t1d0s2 auto:hpdisk rootdisk02 rootdg online
c2t8d0 auto:hpdisk c2t8d0 aplic2_dg online
c4t8d0 auto:hpdisk c4t8d0 aplic2_dg online

hub0x002:/# vxassist -g rootdg mirror standvol rootdisk01
hub0x002:/# vxassist -g rootdg mirror swapvol rootdisk01
hub0x002:/dev# /opt/VRTS/bin/vxrootmir -v -b c2t0d0

VxVM vxrootmir INFO V-5-2-2501 11:18: Gathering information on the current VxVM root configuration

VxVM vxrootmir INFO V-5-2-2441 11:18: Checking specified disk(s) for usability

VxVM vxrootmir INFO V-5-2-2566 11:18: Preparing disk c2t0d0 as a VxVM root disk

VxVM vxrootmir INFO V-5-2-3766 11:18: Disk c2t0d0 is now EFI partitioned disk c2t0d0s2

VxVM vxrootmir INFO V-5-2-2410 11:18: Adding disk c2t0d0s2 to rootdg as DM rootdisk01

VxVM vxrootmir INFO V-5-2-1646 11:18: Mirroring all volumes on root disk

VxVM vxrootmir INFO V-5-2-1648 11:18: Mirroring volume standvol

VxVM vxrootmir INFO V-5-2-1648 11:18: Mirroring volume swapvol

VxVM vxrootmir INFO V-5-2-1648 11:26: Mirroring volume rootvol

VxVM vxvmboot ERROR V-5-1-8879 vxvmboot: Disk /dev/vx/rdmp/c2t0d0s2 does not contain valid LIF structures.

Run mkboot prior to running this command.

VxVM vxbootsetup ERROR V-5-2-2697 vxvmboot failed for standvol on /dev/vx/rdmp/c2t0d0s2

VxVM vxassist ERROR V-5-1-510 Could not setup boot partition for new root mirror(s)

VxVM vxrootmir ERROR V-5-2-1648 Mirroring volume rootvol

VxVM vxrootmir INFO V-5-2-2443 11:26: Cleaning up

VxVM vxrootmir INFO V-5-2-2442 11:26: Clean up complete


Any suggestions on this?

Thank you!
6 REPLIES 6
g0nz0
Occasional Advisor

Re: vxrootmir ERROR

there are some brave?

:-P
Shankar V Subramanian
Occasional Advisor

Re: vxrootmir ERROR

g0nz0,

Things sounds to be fine. But, why was the below commands executed?

# vxdg -g rootdg adddisk rootdisk01=c2t0d0s2
# vxassist -g rootdg mirror standvol rootdisk01
# vxassist -g rootdg mirror swapvol rootdisk01

I think the problem is that you have already added the disk to rootdg and mirrored a couple of volumes on it. Well, when you execute the vxrootmir, it automatically initializes, adds the disk into rootdg and mirror's all the volumes. We need not do it manually. Since, vxrootmir is like a one shot command (does everything!).

If you could check #vxprint -htg rootdg, you should be able to find out the clear status of the volumes (VxVM objects)which may reside on this disk. Remove everything and just execute the command

#/opt/VRTS/bin/vxrootmir -v -b c2t0d0

Hope it helps.

All the best!
-SH
g0nz0
Occasional Advisor

Re: vxrootmir ERROR

Hi,

#idisk -Wr /tmp/partition-file /dev/rdsk/c2t0d0
#mkboot -e -l /dev/rdsk/c2t0d0
#insf -eC disk
#vxdctl enable
#vxdisk list
#vxbrk_rootmir -v -b c2t0d0s2
VxVM vxrootmir INFO V-5-2-2501 11:18: Gathering information on the current VxVM root configuration

VxVM vxrootmir INFO V-5-2-2441 11:18: Checking specified disk(s) for usability

VxVM vxrootmir INFO V-5-2-2566 11:18: Preparing disk c2t0d0 as a VxVM root disk

VxVM vxrootmir INFO V-5-2-3766 11:18: Disk c2t0d0 is now EFI partitioned disk c2t0d0s2

VxVM vxrootmir INFO V-5-2-2410 11:18: Adding disk c2t0d0s2 to rootdg as DM rootdisk01

VxVM vxrootmir INFO V-5-2-1646 11:18: Mirroring all volumes on root disk

VxVM vxrootmir INFO V-5-2-1648 11:18: Mirroring volume standvol

VxVM vxrootmir INFO V-5-2-1648 11:18: Mirroring volume swapvol

VxVM vxrootmir INFO V-5-2-1648 11:26: Mirroring volume rootvol

VxVM vxvmboot ERROR V-5-1-8879 vxvmboot: Disk /dev/vx/rdmp/c2t0d0s2 does not contain valid LIF structures.

Run mkboot prior to running this command.

VxVM vxbootsetup ERROR V-5-2-2697 vxvmboot failed for standvol on /dev/vx/rdmp/c2t0d0s2

VxVM vxassist ERROR V-5-1-510 Could not setup boot partition for new root mirror(s)

VxVM vxrootmir ERROR V-5-2-1648 Mirroring volume rootvol

VxVM vxrootmir INFO V-5-2-2443 11:26: Cleaning up

VxVM vxrootmir INFO V-5-2-2442 11:26: Clean up complete

Thank You!
Shankar V Subramanian
Occasional Advisor

Re: vxrootmir ERROR

Hi,

?-Are we setting up a new mirrored copy or, is this a failed disk which was replaced?
#vxprint -ht -g rootdg
# vxvmboot -v /dev/rdsk/cXtXdXs2 (Try on both the disks)

-SH
g0nz0
Occasional Advisor

Re: vxrootmir ERROR

The disk is new, was replaced by another disk failure.

:-D
Shankar V Subramanian
Occasional Advisor

Re: vxrootmir ERROR

Hi,

Perhaps, my question isn't clear. You already had a mirrored copy of the VxVM boot disk and removed it because it failed and replaced a new disk and trying to mirror it back?

If yes, was the disk removed using appropriate procedures?

Also, the output of the below please.

#vxprint -ht -g rootdg
# vxvmboot -v /dev/rdsk/cXtXdXs2 (Try on both the disks)

-SH