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


 
Thread Tools Search this Thread
Operating Systems HP-UX How do i cleanup the removed/detached devices ???
# 1  
Old 11-18-2008
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 ?????
# 2  
Old 11-18-2008
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...
# 3  
Old 11-19-2008
Well Vbe,

I dont think they did export it. However, from the below :
Quote:
# 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
c8t0d0 shows claimed by ioscan. Actually, there is an issue on it since size of the disk here shows 0KB per diskinfo. Smilie

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
# 4  
Old 11-19-2008
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
# 5  
Old 11-20-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

How to Cleanup Multipathing

I have a server running redhat 5.5 and it has one SAN device presented to it as LUN9. How can I clean up the remaining entries. I cannot afford to interupt the service. Please assist. # multipath -l mpath0 (36000097000019260298953666633436) dm-11 EMC,SYMMETRIX \_ round-robin 0 \_ 2:0:0:9 ... (2 Replies)
Discussion started by: Tirmazi
2 Replies

2. Solaris

Boot Solaris 10 from detached root mirrors

I recently ran some patching on a Solaris 10 server and as per normal procedure I detached the LVM root disk mirrors first to preserve the pre-patching copy of the OS. During the patching, I ran into some issues which I managed to resolve and completed the patching. However, I was looking around... (5 Replies)
Discussion started by: Grippo
5 Replies

3. UNIX for Dummies Questions & Answers

Run a detached process

Hey guys, Just wondering is there anyway that I would be able to run a detached process that would continue to run regardless of me being logged into the linux host? (4 Replies)
Discussion started by: killaram
4 Replies

4. Programming

when can we destory thread attributes using pthread_attr_destroy() for detached thrd

Hi All, I am creating detached threads using pthread_create(). As we know, we need to pass the thread attribute structure as an argument to the pthread_Create() API. I want to know what is the good time to destroy this thread attributes using pthread_attr_destroy() call. Also, I want to know... (2 Replies)
Discussion started by: wonderman
2 Replies

5. Programming

detached thread is causing program crash

Hi All, I have scenario where my callback function data_update() can be called anytime. I have written the function data_update() such that it will create detached thread for processing the data sent to this function. data_update() { pthread_attr_t attr_thread; ... (1 Reply)
Discussion started by: wonderman
1 Replies

6. Programming

POSIX - Hot to check if detached thread is still active

Hello, I have created program that run threads one by one, maximum 100. Each thread will process one block of data, and once it`s finished, new thread is created with new block of data....etc I have array of values to control status of each thread, like this: array_thread_status=1... (11 Replies)
Discussion started by: orangem
11 Replies

7. Programming

Can SIGTERM to main process kill the detached threads?

Hi, I am stuck up with a strange problem. I am writing an application - a kinda tracker that reads data from memcache and invokes theads to process each record of the memcache. I dont want to join all my threads because my tracker should poll the cache in regular intervals say sum 300... (2 Replies)
Discussion started by: deepti_v25
2 Replies

8. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

9. Shell Programming and Scripting

Help with cleanup

I am trying to add a unique string to a variable to prevent some name space collisions. DATAFILE=/u001/app/unica/affinium644/campaign/partitions/limited/tmp/ebf9aaah.t~# DATETIME=`date +%Y%m%d_%H%M%S` echo $DATAFILE > tmpnme.txt sed 's_/_ _g' tmpnme.txt > tmpnme2.txt DATA=$(cat tmpnme2.txt)... (2 Replies)
Discussion started by: whdr02
2 Replies

10. Solaris

Solaris DiskSuite, boot from detached disk

Hi, I am running Solaris 8 on Sun server with 2 hard drives. I have configured mirroring on the system using DiskSuite tool in order to have the same data on both disks. Now I want to perform some software upgrade and I would like to use the second disk as a backup disk. This means taking this... (3 Replies)
Discussion started by: carlossg
3 Replies
Login or Register to Ask a Question