[daip] remote tape mounts

Eric Greisen egreisen at nrao.edu
Fri Apr 7 13:30:16 EDT 2006


Joseph Lazio writes:
 > On the machine hosting the tape drive:
 > 
 >  aips% mt -f /dev/nst0 status
 >  SCSI 2 tape drive:
 >  File number=0, block number=0, partition=0.
 >  Tape block size 0 bytes. Density code 0x24 (DDS-2).
 >  Soft error count since last status=0
 >  General status bits on (45010000):
 >   BOT WR_PROT ONLINE IM_REP_EN
 > 
 > So that looks good.
 > On the remote machine, fire up AIPS: 
 > 
 > >inp mount
 > AIPS 2: MOUNT:    Verb to software mount a tape
 > AIPS 2: Adverbs     Values                 Comments
 > AIPS 2: ----------------------------------------------------------------
 > AIPS 2: INTAPE        1                    Tape unit # (0=> 1)
 > AIPS 2: DENSITY    6250                    Density to set on mount.
 > AIPS 2: REMHOST    'CRAZYHORSE'               Remote computer name
 > AIPS 2: REMTAPE       1                    Remote tape drive number
 > >mount
 > AIPS 2: ZMOUNR: UNABLE TO MOUNT REMOTE TAPE DEVICE, ERROR   96
 > AIPS 2: AMOUNT: TAPE IS ALREADY MOUNTED BY TPMON
 > 
 > 
 > Looking through errno.h, system error 96 indicates 
 > 
 > #define EPFNOSUPPORT    96      /* Protocol family not supported */

    Not relevant - error 96 is our number not an errno

 > On both machines, TPMON1 is running and /etc/services has the
 > appropriate definitions for service aipsmt1 on TCP port 5011.

        Also not relevant - TPMON2 is what is needed and only on
crazyhorse.

 > Is this because we are running pre-compiled binaries or is something
 > else funky going on here?
 > 

Clearly something funky.  Was it working at one point and then
stopped?  This error would not come if TPMON2 were not running at the
time of the mount - a socket failure would occur instead.

Is this Mac or Linux?

start aips on your machine with

aips tp=crazyhorse 

to insure that all relevant TPMONs are running.  The already mounted
is a flag inside the Fortran program not an OS thing.  We keep track
of mounted to stop multiple users/programs from messing with the same
tape.  You can confuse things by manually dismounting tapes, aborting
the aips program etc.

Eric Greisen






More information about the Daip mailing list