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

Replace primary root disk in rp4440 HP-UX 11.23

SOLVED
Go to solution
Tariq Hasan_1
Frequent Advisor

Replace primary root disk in rp4440 HP-UX 11.23

Hi

I have a RP4440 running 11.23. The Primary root disk has failed, it is running of the mirror.

ioscan -fnCdisk (which took ages) shows:

disk 36 0/1/1/0.0.0 sdisk NO_HW DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

syslog entry, which is coming out repeatedly

Jan 10 11:57:12 SERVER_NAME vmunix: SCSI Ultra320 0/1/1/0 instance 2: IO Type : MPT Domain Validation IO has timed-out. Target ID: 0, LUN ID: 0. Inquiry Command - CDB: 12 00 00 00 40 00

I have raised a call for a replacement. What do I have to do before or after the disk is replaced?

Thanks

Tariq

18 REPLIES
hvhari
Esteemed Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Hi Tariq,

Below guide should help you in detail. Refer Page36 for Mirrored boot disk replacement.

http://www11.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01911837

With regards
Hari
Regards,
Hari

If this post was useful , click the Kudos Star on the left side to say Thanks!
Rita C Workman
Honored Contributor
Solution

Re: Replace primary root disk in rp4440 HP-UX 11.23

Tariq,

You can:

Open an LVM book and read on this, since you have time
You can do a SEARCH here

Or you can login to the HP docs site that has move to it's new location and go to this thread....go to the bottom of the page and you will find the famous:
When Good Disks Go Bad document that will give you a step by step on what to do..

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

Rgrds,
Rita
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

some simple steps :-

Please follow the steps below to replace root disk.

â ¢ Please check that the disk is hot swappable or not

â ¢ Use pvchange â a N /dev/dsk/cxtxdx before removing the disk is if doesn`t work use pvchange â a n /dev/dsk/cxtxdx , this will disable the pv paths /path.

â ¢ ioscan â fnC disk
To make sure disk C1t15d0 is visible & CLAIMED

â ¢ Add the new disk and use command pvcreate â B /dev/rdsk/cxtxdx to make the disk bootable disk


â ¢ diskinfo /dev/rdsk/c1t15d0
To make sure disk size.

â ¢ dd if=/dev/rdsk/c1t15d0 of=/dev/null bs=1024 count=1000
To check the integrity of disk.

â ¢ mkboot â l /dev/rdsk/c1t15d0
To place boot utilities in the boot area

â ¢ mkboot â a â hpux â lqâ /dev/rdsk/c1t15d0
To add an AUTO file in boot LIF area

â ¢ lifcp /dev/rdsk/c0t5d0:AUTO â
To Check the contents of the AUTO file

â ¢ setboot â v
To make sure the H/W path for primary and alternate boot disk.

â ¢ vgcfgrestore â n vg00 /dev/rdsk/c1t15d0
To restore the VG configuration on to the disk

â ¢ Vgchange â a y vg00
To re-activate the VG00

â ¢ vgsync vg00
To make sure all the lvolâ s in VG00 are synchronized
â ¢ lvlnboot â R To update the BDRA.

â ¢ lvlnboot â v
To make sure, both disks are showing as Boot disk.

make entries in # vi /stand/bootconf
HP-UX been always lovable - Mani Kalra
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Thanks

Could someone provide a step by step guide to replace the failed disk:

The failed disk is:

/dev/dsk/c2t0d0

Server is running on mirror:

/dev/dsk/c2t1d0

I have tried to follow the when good disks go bad doc, but find it a little confusing.

Basically I need step by step.

Regards

Tariq
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

What do i have to do before the engineer swaps the disk? Unmirror, reduce vg00?
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Please read the stepwise attachment !!

Thanks

Manix
HP-UX been always lovable - Mani Kalra
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Please do assign some points if we all were helpful to you.

Thanks
HP-UX been always lovable - Mani Kalra
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

I most definitely will when the problem gets resolved. Manix, I'm gonna use your solution you attached. fingers crosed!
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Hello Tariq !!

it will work ..as i used it many times.

The thing is to attach and detach the disk with
pvchange command ,which works if there are
OLAR patches installed as mentioned in
the doc "when good disk go bad"

Thanks
Mani
Happy to help !!
HP-UX been always lovable - Mani Kalra
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Do i need to vgreduce the disk out of vg00 before the eng. removes the disk?
Torsten.
Acclaimed Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

No vgreduce needed.




All the steps are here:



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!   
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Manix

Thanks, it all worked fine. Although my /stand/bootconf file only has one entry for the drive c2t1d0 (the good one). I've looked on other servers, are again there is only one entry.
Torsten.
Acclaimed Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Better add the second disk on all servers.

This step was probably never done.



If a patch replaces the EFI boot loader (hpux.efi), this entry is important.

No entry = no update !

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!   
Torsten.
Acclaimed Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

... same for the hpux loader in LIF for RISC machines.

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!   
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Hey !!

It`s recommended to add both the entries in
"/stand/bootconf".



Where mirrors exist, the /stand/bootconf
MUST have its own line for each of the
mirrors (LVM or VxVM).

/stand/bootconf is used by SD-UX and kernel
control scripts to determine how and where
to update the boot loader.

The /stand/bootconf file contains the
address and disk layout type of the system's
boot devices. It is used by the HP-UX kernel
control script (fileset OS-Core.KERN-RUN) to
determine how and where to update the
initial boot loader.

Do it on all servers !!

Thanks

Manix
HP-UX been always lovable - Mani Kalra
Manix
Honored Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

Hello Tariq !!

Please do the needful as mentioned by "Torsten"
as well as thanks for your generosity in assigning points.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
Tariq Hasan_1
Frequent Advisor

Re: Replace primary root disk in rp4440 HP-UX 11.23

do both disks need the 'l' prefix before them?
what does the 'l' signify in

l /dev/dsk/c2t1d0
P Arumugavel
Respected Contributor

Re: Replace primary root disk in rp4440 HP-UX 11.23

hi,

This is "l" (Lower case L) represents LVM.

Rgds...