- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to tar files in hp-ux and detar in redhat linu...
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
тАО09-26-2006 12:36 AM
тАО09-26-2006 12:36 AM
If you know ,please tell me the detail copying files between hp-ux and redhat linux with tapes.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 12:39 AM
тАО09-26-2006 12:39 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
tar -cvf /dev/rmt/?m file1 file2
On linux:
tar -xvf /dev/rmt/?m
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 12:58 AM
тАО09-26-2006 12:58 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
The default achive file for tar under HP-UX is /dev/rmt/0m. This should be your tape drive. So, to write to /dev/rmt/0m under HP-UX:
# tar cvp /path/to/files
Note that '-c' compresses, '-p' preserves permissions, and '-v' turns on verbose output.
Under Linux, if the device file for your tape drive is /dev/rmt0, then:
# tar xvf /dev/rmt0
will untar files from /dev/rmt0 to the CWD (current working directory). GNU tar strips the leading slash from the file path (unless you supply '-P').
Note that tar is one of the few commands which doesn't require a '-' before its switches.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 01:02 AM
тАО09-26-2006 01:02 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 01:07 AM
тАО09-26-2006 01:07 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 01:09 AM
тАО09-26-2006 01:09 AM
SolutionHP-UX
tar cvf /dev/rmt/0m /directory
Red Hat
List:
tar tvf /dev/st0
Restore:
tar xvf /dev/st0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 04:28 AM
тАО09-26-2006 04:28 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
If you run into problems...
Download the source for GNU tar and gzip and build your own copy on each side. Don't overwrite the OS's versions, install in your own personal cubby. That way tar is tar and gzip is gzip... then you only have to worry about hardware compression and density, etc. (which isn't so bad with DLT stuff, but is probably bad with anything else... unless the drive manufacturer is the same on both sides or you are sneaker-netting the tape drive between boxes).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 01:51 AM
тАО09-27-2006 01:51 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
in hp-ux
tar cvf /dev/rmt/3m * "OK"
in red hat linux
tar tvf /dev/st0 "OK"
but
tar xvf /dev/sto "Error"
Errors as follow:
[root@localhost tape]# tar xvf /dev/st0
060427cal.cml
tar: 060427cal.cml: Cannot change ownership to uid 918, gid 4226:
060427cal.cmx
tar: 060427cal.cmx: Cannot change ownership to uid 918, gid 4226:
24b.xtf
tar: 24b.xtf: Cannot change ownership to uid 918, gid 4226:
AutoSave.pml
tar: AutoSave.pml: Cannot change ownership to uid 918, gid 4226:
DAL-hdf
tar: DAL-hdf: Cannot change ownership to uid 918, gid 4226:
DAL-hdf-Abmof.26.3.rst
tar: DAL-hdf-Abmof.26.3.rst: Cannot change ownership to uid 918, gid 4226:
DAL-hdf-Abmof.26.3.rst.cmd
tar: DAL-hdf-Abmof.26.3.rst.cmd: Cannot change ownership to uid 918, gid 4226:
DAL-hdf-Abmof.26.6.rst
tar: DAL-hdf-Abmof.26.6.rst: Cannot change ownership to uid 918, gid 4226: DAL-hdf-Abmof.26.6.rst.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 01:59 AM
тАО09-27-2006 01:59 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
seems your linux machine does not have a user with uid 918, gid 4226. So when you try to change the file ownership it can't do it.
Either create a user as on HPUX or allow the files to be owned by root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 02:00 AM
тАО09-27-2006 02:00 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
tar is complaining because uid 918 and gid 4226 exist on your HP-UX system, but not on Linux. Nothing serious.
Depending on what you plan to use the files for, you could add the missing uid and gid to the Linux system and alias appropriately, 'chown -R user:group ...' on the files, or do nothing.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 02:20 AM
тАО09-27-2006 02:20 AM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
The regular commands have always worked for me on both platforms.
Note that anything done in the tar format can also be unzipped on windows by winzip.
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
тАО09-29-2006 03:26 PM
тАО09-29-2006 03:26 PM
Re: how to tar files in hp-ux and detar in redhat linux by tapes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2006 03:29 PM
тАО09-29-2006 03:29 PM