- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio portability
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
тАО04-23-2003 07:09 AM
тАО04-23-2003 07:09 AM
From HP-UX 11.i cannot read tapes generated in a system UNIX Svr4 of NCR, the command to create the tapes was the following one:
find * -print | cpio -ocv -C 51200> /dev/rmt/cptape3.
Does somebody have some idea?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:18 AM
тАО04-23-2003 07:18 AM
Re: cpio portability
I'm guessing that you are running into a problem with the block size. If the -C option in your NCR cpio specifies the block size in bytes, your records will be 51200 bytes and the HP cpio probably can't deal with that.
You can try the '-B' option on the HP side. It specifies a record size of 5120 bytes, which is one-tenth the size of the record you specified on the SVR4 side. If that doesn't work, you might have to try making the tape on the NCR again and specify a block size of 5120.
What error message are you getting from the HP cpio command?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:18 AM
тАО04-23-2003 07:18 AM
Re: cpio portability
Are you receving any message when try to restore the files?
Have you tried to use -R option durig restore?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:22 AM
тАО04-23-2003 07:22 AM
Re: cpio portability
If possible, try to switch to tar(1).
If that is not possible, then try to switch to pax(1), at least on the reading side.
If that is not possible, do the following and post the results:
mt -t /dev/rmt/...nb
dd if=/dev/rmt/...n of=/tmp/record1 bs=1024k count=1
dd if=/dev/rmt/...n of=/tmp/record2 bs=1024k count=1
ll /tmp/record1 /tmp/record2
file /tmp/record1
file /tmp/record2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:24 AM
тАО04-23-2003 07:24 AM
Re: cpio portability
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 07:24 AM
тАО04-23-2003 07:24 AM
SolutionAnd if all that doesn't work, or if you can't get the tapes cut on the NCR box again, you might try downloading the GNU cpio. The GNU cpio should let you specify the block size as a multiple of 5120 byte blocks, so it might have a better chance of working.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 10:27 AM
тАО04-23-2003 10:27 AM
Re: cpio portability
1- Copy the whole file to disk
dd if=/dev/rmt/xxx bs=51200 of=/tmp/cpio_file
now you cat try cat /tmp/cpio_file | cpio -itvc
2- dd if=/dev/rmt/xxx bs=51200 | cpio -itcv
3- man pax. pax is a portable tar and cpio compatible archiver. If i recall well there is a flag to change to buffer size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 10:48 AM
тАО04-23-2003 10:48 AM
Re: cpio portability
when I try of reads the tape with the command:
# cpio -it and
# cpio -it B the system gives the following message:
# Out of phase--get help
thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 10:57 AM
тАО04-23-2003 10:57 AM
Re: cpio portability
Note bs parameter is wrong, corret is ibs=51200
2- dd if=/dev/rmt/xxx ibs=51200 | cpio -itcv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 10:38 PM
тАО04-23-2003 10:38 PM
Re: cpio portability
As to the "Out of phase--get help" errors: What you did *cannot* work. You did not use the "c" (lower case "c")option on the read, while you did use it on the write. You should use it symmetrically, i.e. if (not) used on the write, then you should (not)use it on the read.
However adding "c" will not really help, because your main problem is probably the record/block size, which *probably* is 51200 bytes, while standard (i.e. also HP-UX) cpio uses 512 bytes (no "B" option) or 5120 (*not* 51200) bytes ("B" option).
What you can try (to list the tape) is:
dd if=/dev/rmt/0m ibs=51200 obs=5120 | cpio -icBvt