Interactivity do not work with the default "traditional" taperscan, you must use "lexical" or "oldest".

define taperscan mytaperscan {
  plugin "lexical"
  #plugin "oldest"
}
taperscan "mytaperscan"

see: man amanda-taperscan

Jean-Louis

On 07/09/2013 07:28 AM, Karsten Fuhrmann wrote:
Hello,
i updated to amanda 3.3.4 now, but the problem still persists. I got no email 
from amanda and amstatus after an amflush run shows the same as before.
Any clues?

Here is a my amanda.conf:
####################################################
# Global Settings
####################################################
org "Cartoon-film"            # your organization name for reports
displayunit "G"                       # Display filesizes in megabytes
tpchanger "chg-single:tape:/dev/nsa0"
device-property "LEOM" "FALSE"
dumporder "BBB"       # specify the priority order of each dumper
taperalgo first
send-amreport-on all #always send an email report

dumpcycle 21    # the number of days in the normal dump cycle
runspercycle 15         # the number of amdump runs in dumpcycle days
tapecycle 31 tapes      # the number of tapes in rotation

bumpsize 10 Gb          # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1              # minimum days at each level
bumpmult 2              # threshold = bumpsize * bumpmult^(level-1)

etimeout 6000           # number of seconds per filesystem for estimates.
dtimeout 1800           # number of idle seconds before a dump is aborted.
ctimeout 300            # maximum number of seconds that amcheck waits
runtapes 2 # number of tapes to be used in a single run of amdump
inparallel 4            # maximum dumpers that will run in parallel (max 63)
maxdumps 1
maxdumpsize 2000 gb     # Maximum number of bytes the planner will schedule
                        # for a run (default: runtapes * tape_length).

flush-threshold-dumped 100      # Start taping when 100% of tapesize  Capacity 
reside on HD
flush-threshold-scheduled 100

tapetype LTO4-ULTRIUM   # what kind of tape it is (see tapetypes below)
labelstr "^cf-daily-lto[0-9][0-9]*$"  # label constraint regex: all tapes must 
match

reserve 10 # This means save at least 30% of the holding disk space for 
degraded backups

autoflush yes # if autoflush is set to yes, then amdump will schedule all dump 
on holding disks to be flush to tape during the run.
columnspec 
"HostName=0:10,Disk=1:-1,Level=1:3,OrigKB=1:15,OutKB=1:15,DumpTime=1:8,TapeTime=1:8,DumpRate=1:8,TapeRate=1:8"

infofile "/var/amanda/cf-daily-lto/curinfo"   # database DIRECTORY
logdir   "/var/amanda/cf-daily-lto/logs"              # log directory
indexdir "/var/amanda/cf-daily-lto/index"     # index directory

####################################################
# Interactivity
####################################################
define interactivity myinteractivity {
comment "interactivity email"
plugin "email"
property "mailto" "administrat...@cartoon-film.de"
property "resend_delay" "3600"
property "check-file" "/tmp/amanda_interactivity"
property "check-file-delay" "10"
}

interactivity "myinteractivity"
####################################################
# Holding Disks
####################################################
holdingdisk hd1 {
     comment "first holding disk"
     directory "/amanda"      # where the holding disk is
     use -5 Gb          # how much space can we use on it
                        # a non-positive value means:
                        #        use all space but that value
     chunksize 50Gb     # size of chunk if you want big dump to be
                        # dumped on multiple files on holding disks
                        #  N Kb/Mb/Gb split images in chunks of size N
                        #             The maximum value should be
                        #             (MAX_FILE_SIZE - 1Mb)
                        #  0          same as INT_MAX bytes
}

holdingdisk hd2 {
        comment "second holding disk"
        directory "/amanda2"
        use -25Gb
        chunksize 50Gb
}

####################################################
# Tape types
####################################################
define tapetype DLT8000 {
     comment "DLT8000"
     length 37 gbytes
     filemark 0 kbytes
     speed 1800 kps
}

define tapetype SDLT-320 {
        comment "SDLT-320"
        length 320 gbytes
        filemark 0 kbytes
        speed 36000 kbytes
}

define tapetype LTO4-ULTRIUM {
        comment "LTO4"
        length 850 gbytes #was 1200gbytes
        filemark 0 kbytes
        part_size 50 gbytes
}

####################################################
# Scripts
####################################################
define script-tool amzfs_snapshot {
    comment "backup of zfs snapshot"
    plugin  "amzfs-snapshot"
    execute-on  pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, 
post-dle-estimate, pre-dle-backup, post-dle-backup
    execute-where client
}

####################################################
# Applications
####################################################
define application-tool amzfs_sendrecv {
    comment "amzfs-sendrecv"
    property "KEEP-SNAPSHOT" "YES"
    plugin "amzfs-sendrecv"
}

####################################################
# Dump Types
####################################################
define dumptype global {
     comment "Global definitions"
     index yes
     record yes
     compress none
}
define dumptype dt_ssh {
     global
     auth "ssh"
     ssh_keys "/usr/local/etc/amanda/cf-daily-lto/ssh-key"
}

define dumptype root-tar {
     global
     program "GNUTAR"
     comment "root partitions dumped with tar"
     priority low
}

define dumptype high-tar-local {
     root-tar
     auth "local"
     comment "partitions dumped with tar"
     priority high
     exclude list "/usr/local/etc/amanda/exclude/exclude-list"
}

define dumptype high-tar-ssh {
     dt_ssh
     program "GNUTAR"
     comment "partitions dumped with tar"
     priority high
}

define dumptype high-tar {
     root-tar
     auth "bsdtcp"
     comment "partitions dumped with tar"
     index yes
     priority high
     exclude list "/usr/local/etc/amanda/exclude/exclude-list"
}
define dumptype firewall-tar {
     high-tar
     comment "dumptype for special firewall exclude list"
     exclude list "/usr/local/etc/amanda/exclude/exclude-list"
}

define dumptype ssh-zfs-sendrecv {
    dt_ssh
    program "APPLICATION"
    application "amzfs_sendrecv"
}

define dumptype ssh-zfs-snapshot-gtar {
    dt_ssh
    comment "ssh zfs snapshot gnutar dumptype"
    program "GNUTAR"
    script "amzfs_snapshot"
}


On 05.07.2013, at 16:53, Karsten Fuhrmann wrote:

Hello,
i tried that, but didnt work. I ran an amflush and after the first tape was 
filled up the amflush finished without sending the email to change the tape. It 
did not even sent the normal email that it finished the amdump. It just quietly 
terminated amdump.
I am still using amanda 3.3.3 but with the patches you send my on 19.2.2013.

If i run an amstatus i still see the following:

Using /var/amanda/cf-daily-lto/logs/amflush.1
 From Thu Jul  4 14:54:12 UTC 2013

framestore.cartoon-film.de:/tank/koh/render                0       286g process 
terminated while waiting to flush
framestore.cartoon-film.de:/tank/koh/user/./_rest_         0         0g process 
terminated while waiting to flush
framestore.cartoon-film.de:/tank/koh/user/./k-o            0       878g flushed 
(23:03:10)
framestore.cartoon-film.de:/tank/koh/user/./p-t            0        54g flushed 
(23:36:42), PARTIAL
framestore.cartoon-film.de:/tank/koh/user/./u-z            0         7g process 
terminated while waiting to flush
framestore.cartoon-film.de:/usr                            0        15g process 
terminated while waiting to flush
mail.cartoon-film.de:/                                     0         0g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk1/pg_data                    0         0g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk1/sambawelt                  0        33g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_buero                  0        45g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_laura                  0        15g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_laura2_buero           0         1g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_laura2_compo           0        11g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_laura2_keyscene        0         1g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_laura2_presentation    0         5g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/disk2/smb_zok2                   0         5g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/extern1/smb_SaveOurNature        0        97g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/extern1/smb_kein_ohr_hasen       0        19g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/extern1/smb_laura2_merchandising 0        21g process 
terminated while waiting to flush
mail.cartoon-film.de:/mnt/extern1/smb_laura_merchandise    0        21g process 
terminated while waiting to flush

SUMMARY          part      real  estimated
                           size       size
partition       :  20
estimated       :   0                    0g
flush           :  20      1521g
failed          :   0                    0g           (  0.00%)
wait for dumping:   0                    0g           (  0.00%)
dumping to tape :   0                    0g           (  0.00%)
dumping         :   0         0g         0g (  0.00%) (  0.00%)
dumped          :   0         0g         0g (  0.00%) (  0.00%)
wait for writing:   0         0g         0g (  0.00%) (  0.00%)
wait to flush   :  18       588g       588g (100.00%) (  0.00%)
writing to tape :   0         0g         0g (  0.00%) (  0.00%)
failed to tape  :   0         0g         0g (  0.00%) (  0.00%)
taped           :   2       933g       933g (100.00%) ( 61.35%)
  tape 1        :   2       933g       933g (109.84%) cf-daily-lto23 (20 chunks)
4 dumpers idle  : no-dumpers
taper status: Idle
taper qlen: 19
network free kps:     80000
holding space   :      1168g (403.56%)
   taper busy   :  8:41:00  ( 99.46%)
0 dumpers busy :  8:43:49  (100.00%)          no-dumpers:  8:43:41  ( 99.97%)
                                                 not-idle:  0:00:08  (  0.03%)


The last lines of amflush.1 show this:
driver: result time 31429.525 from taper: REQUEST-NEW-TAPE 00-00002
driver: send-cmd time 31429.525 to taper: START-SCAN worker0 00-00002
driver: send-cmd time 31429.525 to taper: NEW-TAPE worker0 00-00002
driver: state time 31429.527 free kps: 80000 space: 1225029868 taper: writing 
idle-dumpers: 4 qlen tapeq: 18 runq: 0 roomq: 0 wakeup: 0 driver-idle: 
no-dumpers
driver: interface-state time 31429.527 if default: free 80000
driver: hdisk-state time 31429.527 hdisk 0: free 1225029868 dumpers 0 hdisk 1: 
free 0 dumpers 0
driver: result time 31429.527 from taper: NO-NEW-TAPE 00-00002
dump of driver schedule before start degraded mode:
--------
--------
dump of driver schedule after start degraded mode:
--------
--------
driver: state time 31429.528 free kps: 80000 space: 1225029868 taper: DOWN 
idle-dumpers: 4 qlen tapeq: 18 runq: 0 roomq: 0 wakeup: 0 driver-idle: 
no-dumpers
driver: interface-state time 31429.528 if default: free 80000
driver: hdisk-state time 31429.528 hdisk 0: free 1225029868 dumpers 0 hdisk 1: 
free 0 dumpers 0
driver: result time 31429.528 from taper: PARTIAL 00-00002 INPUT-GOOD TAPE-ERROR "[sec 1851.000000 bytes 
58870693888 kps 31059.379795 orig-kb 1024768320]" "" "No acceptable volumes found"
driver: finished-cmd time 31429.528 taper wrote 
framestore.cartoon-film.de:/tank/koh/user/./p-t
driver: taper failed framestore.cartoon-film.de /tank/koh/user/./p-t with tape 
error: No acceptable volumes found
driver: taper will retry framestore.cartoon-film.de /tank/koh/user/./p-t
driver: state time 31429.528 free kps: 80000 space: 1225029868 taper: DOWN 
idle-dumpers: 4 qlen tapeq: 19 runq: 0 roomq: 0 wakeup: 0 driver-idle: 
no-dumpers
driver: interface-state time 31429.528 if default: free 80000
driver: hdisk-state time 31429.528 hdisk 0: free 1225029868 dumpers 0 hdisk 1: 
free 0 dumpers 0
driver: QUITTING time 31429.528 telling children to quit
driver: send-cmd time 31429.528 to taper: QUIT
driver: FINISHED time 31430.762




On 03.07.2013, at 19:43, Jean-Louis Martineau wrote:

Karsten,

see: man amanda-interactivity

tpchanger "chg-single:tape:/dev/nst0"
define interactivity email {
plugin "email"
property "mailto" "m...@me.me"
}
interactivity email
runtapes 2


Jean-Louis


On 07/02/2013 11:04 AM, Karsten Fuhrmann wrote:
Hello,
i am trying to get this working for ages, but i seem to miss something all the 
time.
So i just want to use runtapes > 1 because some of my filesystems are bigger 
than my tapesize. I dont have a robot changer, just a lto drive, so i have to 
change tapes by hand. I would like to get an email when i need to change the tape. 
Can someone just post my the relevant lines of amanda.conf to do that?

Greetings,
Karsten Fuhrmann
System Administrator
Rothkirch Cartoon-Film GmbH
Hasenheide. 54
D-10967 Berlin
phone  +49 30 698084-109
fax  +49 30 698084-29
mobile +49 176 49118462
skype: parceval3000
AIM: in...@mac.com <mailto:in...@mac.com>
Jabber: parce...@jabber.org <mailto:parce...@jabber.org>

Greetings,
Karsten Fuhrmann
System Administrator

Greetings,
Karsten Fuhrmann
System Administrator
Rothkirch Cartoon-Film GmbH
Hasenheide. 54
D-10967 Berlin
phone  +49 30 698084-109
fax  +49 30 698084-29
mobile +49 176 49118462
skype: parceval3000
AIM: in...@mac.com
Jabber: parce...@jabber.org



Reply via email to