The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
POSIX - Hot to check if detached thread is still active orangem High Level Programming 11 09-09-2008 02:07 PM
Can SIGTERM to main process kill the detached threads? deepti_v25 High Level Programming 2 07-31-2008 02:03 PM
passthrough devices vs. named devices thumper UNIX for Dummies Questions & Answers 1 06-04-2008 09:13 PM
Help with cleanup whdr02 Shell Programming and Scripting 2 01-25-2008 03:44 PM
Solaris DiskSuite, boot from detached disk carlossg SUN Solaris 3 12-21-2007 12:30 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-18-2008
raghu265 raghu265 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 1
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 (permalink)  
Old 11-18-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
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 (permalink)  
Old 11-19-2008
DustBunny DustBunny is offline
Registered User
  
 

Join Date: Oct 2008
Location: Earth!
Posts: 53
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.

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 (permalink)  
Old 11-19-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,575
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 (permalink)  
Old 11-20-2008
DustBunny DustBunny is offline
Registered User
  
 

Join Date: Oct 2008
Location: Earth!
Posts: 53
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0