Operating System - HP-UX
1748285 Members
3844 Online
108761 Solutions
New Discussion юеВ

tar: ./undotbs01.dbf: HELP - extract write error

 
SOLVED
Go to solution
alex1982
Frequent Advisor

tar: ./undotbs01.dbf: HELP - extract write error

Hi,
i am extracting information from tape using the following command:
tar -xvf /dev/rmt/0mn .

I am receiving the following result:

x ./system01.dbf, 1405100032 bytes, 2744336 tape blocks
x ./undotbs01.dbf, 5882519552 bytes, 11489296 tape blocks
tar: ./undotbs01.dbf: HELP - extract write error

Can you help me ?
What does this message mean?
Can i still recover from tape ?
13 REPLIES 13
Bart Paulusse
Respected Contributor

Re: tar: ./undotbs01.dbf: HELP - extract write error

Hi Alex,

can it be that the filesystem you are writing to is full? The error is 'extract WRITE error' not 'extract read error'.

Regards,
Bart
alex1982
Frequent Advisor

Re: tar: ./undotbs01.dbf: HELP - extract write error

No, it is not full.It has plenty of space.
Bart Paulusse
Respected Contributor

Re: tar: ./undotbs01.dbf: HELP - extract write error

How was the tape written?
Did you use any special options.
Try to set blocking factor to 1. This will reduce read speed but it will prevent the error message if tape was written using a different blocking factor.

tar -b 1 -xvf /dev/rmt0mn .
alex1982
Frequent Advisor

Re: tar: ./undotbs01.dbf: HELP - extract write error

the tape was written using the following command.
cd /u02/MyDir
tar -cvf /dev/rmt/0mn .

The tape was written successfully and no error message was generated.
It extracts the first file of the directory successfully.
Can it be that the second file it is trying to extract is more than 2G or it has nothing to do with that?
James R. Ferguson
Acclaimed Contributor
Solution

Re: tar: ./undotbs01.dbf: HELP - extract write error

Hi:

> Can it be that the second file it is trying to extract is more than 2G or it has nothing to do with that?

Does the filesystem into which you are extracting support 'largefiles'? Examine with:

# mkfs -F vxfs -m /dev/vgNN/lvolX

(or):

# fsadm /mountpoint

Regards!

...JRF...
alex1982
Frequent Advisor

Re: tar: ./undotbs01.dbf: HELP - extract write error

This is the result of the fsadm command:

fsadm: /etc/default/fs is used for determining the file system type
nolargefiles
OldSchool
Honored Contributor

Re: tar: ./undotbs01.dbf: HELP - extract write error

"Can it be that the second file it is trying to extract is more than 2G or it has nothing to do with that?"

Certainly 2gig limits can come in to play w/ some unpatched versions of tar, or with destination filesystems that aren't largefile enabled.

of course knowing the source OS (and destination OS if different) wouldn't hurt either. and "pax" may let you extract this as well
OldSchool
Honored Contributor

Re: tar: ./undotbs01.dbf: HELP - extract write error

ok, so you're recovering to a different filesystem than the source, and it doesn't have largefiles enabled. Enable them and it should work....
Bart Paulusse
Respected Contributor

Re: tar: ./undotbs01.dbf: HELP - extract write error

nolargefiles means that the filesize limit is 2G.
You can change this with:
fsadm -F -o largefiles

regards,
Bart