AIX Invalid tape length

Hi,
on AIX server 1 7
When running tar commande to archive on disk, I have :

Invalid tape length

What does it mean? I don't ask to save on tape.
Thanks for explanation.

Did you specify the f filename option for tar?
Can you post your tar command?

1 Like

the file is corrupted/incomplete for reason(s) X (as in unknown...), show the tar cmd, show the output of df on the filesystem being written to etc ...

Thanks.
Commande line is as following and is in a script running every evening from crontab:
(/opt/freeware/bin/tar -cvf - -L ${FLIST} | gzip
df -g:
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/lvdatavg00 442.00 45.68 90% 1449825 12% /u0/backup
In log:
/opt/freeware/bin/tar: /server/temp/liste_fic.lst: Invalid tape length
Try /opt/freeware/bin/tar --help' or /opt/freeware/bin/tar --usage' for more
information.
My question:
Is there any limite for number of line s in -L ${FLIST}
Regards.

no idea, how many lines is it ?

have you tried with ... 1 line / 10 lines / 100 lines ....

what is the actual tar version you are using.

tks

Thanks.
Number of lines is : 148517 lines.
It has worked fine for the years.
Just last evening failed. It is usuel to add/delete files , then the number of files and lines in file liste is not fixed.
How can I see the version of tar?
which tar
/usr/bin/tar

Regards.

In GNU tar the -L is "tape length".
Obviously /opt/freeware/bin/tar is a GNU tar
Try -T instead.

Or use the /usr/bin/tar where -L is "list of files".

did you follow the advice given in the log
Try /opt/freeware/bin/tar --help' or /opt/freeware/bin/tar --usage' for more information.

as @MadeInGermany alludes to its likely gnu tar ... but you need to confirm
and if its been running without issue for years ... maybe the commandline has changed from the AIX version of tar to the gnu version ....

Ok. Thank you. I will see with SYSTEM team.
Regards.

Thanks to all.
As MadeInGermany said we used -T instead of -L and it seems working.
Regards.

1 Like

@big123456 good news , and the mystery of it having worked for years before remains unsolved ?

This topic was automatically closed 300 days after the last reply. New replies are no longer allowed.