Operating System - HP-UX
1752369 Members
6276 Online
108787 Solutions
New Discussion юеВ

Need to replace the faulty disk in hpux 11.2 [Itanium server]

 
Sreer
Valued Contributor

Need to replace the faulty disk in hpux 11.2 [Itanium server]

Hi Gurus,

I need to replace the faulty root disk in hpux 11.23 server [Itanium]

Do I need to partition the disk ?

or just to do the vgcfgrestore?

Could you have any planned steps?

Rgds Sree
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

You need to create the partitions.

Follow the steps:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.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!   
James R. Ferguson
Acclaimed Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

Torsten.
Acclaimed Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

Same document, but JRF sent the new link.

I will update my bookmarks ...

;-)

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: Need to replace the faulty disk in hpux 11.2 [Itanium server]

Hi (again):

> Torsten: Same document, but JRF sent the new link

And there's another example of how we have lost information (even if only meta) when the docs.hp.com transitioned to the "new and improved" format!

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

I agree, the name

c01911837.pdf

is somehow meaningless compared to

When_Good_Disks_Go_Bad_WP.pdf


(I still cannot understand why docs.hp.com must die.)

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!   
Sreer
Valued Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

Hi ALL,

Thanks for your reply.

But that doc is for 11.3

Mine is 11.23
the confusing thing ia that Iam not sure whether I need to do the [efi]partitioning in the new disk [which is to be replaced ].

Few doc is telling the partitioning is needed then only need to do vgcfgrestore.

But few telling no need.
Finally I prepared few steps my self by referring few docs.


1. Login to the server as root

2. Take backup of configuration files.

cp -p /etc/lvmtab /etc/lvmtab.20100609.SKR

cp -p /etc/lvmconf/vglocal.conf /etc/lvmconf/vglocal.conf.20100609.SKR

vgdisplay -v

3. Detach the PV from LVM

4. Halt LVM access to the disk.

pvchange -a N /dev/dsk/ctds2

replace the faulty disk

6. Scan the new disk and check the status of the disk

7.# ioscan -fnC disk

8. Create the device files for the newly added disk

# insf -eC disk
9. # vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB

10. idisk -wf /tmp/partitionfile /dev/rdsk/cxtydz

11. pvcreate -fB /dev/rdsk/cxtydzs2 [s2 is imp]

12. insf -e

13. mkboot -e -l /dev/dsk/cxtydz [ctd only]

14. Restore VG configuration in to the new disk

vgcfgrestore -n /dev/vg00 /dev/rdsk/CTD [CTD only]

13. update lvol boot paths

# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00

14. Use efi_ls to confirm that the EFI partition is present and populated on the
new disk:

# efi_ls -d /dev/rdsk/cxtydzs1 ====> [S1 is important]

15. edit the AUTO file so we can boot when one disk is missing.

# efi_cp -d /dev/rdsk/c2t0d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO -------------may confuse here AUTO is in EFI so we are using s1

# vi /tmp/AUTO

modify "boot vmunix" to "boot vmunix -lq"

then put back the file on[ both ]EFI partitions with: mean in both disks

# efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO /EFI/HPUX/AUTO [ imagine /EFI/HPUX/AUTO is part of s1]

# efi_cp -d /dev/rdsk/c2t0d0s1 /tmp/AUTO /EFI/HPUX/AUTO



16. set the alternate EFI Bootpath to the mirrored disk

17. setboot -a HW-path to the mirrored disk

18. that s it!!!???


pls advice!!!! thanks inadvance
Torsten.
Acclaimed Contributor

Re: Need to replace the faulty disk in hpux 11.2 [Itanium server]

In the document chapter 6 is for OS prior to 11.31; chapter 7 is for 11.31.

So use the document!


Your procedure looks good.


Do you have SAS disks?

In this case the procedure may be even a bit different.

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!