1838662 Members
8363 Online
110128 Solutions
New Discussion

Re: Tar backup problem!!

 
Amit Manna_6
Regular Advisor

Tar backup problem!!

HI,
I am trying to do a tar of directory called server inside the following path.
/opt/tools/egate453
using the command.

tar -cvf server_270306.tar server.


The backup starts but fails with an error.


Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.

Can anybody tell me what may be the problem and the workaround for the same..


11 REPLIES 11
Muthukumar_5
Honored Contributor

Re: Tar backup problem!!

Tape is reaching End of Tape status. You can not write after that some times. If you want to rewind the tape and write then,

# mt -f rew

see mt for usage.

--
Muthu
Easy to suggest when don't know about the problem!
Ninad_1
Honored Contributor

Re: Tar backup problem!!

Muthu,

It seems that Amit is trying to write to a file rather than a tape. What you suggest is fine for backing up to tape.

Amit,
Is the filesystem where you are creating the tar file getting full ? I cannot think of any other reason at the moment for such error. Also Does it display that it is tar'ing when you issue the command, is the tar file getting generated 0 bytes or is really getting created ?

Ninad
Victor Fridyev
Honored Contributor

Re: Tar backup problem!!

Hi,

Could you reply with an output of the command
#>ls -ls server_270306.tar

Either you've been mistaken with the command and wroto onto a tape or the output file size reach the FS limits.

HTH
Entities are not to be multiplied beyond necessity - RTFM
V. Nyga
Honored Contributor

Re: Tar backup problem!!

Hi,

where do you want to write the tar file?
When does the error occures?
Could it be that you get a tar file with 2Gb size?
Then you would have a largefile problem.

Please give us more infos
Volkmar
*** Say 'Thanks' with Kudos ***
Borislav Perkov
Respected Contributor

Re: Tar backup problem!!

Hi,
You definately have no spase on the filesystem where you put server_270306.tar file.
Regards,
Borislav
Muthukumar_5
Honored Contributor

Re: Tar backup problem!!

oops. What is your file system usage statistics? bdf will give that.

Error of Tar: end of tape seems to be strange when the operation is happening on file system? Is it correct?

Are you trying create tar file in tape or file system?!

--
Muthu

Easy to suggest when don't know about the problem!
Amit Manna_6
Regular Advisor

Re: Tar backup problem!!

I am trying to do on a filesystem
Muthukumar_5
Honored Contributor

Re: Tar backup problem!!

Can you post the file system usage?

bdf

--
Muthu
Easy to suggest when don't know about the problem!
V. Nyga
Honored Contributor

Re: Tar backup problem!!

Hi Amit,

is the command working?
Is a tar file created?

V.
*** Say 'Thanks' with Kudos ***
Baiju Kumar.B_1
Advisor

Re: Tar backup problem!!

dear amit ,
it is a file system space problem only.
you first check the size of the taken .tar file.after that check the file system (target usage )using bdf.then agin delete the tar file agin take the back with the following sysntax #tar -cvf file.tar ./source path

if agin terminating check the capacity of the destination file system using bdf

also check the file systems are supporting large file or not

regards
Baiju Kumar.B
nothing is impossible
Prashant Zanwar_4
Respected Contributor

Re: Tar backup problem!!

What version of tar is used and what is file system usage where you are trying to create the tar archive....
1.13.25 tar

This is what shows on my server with
PHCO_28992 1.0 --- Patch.

Such error can be old stuff as far as I can imagine..
Tx
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."