System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

replace bad drive in OS mirror

 
SOLVED
Go to solution
cnhpux01
Occasional Contributor

replace bad drive in OS mirror

HP9000 N class, runnning HPUX B.11 have c1t60 and c2t6d0 in vg00 and OS mirrored.

C2t6d0 drive is bad.

I am going to use this Procedure to replace the bad drive

Hotswap (remove the bad drive then replace the new drive)


#ioscan -fnC disk
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0
#vgchange -a y /dev/vg00
#mkboot /dev/rdsk/c2t6d0
#mkboot -a "hpux -lq" /dev/rdsk/c2t6d0
#vgsync /dev/vg00
#lvlnboot -R

 

Please let me know if this will work

 

Thanks

 

-C

8 REPLIES
Torsten.
Acclaimed Contributor

Re: replace bad drive in OS mirror

Follow this:

 

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
cnhpux01
Occasional Contributor

Re: replace bad drive in OS mirror

The document is general.

 

How do I know the system have LVM Online Disk Replacement (LVM OLR) ?

 

Can I do swap the disk online or single user mode?

 

Does any one have experience with similiar issue like in this?

 

Thanks,

 

-C

Torsten.
Acclaimed Contributor

Re: replace bad drive in OS mirror

Do

 

# man pvchange

 

if "-a" is listed, you can do OLR.

 

No need to go into single user mode.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
cnhpux01
Occasional Contributor

Re: replace bad drive in OS mirror

When I do "man pvchange"

 

did not see option "-a"

only see option "-A"

 

Remarks: pvchange cannot be performed if the volume group is activated in shared
mode.

 

Does that mean, cannot do OLR? 

so in this case must perform single usermode?

 

Do I need to do lvreduce *, vgreduce, remove the bad drive in single usermode?

 

Thanks,

 

-C

pradeep m
Respected Contributor

Re: replace bad drive in OS mirror

This means that you do not have LVM OLR functionality in that server. In this case you can use any of the below 2 methods.


Method 1:

Remove the disk from the volume group and readding the replaced disk to volume group. This requires the below steps: 
1. Reduce any logical volumes that have the mirror copies on the faulty disk.
2. Remove the PV from the volume group.
3. Replace the faulty disk. 
4. Detect the newly replaced disk with ioscan. 
5. Now follow the steps to Mirror the Root Volume on PA-RISC Servers (Appendix D) as mentioned in the HP whitepaper

When Good Disks Go Bad: Dealing with Disk Failures under LVM: 
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

 

Method 2:

Shut down the system. This halts LVM access to the disk, but makes the entire system inaccessible. Use this option
only if you do not want to remove the disk from the volume group and you cannot deactivate it.

 

Regards,
Pradeep

I am an HP Employee
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details


badgujar_ashish
Occasional Advisor

Re: replace bad drive in OS mirror

the above mentioned step will work witout any issues .

Ralf_S
Occasional Advisor

Re: replace bad drive in OS mirror

Hello,

 

my notes cite the same commands. The differences are in the ordering of the commands, which does not make any difference here.

 

--> It will work.

 

Bye

Ralf

 

cnhpux01
Occasional Contributor
Solution

Re: replace bad drive in OS mirror

Thanks All,

 

-C