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

rx2660 failed disk swap query

Nyck_1
Super Advisor

rx2660 failed disk swap query

Hello,

 

I had the failed hard drive yesterday and I replaced it with a new working one:-

 

disk      2  0/1/1/0.0.0.5.0  sdisk   NO_HW       DEVICE       HP      DG146BB976

                         /dev/dsk/c0t5d0   /dev/rdsk/c0t5d0

 


I then perormed the following commands to be able to see the new drive:-

 

rmsf -H 0/1/1/0.0.0.5.0
insf -e
ioscan -fnC disk

 

This worked fine but the new disk is being seen as the following:-

 

disk     18  0/1/1/0.0.0.8.0  sdisk   CLAIMED     DEVICE       HP      DG0146FARVU

                         /dev/dsk/c0t8d0   /dev/rdsk/c0t8d0

 


is there a way using sasmgr to rename the disk to what it was originally?

 

Cheers

 

Nick

 

8 REPLIES
Patrick Wallek
Honored Contributor

Re: rx2660 failed disk swap query

To get the new disk to use the old c0t5d0 device file you'll need to do:

 

# sasmgr replace_tgt -D /dev/sasd0 -q old_tgt=/dev/dsk/c0t5d0 -q new_tgt_hwpath=0/1/1/0.0.0.8.0

 

This assumes that your SAS device is /dev/sasd0.

Torsten.
Acclaimed Contributor

Re: rx2660 failed disk swap query

For exactly this reason I recommend to use hardware raid in thiese servers - its getting even worst with 11.31.


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!   
Nyck_1
Super Advisor

Re: rx2660 failed disk swap query

Hello,

 

I have just tried that and it failed with the following:-

 

sasmgr replace_tgt -D /dev/sasd1 -q old_tgt=/dev/dsk/c0t5d0 -q new_tgt_hwpath=0/1/1/0.0.0.8.0


ERROR: Invalid qualifier (old_tgt) was specified
sasmgr [-f][-h] replace_tgt -D <HBA dsf> -q old_dev=<LUN_dsf>
-q new_tgt_hwpath=<new_hw_path>
[-f][-h] replace_tgt -D <HBA dsf> -q old_dev=<old_LUN_dsf>
-q new_dev=<new_LUN_dsf>
[-f][-h] replace_tgt -D <HBA dsf>
-q old_tgt_hwpath=<old_hw_path>
-q new_tgt_hwpath=<new_hw_path>

Torsten.
Acclaimed Contributor

Re: rx2660 failed disk swap query

Did you reboot meanwhile?

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!   
Nyck_1
Super Advisor

Re: rx2660 failed disk swap query

Hello,

 

No reboot has been done as I thought these were hot swap disks?

 

I've actually done this before on a rx6600 as I have just checked through some notes and I used the following syntax:-

 

sasmgr replace_tgt -D /dev/sasd0 -q old_dev=/dev/dsk/c2t2d0 -q new_tgt_hwpath=0/4/1/0.0.0.8.0

 

 

Patrick Wallek
Honored Contributor

Re: rx2660 failed disk swap query

Try that.  I may have made a typo or misread things when posting the command I did.

Nyck_1
Super Advisor

Re: rx2660 failed disk swap query

I think I know whats going on, I removed the missing device using the following command:-

 

rmsf -H 0/1/1/0.0.0.5.0

 

so c0t5d0 does not exist anymore hence me not being able to run the sasmgr replace_tgt command, does this make sense?

Torsten.
Acclaimed Contributor

Re: rx2660 failed disk swap query

Yes. Same after a reboot, thats why I asked.

 

So you need to remove the missing disk from the vg (vgreduce -f) and start over with mirroring.


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!