How To:Install Amanda Server on AIX: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 5: Line 5:
== Description of the system ==
== Description of the system ==
IBM p-Server 7026-B80 with four cpu's
IBM p-Server 7026-B80 with four cpu's
6 * 10/100 ethernetcards
6 * 10/100 ethernetcards
4* 36 Gb scsi disk
4* 36 Gb scsi disk
HP Storageworks 1/8 Autoloader LTO2
HP Storageworks 1/8 Autoloader LTO2


== Software ==
== Software ==
AIX 5.2 ML9 (5200-08)
AIX 5.2 ML9 (5200-08)
Latest firmware upgrade for the hardware from IBM
Latest firmware upgrade for the hardware from IBM
amanda-2.5.0p2 (source)
amanda-2.5.0p2 (source)
mtx-1.3.11.tar.gz (source)
mtx-1.3.11.tar.gz (source)
make-3.81.tar.gz  (source)
make-3.81.tar.gz  (source)
gsc-1.1.tar.gz (source)
gsc-1.1.tar.gz (source)
gcc.4.1.1.tar.Z (Precompiled set of binaries from UCLA AIX site)
gcc.4.1.1.tar.Z (Precompiled set of binaries from UCLA AIX site)


Line 24: Line 34:
In order to get amanda to work the following actions have to be taken:
In order to get amanda to work the following actions have to be taken:
0) Prerequisites
0) Prerequisites
1) Install compiler
1) Install compiler
2) Install GNU make
2) Install GNU make
3) Install GSC (generic scsi driver for AIX)
3) Install GSC (generic scsi driver for AIX)
4) Install mtx for AIX
4) Install mtx for AIX
5) Connect the tapedrive
5) Connect the tapedrive
6) Test the tapedrive  
6) Test the tapedrive  
7) Compile amanda
7) Compile amanda
8) Configuration
8) Configuration


Line 36: Line 54:


take care that /usr/local is sufficiently big (2 Gb).
take care that /usr/local is sufficiently big (2 Gb).
PATH=/usr/local/bin:/usr/local/sbin:$PATH
PATH=/usr/local/bin:/usr/local/sbin:$PATH


Line 41: Line 60:


Thx to UCLA there is a recent GNU compiler for AIX, version 4.1.1.
Thx to UCLA there is a recent GNU compiler for AIX, version 4.1.1.
Download this, and install the binaries: cat gcc.4.1.1.tar.Z | uncompress | (cd / ; tar xvf -)
Download this, and install the binaries: cat gcc.4.1.1.tar.Z | uncompress | (cd / ; tar xvf -)
  PATH=/usr/local/bin:/usr/local/sbin:$PATH
   
 


=== Install GNU make ===
=== Install GNU make ===
Line 51: Line 72:
=== Install GSC ===
=== Install GSC ===


This is necessary to get any non-IBM autoloader to work. IBM only seems to support autoloaders when TSM is bought.
This is necessary to get any non-IBM autoloader to work. AIX only seems to support autoloaders when TSM is bought.
HP does not provide autoloader support for its autoloaders.
 
HP does not provide AIX autoloader support for its autoloaders.


GSC was tested with the standard xlC compiler from IBM, in order to compile with gcc the makefile has to be adapted:
GSC was tested with the standard xlC compiler from IBM, in order to compile with gcc the makefile has to be adapted:
- CC = gcc
- CC = gcc
- LDFLAGS =      -b"I:/lib/kernex.exp I:/lib/syscalls.exp" -lcsys -lsys
- LDFLAGS =      -b"I:/lib/kernex.exp I:/lib/syscalls.exp" -lcsys -lsys
- install bos.adt.syscalls (for libcsys)
- install bos.adt.syscalls (for libcsys)


Line 62: Line 87:


- type "make"
- type "make"
Follow instructions in the README provided with gsc source code.
'''Important note''': cp gscdds.h /usr/include/sys (otherwise compilation of mtx will fail).
==== Surviving reboots ====
In my case the autoloader device gets into state "defined" after a reboot:
catfish lsdev -Cc generic
gsc0 Defined  10-89-00-5,1 Feral Software Generic SCSI Release 1.1
The following statements activate the autoloader, and the original device name will be preserved:
During system boot (inittab runstate 2)::
1) rmdev -l gsc0 -d
2) When the autoloader has scsi-id Y and LUN Z type:
3) catfish  mkdev -c generic -s scsi -t gsc -pscsi1 -wY,Z
gsc0 Available
4) Ownerships device nodes (amanda, group tapes):
chown amanda:tapes /dev/rmt0 /dev/gsc0
chmod 660 /dev/rmt0 /dev/gsc0
=== Install mtx for AIX ===
MTX should now compile straighforward, except that during "make install" a strip command fails, this is solved by changing the install into:
install: $(BINS) #$(DBGS)
Then it runs fine

Revision as of 13:51, 7 June 2007

How to install amanda 2.5.0p2 on AIX 5.2

In this article is described how amanda server can be made to run using an old AIX 5.2 and a non-IBM tape library.

Description of the system

IBM p-Server 7026-B80 with four cpu's

6 * 10/100 ethernetcards

4* 36 Gb scsi disk

HP Storageworks 1/8 Autoloader LTO2


Software

AIX 5.2 ML9 (5200-08)

Latest firmware upgrade for the hardware from IBM

amanda-2.5.0p2 (source)

mtx-1.3.11.tar.gz (source)

make-3.81.tar.gz (source)

gsc-1.1.tar.gz (source)

gcc.4.1.1.tar.Z (Precompiled set of binaries from UCLA AIX site)

  • no* IBM xlC compiler

Getting amanda to work

In order to get amanda to work the following actions have to be taken: 0) Prerequisites

1) Install compiler

2) Install GNU make

3) Install GSC (generic scsi driver for AIX)

4) Install mtx for AIX

5) Connect the tapedrive

6) Test the tapedrive

7) Compile amanda

8) Configuration

Prerequisites

take care that /usr/local is sufficiently big (2 Gb).

PATH=/usr/local/bin:/usr/local/sbin:$PATH

Install compiler

Thx to UCLA there is a recent GNU compiler for AIX, version 4.1.1.

Download this, and install the binaries: cat gcc.4.1.1.tar.Z | uncompress | (cd / ; tar xvf -)


Install GNU make

This is necessary for mtx to compile, they use GNU make specific statements. Compiling and installation is straightforward.

Install GSC

This is necessary to get any non-IBM autoloader to work. AIX only seems to support autoloaders when TSM is bought.

HP does not provide AIX autoloader support for its autoloaders.

GSC was tested with the standard xlC compiler from IBM, in order to compile with gcc the makefile has to be adapted:

- CC = gcc

- LDFLAGS = -b"I:/lib/kernex.exp I:/lib/syscalls.exp" -lcsys -lsys

- install bos.adt.syscalls (for libcsys)

Compiling gsc

- type "make"

Follow instructions in the README provided with gsc source code.

Important note: cp gscdds.h /usr/include/sys (otherwise compilation of mtx will fail).

Surviving reboots

In my case the autoloader device gets into state "defined" after a reboot:

catfish lsdev -Cc generic

gsc0 Defined 10-89-00-5,1 Feral Software Generic SCSI Release 1.1

The following statements activate the autoloader, and the original device name will be preserved: During system boot (inittab runstate 2)::

1) rmdev -l gsc0 -d

2) When the autoloader has scsi-id Y and LUN Z type:

3) catfish mkdev -c generic -s scsi -t gsc -pscsi1 -wY,Z

gsc0 Available

4) Ownerships device nodes (amanda, group tapes): chown amanda:tapes /dev/rmt0 /dev/gsc0

chmod 660 /dev/rmt0 /dev/gsc0

Install mtx for AIX

MTX should now compile straighforward, except that during "make install" a strip command fails, this is solved by changing the install into:

install: $(BINS) #$(DBGS)

Then it runs fine