Operating System - HP-UX
1844260 Members
2842 Online
110230 Solutions
New Discussion

Re: How to replace a mirrored VxVM root disk

 
Steven Hargus_3
Advisor

How to replace a mirrored VxVM root disk

Hello -

I have a server with the two internal disks formatted with VxVM running HP-UX 11iV2. The two disks are mirrored using vxrootmir. I have the basic VxVM license.

One of the internal disks is reporting that it will fail soon. I do not know yet if the disk is the primary or the mirror copy.

What steps do I need to do to replace the disk and restore the LIF and boot info?

Thanks
14 REPLIES 14
Geoff Wild
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Check out:

http://docs.hp.com/en/5991-1838/5991-1838.pdf

There are sections on mirroring root...in chapter 2...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Hi steven,

Please let us know the output of the following commands. We will let you know how to replace teh disk step by step, analyzing the data.

vxdisk list
vxprint -t
vxprint -ht
echo "boot_string/S" | adb /stand/vmunix /dev/kmem
ioscan -funC disk

And the error messages related to the disk failure (probably from syslog or dmesg).

Once you give these outputs, we will give the step by step instructions with commands.

Regards,
Senthil Kumar .A

Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Steven Hargus_3
Advisor

Re: How to replace a mirrored VxVM root disk

I have attached a file with the output from the commands.

The drive has not failed yet. We got an EMS message as follows:


Summary:
Disk at hardware path 0/1/1/0.1.0 : A SMART event has occurred.


Description of Error:

The drive has predicted that it will fail in the near future. Contact
your HP support representative as soon as possible.

Probable Cause / Recommended Action:

A SMART event has occurred. The drive has detected a serious condition in
itself that indicates it will soon fail. Contact your HP support
representative as soon as possible. Back up the data on the drive now!

jamesps
Regular Advisor

Re: How to replace a mirrored VxVM root disk

One way you can do it is using vxdiskadm like this:

Launch vxdiskadm
Choose option 3 "Remove a disk for replacement"
Follow the prompts then finally remove the drive.
Insert the new disk.
Launch vxdiskadm again
Choose option 4 "Replace a failed or removed disk"

The new disk will take the name of the old one and the VxVM will take care of the rest.

Hope this helps,
james
Steven Hargus_3
Advisor

Re: How to replace a mirrored VxVM root disk

But will it fix the boot code?
Alzhy
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Alzhy
Honored Contributor

Re: How to replace a mirrored VxVM root disk

And most specially:

http://docs.hp.com/en/5187-1374/ch02s02.html


Hope this helps.
Hakuna Matata.
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Hi steven,

I'm in the process of creating the doc with commands to fix your issue, I will post it immediately once it is done. It would take about 15 minutes,

Meanwhile u haven't given the error message, meaning, you havent indicated which disk is failing.

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

ignore my disk failure query .. got it from ur post..

:( I always do this mistake not noticing the post properly, I was concentrating on ur doc attachment.

nevermind,

I building your process..

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Hi steven,

I would prefer u seeing the txt file attachment. It contains the same instruction that is given below.

Firstly, the system has booted from, /dev/dsk/c2t0d0 as the adb output suggests.
It is the second disk /dev/dsk/c2t1d0 from which it is not booted from and is also the one failing making our procedure easy.
The steps for replacing the second disk is as follows. Here I have given basic commands to
achieve it,

1) You need to disassociate the plexes associated from the second disk,

vxplex -g rootdg homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02


verify the action,
vxprint -t


2) you need to delete the plexes that are disassociated now.

vxedit -g rootdg -r rm homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02

verify the action,
vxprint -t


3) remove the second disk from the rootdg,

vxdg -g rootdg rmdisk rootdisk02

Now you can repalce the second disk, say if it is hot pluggable , u do not have any issues,
follow the instruction by the vendor, If it is not hotplugable, shutdown the unix box. replace
disk with the new one. Boot the machine. Now run the "ioscan -fnC disk" command. Let us assume
the device file for the new disk is the same as the repalced one. Now you can perform the mirror-
ing with the following command.

/etc/vx/bin/vxrootmir -v c2t1d0


This process might take about 20 minutes, verify it by issuing the following command.

vxprint -t

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Important....


In the second step command, i have missed a keyword "dis"...please use the following..

vxplex -g rootdg dis homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02


Million apologies..

Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Hi steven,


:( scrap my last 2 posts..

the corrected version of the attachment and post is this one..


Firstly, the system has booted from, /dev/dsk/c2t0d0 as the adb output suggests.
It is the second disk /dev/dsk/c2t1d0 from which it is not booted from, is the one failing.
The steps for replacing the second disk is as follows. Here I have given basic commands to
achieve it,

1) You need to disassociate the plexes associated from the second disk,

vxplex -g rootdg dis homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02

verify the action,
vxprint -t


2) you need to delete the plexes that are disassociated now.

vxedit -g rootdg -r rm homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02

verify the action,
vxprint -t


3) remove the second disk from the rootdg,

vxdg -g rootdg rmdisk rootdisk02

Now you can repalce the second disk, say if it is hot pluggable , u do not ahve any issues,
follow the istruction by the vendor, If it is not hotplugable, shutdown the unix box. replace
disk with the new one. Boot the machine. Now run the "ioscan -fnC disk" command. Let us assume
the device file for the new disk is the same as the repalce one. Now you can perform the mirror-
ing with the following command.

/etc/vx/bin/vxrootmir -v c2t1d0


This process might take about 20 minutes, verify it by issuing the following command.

vxprint -t

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: How to replace a mirrored VxVM root disk

If you want my online support,

Please free to contact me online with the following chat messengers,

yahoo - senthil_anantha
msn - senthil_anantha@hotmail.com
aol - senthilanantha@aim.com

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Alzhy
Honored Contributor

Re: How to replace a mirrored VxVM root disk

Steven,

Senthil's detailed process is correct as is depicted in the official VxVM documents - which I think misses those tiny but important details..

Senthil, I sent you an email to those 3 addresses you posted. Please check them out.. I've a question for you.
Hakuna Matata.