PDA

View Full Version : Perl problem on ZMC Backup > Where screen



philltamara
November 22nd, 2008, 06:45 PM
I have Amanda Enterprise 2.6.4pl1 installed on a fully patched Solaris 10 (release Solaris 10 8/07)


Here is what I am seeing on the ZMC "Backup > Where" screen:

System Error
Can't load '/usr/lib/amanda/perl/auto/Amanda/Types/libTypes.so' for module Amanda::Types: ld.so.1: .perl.bin: fatal: relocation error: file /usr/lib/libamglue.so: symbol PL_stack_sp: referenced symbol not found at /opt/zmanda/amanda/perl/lib/5.8.8/sun4-solaris-thread-multi-64/DynaLoader.pm line 230.
at /usr/lib/amanda/perl/Amanda/Types.pm line 11
Compilation failed in require at /usr/lib/amanda/perl/Amanda/Device.pm line 10.
Compilation failed in require at /usr/sbin/amgetconf line 22.
BEGIN failed--compilation aborted at /usr/sbin/amgetconf line 22.


I did see that earlier post in which multiple versions of perl were installed.
I am seeing in /usr/perl5

5.6.1
5.8.3
5.8.4

and in /usr/perl5/site_perl

5.6.1 5.8.4


Which directories should I be removing to make Amanda work?

thank you

paddy
November 22nd, 2008, 09:47 PM
Please open a support case in Zmanda Network.

thanks,
Paddy

gsat
November 24th, 2008, 08:34 AM
It looks it is a ENV issue for amandabackup user, perl(version 5.8.8) is bundled with ZMC, we don't use the perl distributed with OS.

Is /usr/lib/amanda in your LD_LIBRARY_PATH?

Is this a sparc or x86 system?

can you post output of "crle" and "crle -64"(on sparc) commands.

philltamara
December 3rd, 2008, 02:41 PM
It looks it is a ENV issue for amandabackup user, perl(version 5.8.8) is bundled with ZMC, we don't use the perl distributed with OS.

Is /usr/lib/amanda in your LD_LIBRARY_PATH?

Is this a sparc or x86 system?

can you post output of "crle" and "crle -64"(on sparc) commands.

This is a SPARC system.

The library path needs to be cleaned up. It looks like this:

LD_LIBRARY_PATH=/opt/zmanda/amanda/common/lib:/usr/lib/sparcv9:/opt/csw/lib/:/usr/lib:/usr/local/lib:/opt/zmanda/amanda/common/lib:/usr/lib/sparcv9:/opt/csw/lib/:/usr/lib:/usr/local/lib::/usr/lib/amanda:/usr/lib/:/usr/local/lib:

crle

Configuration file [version 4]: /var/ld/ld.config
Default Library Path (ELF): /lib:/usr/lib:/usr/lib/amanda:/usr/local/lib
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

Command line:
crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/lib/amanda:/usr/local/lib


crle -64

Configuration file [version 4]: /var/ld/64/ld.config
Default Library Path (ELF): /lib/64:/usr/lib/64:/usr/lib
Trusted Directories (ELF): /lib/secure/64:/usr/lib/secure/64 (system default)

Command line:
crle -c /var/ld/64/ld.config -l /lib/64:/usr/lib/64

philltamara
December 3rd, 2008, 04:06 PM
These error messages only show up on the WHERE screen of the ZMC. All of the tape drive and Holding disk information is missing. If I re-enter the tape drive information, the error messages go away, but it is impossible to save the BACKUP DEVICE settings.

When I try to save, the PLEASE SELECT tape drive switches to OTHER and tells me that I have to enter a tape drive name for OTHER. When I enter the information for the LTO library using OTHER, I get the following:

System Error
Can't load '/usr/lib/amanda/perl/auto/Amanda/Types/libTypes.so' for module Amanda::Types: ld.so.1: .perl.bin: fatal: relocation error: file /usr/lib/libamglue.so: symbol PL_stack_sp: referenced symbol not found at /opt/zmanda/amanda/perl/lib/5.8.8/sun4-solaris-thread-multi-64/DynaLoader.pm line 230.
at /usr/lib/amanda/perl/Amanda/Types.pm line 11
Compilation failed in require at /usr/lib/amanda/perl/Amanda/Device.pm line 10.
Compilation failed in require at /usr/sbin/amgetconf line 22.
BEGIN failed--compilation aborted at /usr/sbin/amgetconf line 22.

ERROR: Invalid Value specified for --tapedev

USAGE:
/opt/zmanda/amanda/bin/amsetconf [--org ]
[--mailto ] [--dumpuser ]
[--inparallel ] [--dumporder ] [--tpchanger ]
[--taperalgo ] [--displayunit ]
[--netusage ] [--dumpcycle (ex: 5days, 1week or 2weeks)]
[--runspercycle ] [--runtapes ]
[--tapecycle ] [--bumpsize ]
[--bumppercent ] [--bumpdays ]
[--bumpmult ] [--etimeout ]
[--dtimeout ] [--ctimeout ]
[--tapebufs ] [--tapedev ]
[--rawtapedev ] [--changerfile ]
[--changerdev ] [--maxdumps:] [--maxdumpsize ]
[--tapetype ] [--labelstr ]
[--amrecover_do_fsf ] [--amrecover_check_label ]
[--amrecover_changer ] [--reserve ] [--autoflush ]
[--columnspec ] [--infofile ]
[--logdir ] [--indexdir ] [--device_output_buffer_size ]
[--tapelist ] [--label_new_tapes ]
[--device_property "":""]
[--dumptypedef <" {[auth:], [comment:\"\"], [comprate:], [compress:],
[dumpcycle:], [estimate:], [encrypt:],[exclude:], [holdingdisk:],
[ignore:], [index:], [kencrypt:], [maxdumps:], [maxpromoteday:],
[priority:], [program:], [record:], [skip-full:], [skip-incr:],
[starttime:], [strategy:], [tape_splitsize:], [split_diskbuffer:],
[fallback_splitsize:], [:dumptype]}">]
[--tapetypedef <"TapeTypeName> {[comment:\"\", length:, filemark:, speed:]}"]
[--holdingdiskdef <"HoldingDiskName> {[comment:\"\", directory:, use:,
chunksize:]}"]
[--help]

ERROR: Invalid Value specified for --tapedev

gsat
December 4th, 2008, 10:25 AM
amanda server on sparc is 64 bit, libamglue.so should get installed in /usr/lib/64/libamglue.so, on your system why is at /usr/lib/?

correct location of libamglue should be :
pkgchk -l AmandaEnterpriseBackupServer |grep -i libamglue
Pathname: /usr/lib/64/libamglue.a
Pathname: /usr/lib/64/libamglue.la
Pathname: /usr/lib/64/libamglue.so

I think you have some installation issues.., can you run "pkgchk AmandaEnterpriseBackupServer" and see if you see any errors?

philltamara
December 4th, 2008, 02:06 PM
You are right. /usr/lib/64 is what should be used. The /usr/lib stuff should not be there. The error messages are now gone. The /usr/lib stuff was there because I had mistakenly installed the client software on the server. After I had removed the client with pkgrm, the 32 libraries were not removed.

Problem fixed.

Thank you.