PDA

View Full Version : Problems with Amanda 2.5 installation on Aix 5.1


Optimus
May 22nd, 2006, 06:50 AM
I compiled amanda's source code and installed on AIX 5.1.
I use the wiki guide to configure and customize my installation.

I have a problem when I try to use amanda.
Amanda's Command like ammt, amcheck and amlabel go back me a
error message: Segmentation fault.
Many of then also return to me coredump.

Can you help me with this problem?

Thanks in advance.

paddy
May 22nd, 2006, 11:29 AM
Can you provide more information?

1. Where did you get the source from? source rpm or source tar ball? From http://www.zmanda.com/downloads.html?

2. Can you use the debugger and get a back trace for one of the commands that dumper core?

3. What configure options did you use to compile the source code?

4. Can you also provide options passed to amlabel when the command failed?

Thanks,
Paddy

Optimus
May 23rd, 2006, 02:32 AM
Hi,
First of all, thanks for answer, paddy.

I'm sorry, I gave you a poor information to ask for help.

I got the source tar ball from zamanda.
I think I haven't got installed a debbuger in my AIX configuration, but I'm looking for one of then.

At first:
I create a new group called disk and a new user called amanda.

Then, I use the following configuration sentence with the new user amanda:
./configure --with-user=amanda --with-group=disk --with-configuration=daily --prefix=/SW/SOFTOPR/backup/amanda

and then, make and su root; make install

When the software was installed, I was following the wiki quick start steps.

I used xlC compiler.

I used the following amanda commands:

ammt -f /dev/rmt0 status
return: Segmentation fault (coredump)

amlabel daily daily-01
return: Segmentation fault (coredump)

Thanks for all.

Optimus
May 23rd, 2006, 02:48 AM
Hi,
First of all, thanks for answer, paddy.

I'm sorry, I gave you a poor information to ask for help.

I got the source tar ball from zamanda.
I think I haven't got installed a debbuger in my AIX configuration, but I'm looking for one of then.

At first:
I create a new group called disk and a new user called amanda.

Then, I use the following configuration sentence with the new user amanda:
./configure --with-user=amanda --with-group=disk --with-configuration=daily --prefix=/SW/SOFTOPR/backup/amanda

and then, make and su root; make install

When the software was installed, I was following the wiki quick start steps.

I used xlC compiler.

I used the following amanda commands:

ammt -f /dev/rmt0 status
return: Segmentation fault (coredump)

amlabel daily daily-01
return: Segmentation fault (coredump)

Thanks for all.

paddy
May 23rd, 2006, 01:08 PM
Thanks for additional information. Unfortunately, I do not have AIX machine to reproduce the
problem. We have not seen similar problems for other platforms.

It will really help if you can get debug information. Do you have IBM debugger? Look for
/usr/idebug directory.

Did you try compiling with gcc?

Thanks,
Paddy

paddy
May 24th, 2006, 07:59 PM
We also a segmentation fault from amlabel during our testing today. It may be a bug
in 2.5.0p2. It is not a problem with 2.5.1b1 (top of trunk).

Can you check if the following fix helps?

Index: common-src/fileheader.c
================================================== =================
RCS file: /home/cvs/zmanda/amanda/common-src/fileheader.c,v
retrieving revision 1.38
diff -a -u -r1.38 fileheader.c
--- common-src/fileheader.c 16 Mar 2006 07:58:58 -0000 1.38
+++ common-src/fileheader.c 25 May 2006 01:38:05 -0000
@@ -88,7 +88,7 @@
/*@end@*/
hexdump(buffer, lsize);
expected = "<Non empty line>";
- actual = stralloc(tok);
+ actual = NULL;
goto weird_header;
}

Thanks,
Paddy