Operating System - HP-UX
1748030 Members
5155 Online
108757 Solutions
New Discussion юеВ

HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the original

 
gr8_lkr
Advisor

HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the original

But first the history: Our customer needed to replace disk37 last week and reports what should have been a relatively easy one for one swap took hours as our customer needed to remove mirrored extents from the failed disk first. And serveral reboots were required.

The procedure our customer followed was:

HP-UX 11.31

Find lunpath for faulty disk

ioscan -m lun /dev/disk/disk37

уАА

Detach physical volume from LVM

pvchange -a N /dev/dsk/cntnd0

уАА

Replace disk

уАА

HP-UX 11.31

Check disk with agile ioscan view

ioscan тАУm lun /dev/disk/disk37

If OK, shows health=online, state=NO_HW

If not OK, shows blank lunpath, health=offline, state=NO_HW

See email from David Rew, 26.06.09

уАА

If HP-UX 11.31, notify OS of change - until then will show as NO_HW in legacy

(Original disk /dev/disk/disk37, new disk /dev/disk/disk60)

scsimgr replace_wwid -D /dev/rdisk/disk37

io_redirect_dsf -d /dev/disk/disk37 -n /dev/disk/disk60

уАА

Check new disk is accessible and correctly named

ioscan -fnCdisk

ioscan -fnNCdisk

уАА

If Integrity root disk, partition disk

уАА

Restore LVM config and headers onto new disk - see below if this fails

vgcfgrestore -n vg0n /dev/rdsk/cntnd0

уАА

Attach disk to volume group

vgchange -a y vg0n

уАА

If needed, re-synch disks

vgsync vg0n

{end of procedure}

Our customer has followed the above procedure many times with great success. Prior to following the procedure on this occassion our customer rebooted the server and all went well until the "vgchange -a y" stage. The activation of the VG failed with the following message:

Cannot lock "/etc/lvmconf/lvm_lock" still trying ...

8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

Cannot lock "/etc/lvmconf/lvm_lock" still trying

 

Another LVM activity is still in progress, be patient.

 

The creation of a new device file is normal if the disk is connected to a SAS controller or if the OS is 11.31, due to a different WWID.


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!   
gr8_lkr
Advisor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

Thank You very much for your reply.

Yes as you can see in the original question that cu is running 11.31 

 

As far as any real issues with service I have not seen in comments.  I think it was confusing as to why things changed.

I assumed after vgscan completed that all would be normal operations,  is there anything else they need to do in order to "register" so to speak these new device names etc.

 

Thank You again Torsten

Torsten.
Acclaimed Contributor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

The LVM manual (somewhere on BSC... :-( ) has all the steps, including a scsimgr replace_wwid and io_redirect commands.


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!   
James R. Ferguson
Acclaimed Contributor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

Hi:

 

I believe that this will help:

 

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

 

[ The highly regarded "When Good Disks Go Bad" ]

 

Regards!

 

...JRF...

Torsten.
Acclaimed Contributor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

Oh yes, since this document includes procedures for 11.31 this is the best choice.

 

Otherwise refer to http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?lang=en&cc=us&taskId=101&prodClassId=10008&contentType=SupportManual&docIndexId=64255&prodTypeId=18964&prodSeriesId=4296010

 

-> HP-UX System Administrator's Guide: Logical Volume Management HP-UX 11i v3

 


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!   
gr8_lkr
Advisor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

thanks again,

 

we believe the guest will not migrate to another host is because of an issue in the device database.  For some reason, disk2072 shows up as a file device instead of a disk device.  we have tried a few commands to remove that entry or modify that entry but I was unsuccessful. is this why I cannot migrate the guest to another host?.  Is there a way to refresh the hpvm device database?

 

# hpvmdevmgmt -l gdev

lan0:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO::WWID_NULL

lan900:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vswSVR:WWID_NULL

vswSVR:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES::WWID_NULL

lan902:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO::WWID_NULL

vswVM:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:hnssb02:WWID_NULL

lan904:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vswVM:WWID_NULL

/dev/rdisk/disk2072:CONFIG=gdev,EXIST=YES,DEVTYPE=FILE,SHARE=NO:hnssb02:HPVM_STATID_13745_1073741827

TechC
Regular Advisor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

Hello,

 

I just replaced a mirrored boot disk on an rx8620 running HP-UX 11.31.. 

 

The disk shows as offline.. How can I bring it online. This discussion says see David Rew's email from une 26th 2009 but I am not sure where to find that.

 

Thanks

 

disk 11 64000/0xfa00/0xc esdisk NO_HW DEVICE offline HP 73.4GST373454LC
1/0/0/3/0.0x6.0x0
/dev/disk/disk11 /dev/disk/disk11_p2 /dev/rdisk/disk11 /dev/rdisk/disk11_p2
/dev/disk/disk11_p1 /dev/disk/disk11_p3 /dev/rdisk/disk11_p1 /dev/rdisk/disk11_p3

Torsten.
Acclaimed Contributor

Re: HP UX disk replacement -Why a replacement disk in the same slt had dift hrdw pahs than the origi

You need to work with "scsimgr replace_wwid" - the syslog should have an entry that suggest this, have a look into.

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!