- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove old /dev/rmt/* entrys
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
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
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-09-2009 11:54 AM
тАО11-09-2009 11:54 AM
Im after your help with the following situation,
Situation :
A team moved our HP equipment from one rack to another and cabled them all up again.
Issue :
On completion of the re-cabling and power up, my backup scripts fail because they run a function where if the given variable (run by an operator) is not specified it runs an ls /dev/rmt | head -1, this gives the first device path entry which should be 0mn
the device path entry is now 3mn because the jumper settings have been changed on the system.
The jumper settings now have to stay as they are to mirror the setup of our other system's
so i will force the script to look at 3mn
The problem is i want to remove the omn and 1mn entries from /dev/rmt so i am left with just 2mn and 3mn
I would have thought an insf -e would clear down the device paths this cannot be run until the weekend but the box was rebooted which i thought would run an insf -e, if it did it didn't clean up the device paths
How can i remove the device paths so it only see's the paths available when i run ioscan -fnC tape.
Rgds
Steven Spear
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 11:59 AM
тАО11-09-2009 11:59 AM
Solutioninsf only creates _new_ DSFs - t doesn't get rid of old ones...
To identify all your "stale" DSFs use:
lssf /dev/rmt/* | grep '???'
Then you can just "rmsf" them:
e.g. if /dev/rmt/0mn is stale:
rmsf /dev/rmt/0mn
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 12:23 PM
тАО11-09-2009 12:23 PM
Re: How to remove old /dev/rmt/* entrys
http://www.scribd.com/doc/5708961/HPUX-System-and-Network-Administration-I
In that link which my content filtering system will not let me actually read is a procedure that will let you with a boot reconfigure ioconfig and have your active tape drive be /dev/rmt/0m
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 12:39 PM
тАО11-09-2009 12:39 PM
Re: How to remove old /dev/rmt/* entrys
Many thanks for the quick response, always a bit nervous when it comes to removing paths, i can see in the lssf output that the devices in question do not have a set address, as i cannot run it now, i have 32 entries that do not have an address to i have to specify each in turn to remove them ?
Many thanks
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 12:51 PM
тАО11-09-2009 12:51 PM
Re: How to remove old /dev/rmt/* entrys
> i have 32 entries that do not have an address to i have to specify each in turn to remove them ?
Not with some simple scripting:
lssf /dev/rmt/* | grep '???' | awk '{ print $NF }' | xargs rmsf
Should get rid of em all in one shot...
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 01:10 PM
тАО11-09-2009 01:10 PM
Re: How to remove old /dev/rmt/* entrys
i couldn't ask for a better answer than that many thank, that will work a treat.
Cheers
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 01:20 PM
тАО11-09-2009 01:20 PM
Re: How to remove old /dev/rmt/* entrys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2009 01:26 PM
тАО11-09-2009 01:26 PM
Re: How to remove old /dev/rmt/* entrys
Since so few, you don't really need xargs:
rmsf $(lssf /dev/rmt/* | grep '???' | awk '{ print $NF }')