Hello.  I'm having difficulties with my Amanda setup.  I have tried to 
configure a RAIT device which is comprised of a 4 slot vtape chg-disk device, 
and a 1 slot chg-single tape drive.  What is happening is that when I have just 
the chg-disk vtape changer activated, it works fine, and cycles through the 
slots in the vtape directory.  But when I transition to the chg-rait device, it 
stops moving through the slots in the vtape directory.  Looking at the files in 
/var/log/amanda/server/NMHPVPR/amcheck-device.XXX.debug, when I change the 
configuration, it appears that Amanda::Taper::Scan::traditional doesn't get 
called as many times in the chg-rait mode as in the plain chg-disk mode.  
There's also a line in the debug file about "Device is in variable block size"


    My amanda.conf below:


org "NMHPVPR"

infofile "/backup/state/curinfo"
logdir "/backup/state/log"
indexdir "/backup/state/index"
dumpuser "amandabackup"

labelstr "NMHPVPR[0-9][0-9][0-9][0-9]"
autolabel "NMHPVPR%%%%" EMPTY VOLUME_ERROR

tapecycle 4
dumpcycle 3 days
#amrecover_changer "tape_drive"

#tapetype "LTO4"
#define tapetype LTO4 {
#   comment "Dell LTO4 800Gb - Compression Off"
#   length 802816 mbytes
#   filemark 0 kbytes
#   speed 52616 kps
#}

tapetype "VTAPE"
define tapetype VTAPE {
  length 200 gbytes
  filemark 4 kbytes
}

define changer "vtape_chg" {
    tpchanger "chg-disk:/backup/vtapes"
}

define changer "tape_drive" {
    tpchanger "chg-single:tape:/dev/nst0"
    device-property "BLOCK_SIZE" "2 mbytes"
}

#tpchanger "chg-rait:{vtape_chg,tape_drive}"

tpchanger "vtape_chg"

#tpchanger "tape_drive"

#tpchanger "chg-rait:{chg-disk:/backup/vtapes,chg-single:tape:/dev/nst0}"

define dumptype simple-gnutar-ssh-full {
    auth "ssh"
    ssh_keys "/var/lib/amanda/.ssh/id_rsa_amdump"
    compress none
    dumpcycle 0
    program "GNUTAR"
}

define dumptype simple-gnutar-ssh {
    auth "ssh"
    ssh_keys "/var/lib/amanda/.ssh/id_rsa_amdump"
    compress none
    program "GNUTAR"
}

define dumptype simple-gnutar-local {
    auth "local"
    compress none
    program "GNUTAR"

}


holdingdisk hd1 {
    directory "/holding"
    use 383 gbytes
    chunksize 2 mbytes
}



-----



And the amcheck-device.XXX.debug file for a chg-rait run.  Slot should have 
advanced to {3,1} when amcheck was called.


Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: pid 14247 ruid 9000 
euid 9000 version 3.3.9: start at Thu Jul 21 14:05:40 2016
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: pid 14247 ruid 9000 
euid 9000 version 3.3.9: rename at Thu Jul 21 14:05:40 2016
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: chg-disk: Dir 
/backup/vtapes
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: chg-disk: Using 
statefile '/backup/vtapes/state'
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: 
Amanda::Taper::Scan::traditional stage 1: search for oldest reusable volume
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: 
Amanda::Taper::Scan::traditional oldest reusable volume is 'NMHPVPR0001'
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: 
Amanda::Taper::Scan::traditional changer is not fast-searchable; skipping to 
stage 2
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: 
Amanda::Taper::Scan::traditional stage 2: scan for any reusable volume
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: Device is in variable 
block size
Thu Jul 21 14:05:40 2016: thd-0x15a3bb0: amcheck-device: called _set_current 
with slot 2
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: warning: Inconsistent 
volume labels/datestamps: Got NMHPVPR0014/20160721132422 on 
file:/backup/vtapes/drive0 against NMHPVPR0009/20160720130714 on tape:/dev/nst0.
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: Device 
rait:{file:/backup/vtapes/drive0,tape:/dev/nst0} error = 'Inconsistent volume 
labels/datestamps: Got NMHPVPR0014/20160721132422 on file:/backup/vtapes/drive0 
against NMHPVPR0009/20160720130714 on tape:/dev/nst0.'
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: Device 
rait:{file:/backup/vtapes/drive0,tape:/dev/nst0} setting status flag(s): 
DEVICE_STATUS_VOLUME_ERROR
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: 
Amanda::Taper::Scan::traditional result: 'NMHPVPR0015' on 
rait:{file:/backup/vtapes/drive0,tape:/dev/nst0} slot {2,1}, mode 2
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_utime   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_stime   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_maxrss  : 22532
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_ixrss   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_idrss   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_isrss   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_minflt  : 6780
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_majflt  : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_nswap   : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_inblock : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_oublock : 24
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_msgsnd  : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_msgrcv  : 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_nsignals: 0
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_nvcsw   : 25
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: ru_nivcsw  : 21
Thu Jul 21 14:05:41 2016: thd-0x15a3bb0: amcheck-device: pid 14247 finish time 
Thu Jul 21 14:05:41 2016


-----


    Thank you,


    -Sandro Rettinger

Reply via email to