On Sat, 8 Jan 2005, David Newman wrote:
>
>
>
> On 1/8/05 5:15 PM, "rray AT tcmail.mstc.state.ms DOT us"
> <rray AT tcmail.mstc.state.ms DOT us> wrote:
>
> > On Sat, 8 Jan 2005, David Newman wrote:
> >
> >>
> >>
> >>
> >> On 1/8/05 3:15 PM, "rray AT tcmail.mstc.state.ms DOT us"
> >> <rray AT tcmail.mstc.state.ms DOT us> wrote:
> >>
> >>> Is it possible to run amandad as a service without having inetd launch it?
> >>> I'm having trouble getting a connection to a server running HP/UX 11.00.
> >>
> >> So the HP/UX 11.00 box is an amanda client?
> >
> > A client and server. If I run amcheck on the 11.00 machine to connect to
> > itself it fails. If I run amcheck on the 11.00 machine to connect to a
> > 10.20 machine it works fine. If I run amcheck on a 10.20 machine to connect
> > to the 11.00 machine it fails.
>
> This may be a permissions thing. Whatever account name you're using on the
> server needs permission on the client to run the amanda programs, write to
> /tmp/amanda, and access the filesystems you want backed up.
>
> Also, if the username you're using is different from the one given in
> inetd.conf, you'll need to specify it in .amandahosts, right after the
> hostname.
>
> For simplicity's sake I'd recommend using the same username everywhere, and
> specifying that username at compile time. You may still need to set
> permissions in a few places, but having one username minimizes this.
>
> And -- just checking -- you have a properly configured .amandahosts in the
> home directory of your amanda user, right? If not, "man amanda" and search
> on .amandahosts.
I configured all host the same using amanda as user name and group name at
compile time. I checked and rechecked. When I run amcheck on 11.00 server
to connect to itself there is a debug entry in /tmp/amanda for amcheck but
nothing for amandad. If I do this on a working machine there is an entry
in /tmp/amanda for amcheck and anandad.
>
> >
> >>
> >>> I have amanda running on several servers running HP/UX 10.20 and one
> >>> running HP/UX 11.11 with no problems but amcheck always fails with "Host
> >>> down?" on the 11.00 server.
> >>
> >> On the tape server, try running "amcheck -m <configname>" and see what
> >> errors it returns.
> >>
> >> I had a similar problem between two FreeBSD boxes. In my case, amcheck told
> >> me that the tape user didn't have permissions set correctly on the amanda
> >> client in various places, including /tmp, /usr/local/var/amanda, and of
> >> course the filesystems I wanted to back up. The problem cleared once I
> >> corrected this.
> >>
> >> Another thing to verify is that the client machine lists the tape server
> >> (and user, if it's not the default called from inetd.conf) in its
> >> .amandahosts file. I had a CNAME instead of the canonical FQDN, which may
> >> also have been a problem.
> >>
> >> dn
> >
> > I've used nettl, HP's network tracing and logging app, to spy on the UDP
> > traffic. On the 11.00 machine when I run amcheck I see 3 UDP packets from
> > amcheck and that's all.
>
> what's in those three packets?
>
> dn
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvARPA/9000 NETWORKINGvvvvvvvvvvvvvvvvvvvvvvvvvv@#%
Timestamp : Sat Jan 08 CST 2005 16:16:38.561022
Process ID : 7319 Subsystem : NS_LS_UDP
User ID ( UID ) : 800 Trace Kind : PDU OUT
TRACE
Device ID : -1 Path ID : 0
Connection ID : 0
Location : 00123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Transmitted 145 bytes via UDP Sat Jan 08 16:16:38.056102 CST 2005
pid=7319
0: 02 21 30 39 00 7d 00 7d 41 6d 61 6e 64 61 20 32 .!09.}.}Amanda 2
16: 2e 34 20 52 45 51 20 48 41 4e 44 4c 45 20 30 30 .4 REQ HANDLE 00
32: 30 2d 34 30 30 31 44 45 45 30 20 53 45 51 20 31 0-4001DEE0 SEQ 1
48: 31 30 35 32 32 32 35 39 38 0a 53 45 43 55 52 49 105222598.SECURI
64: 54 59 20 55 53 45 52 20 61 6d 61 6e 64 61 0a 53 TY USER amanda.S
80: 45 52 56 49 43 45 20 6e 6f 6f 70 0a 4f 50 54 49 ERVICE noop.OPTI
96: 4f 4e 53 20 66 65 61 74 75 72 65 73 3d 66 66 66 ONS features=fff
112: 66 66 65 66 66 39 66 66 65 30 66 3b 0a -- -- -- ffeff9ffe0f;....
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvARPA/9000 NETWORKINGvvvvvvvvvvvvvvvvvvvvvvvvvv@#%
Timestamp : Sat Jan 08 CST 2005 16:16:48.552955
Process ID : 7319 Subsystem : NS_LS_UDP
User ID ( UID ) : 800 Trace Kind : PDU OUT
TRACE
Device ID : -1 Path ID : 0
Connection ID : 0
Location : 00123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Transmitted 145 bytes via UDP Sat Jan 08 16:16:48.055295 CST 2005
pid=7319
0: 02 21 30 39 00 7d 00 7d 41 6d 61 6e 64 61 20 32 .!09.}.}Amanda 2
16: 2e 34 20 52 45 51 20 48 41 4e 44 4c 45 20 30 30 .4 REQ HANDLE 00
32: 30 2d 34 30 30 31 44 45 45 30 20 53 45 51 20 31 0-4001DEE0 SEQ 1
48: 31 30 35 32 32 32 35 39 38 0a 53 45 43 55 52 49 105222598.SECURI
64: 54 59 20 55 53 45 52 20 61 6d 61 6e 64 61 0a 53 TY USER amanda.S
80: 45 52 56 49 43 45 20 6e 6f 6f 70 0a 4f 50 54 49 ERVICE noop.OPTI
96: 4f 4e 53 20 66 65 61 74 75 72 65 73 3d 66 66 66 ONS features=fff
112: 66 66 65 66 66 39 66 66 65 30 66 3b 0a -- -- -- ffeff9ffe0f;....
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvARPA/9000 NETWORKINGvvvvvvvvvvvvvvvvvvvvvvvvvv@#%
Timestamp : Sat Jan 08 CST 2005 16:16:58.552938
Process ID : 7319 Subsystem : NS_LS_UDP
User ID ( UID ) : 800 Trace Kind : PDU OUT
TRACE
Device ID : -1 Path ID : 0
Connection ID : 0
Location : 00123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Transmitted 145 bytes via UDP Sat Jan 08 16:16:58.055293 CST 2005
pid=7319
0: 02 21 30 39 00 7d 00 7d 41 6d 61 6e 64 61 20 32 .!09.}.}Amanda 2
16: 2e 34 20 52 45 51 20 48 41 4e 44 4c 45 20 30 30 .4 REQ HANDLE 00
32: 30 2d 34 30 30 31 44 45 45 30 20 53 45 51 20 31 0-4001DEE0 SEQ 1
48: 31 30 35 32 32 32 35 39 38 0a 53 45 43 55 52 49 105222598.SECURI
64: 54 59 20 55 53 45 52 20 61 6d 61 6e 64 61 0a 53 TY USER amanda.S
80: 45 52 56 49 43 45 20 6e 6f 6f 70 0a 4f 50 54 49 ERVICE noop.OPTI
96: 4f 4e 53 20 66 65 61 74 75 72 65 73 3d 66 66 66 ONS features=fff
112: 66 66 65 66 66 39 66 66 65 30 66 3b 0a -- -- -- ffeff9ffe0f;....
>
>
> On one of the machines that are OK if I perform the
> > same procedure I see packets from amcheck and reply packets from amandad.
> > If I run netstat -a | grep amanda it shows the amanda service listening.
> > It just never gets launched. I'm a bit stumped.
> >
> > Thanks
> > Richard Ray
> >
> >>
> >>
> >> I'm trying to determine if the problem is with
> >>> inetd or amanda. I feel certain it's with HP but I don't know where else
> >>> to look. I'm running amanda 2.4.4p4.
> >>>
> >>> Thanks
> >>> Richard Ray
> >>>
> >>
> >>
> >
>
>
|