- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Default tar 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
Forums
Discussions
Discussions
Discussions
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
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
03-13-2005 10:05 PM
03-13-2005 10:05 PM
Default tar device file
i would like to know how to change the default device used by tar command (2m instead of 0m).
Thanks in advance
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2005 10:14 PM
03-13-2005 10:14 PM
Re: Default tar device file
tar -f /dev/rmt/2m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2005 10:30 PM
03-13-2005 10:30 PM
Re: Default tar device file
ioscan will tell you what you archive file you can use:
#ioscan -fnCtape
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2005 11:06 PM
03-13-2005 11:06 PM
Re: Default tar device file
my concern is avoiding adding "-f /dev/rmt/2m" ant each tar execution.
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2005 11:10 PM
03-13-2005 11:10 PM
Re: Default tar device file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2005 11:16 PM
03-13-2005 11:16 PM
Re: Default tar device file
By default, tar uses /dev/rmt/0m. So:
#tar cv
will use /dev/rmt/0m
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 12:32 AM
03-14-2005 12:32 AM
Re: Default tar device file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 03:54 AM
03-14-2005 03:54 AM
Re: Default tar device file
In HP 0m is the default.
In other Unix like SCO unix ,U can change the default tape drive in /etc/defalt/tar
file .
This way it will not work in HP.
what you can do is ,if there is no H/W available in 0m and 1m path remove the
device files by rmsf and do a reboot or rcreate the /dev/rmt/0m dev file with the major and monor number of /dev/rmt/2m file.
Or go for a reboot .
Should work ,
Thanks,
BL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 11:35 AM
03-14-2005 11:35 AM
Re: Default tar device file
the /dev/rmt/0m becomes /dev/rmt1m
--------------------------------------------------------
Run the following ioscan command to get the Hardware Path:
#ioscan -kf | grep -e INTERFACE -e DEVICE | grep -v target | awk '{printf "%s %
s %s\n",$3,$1,$2}'
8/0/0 tty 0
8/4 ext_bus 0
8/4.5.0 disk 0
8/4.7.0 ctl 0
8/4.8.0 disk 1
8/4.9.0 disk 2
8/4.10.0 disk 3
8/4.11.0 disk 4
8/4.12.0 disk 5
8/4.13.0 disk 6
8/4.14.0 disk 7
8/4.15.0 disk 8
8/16/0 ext_bus 2
8/16/1 pc 0
8/16/1.1 floppy 0
8/16/5 ext_bus 5
8/16/5.0.0 tape 0 <------ Here
8/16/5.2.0 disk 9
8/16/5.7.0 ctl 1
8/16/6 lan 0
8/16/7 ps2 0
8/20/2 tty 1
8/18/3.0.0 tape 1 <----- Here
#vi /tmp/infile
8/16/5.0.0 tape 1
8/18/3.0.0 tape 0
#ioinit -f /tmp/infile -r <----- This will cause a reboot
Note: Again, it might be necessary to remove the old device files with
the "rmsf" command and then re-create the device files with "insf -e".
Roland