disklist format

2001-09-02 Thread ThomasRatliffDDS


Trying to get this running on MacOSX.

Disks are labeled as /dev/rdisk0,/dev/rdis1, etc.

How does one write the entry for the 9th partition on /dev/rdisk0?  I
tried /dev/rdisk09 but that wasn't correct.

thanks




Re: HP changer and BSD/OS 4.2

2001-09-02 Thread Michael Hall

On Fri, Aug 31, 2001 at 10:56:18PM -0500, John R. Jackson wrote:

 ... We're running BSD/OS 4.2 and I grabbed the
 latest tarball (2.4.2p2) ...
 
 You may want to get the latest amanda-242-branch CVS sources (see the
 FAQ at www.amanda.org for instructions).  I seem to recall fixing the
 problem that chg-scsi was not being built, and I **know** chg-scsi itself
 is much improved over the tarball.  I also seem to recall one of the
 things taken care of was BSD support.

Tried that, configure still doesn't find things it wants and as a result
it doesn't configure things to build chg-scsi.

changer-src/Makefile
...
#libexec_PROGRAMS = chg-scsi $(CHIO_SCSI)
...

log of configure output
...
checking for scsi/sg.h... no
checking for scsi/scsi_ioctl.h... no
...
checking for sys/mtio.h... yes
...
checking for sys/scsiio.h... no
checking for sys/scsi.h... no
checking for sys/scsi/impl/uscsi.h... no
checking for sys/scsi/scsi/ioctl.h... no
...
checking for sys/tape.h... yes
...

Been playing with a few things and actually have the chg-multi working now
as the changer (HP 24x6i) does cycle through the tapes via the mt command,
while this works it doesn't seem to take full advantage of the changer but
its better than nothing I guess for now.

Tried mtx but it didn't even begin to compile so I guess that options out.

Searching through the archives (BSDI, Amanda) I found references to 'tapechg',
'chg-python' and found a copy in somebodies CVS attic. Its used:

$scsicmd = 07 00 00 00 00 00;
system /sbin/scsi -f /dev/rst0.ctl -s 45 -c \$scsicmd\;

to reset, eject, and:

$scsicmd = a5 00 00 00 00 $srcaddr 00 $dstaddr 00 00 00 00;
system /sbin/scsi -f /dev/rst0.ctl -s 45 -c \$scsicmd\;

to load/unload a tape. This command is no longer available but they do have
a 'scsicmd' command, never used it before but perusing the man page, etc.
it looks like one can do 'scsicmd -f /dev/sg0 -c ies' to intialize (same
as the reset, eject above) and something to load/unload a tape something
like: 'scsicmd -f /dev/sg0 -c mm -P sa=src -P da=dest. Was thinking I
could possibly use the chg-mtx and just replace the mtx commands with the
equivalent scsicmd commands and make a chg-scsicmd or even just make a
mtx script that executes the appropriate scsicmds and just chg-mtx as is.

FWIW, we're using BSD/OS 4.2 (formerly BSDi), the HP 24x6i, amanda 2.4.2
(from CVS). The changer shows up as:

st0 at tg2 unit 0: HP C1557A rev U812 (SCSI-2) DDS3 cassette tape
sg0 at tg2 unit 1: SCSI generic unit: HP C1557A rev U812 (SCSI-2)

so I've been using 'nrst0' as the tape device and 'sg0' as the changer device.

PS: FWIW, since it didn't configure itself to build the chg-scsi I didn't
look into it further but the amanda from CVS doesn't build anyway:

gmake[1]: Leaving directory `/usr/local/src/amanda/config'
Making all in common-src
gmake[1]: Entering directory `/usr/local/src/amanda/common-src'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config 
-I./../regex-src  -I/usr/local/include   -g -O2   -c alloc.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -I/usr/local/include -g -O2 
-Wp,-MD,.deps/alloc.pp -c alloc.c -o alloc.o
echo timestamp  alloc.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config 
-I./../regex-src  -I/usr/local/include   -g -O2   -c amflock.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -I/usr/local/include -g -O2 
-Wp,-MD,.deps/amflock.pp -c amflock.c -o amflock.o
echo timestamp  amflock.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config 
-I./../regex-src  -I/usr/local/include   -g -O2   -c debug.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -I/usr/local/include -g -O2 
-Wp,-MD,.deps/debug.pp -c debug.c -o debug.o
debug.c: In function `debug_open':
debug.c:147: `AMANDA_DEBUG_DAYS' undeclared (first use in this function)
debug.c:147: (Each undeclared identifier is reported only once
debug.c:147: for each function it appears in.)
gmake[1]: *** [debug.lo] Error 1
gmake[1]: Leaving directory `/usr/local/src/amanda/common-src'
gmake: *** [all-recursive] Error 1
zeus:/usr/local/src/amanda $

I'd be more than willing to help and supply any other info I can if somebody
wants to try and figure this out as well as chg-scsi. Not a programmer myself
but I can dig up necessary info, header files, etc. if someone can point me
to what they need.

FWIW, I've also attached the scsicmd man page and the accompanying data file
it uses, scsicmdtab, thinking someone may find it useful, hope its not
against the list rules.

--
The girl who stoops to conquer usually wears a low-cut dress.

Mike Hall,
Unix Admin   - Rock Island Communications   [EMAIL PROTECTED]
System Admin - riverside.org[EMAIL PROTECTED]

 scsicmd.tar.gz


amanda client - solaris 2.5

2001-09-02 Thread chandra

Has anyone successfully had amanda running as a client or even as a server.

chandra