How do i cleanup the removed/detached devices ???

Hi,

Am new to HPUX . I need your assistance..

I had attached a Clariion(storage) LUN into HPUX machine, devices with 2GB(c8t0d0) and 1GB(c8t0d1) space. Later some point of time, detached these devices from HPUX machine and executed 'insf' command to build the new devices directory special files .
(Note:Attaching and detaching done using NaviCLI software.)

Looks like these devices were not removed/cleaned completely from the machine,

Still I can see these devices entry under /dev/rdsk folder
#ls -l
crw-r----- 1 bin sys 188 0x080000 Dec 7 2007 c8t0d0
crw-r----- 1 bin sys 188 0x080100 Oct 6 14:02 c8t0d1

I can see devices(only c8t0d0) is coming under ioscan command even after detaching also
# ioscan -fnl
disk 4 0/4/1/0.102.17.0.0.0.0 sdisk CLAIMED DEVICE DGC CX600WDUNB
/dev/dsk/c8t0d0 /dev/rdsk/c8t0d0

And also checked for diskinfo of removed devices,
# diskinfo /dev/rdsk/c8t0d0
SCSI describe of /dev/rdsk/c8t0d0:
vendor: DGC
product id: CX600WDUNB
type: direct access
size: 0 Kbytes
bytes per sector: 0

# diskinfo /dev/rdsk/c8t0d1
io_search failed: No match found.

So, how do i remove these detached/removed devices from HPUX machine ?????

Question:
Did you export the VG before detaching the sub-system?

The command you are looking fo is rmsf but read carefully the man pages before...

Well Vbe,

I dont think they did export it. However, from the below :

c8t0d0 shows claimed by ioscan. Actually, there is an issue on it since size of the disk here shows 0KB per diskinfo. :wink:

We can check with a "#dd" command to make sure io is going fine on disk so you can use them for future.

Question: Do you have any data on these disks actually? From the output, c8t0d1 does not come into picture so, its out per diskinfo or ioscan either. rmsf should work if you do not want these disks, though, its good to read about it in man before you proceed per vbe.. He is right..

-DB

Greetings Dustbunny,

No news good news?

About this case, it could be an artefact because there was no rescan (full ioscan or reboot) or ... I wonder whats in his /etc/lvmtab...

Regards

Yeah Vbe,

Even, I have no clue about their entry in /etc/lvmtab.. As you said, they can better do a

#ioscan -fnC disk to scan things again if they dont prefer reboot.

Or,

They can either scan again for /etc/lvmtab..

"Hopefully, they also need to know how to change the pvlinks / primary and alternate path for disks as they are using EMC clariion.. vgscan would change them and they might confuse seeing the new links appearing.."

However, the best thing they could have done is by exporting.. Or, I also think, they have taken the disks out through navi (i.e) not presenting it to hp-ux BOX but, was it removed from the servers point of view is the BIG question here.

One shows half and the other shows nothing. LOL. They could have tried export or ioscan (full) or reboot or lvm procedures of removing a disk instead of trying a insf and navicli..

Let's see, we can predict anything only if we have a reply from them. Hopefully...........

-DB