Operating System - HP-UX
1829183 Members
4912 Online
109986 Solutions
New Discussion

Need to replace a bad disk --- Please help me

 
SOLVED
Go to solution
sam_25_1
Frequent Advisor

Need to replace a bad disk --- Please help me

Hello Everyone,

I have to replace a bad disk which is there on my 9000/800/L2000-44. The disk which is presently there on the server does not have any data on it and it is not part of any volume group as of now.

My question is.

ioscan -funn C disk
this owuld give teh hardware path.
rmsf -H < path of teh bad _drive> this would remove teh entry.

After that i would replace the old disk with the new one.

what other steps i need to do inorder to intialize the new disk and secondly add tis emppty disk to the existing volume group which has data on it.

I would be greatful if you'll could help me out, as i need to perform this activity today itself.

Thanks a lot in advance. I have see all previous forums for the same issue but was not able to get an appropriate solution fo rteh same.

have a nice day.

Regards
Sam
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor

Re: Need to replace a bad disk --- Please help me

Hi Sam:

This excellent whitepaper is something you will want to read:

http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Regards!

...JRF...
sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Hello james,

Thanks alot for your speedy reply, I have gone through the document, thanks a lot for your inputs.

if i do rmsf -H this would remove the hardware path

after replacing the disk,
how would we intialize the new disk ?
should we run the command
insf -H

thanks in advance
Tim Nelson
Honored Contributor

Re: Need to replace a bad disk --- Please help me

Once the new disk is inserted. (btw, you did not need to rmsf the old device file, it would have been used for the replacement disk)

ioscan
insf -eH HW_PATH_of_disk_controller
ioscan -kfnH HW_PATH_to_disk
pvcreate /dev/rdsk/cxtxdx ( found above )
vgextend /dev/vgXX /dev/dsk/cxtxdx
or
vgcreate /dev/vgnew_vg /dev/dsk/cxtxdx

then lvcreate or lvextent to whatever lvol you need this to be that is in the vg you just added it to.

If new:
newfs /dev/vgxx/rlvolx

if added to existing lvol:
extendfs /dev/vgxx/rlvolx


Torsten.
Acclaimed Contributor

Re: Need to replace a bad disk --- Please help me

If this disk is really not used at all - just rip it out and replace.
Run ioscan to check after replacement - that's it.
On the l-class the hardware path is written on the chassis - this info will help you.

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!   
sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Hi tim,

Thanks alot for your guidance.

The setps that i would perform are

1 replace the bad disk with the new.
2) ioscan -funC disk

3) insf -eH HW_PATH_of_disk_controller
for e.ge insf -eH ( 0/4/0/0.8.0.255.0.7.0)

4) ioscan -kfnH ( 0/4/0/0.8.0.255.0.7.0)
ioscan -kfnH HW_PATH_to_disk


Once the disk is intialized I would add it to the physical volume using pvcreate.

and than add it to the volume group using vgcreate and create the logical volume.

please confirm the steps, so that i can go ahead with the task. I would not use the rmsf -H command .. as it is not required..

Thanks a ton to everyone for helping me out, I sincerly appreciate it.

Regards

Sam

sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Hello Sir,

i owudl just replace the disk and do a ioscan command..

may i know what syntax i need to use with ioscan command

ioscan-kfnH would do..

Thanks a lot to everyone, for all your help & guidance.
sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Sir,

One last question.

When a do a ioscan command, this the bad disk which i need to replace.

Disk 11 0/4/0/0.8.0.255.0.7.0 sdisk CLAIMED DEVICE HP 36.4GST3
36605FC.

So i belive I have replace the disk on the 8 slot.

The complete Ioscan details are below

sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Sir,

One last question.

When a do a ioscan command, this the bad disk which i need to replace.

Disk 11 0/4/0/0.8.0.255.0.7.0 sdisk CLAIMED DEVICE HP 36.4GST3
36605FC.

So i belive I have replace the disk on the 8 slot.



Torsten.
Acclaimed Contributor
Solution

Re: Need to replace a bad disk --- Please help me

Do not anything like

ioscan-kfnH

This will read "old" information from kernel (-k) and even "-H" below the LBA level can produce wrong results.

Just do a

# ioscan -fn
or
# ioscan -fnCdisk

and search for he disk.


Regarding the slot:

You did never say anything about the chassis where the disk is - looks like a fiber connected chassis.

Slot and SCSI ID numbers are almost never the same ...

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!   
sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

hello Sir,

i would do the ioscan command suggested by you.
I am using a 9000/800/L2000-44 system and it has intrenal hard disk slots in it.

The output of the ioscan disk command

# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 3 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 12 0/4/0/0.8.0.255.0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336607FC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 5 0/4/0/0.8.0.255.0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 6 0/4/0/0.8.0.255.0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
disk 7 0/4/0/0.8.0.255.0.3.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t3d0 /dev/rdsk/c4t3d0
disk 8 0/4/0/0.8.0.255.0.4.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 9 0/4/0/0.8.0.255.0.5.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t5d0 /dev/rdsk/c4t5d0
disk 10 0/4/0/0.8.0.255.0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 11 0/4/0/0.8.0.255.0.7.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t7d0 /dev/rdsk/c4t7d0
disk 4 0/4/0/0.8.0.255.0.8.0 sdisk CLAIMED DEVICE HP 36.4GST336607FC
/dev/dsk/c4t8d0 /dev/rdsk/c4t8d0
disk 13 0/4/0/0.8.0.255.0.9.0 sdisk CLAIMED DEVICE HP 36.4GST336605FC
/dev/dsk/c4t9d0 /dev/rdsk/c4t9d0
disk 14 0/4/0/0.8.0.255.0.10.0 sdisk NO_HW DEVICE HP 36.4GST336605FC
/dev/dsk/c4t10d0 /dev/rdsk/c4t10d0
#
I need to replace the 11 0/4/0/0.8.0.255.0.7.0 sdisk which I beleive would be on the 8 slot.

thanks once agian for your advise & support.
Torsten.
Acclaimed Contributor

Re: Need to replace a bad disk --- Please help me

What is wrong with this disk?

disk 14 0/4/0/0.8.0.255.0.10.0 sdisk NO_HW DEVICE HP 36.4GST336605FC
/dev/dsk/c4t10d0 /dev/rdsk/c4t10d0


status is NO_HW!

What type of JBOD/chassis do you have?

Maybe a full ioscan -fn can give some more information.

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!   
sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Hello Sir,



There is a SC10-Array attached at the backend.

Sir, the task is completed now, I was able to replace the disk. Thanks a lot for your help & support.

Have a nice day.


sam_25_1
Frequent Advisor

Re: Need to replace a bad disk --- Please help me

Hello Everyone,

Thanks a lot to everyone, I sincerly appreciate everyone helps & inputs.

Have a nice day.

Fond Regards

Sam