- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gtar to restore filesystems at a particular point
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
09-03-2002 01:32 AM
09-03-2002 01:32 AM
gtar to restore filesystems at a particular point
I would like to extract contents of a S-DLT tape. I had used:
# mt -f /dev/rmt6 rewind
#gtar -xvf /dev/rmt1 --same-owner --same-permissions
It produced the "Unexpected EOF on achive file" error at a certain point after reading the tape. Hence not all contents in the tape could be restored.
I would like to restore the remaining filesystems from the tape after the point of error.
I did the following:
#gtar -tvif /dev/rmt6
The command above lists all filesystems archived in the tape together with its date, ownerships, permissions, etc...
At the end of this output, it produced the output below at the same point where the error "Unexpected EOF on achive file" occured:
tar:There are 6220 blocks on /dev/rmt6
tar:Mount next media on device /dev/rmt6 and press return
Hence, I thought I could fsf to the point after 6220 and begin restoring it the remaining parts:
#mt -f /dev/rmt6 rewind
#mt -f /dev/rmt6 fsf 6230
/dev/rmt1 fsf 6230 failed: There is an input or output error.
I even tried:
#mt -f /dev/rmt6 rewind
#mt -f /dev/rmt6 fsf 6200
/dev/rmt1 fsf 6230 failed: There is an input or output error.
OR
#mt -f /dev/rmt6 rewind
#mt -f /dev/rmt6 fsf 6300
/dev/rmt1 fsf 6300 failed: There is an input or output error.
Could anyone offer some ideas on solving this matter?
I've attached the log file showing where the EOF error occured.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 01:59 AM
09-03-2002 01:59 AM
Re: gtar to restore filesystems at a particular point
check tar -tvf /dev/rmt/0mn
goto the directory where you want to restore
pax -rv -s '/^\///' < /dev/rmt/0mn
Check if it restore.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 02:06 AM
09-03-2002 02:06 AM
Re: gtar to restore filesystems at a particular point
Just goto directory where you would restore the files
say
pax -rv -s '/^\///' < /dev/rmt/0m and it restores in current directory.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 02:35 AM
09-03-2002 02:35 AM
Re: gtar to restore filesystems at a particular point
I did what you suggested. However, at some point, I obtained some errors:
bk/fs36/nwdv.cr.8/v0_staging/indicator/dirty_bits/archive/May112002.1/Excel
pax: ./.@LongLink : 0511-646 The filetype is unknown
bk/fs36/nwdv.cr.8/v0_staging/indicator/dirty_bits/archive/Others/Doc
pax: ./.@LongLink : 0511-646 The filetype is unknown
Could you explain to me what the error means? I've not used pax before.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 03:28 AM
09-03-2002 03:28 AM
Re: gtar to restore filesystems at a particular point
For the error mentioned below:
bk/fs36/nwdv.cr.8/v0_staging/indicator/dirty_bits/archive/Others/Doc
pax: ./.@LongLink : 0511-646 The filetype is unknown
Would it affect the original type of the file?
Supposing if the file at arhived is of type .txt, I realize that the restoration process with the error mentioned above would eliminate the .txt extension.
Is there a way which I preserve the original properties?
Also, how can I as a root user preserve the ownerships of the archived filesystems upon restoration? I used pax with the options you provided but it caused the filesystems to have root as the owner, and not to that of the original owner.
Could you please help me out?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2002 03:51 AM
09-03-2002 03:51 AM
Re: gtar to restore filesystems at a particular point
The error you are getting, seems to be related with long link. Seems that pax is complaining about long link name.
I could make out only that.
Always take backups with fbackup/frecover is the systems are HP-UX, or else stick to the gnutar.
I always use tar as follows.
tar -cvf /dev/rmt/0m ./dir_to_backup
So I always use relative path.