PDA

View Full Version : Problems backing up Fedora 9 clients



rajsand
October 18th, 2008, 04:44 AM
I have set an Amanda server on a Centos 5.2 box

There are Fedora 5, Fedora 7, Fedora 9 and WinXp Clients.

Server and Client Version is 2.6 (except Fedora 9 client which is 2.5 using yum install)

I have been able to make things work for all except Fedora 9 which throws out an error like


cat /var/log/amanda/client/DailySet1/sendsize.20081018163823.debug sendsize: debug 1 pid 7843 ruid 33 euid 33: start at Sat Oct 18 16:38:23 2008 sendsize: version 2.5.2p1
Could not open conf file "/etc/amanda/amanda-client.conf": No such file or directory
Reading conf file "/etc/amanda/DailySet1/amanda-client.conf".
sendsize: debug 1 pid 7843 ruid 33 euid 33: rename at Sat Oct 18 16:38:23 2008
sendsize[7845]: time 0.086: calculating for amname /home/..../.thunderbird, spindle -1
sendsize[7845]: time 0.086: getting size via gnutar for /home/.../.thunderbird level 0
sendsize[7843]: time 0.086: waiting for any estimate child: 1 running
sendsize[7845]: time 0.088: spawning /usr/lib/amanda/runtar in pipeline
sendsize[7845]: time 0.088: argument list: runtar DailySet1 /bin/tar --create --file /dev/null --directory /home/bindu/.thunderbird --one-file-system --listed-incremental /var/lib/amanda/gnutar-lists/..._.thunderbird_0.new --sparse --xattrs --ignore-failed-read --totals .
sendsize[7845]: time 0.143: /bin/tar: GNU features wanted on incompatible archive format
sendsize[7845]: time 0.144: Try `/bin/tar --help' or `/bin/tar --usage' for more information.
sendsize[7845]: time 0.152: .....
sendsize[7845]: time 0.152: estimate time for /home/.../.thunderbird level 0: 0.063
sendsize[7845]: time 0.152: no size line match in runtar output for /home/bindu/.thunderbird
sendsize[7845]: time 0.152: .....
sendsize[7845]: time 0.152: estimate size for /home/.../.thunderbird level 0: -1 KB
sendsize[7845]: time 0.152: waiting for runtar "/home/.../.thunderbird" child
sendsize[7845]: time 0.152: after runtar /home/.../.thunderbird wait
errmsg is /usr/lib/amanda/runtar exited with status 2: see /var/log/amanda/client/DailySet1/sendsize.20081018163823.debug
sendsize[7845]: time 0.152: done with amname /home/.../.thunderbird dirname /home/bindu/.thunderbird spindle -1
sendsize[7843]: time 0.153: child 7845 terminated normally
sendsize: time 0.153: pid 7843 finish time Sat Oct 18 16:38:23 2008


Can someone provide pointers for a solution please...

TIA

Rajagopal

paddy
October 18th, 2008, 04:37 PM
what version of tar are your using? Please check gnutar compatibility with Amanda at http://wiki.zmanda.com/index.php/FAQ:What_versions_of_GNU_Tar_are_Amanda-compatible%3F

Paddy

rajsand
October 19th, 2008, 12:02 PM
All concerned linux system has tar version 1.15.1

martineau
October 20th, 2008, 03:45 AM
What's the default tar options? /bin/tar --help, post the few latest lines
Also post: /bin/tar --version

These command must be executed on the client

rajsand
October 20th, 2008, 10:36 PM
Once again, all clients _except_ Fedora 9 are 2.6.0p2 from amanda binary download site.

Fedora Client was installed through "yum install" i.e. Fedora repositories and the versions are:

amanda-2.5.2p1-10.fc9
amanda-client-2.5.2p1-10.fc9


====== Fedora 9 Client ====
#cat /etc/redhat-release
Fedora release 9 (Sulphur)

#/bin/tar --version
tar (GNU tar) 1.15.1


#/bin/tar --help
Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.
.
<snip>
.
*This* tar defaults to:
--format=gnu -f- -b20 --rmt-command=/sbin/rmt
====== Fedora 7 Client ====
# cat /etc/redhat-release
Fedora release 7 (Moonshine)

# /bin/tar --version
tar (GNU tar) 1.15.1


# /bin/tar --help
Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.
.
<snip>
.
*This* tar defaults to:
--format=gnu -f- -b20 --rmt-command=/sbin/rmt

rajsand
October 28th, 2008, 08:42 PM
awaiting some pointer

dustin
October 28th, 2008, 08:53 PM
I've never seen this before. It's not clear why GNU Tar would give that particular error when it's *creating* an archive, unless it had somehow been configured to not create GNUtar-formatted archives. Any idea why it's doing this?

paddy
October 29th, 2008, 09:37 AM
I've never seen this before. It's not clear why GNU Tar would give that particular error when it's *creating* an archive, unless it had somehow been configured to not create GNUtar-formatted archives. Any idea why it's doing this?

I agree with Dustin. Please check runtar logs to see if we are passing --format parameter to gnu tar. Usually you see this error message "GNU features wanted on incompatible archive format" when the data cannot be stored in format specified.

Are you able to run tar command on /home/bindu/.thunderbird directory with same
parameters (as in runtar log file).

thanks,
Paddy

anthony
June 28th, 2009, 09:48 PM
I know this is an old thread, but I also just ran into this problem.

However I attempted to run the tar estimate command multiple times after checking on its validity, and found the cause of the error for my system

It was the --xattrs option. I have no idea why this is a problem, it is listed in the man page for the /bin/tar being used, but if I remove it the tar command runs fine without the error, and returns an estimate.

Now I only need to figure out how to remove it from the command!

Anyone have any ideas?

anthony
June 29th, 2009, 03:56 PM
As I am usin a binary package (Fedora 9) and do not want to re-compile my solution to removing --xattrs flag was to replace the flag in the binary TAR wrapper with another flag of equal length --sparse


for i in /usr/lib/amanda/send{size,backup}; do
[ -f $i.orig ] && continue
perl -i.orig -0777 -pe 's/--xattrs/--sparse/' $i
echo "Removed the Gnutar --xattrs flag from $i"
done


This works as the two flags are the same length preserving binary compatibly, and does not effect tar as I am effectively repeating a previously given option.

The result is I remove the option giving me the error...

/bin/tar: GNU features wanted on incompatible archive format
Try `/bin/tar --help' or `/bin/tar --usage' for more information.
and everything is working well.