- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Proper way to remove any non used devices
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 07:35 PM
тАО11-03-2008 07:35 PM
I am not sure how to properly remove a storage attached disk to my hp-ux 11.31v. Can someone please give me a quick run down on how to do this?
These are the things I had in mind but do not know the correct flags to use.
1. identify the disk -
ioscan -funC disk
2. make sure it is not used -
pvdisplay -v /dev/disk/disk909
3. remove it.
rmfs -x disk909
4. verify that it is removed. -
ioscan -funC disk
Any suggestions will be greatly appreciated.
Is the rmfs -x the only proper way to remove it? I think I read somewhere that you should not be doing an "rm" under /dev/disk/ ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 09:16 PM
тАО11-03-2008 09:16 PM
Re: Proper way to remove any non used devices
rmfs -x disk909 ..? (never used before)
(rmfs Command
Purpose
Removes a file system)
are your storage disk configured to any of your volume group in your server "hp-ux 11.31v" ...?
if you need to vgreduce /dev/vg00 /dev/dsk/cxtxdx
once you de-attached the "storage from your server"
mv /etc/lvmtab /etc/lvmtab.sav
vgscan -a
This will recreate you lvmtab
strings /etc/lvmtab
vgdisplay -v |more
(check for PV available in all your volume_group)
insf -e
ioscan -fnC disk --> this should show only the currenlty used disk in your server
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2008 09:27 PM
тАО11-03-2008 09:27 PM
Re: Proper way to remove any non used devices
This is good choice.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2008 06:06 AM
тАО11-04-2008 06:06 AM
Re: Proper way to remove any non used devices
Man rmsf for more info or go to this link.
http://docs.hp.com/en/5992-3373/ch09s06.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 06:19 AM
тАО11-06-2008 06:19 AM
Re: Proper way to remove any non used devices
Yes I did mean rmsf and not rmfs.
Thanks again guys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 01:26 AM
тАО11-12-2008 01:26 AM
Re: Proper way to remove any non used devices
I would recommend using rmsf -H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 01:39 AM
тАО11-12-2008 01:39 AM
Re: Proper way to remove any non used devices
My example:
> ioscan -fnH 0/1/1/1.2.0
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0s1
/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s3
/dev/dsk/c3t2d0s4 /dev/rdsk/c3t2d0s4
> rmsf -H 0/1/1/1.2.0
> ioscan -fnH 0/1/1/1.2.0
(same output)
> ll /dev/dsk/c3t2*
brw-r----- 1 bin sys 31 0x032000 Nov 12 12:34 /dev/dsk/c3t2d0
brw-r----- 1 bin sys 31 0x032001 Nov 12 12:34 /dev/dsk/c3t2d0s1
brw-r----- 1 bin sys 31 0x032002 Nov 12 12:34 /dev/dsk/c3t2d0s2
brw-r----- 1 bin sys 31 0x032003 Nov 12 12:34 /dev/dsk/c3t2d0s3
brw-r----- 1 bin sys 31 0x032004 Nov 12 12:34 /dev/dsk/c3t2d0s4
> date
Wed Nov 12 12:35:12 MEZ 2008
SYSLOG:
Nov 12 12:34:05 myserver sfd[2254]: started 'insf' to create device special file
s for newly found devices.
Nov 12 12:34:16 myserver sfd[2254]: execution of 'insf' completed.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 06:00 AM
тАО11-12-2008 06:00 AM
Re: Proper way to remove any non used devices
> Torsten: ...after you do a rmsf in 11.31, the system will re-run insf again on it's own.
The way I read your test data is that the device files are regenerated as a consequence of running 'ioscan'. I would further suspect that if you ran it with the '-k' option to consult only the kernel tables, you would not see the device file(s) regenerated.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2008 10:31 PM
тАО11-12-2008 10:31 PM
Re: Proper way to remove any non used devices
"rmsf" did remove the legacy device files, the agile will stay.
ioscan with "-k" will not show the disk at all (only a target, but not the disk), without "-k" the legacy device files are re-created.
So an "ioscan -fnCdisk" is *not* a good test to see if the device files are removed.
;-)
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 12:47 PM
тАО11-24-2008 12:47 PM
Re: Proper way to remove any non used devices
So what is a good way to check to make sure that all the associated device files are removed correctly under 11.31?
Susan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 08:39 PM
тАО11-26-2008 08:39 PM
Re: Proper way to remove any non used devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 02:22 PM
тАО12-10-2008 02:22 PM