- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cpio on hp-ux 10.20
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
11-18-2008 12:04 PM
11-18-2008 12:04 PM
What is "End ov Volume" mean?
I enter "/dev/rmt/0m" and see the size of restored file increased.
What's the cpio command for listing the content of the tape drive?
Thanks for any reply.
Tammy
Solved! Go to Solution.
- Tags:
- cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 12:08 PM
11-18-2008 12:08 PM
Re: cpio on hp-ux 10.20
mt rew
It sounds to me like you're at the end of the tape.
Pete
Pete
- Tags:
- mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 12:23 PM
11-18-2008 12:23 PM
Re: cpio on hp-ux 10.20
tks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 03:44 PM
11-18-2008 03:44 PM
Re: cpio on hp-ux 10.20
>>> I did not rewind the tape,just enter the tape device file /dev/rmt/0m. Does cpio rewind on its own? <<
NO, It doesn't rewind on its own. we have to rewind , please follow the rewind command
# mt -f /dev/rmt/0mn status
(will show you tape is ONLINE)
# mt -f /dev/rmt/0mn rewind
Than try with cpio command for Listing .. :)
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:27 PM
11-18-2008 05:27 PM
SolutionIt means what it says. You are at the end of the tape reel. You need to "mount" another.
>I enter "/dev/rmt/0m"
I assume you first ejected the tape and put the next volume there?
>What's the cpio command for listing the content of the tape drive?
I suggest you give up on tar(1) and cpio(1) and only use pax(1).
You simply use:
pax -tv -f /dev/rmt/0m
>Pete: You might need to rewind the tape first
Are you suggesting the tape was first written and now read, without rewinding?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 06:00 AM
11-19-2008 06:00 AM
Re: cpio on hp-ux 10.20
Thanks for the reply.I did not eject/rewind the tape. I just entered the same device name and cpio append the file to the same file name. Looks like cpio handle the rewind part.
Tammy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 08:00 AM
11-19-2008 08:00 AM
Re: cpio on hp-ux 10.20
How can I setup block size with cpio to restore file?
I'm using "cpio idcmv < /dev/rmt/0m".
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 08:26 AM
11-19-2008 08:26 AM
Re: cpio on hp-ux 10.20
man "cpio" seems to indicate that it deals in 512 byte blocks.
one wonders why you ask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 09:45 AM
11-19-2008 09:45 AM
Re: cpio on hp-ux 10.20
Do you know what the block size is? You have N options, use -B for 5120 bytes, use a pipe with dd to reblock or good old pax(1).
>OldSchool: as far as I know, you can't. it is what it is. one wonders why you ask
See above. It would also be helpful to know how it was written to tape?
Also, as I mentioned, pax(1) will magically figure out how to read your tape. See:
-b blocking Blocking is automatically determined on input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 11:14 AM
11-19-2008 11:14 AM
Re: cpio on hp-ux 10.20
It was old tape that we need to restore for
oracle data. After restore the file
with cpio, oracle import failed. I restored
the files from 2 different tapes, and imp failed on both of export files.
So the bottom line is you can not setup block size for cpio when restore from the tape drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 11:35 AM
11-19-2008 11:35 AM
Re: cpio on hp-ux 10.20
see Dennis' reply above. He notes -B will reset the block size to 5120.
better yet, he suggested (twice) that you use "pax" instead, which will sort out the blocking correctly.
having hit "End of Volume" and continued on using the same tape w/o rewind makes me wonder how the tape was produced in the first place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 12:06 PM
11-19-2008 12:06 PM
Re: cpio on hp-ux 10.20
Can you provide the cpio commands that I can use with -B and dd for getting cpio file from /dev/rmt/0m?
Tks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 01:44 PM
11-19-2008 01:44 PM
Re: cpio on hp-ux 10.20
Yes: pax -rv -f /dev/rmt/0m
>Can you provide the cpio commands that I can use with -B and dd for getting cpio file from /dev/rmt/0m?
-B works only if you used -B to write it.
Using dd(1) is completely separate more complicated approach.
Some threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1281104
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1163073
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1252713
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1229193
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 02:03 PM
11-19-2008 02:03 PM
Re: cpio on hp-ux 10.20
I would add, for your further information, that 'cpio' cannot archive 'largefiles' (files > 2GB).
With 'pax', when Using '-x cpio' or '-x ustar' files up to 8GB can be archived.
In 11.31 or in 11.23 with the PAX_ENH product installed, 'pax' can archive files larger than 8GB.
HP is making 'pax' a defacto standard for HP-UX and is in fact, deprecated (the extremely useful but proprietary) 'fbackup' utility.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 02:05 PM
11-19-2008 02:05 PM
Re: cpio on hp-ux 10.20
Oh, the above is just another reason to move from the unsupported, ancient 10.20 release to at least 11.11.
I keep missing the fact that you noted your release as 10.20.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2008 06:17 AM
11-20-2008 06:17 AM
Re: cpio on hp-ux 10.20
I will try the "pax" command.
Tks.
Tammy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2008 11:54 AM
11-20-2008 11:54 AM
Re: cpio on hp-ux 10.20
imported to database.
Tks for all reply.