OS: CentOS 6
Amanda version: 2.6.1p2-9.el6_6.x86_64

I am trying to use Amazon S3 as a tape changer, but I am getting an error from 
amlabel: "amlabel: could not load slot "1": unexpected EOF"

I set things up using the documentation at 
http://wiki.zmanda.com/index.php/How_To:Backup_to_Amazon_S3#Old_chg-multi_.28Amanda_2.6_and_later.29

amanda.conf contains:

tapedev "null:"         # the no-rewind tape device to be used                
device_property "S3_ACCESS_KEY" "XXXXXXXXXXXXXXXXXXXX"                        
device_property "S3_SECRET_KEY" "**********************************"    
device_property "S3_SSL" "YES"                                                
changerfile "/etc/amanda/xxxxxxx/changer.conf"                               
#changerdev "/dev/sg1"                                                        
tapetype S3     # what kind of tape it is (see tapetypes below)               
                                                                              
define tapetype S3 {                                                          
    comment "S3 Bucket"                                                       
    length 10 gigabytes # Bucket size 10GB                                    
}

And in changer.conf contains:

multieject 0                                                                  
gravity 0
needeject 0
ejectdelay 0
statefile /etc/amanda/xxxxxxx/changer-status                                 
firstslot 1
lastslot 40
                                                                   
slot  1  s3:xxxxxxx-backups/slot-01/                                         
slot  2  s3:xxxxxxx-backups/slot-02/                                         
slot  3  s3:xxxxxxx-backups/slot-03/                                         
slot  4  s3:xxxxxxx-backups/slot-04/                                         
slot  5  s3:xxxxxxx-backups/slot-05/                                         
slot  6  s3:xxxxxxx-backups/slot-06/                                         
slot  7  s3:xxxxxxx-backups/slot-07/                                         
slot  8  s3:xxxxxxx-backups/slot-08/                                         
slot  9  s3:xxxxxxx-backups/slot-09/                                         
slot  10 s3:xxxxxxx-backups/slot-10/                                         
(more slots)

And this is what is in the amlabel debug log:

1458323720.494262: amlabel: pid 16385 ruid 33 euid 33 version 2.6.1p2: start at 
Fri Mar 18 13:55:20 2016
1458323720.498339: amlabel: pid 16385 ruid 33 euid 33 version 2.6.1p2: rename 
at Fri Mar 18 13:55:20 2016
1458323720.498880: amlabel: changer: >> -slot 1
1458323720.527899: amlabel: changer: ERROR <error> unexpected EOF
1458323720.527952: amlabel: critical (fatal): could not load slot "1": 
unexpected EOF
/usr/lib64/libamanda-2.6.1p2.so(+0x21a99)[0x7fa3e4c19a99]
/lib64/libglib-2.0.so.0(g_logv+0x1b9)[0x7fa3e39e9519]
/lib64/libglib-2.0.so.0(g_log+0x83)[0x7fa3e39e9933]
amlabel(main+0x887)[0x7fa3e55014f7]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fa3e1e3ad5d]
amlabel(+0x1b49)[0x7fa3e5500b49]

What am I doing wrong?

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com       -- Webhosting Services
                                                                                
                                      

Reply via email to