Re: Replaced Disk on HP Integrity RX2620 Server (770 Views)
Reply
Regular Advisor
Chad Brindley
Posts: 138
Registered: ‎11-16-2004
Message 1 of 12 (773 Views)

Replaced Disk on HP Integrity RX2620 Server

Hi,

It's been a while since I did this but we had a faulty disk on our server running HPUX 11.23.

It was c2t0d0 and I believed the device was hot swappable, after running an ioscan before disk replacement it had a solid green light and the disk was showing with NO_HW after an ioscan. I did notice when running n a vgdisplay for vg00 it showed as unavailable but some of the LV segments were sync'd still.

New disk arrived today and the other was replaced, but it hasnt that I can tell started to rebuild and mirror itself with the other disk installed, I thought it would.

What have I done wrong? Should I have broke the mirror manually due to some of the LV segments still being sync'd, it looks like the disk was on its way out but possibly still had a little life in it.

I am a little cautious of running a vgsync manually at the moment.

Regards,

Chad
Honored Contributor
Mel Burslan
Posts: 3,214
Registered: ‎08-26-1998
Message 2 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Is the new disk still showing up as NO_HW on ioscan output or is it CLAIMED now ?

Did you run idisk against it to create the sub-partitions ? c2t0d0s1, c2t0d0s2 and c2t0d0s3 devices are what I meant (provided hardware shows claimed now.

If you can provide this information, the answers coming in might be more helpful.
________________________________
UNIX because I majored in cryptology...
Regular Advisor
Chad Brindley
Posts: 138
Registered: ‎11-16-2004
Message 3 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Hi,

Ran ioscan -fnCdisk and the disk is still showing as NO_HW. When I inserted the disk, a green light flashed a few times and now its got no lights on at all.

I didnt run idisk. Thats a new command for a low level unix bod like me. Can you explain to me some more?

We only have two physical disks on the server.

Regards,

Chad
Honored Contributor
likid0
Posts: 981
Registered: ‎03-01-2005
Message 4 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Here is and example of the steps you should follow when replacing a disk, that is lvm mirrored :

Verify that the disk to replace appears in the list of bootable peripherals
#lvlnboot -v
Check the list of LV on the disk
#pvdisplay â v /dev/dsk/c0t6d0s2 | more
Verifying the mirror configuration for all LVâ s on the vg00.
#lvdisplay /dev/vg00/lvname(s) | grep â Mirror copiesâ
Disabling failed disk
#pvchange â a N /dev/dsk/c0t6d0s2
Replace disk Verifying new disk
#ioscan â fC disk
Cleaning old EFI configuration
#idisk â Rw /dev/rdsk/c0t6d0
Creating disk partitioning description file
#vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB
Partitioning of new disk
#idisk â f /tmp/partitionfile â w /dev/rdsk/c0t6d0
Partitioning verification
#idisk /dev/rdsk/c0t6d0
Creating SF
#insf -e -H 0/0/0/3/0.6.0
Initializing FAT File system for the EFI partition
#efi_fsinit -d /dev/rdsk/c0t6d0s1
Creating LVM bootable disk (If the disk is already present in lvmtab, this step is likely to be not necessary. If a message appears on the execution of this command, just ignore it.)
#pvcreate â Bf /dev/rdsk/c0t6d0s2
Copy software boot (with EFI)
#mkboot â e â l /dev/rdsk/c0t6d0
Modification of AUTO file for the boot quorum
#mkboot -a "boot vmunix -lq" /dev/rdsk/c0t6d0
Verifying« AUTO » file
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO
#cat /tmp/AUTO
Checking the contents of the LIF directory
#efi_ls -d /dev/rdsk/c0t6d0s1
Restoring LVM configuration on the new disk
#vgcfgrestore â n vg00 /dev/rdsk/c0t6d0s2
Enabling disk:
#pvchange â a y /dev/dsk/c0t6d0s2
#vgchange â a y vg00
Resynchronization LV
# vgsync vgname *: Last step is necessary if the « vgchange » does not start automatically the resynchronization.*
Check sync,with the following vgdisplay command we can check the lvol status, once it is in the state "available/syncd" it has finished the sync
#vgdisplay -v vg00 | grep -E '(LV Name|LV Status)'
If we wan't to check on the how many stale PE's are left on the lvol we can run the following lvdisplay command, the stale PE's should decrease when the reach 0 it has finished.
#lvdisplay -v $i | grep stale | wc -l
Windows?, no thanks
Regular Advisor
Chad Brindley
Posts: 138
Registered: ‎11-16-2004
Message 5 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Hi Daniel,

This is not something I have had to do before so thanks for the information.

All I have done is taken out the faulty disk and replaced with a new disk, didnt touch the OS at all, it looks like I might need to.
--------------------------------------------
#lvlnboot -v vg00

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group.

/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) --Boot Disk
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0)

Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0
--------------------------------------------
#setboot

Primary bootpath : 0/1/1/0.0.0
HA Alternate bootpath :
Alternate bootpath : 0/1/1/0.1.0

Autoboot is ON (enabled)
--------------------------------------------

pvdisplay -v /dev/dsk/c2t0d0s2

(as attached).

Apologies for information dumping, just thought it might help give me the exact commands I require.

Chad
Honored Contributor
likid0
Posts: 981
Registered: ‎03-01-2005
Message 6 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Sorry for the output I will attach the file.

Since you have already changed the disk, you can follow from where the disk is replaced.

I would also recommend taking a look at this pdf doc, it's a must:

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf
Windows?, no thanks
Honored Contributor
Mel Burslan
Posts: 3,214
Registered: ‎08-26-1998
Message 7 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Obviously, your old device path is still showing a NO_HW status. This happens when you insert a new disk instead of an old, failed one on the RX series hardware. It gets a new device name/number.

please provide the output for :

sasmgr get_info -D /dev/sasd0 -v -q lun=all -q lun_locate

assuming you have a smart array controller on this server. If the command above fails, please provide a full output for

ioscan -fn

most probably, it is best of you can attach it to your response rather than pasting it in, as it formats better in a text pad of some sort.
________________________________
UNIX because I majored in cryptology...
Acclaimed Contributor
Torsten.
Posts: 23,373
Registered: ‎10-02-2001
Message 8 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

It's not a sas disk, so the sasmgr command will not help.


The provided steps above are correct, your disk is not boot able

/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) --Boot Disk
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0)


and still unavailable in your pvdisplay.

Perform the steps one by one and then check again.

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!   
Regular Advisor
Chad Brindley
Posts: 138
Registered: ‎11-16-2004
Message 9 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Daniel,

I opened your file in wordpad, thanks for that, very helpful and much clearer now.

I fell at the first hurdle though.

pvchange -a specify the "a" as an illegal option.

We are on HPUX 11.23 so we should have the relevant kernel patches for LVM OLR as I understand from the When Good Disks go Bad document unless its an addition to the OS rather than a feature?

Chad
Acclaimed Contributor
Torsten.
Posts: 23,373
Registered: ‎10-02-2001
Message 10 of 12 (773 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Yes, you really should have this patch (together with a lot of other current patches oviously).

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!   
Regular Advisor
Chad Brindley
Posts: 138
Registered: ‎11-16-2004
Message 11 of 12 (770 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

Torsten,

I completely agree. The company has always maintained an "if it isn't broken don't fix it approach" to these servers which is completely wrong. After inheriting these systems I would like to put a patch strategy in place and get these machines updated but I am someway off planning this yet.

Is their a workaround (alternative command) with this or do I need to install this patch to get this new disk online and active?

Regards,

Chad
Acclaimed Contributor
Torsten.
Posts: 23,373
Registered: ‎10-02-2001
Message 12 of 12 (770 Views)

Re: Replaced Disk on HP Integrity RX2620 Server

>> do I need to install this patch to get this new disk online and active?

No, this patch is needed for the official LVM online replacement.

Without this patch (must be at least 5 years old now) the official procedure is to remove the mirror from the failed drive before inserting the new drive.

But in most cases it works without.

Unofficial: Consider to pull the disk, check with vgdisplay and ioscan that the disk is "unavailable" and "NO_HW", insert the new disk and start with the "idisk" command taken from the procedure above.

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!   
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.