On Wednesday 07 November 2018 12:25:50 Chris Miller wrote:

> Hi Austin,
>
> Thanks very much. Your comments have been very helpful, and I
> appreciate the obviously considerable amount of time you spent to help
> me. I'm much farther along on this project as a result. I have no idea
> how I'm going to verify that everything is working the way I expect it
> to work, but I guess I will become much more familiar with how to
> manage AMANDA as I spend more time. AmCheck tells me that I only have
> one problem. I think AMANDA can't find the vtapes, so I need to learn
> much more about vtapes. This is an area that I understand
> theoretically, but I'm having trouble turning this theory into
> practice.Is there a good discussion of vtapes somewhere?
>
> I have this line in amanda.conf:
>
> tapetype "NAS"
> tpchanger "chg-disk:/etc/amanda/mail.tclc.org/dst"
> labelstr "vtape.[0-9][0-9]"
>
> I am apparently not doing what I want to do, which is point AMANDA to
> my NAS:
>
> bash-4.2$ ls -al /etc/amanda/mail.tclc.org/
>
> lrwxrwxrwx. 1 root root 26 Nov 6 07:02 dst ->
> /net/nas1/d0/Mail.TCLC.org
>
>
> bash-4.2$ ls /net/nas1/d0/Mail.TCLC.org
> state vtape.04 vtape.09 vtape.14 vtape.19 vtape.24 vtape.29 vtape.34
> vtape.39 vtape.44 vtape.49 vtape.54 vtape.59 vtape.00 vtape.05
> vtape.10 vtape.15 vtape.20 vtape.25 vtape.30 vtape.35 vtape.40
> vtape.45 vtape.50 vtape.55 vtape.60 vtape.01 vtape.06 vtape.11
> vtape.16 vtape.21 vtape.26 vtape.31 vtape.36 vtape.41 vtape.46
> vtape.51 vtape.56 vtape.61 vtape.02 vtape.07 vtape.12 vtape.17
> vtape.22 vtape.27 vtape.32 vtape.37 vtape.42 vtape.47 vtape.52
> vtape.57 vtape.62 vtape.03 vtape.08 vtape.13 vtape.18 vtape.23
> vtape.28 vtape.33 vtape.38 vtape.43 vtape.48 vtape.53 vtape.58
>
> Thanks for the help,

A few questions here:
How did you build amamda? [here, as the user amanda, always configure 
driven by the same script shown here:]
=======================================
#!/bin/sh
# since I'm always forgetting to su amanda...
if [ `whoami` != 'amanda' ]; then
        echo
        echo "!!!!!!!!!!!!!!!!!! Warning !!!!!!!!!!!!!!!!!!!"
        echo "Amanda needs to be configured and built by the"
        echo "user amanda, but must be installed by user root."
        echo
        exit 1
fi
make clean
rm -f config.status config.cache
./configure --with-user=amanda \
        --with-group=disk \
        --with-owner=amanda \
        --with-gnu-ld \
        --prefix=/usr/local/ \
        --with-debugging=/tmp/amanda-dbg/ \
        --with-tape-server=coyote \
        --with-bsdtcp-security --with-amandahosts \
        --with-configdir=/usr/local/etc/amanda \
        --enable-manpage-build  \
        --with-readline \
        --with-gnutar=/bin/tar \
        --with-security-file=/etc/amanda-security.conf \
        --with-amandates-file=/etc/amandates
echo "sleeping for reading configures warnings"
echo "a make as amanda will continue after 75 seconds..."
sleep 75
make
=========================

How did you install amanda? [here as root, mandatory I believe]

looking at /usr/local/sbin/am*, [all are owned by root:staff, 
but that may change with the os]

I do not have a NAS, but just a normal big drive mounted at 
/amandatapes in my /etc/fstab.

It is formatted ext4, and the whole thing is owned by amanda:disk, but 
this does change with the OS conventions in use at your site.

gene@coyote:~$ ls -l /amandatapes
total 20
drwxr-xr-x 62 amanda disk  4096 Nov  7 03:01 Dailys
drwx------  2 root   root 16384 Aug 23 16:37 lost+found


Inside of /amandatapes/
gene@coyote:~$ ls -l /amandatapes/*
/amandatapes/Dailys:
total 244
lrwxrwxrwx 1 amanda amanda    6 Nov  7 03:01 data -> slot36
drwxr-x--- 2 amanda amanda 4096 Oct  8 04:32 slot1
drwxr-x--- 2 amanda amanda 4096 Oct 16 03:25 slot10
drwxr-x--- 2 amanda amanda 4096 Oct 16 03:37 slot11
drwxr-x--- 2 amanda amanda 4096 Oct 17 04:15 slot12
drwxr-x--- 2 amanda amanda 4096 Oct 18 04:04 slot13
drwxr-x--- 2 amanda amanda 4096 Oct 19 03:43 slot14
drwxr-x--- 2 amanda amanda 4096 Oct 20 03:43 slot15
drwxr-x--- 2 amanda amanda 4096 Oct 21 04:00 slot16
drwxr-x--- 2 amanda amanda 4096 Oct 22 04:06 slot17
drwxr-x--- 2 amanda amanda 4096 Oct 23 03:33 slot18
drwxr-x--- 2 amanda amanda 4096 Oct 24 03:59 slot19
drwxr-x--- 2 amanda amanda 4096 Oct  9 03:24 slot2
drwxr-x--- 2 amanda amanda 4096 Oct 25 03:30 slot20
drwxr-x--- 2 amanda amanda 4096 Oct 26 03:24 slot21
drwxr-x--- 2 amanda amanda 4096 Oct 26 03:38 slot22
drwxr-x--- 2 amanda amanda 4096 Oct 27 04:16 slot23
drwxr-x--- 2 amanda amanda 4096 Oct 28 06:04 slot24
drwxr-x--- 2 amanda amanda 4096 Oct 29 03:51 slot25
drwxr-x--- 2 amanda amanda 4096 Oct 30 03:43 slot26
drwxr-x--- 2 amanda amanda 4096 Oct 31 03:45 slot27
drwxr-x--- 2 amanda amanda 4096 Nov  1 04:00 slot28
drwxr-x--- 2 amanda amanda 4096 Nov  2 03:43 slot29
drwxr-x--- 2 amanda amanda 4096 Oct  9 03:38 slot3
drwxr-x--- 2 amanda amanda 4096 Nov  3 03:55 slot30
drwxr-x--- 2 amanda amanda 4096 Nov  4 03:46 slot31
drwxr-x--- 2 amanda amanda 4096 Nov  5 03:27 slot32
drwxr-x--- 2 amanda amanda 4096 Nov  5 03:38 slot33
drwxr-x--- 2 amanda amanda 4096 Nov  6 05:24 slot34
drwxr-x--- 2 amanda amanda 4096 Nov  6 06:38 slot35
drwxr-x--- 2 amanda amanda 4096 Nov  7 03:44 slot36
drwxr-x--- 2 amanda amanda 4096 Sep 19 03:44 slot37
drwxr-x--- 2 amanda amanda 4096 Sep 20 03:29 slot38
drwxr-x--- 2 amanda amanda 4096 Sep 21 03:45 slot39
drwxr-x--- 2 amanda amanda 4096 Oct 10 04:22 slot4
drwxr-x--- 2 amanda amanda 4096 Sep 22 04:34 slot40
drwxr-x--- 2 amanda amanda 4096 Sep 23 03:49 slot41
drwxr-x--- 2 amanda amanda 4096 Sep 24 03:16 slot42
drwxr-x--- 2 amanda amanda 4096 Sep 24 03:47 slot43
drwxr-x--- 2 amanda amanda 4096 Sep 25 04:17 slot44
drwxr-x--- 2 amanda amanda 4096 Sep 25 04:29 slot45
drwxr-x--- 2 amanda amanda 4096 Sep 26 04:02 slot46
drwxr-x--- 2 amanda amanda 4096 Sep 27 03:53 slot47
drwxr-x--- 2 amanda amanda 4096 Sep 28 03:51 slot48
drwxr-x--- 2 amanda amanda 4096 Sep 29 04:04 slot49
drwxr-x--- 2 amanda amanda 4096 Oct 11 04:32 slot5
drwxr-x--- 2 amanda amanda 4096 Sep 30 04:21 slot50
drwxr-x--- 2 amanda amanda 4096 Oct  1 03:47 slot51
drwxr-x--- 2 amanda amanda 4096 Oct  2 03:15 slot52
drwxr-x--- 2 amanda amanda 4096 Oct  2 03:46 slot53
drwxr-x--- 2 amanda amanda 4096 Oct  3 12:23 slot54
drwxr-x--- 2 amanda amanda 4096 Oct  3 12:36 slot55
drwxr-x--- 2 amanda amanda 4096 Oct  4 04:12 slot56
drwxr-x--- 2 amanda amanda 4096 Oct  4 07:37 slot57
drwxr-x--- 2 amanda amanda 4096 Oct  5 03:42 slot58
drwxr-x--- 2 amanda amanda 4096 Oct  6 03:56 slot59
drwxr-x--- 2 amanda amanda 4096 Oct 12 03:48 slot6
drwxr-x--- 2 amanda amanda 4096 Oct  7 03:47 slot60
drwxr-x--- 2 amanda amanda 4096 Oct 13 04:00 slot7
drwxr-x--- 2 amanda amanda 4096 Oct 14 03:44 slot8
drwxr-x--- 2 amanda amanda 4096 Oct 15 04:02 slot9
-rw------- 1 amanda amanda 1044 Nov  7 03:43 state

And a normal directory command looks like this:
(wordwrap off)
gene@coyote:~$ ls -l /amandatapes/Dailys/data/
total 17986140
-rw------- 1 amanda amanda      32768 Nov  7 03:02 00000.Dailys-36
-rw------- 1 amanda amanda     272502 Nov  7 03:02 00001.GO704._root.0
-rw------- 1 amanda amanda      80218 Nov  7 03:02 00002.shop._home.1
-rw------- 1 amanda amanda      32947 Nov  7 03:02 00003.GO704._var_amanda.0
-rw------- 1 amanda amanda     163685 Nov  7 03:02 
00004.coyote._home_gene_Downloads.1
-rw------- 1 amanda amanda      32936 Nov  7 03:02 00005.shop._var_amanda.0
-rw------- 1 amanda amanda      33682 Nov  7 03:02 00006.shop._usr_local.0
-rw------- 1 amanda amanda    5012971 Nov  7 03:02 00007.lathe._usr_src.0
-rw------- 1 amanda amanda      70603 Nov  7 03:02 00008.shop._root.0
-rw------- 1 amanda amanda    1156740 Nov  7 03:02 00009.lathe._etc.0
-rw------- 1 amanda amanda      33043 Nov  7 03:02 00010.lathe._usr_lib_amanda.1
-rw------- 1 amanda amanda    1025706 Nov  7 03:02 00011.shop._etc.0
-rw------- 1 amanda amanda      32935 Nov  7 03:02 00012.lathe._var_amanda.0
-rw------- 1 amanda amanda      33687 Nov  7 03:02 00013.lathe._usr_local.0
-rw------- 1 amanda amanda     264760 Nov  7 03:02 00014.lathe._var_lib_amanda.0
-rw------- 1 amanda amanda     113986 Nov  7 03:02 00015.lathe._root.0
-rw------- 1 amanda amanda  116802434 Nov  7 03:03 00016.coyote._home_gene.3
-rw------- 1 amanda amanda   22060197 Nov  7 03:03 00017.shop._lib_firmware.0
-rw------- 1 amanda amanda     206839 Nov  7 03:03 00018.shop._var_lib_amanda.0
-rw------- 1 amanda amanda   21972628 Nov  7 03:04 00019.lathe._lib_firmware.0
-rw------- 1 amanda amanda    1325919 Nov  7 03:04 00020.shop._usr_lib_amanda.0
-rw------- 1 amanda amanda 1593199327 Nov  7 03:17 
00021.coyote._home_gene_Mail.0
-rw------- 1 amanda amanda     817243 Nov  7 03:17 00022.coyote._home_amanda.2
-rw------- 1 amanda amanda     224469 Nov  7 03:17 00023.coyote._home_gene_src.1
-rw------- 1 amanda amanda      45037 Nov  7 03:17 
00024.coyote._home_gene_Download.1
-rw------- 1 amanda amanda      37332 Nov  7 03:17 00025.coyote._home_ups.1
-rw------- 1 amanda amanda      35124 Nov  7 03:17 00026.coyote._home_nut.1
-rw------- 1 amanda amanda 1437636608 Nov  7 03:17 
00027.coyote._home_gene_Documents.0
-rw------- 1 amanda amanda 3660464128 Nov  7 03:18 
00028.coyote._home_gene_Videos.0
-rw------- 1 amanda amanda  455036928 Nov  7 03:19 00029.coyote._var.3
-rw------- 1 amanda amanda    9842688 Nov  7 03:19 00030.coyote._bin.0
-rw------- 1 amanda amanda    8286208 Nov  7 03:19 00031.coyote._sbin.0
-rw------- 1 amanda amanda  617714844 Nov  7 03:20 
00032.coyote._GenesAmandaHelper-0.61.3
-rw------- 1 amanda amanda  537868007 Nov  7 03:23 00033.coyote._usr_local.0
-rw------- 1 amanda amanda 6189106560 Nov  7 03:27 00034.picnc._.0
-rw------- 1 amanda amanda   36165016 Nov  7 03:27 00035.lathe._home.0
-rw------- 1 amanda amanda 1292896213 Nov  7 03:37 00036.coyote._usr_lib.0
-rw------- 1 amanda amanda     165690 Nov  7 03:37 
00037.coyote._home_gene_PublicA.1
-rw------- 1 amanda amanda      33804 Nov  7 03:37 
00038.coyote._home_gene_PublicB.1
-rw------- 1 amanda amanda     667648 Nov  7 03:37 00039.coyote._root.1
-rw------- 1 amanda amanda     278528 Nov  7 03:37 
00040.coyote._home_gene_Pictures.1
-rw------- 1 amanda amanda    1448878 Nov  7 03:38 00041.coyote._usr_src.1
-rw------- 1 amanda amanda    1519374 Nov  7 03:38 00042.coyote._opt.1
-rw------- 1 amanda amanda    1954792 Nov  7 03:39 00043.coyote._usr_share.1
-rw------- 1 amanda amanda     226590 Nov  7 03:39 00044.coyote._usr_include.1
-rw------- 1 amanda amanda     196608 Nov  7 03:39 00045.coyote._usr_pix.1
-rw------- 1 amanda amanda     122229 Nov  7 03:39 00046.coyote._etc.1
-rw------- 1 amanda amanda      73728 Nov  7 03:39 00047.coyote._usr_movies.1
-rw------- 1 amanda amanda     104448 Nov  7 03:39 00048.coyote._usr_bin.1
-rw------- 1 amanda amanda     203604 Nov  7 03:39 00049.coyote._lib.1
-rw------- 1 amanda amanda      63488 Nov  7 03:40 00050.coyote._CoCo.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 00051.coyote._usr_dlds_misc.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 
00052.coyote._home_gene_Music.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 
00053.coyote._home_gene_LCNC-isos.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 00054.coyote._usr_dlds_tgzs.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 00055.coyote._usr_music.1
-rw------- 1 amanda amanda      43008 Nov  7 03:40 
00056.coyote._usr_dlds_books.1
-rw------- 1 amanda amanda      89387 Nov  7 03:40 00057.coyote._usr_games.0
-rw------- 1 amanda amanda      43008 Nov  7 03:40 00058.coyote._boot.1
-rw------- 1 amanda amanda      34993 Nov  7 03:40 00059.coyote._usr_sbin.1
-rw------- 1 amanda amanda 1838654889 Nov  7 03:42 00060.GO704._home.0
-rw------- 1 amanda amanda   25170944 Nov  7 03:42 00061.picnc._boot.0
-rw------- 1 amanda amanda    1364107 Nov  7 03:42 00062.GO704._var_lib_amanda.0
-rw------- 1 amanda amanda   18424136 Nov  7 03:43 00063.GO704._lib_firmware.0
-rw------- 1 amanda amanda   13355490 Nov  7 03:43 00064.GO704._usr_local.0
-rw------- 1 amanda amanda    2163531 Nov  7 03:43 00065.GO704._usr_lib_amanda.0
-rw------- 1 amanda amanda    1736803 Nov  7 03:43 00066.GO704._etc.0
-rw-r--r-- 1 amanda amanda     112640 Nov  7 03:44 configuration.tar
-rw-r--r-- 1 amanda amanda  499036160 Nov  7 03:44 indices.tar

The last 2 files were generated by my scripts, all located at
/GenesAmandaHelper-0.61 on my system drive.

The translation between the /usr/local/etc/Daily to /amandatapes/Dailys 
takes place in /usr/local/etc/amanda/Daily and in a script I wrote 
several years ago as a wrapper for the amanda stuff, which in addition 
to running the backup and such, also appends the contents of my $config
directory, and the contents of amanda's index tree, to the end of each 
backup run, allowing me to recover to a bare metal system install on a 
new system drive, to the exact state it was in at about 4am when the 
last run was completed, bypassing the one days loss of data that running
it directly results in.

The other fine points can be seen in the 
0040.coyote_GenesAmandaHelper-0.61.0, a slightly dated version of which 
can be downloaded from my web site in the signature below. Find the link
to Genes-os9stf, and its very nearly the top of the list.

It includes scripts that can format and label the vtapes on your drive 
in the NAS if the NAS is that transparent. This maybe the reason amcheck
cannot find a vtape, no "tape header" has as yet been written into the 
individual directories which represent the vtapes to amanda. If the NAS 
is not that transparent, those diffs will need to be worked out once the
showstopper is found.

I went to refresh that dl with the latest level0, and found the database 
maintained in the cinfig-bak directory is also included, and has grown 
that directory from about 60 kilobytes, to over 10 Gb despite my scripts 
doing housekeeping deletions as vtapes are re-used.  So I will break that
dle up into 2 dle's right now. But the updated scripts will not be available 
until tomorrow, well after tonights run. Or I make an extra run right now.

That sounds like a good idea... Take a look around 18:00 EST. 

Those scripts are quite familiar with being edited to suit your system.

I'll try to help if you PM me, but I know zip about a NAS.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to