- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing the device file
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
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
тАО06-19-2007 08:45 PM
тАО06-19-2007 08:45 PM
Changing the device file
i have a DLT 8000 attached to a L3000 server ,
the server detect the drive with the device file /dev/rmt/1m ,
or the script that i have for the backup is /dev/rmt/0m , is there a way to change the device file from 1m to 0m , because if not i will need to change the script
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2007 09:02 PM
тАО06-19-2007 09:02 PM
Re: Changing the device file
I'm not sure if "lssf /dev/rmt/1m" would help?
I assume all you need to do is a "mv" as root to rename it. But if there already is a 0m, you better wait until someone more experience answers.
How hard is it to change your script? Does your script run on multiple machines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2007 09:14 PM
тАО06-19-2007 09:14 PM
Re: Changing the device file
Could you post the output of
# ls -la /dev/rmt
Is here an other tape-drive attched to this L3000?
# ioscan -fnCtape
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 01:30 AM
тАО06-20-2007 01:30 AM
Re: Changing the device file
this is the only tape drive attached to the L3000 ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 01:44 AM
тАО06-20-2007 01:44 AM
Re: Changing the device file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 02:19 AM
тАО06-20-2007 02:19 AM
Re: Changing the device file
---
then mv the device files from 1 to 0
example:
# mv /dev/rmt/1m /dev/rmt/0m
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 02:45 AM
тАО06-20-2007 02:45 AM
Re: Changing the device file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 03:24 AM
тАО06-20-2007 03:24 AM
Re: Changing the device file
But that is a VERY bad idea. The device names are created automatically by insf and you risk having problems in the future if you add or change tape drives. Further, it is a bad idea to hardcode a device file into a script. Things change and the only sane way to handle this is to obtain the device file from the command line when you run the script.
Now if this is simply impossible, you will have to remove the devices for both 0m and 1m using rmsf -H (do not use rm). Once removed, use insf to add the tape drive back again, this time specifying -I 0 to create instance 0 (0m and relatives):
insf -H 1/2/3.4.5 -I 0
where 1/2/3.4.5 is the actual hardware path for your tape. To see the tape drive path:
ioscan -kfnC tape
Bill Hassell, sysadmin