1753523 Members
8806 Online
108795 Solutions
New Discussion юеВ

remove disk drivers

 
SOLVED
Go to solution
John Jimenez
Super Advisor

remove disk drivers

Yesterday I created a LUN and presented it to a HPUX 11.23 host.

After running ioscan -fnCdisk, the insf did not install any drivers. But when I do a ioscan fnCdisk the 4 paths comes up claimed

disk 151 1/0/2/1/0.97.4.239.0.5.0 sdisk CLAIMED DEVICE DGC CX500WDR10
/dev/dsk/c13t5d0 /dev/rdsk/c13t5d0
disk 152 1/0/2/1/0.97.8.239.0.5.0 sdisk CLAIMED DEVICE DGC CX500WDR10
/dev/dsk/c15t5d0 /dev/rdsk/c15t5d0
disk 201 1/0/4/1/0.97.4.239.0.5.0 sdisk CLAIMED DEVICE DGC CX500WDR10
/dev/dsk/c17t5d0 /dev/rdsk/c17t5d0
disk 202 1/0/4/1/0.97.8.239.0.5.0 sdisk CLAIMED DEVICE DGC CX500WDR10
/dev/dsk/c19t5d0 /dev/rdsk/c19t5d0

But dd shows read error: I/O error 0+0 records in and out.

Then I noticed that the raw disks in /dev/rdsk are dated last year.

crw-r----- 1 bin sys 188 0x0d5100 Aug 23 2008 c13t5d1
crw-rw-r-- 1 oracle dba 188 0x0f5100 Aug 23 2008 c15t5d1
crw-r----- 1 bin sys 188 0x115100 Aug 23 2008 c17t5d1
crw-r----- 1 bin sys 188 0x135100 Aug 23 2008 c19t5d1

How do I clean this up? I unpresented the disk from the host and it now comes up NO_HW. CAn I do the following to fix?
1) rm these 4 files /dev/rdsk
2) represent the disk to the host
3) ioscan -fnC disk
4) insf
5) ioscan -fnC disk

If this is not the correct procedure and you assist? thanks again.




Hustle Makes things happen
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: remove disk drivers

Probably just leftovers from the past. Just use rmsf to remove all the special files related to these four, then present the luns and run insf again.


Pete

Pete
Ganesan R
Honored Contributor

Re: remove disk drivers

Hi John,

First remove the old device files using rmsf one bye one.
#rmsf

Then remove the devices files pertaining to the entire hardware path using -H option
#rmsh -H

Present the lun again.

#ioscan -fn

#insf -eH
or just
#insf -e

#ioscan -fnC disk
Best wishes,

Ganesh.
John Jimenez
Super Advisor

Re: remove disk drivers

thank you Pete Yes this was a volume group and lun I deleted last year that was a different size. I was looking through the man pages when Ganasen replied.
Does this look right:

rmsf /dev/rdsk/c13t5d0

rmsh -H 1/0/2/1/0.97.4.239.0.5.0




Hustle Makes things happen
Ganesan R
Honored Contributor

Re: remove disk drivers

Hi,

Yes. Syntax is correct. you can go ahead and remove the device files
Best wishes,

Ganesh.
John Jimenez
Super Advisor

Re: remove disk drivers

the rmsf commands worked, but the rmsh did not. I also do not see rmsh in the man pages. I am running HP-UX 11.23
Hustle Makes things happen
Ganesan R
Honored Contributor

Re: remove disk drivers

Hi John,

My sincere apologize for the spell mistake.

It is not rmsh. it is rmsf only.

#rmsf -H 1/0/2/1/0.97.4.239.0.5.0

Please bear with me....
Best wishes,

Ganesh.
Torsten.
Acclaimed Contributor

Re: remove disk drivers

make rmsh to rmsf - must be a typo.

This should remind you to always remove devices using the correct procedures - or you will have problems later.

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!   
John Jimenez
Super Advisor

Re: remove disk drivers

Thanks guys, that did the trick. I now have the complete procedure for removing Disks. Now I just have to back track, review and clean up other disks that were removed in the past.
Hustle Makes things happen