Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35

Thread: amdump creates no backup

  1. #31
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    Do you have selinux enabled? Did it report errors?

  2. #32
    Join Date
    May 2011
    Posts
    32

    Default

    I have disabled selinux.
    You need more info?

    I could post my whole config if you want.

  3. #33
    Join Date
    May 2011
    Posts
    32

    Default

    Does the Log-File need extra permissions so that amidxtaped can access it?
    This seems to be the only problem left.

    Code:
    amanda@amanda-server:~ $ vi /var/log/amanda/amidxtaped.20110609080548.debug
    amidxtaped: debug 1 pid 11603 ruid 33 euid 33: start at Thu Jun  9 08:05:48 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.041: > LABEL=testbu-1:1
    amidxtaped: time 0.041: > FSF=1
    amidxtaped: time 0.041: > HEADER
    amidxtaped: time 0.041: > DEVICE=changer
    amidxtaped: time 0.041: > HOST=^amanda-client$
    amidxtaped: time 0.041: > DISK=^/test$
    amidxtaped: time 0.041: > DATESTAMP=20110608
    amidxtaped: time 0.041: > END
    amidxtaped: Restoring from changer, checking labels
    amidxtaped: Locking devices
    amidxtaped: could not open log file /backups/testbu/data/logs/log: Permission denied
    amidxtaped: time 0.042: could not open log file /backups/testbu/data/logs/log: Permission denied
    amidxtaped: time 0.042: pid 11603 finish time Thu Jun  9 08:05:48 2011

  4. #34
    Join Date
    May 2011
    Posts
    32

    Default

    martineau do you have email or something?

  5. #35
    Join Date
    May 2011
    Posts
    32

    Default

    Hello again ^^

    First of all. I managed to get amanda to access the tapes.

    Horray. It was a selinux error (i haven't restarted the server, so selinux was still enabled the hole time... shame on me).

    now that amrecover can access the tape i get a confusing error:

    Code:
    root@amanda-client:/ # /usr/sbin/amrecover testbu -t amanda-server.bv.de -s amanda-server.bv.de
    AMRECOVER Version 2.5.0p2. Contacting server on amanda-server.bv.de ...
    220 amanda-server AMANDA index server (2.5.0p2) ready.
    200 Access OK
    Setting restore date to today (2011-06-10)
    200 Working date set to 2011-06-10.
    Scanning /backups/amanda...
    200 Config set to testbu.
    200 Dump host set to amanda-client.
    Trying disk / ...
    Trying disk rootfs ...
    Can't determine disk and mount point from $CWD '/'
    amrecover> setdisk /test
    200 Disk set to /test.
    amrecover> add *
    Added /test_9
    Added /test_8
    Added /test_7
    Added /test_6
    Added /test_5
    Added /test_4
    Added /test_3
    Added /test_22
    Added /test_21
    Added /test_20
    Added /test_2
    Added /test_19
    Added /test_18
    Added /test_17
    Added /test_16
    Added /test_15
    Added /test_14
    Added /test_13
    Added /test_12
    Added /test_11
    Added /test_10
    Added /test_1
    Added /pewpew_9
    Added /pewpew_8
    Added /pewpew_7
    Added /pewpew_6
    Added /pewpew_5
    Added /pewpew_4
    Added /pewpew_3
    Added /pewpew_2
    Added /pewpew_10
    Added /pewpew_1
    Added /pewpew_
    Added /pewpew
    Added dir / at date 2011-06-10
    amrecover> lcd /test
    amrecover> extract
    
    Extracting files using tape drive changer on host amanda-server.bv.de.
    The following tapes are needed: testbu-2
    
    Restoring files into directory /test
    Continue [?/Y/n]? y
    
    Extracting files using tape drive changer on host amanda-server.bv.de.
    Load tape testbu-2 now
    Continue [?/Y/n/s/t]? y
    ./
    ./pewpew
    ./pewpew_
    ./pewpew_1
    ./pewpew_10
    ./pewpew_2
    ./pewpew_3
    ./pewpew_4
    ./pewpew_5
    ./pewpew_6
    ./pewpew_7
    ./pewpew_8
    ./pewpew_9
    ./test_1
    ./test_10
    ./test_11
    ./test_12
    ./test_13
    ./test_14
    ./test_15
    ./test_16
    ./test_17
    ./test_18
    ./test_19
    ./test_2
    ./test_20
    ./test_21
    ./test_22
    ./test_3
    ./test_4
    ./test_5
    ./test_6
    ./test_7
    ./test_8
    ./test_9
    
    
    tar: ./pewpew: Not found in archive
    tar: ./pewpew_: Not found in archive
    tar: ./pewpew_1: Not found in archive
    tar: ./pewpew_10: Not found in archive
    tar: ./pewpew_2: Not found in archive
    tar: ./pewpew_3: Not found in archive
    tar: ./pewpew_4: Not found in archive
    tar: ./pewpew_5: Not found in archive
    tar: ./pewpew_6: Not found in archive
    tar: ./pewpew_7: Not found in archive
    tar: ./pewpew_8: Not found in archive
    tar: ./pewpew_9: Not found in archive
    tar: ./test_1: Not found in archive
    tar: ./test_10: Not found in archive
    tar: ./test_11: Not found in archive
    tar: ./test_12: Not found in archive
    tar: ./test_13: Not found in archive
    tar: ./test_14: Not found in archive
    tar: ./test_15: Not found in archive
    tar: ./test_16: Not found in archive
    tar: ./test_17: Not found in archive
    tar: ./test_18: Not found in archive
    tar: ./test_19: Not found in archive
    tar: ./test_2: Not found in archive
    tar: ./test_20: Not found in archive
    tar: ./test_21: Not found in archive
    tar: ./test_22: Not found in archive
    tar: ./test_3: Not found in archive
    tar: ./test_4: Not found in archive
    tar: ./test_5: Not found in archive
    tar: ./test_6: Not found in archive
    tar: ./test_7: Not found in archive
    tar: ./test_8: Not found in archive
    tar: ./test_9: Not found in archive
    tar: Error exit delayed from previous errors
    amrecover: Extractor child exited with status 2
    
    extract_list - child returned non-zero status: 1
    Continue [?/Y/n/r]?
    so now he seems to be able to read the tape but can't find the files.
    i manually recoverd (amrestore) the archive and searched for the test files

    Code:
    gzip -dc /backups/testbu/data/index/amanda-client/_test/20110610_0.gz | grep test
    /test_1
    /test_10
    /test_11
    /test_12
    /test_13
    /test_14
    /test_15
    /test_16
    /test_17
    /test_18
    /test_19
    /test_2
    /test_20
    /test_21
    /test_22
    /test_3
    /test_4
    /test_5
    /test_6
    /test_7
    /test_8
    /test_9
    So the files are there. In the archive.
    amindexd:
    Code:
    root@amanda-server:/ # cat  /var/log/amanda/amindexd.20110610131942.debug
    amindexd: debug 1 pid 5164 ruid 33 euid 33: start at Fri Jun 10 13:19:42 2011
    amindexd: version 2.5.0p2
    amindexd: < 220 amanda-server AMANDA index server (2.5.0p2) ready.
    amindexd: > SECURITY USER root
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amindexd: < 200 Access OK
    amindexd: > FEATURES fffffeff9ffeffff07
    amindexd: < 200 FEATURES fffffeff9ffeffff07
    amindexd: > DATE 2011-06-10
    amindexd: < 200 Working date set to 2011-06-10.
    amindexd: > SCNF testbu
    amindexd: < 200 Config set to testbu.
    amindexd: > HOST amanda-client
    amindexd: < 200 Dump host set to amanda-client.
    amindexd: > DISK /
    amindexd: < 501 Disk amanda-client:/ is not in your disklist.
    amindexd: > DISK rootfs
    amindexd: < 501 Disk amanda-client:rootfs is not in your disklist.
    amindexd: > DISK /test
    amindexd: - 2011-06-10 0 testbu-2 1 -1
    amindexd: < 200 Disk set to /test.
    amindexd: > OISD /
    amindexd: uncompress command: /bin/gzip -dc '/backups/testbu/data/index/amanda-client/_test/20110610_0.gz' 2>/dev/null | sort > '/backups/testbu/data/index/amanda-client/_test/20110610_0'
    amindexd: f /backups/testbu/data/index/amanda-client/_test/20110610_0
    amindexd: < 200 "/" is a valid directory
    amindexd: > OLSD /
    amindexd: < 200- Opaque list of /
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_1
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_10
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_2
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_3
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_4
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_5
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_6
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_7
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_8
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_9
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_1
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_10
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_11
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_12
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_13
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_14
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_15
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_16
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_17
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_18
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_19
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_2
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_20
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_21
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_22
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_3
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_4
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_5
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_6
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_7
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_8
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_9
    amindexd: < 200  Opaque list of /
    amindexd: > ORLD /
    amindexd: < 200- Opaque list of /
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_1
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_10
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_2
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_3
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_4
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_5
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_6
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_7
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_8
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /pewpew_9
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_1
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_10
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_11
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_12
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_13
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_14
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_15
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_16
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_17
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_18
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_19
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_2
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_20
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_21
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_22
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_3
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_4
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_5
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_6
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_7
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_8
    amindexd: < 201- 2011-06-10 0 testbu-2:1 1 /test_9
    amindexd: < 200  Opaque list of /
    amindexd: > TAPE
    amindexd: tapedev_is amrecover_changer: changer
    amindexd: < 200 changer
    amindexd: > QUIT
    amindexd: removing index file: /backups/testbu/data/index/amanda-client/_test/20110610_0
    amindexd: < 200 Good bye.
    amindexd: pid 5164 finish time Fri Jun 10 13:22:05 2011
    seems to be ok, except for amindexd to remove the index file...
    amidxtaped:

    Code:
    root@amanda-server:/ # cat /var/log/amanda/amidxtaped.20110610132010.debug
    amidxtaped: debug 1 pid 5170 ruid 33 euid 33: start at Fri Jun 10 13:20:10 2011
    amidxtaped: version 2.5.0p2
    amidxtaped: time 0.000: > SECURITY USER root
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffff07
    amidxtaped: time 0.001: > CONFIG=testbu
    amidxtaped: time 0.041: > LABEL=testbu-2:1
    amidxtaped: time 0.041: > FSF=1
    amidxtaped: time 0.041: > HEADER
    amidxtaped: time 0.041: > DEVICE=changer
    amidxtaped: time 0.041: > HOST=^amanda-client$
    amidxtaped: time 0.041: > DISK=^/test$
    amidxtaped: time 0.041: > DATESTAMP=20110610
    amidxtaped: time 0.041: > END
    amidxtaped: Restoring from changer, checking labels
    amidxtaped: Locking devices
    amidxtaped: Client understands split dumpfiles
    amidxtaped: try_socksize: send buffer size is 65536
    amidxtaped: time 0.062: bind_portrange2: trying port=591
    amidxtaped: time 0.062: stream_server: waiting for connection: 0.0.0.0.39022
    amidxtaped: Local port 39022 set aside for data
    amidxtaped: time 0.066: stream_accept: connection from 192.168.1.243.813
    bsd security: remote host amanda-client.bv.de user root local user amanda
    amidxtaped: Sending output to file descriptor 4
    changer: got exit: 0 str: 2 6 1
    Looking for tape testbu-2...
    changer: got exit: 0 str: 2 6 1
    changer_query: changer return was 6 1
    changer_query: searchable = 0
    changer_find: looking for testbu-2 changer is searchable = 0
    changer: got exit: 0 str: 2 file:/backups/testbu/slots
    amidxtaped: slot 2: date 20110610 label testbu-2 (exact label match)
    Scanning testbu-2 (slot 2)
    amidxtaped:   1: restoring FILE: date 20110610 host amanda-client disk /test lev 0 comp N program /bin/tar
    amidxtaped: Search of testbu-2 complete
    
    amidxtaped: time 0.201: Restoration finished
    amidxtaped: time 0.202: pid 5170 finish time Fri Jun 10 13:20:11 2011
    seems ok too. and how i read it ,it sounds like it restored them... but why the error message of missing files then?

    #############
    ok i checked the /test dir on my amanda-client and OMG it worked !!!

    Code:
    root@amanda-client:/ # ls /test
    pewpew    pewpew_10  pewpew_4  pewpew_7  test_1   test_12  test_15  test_18  test_20  test_3  test_6  test_9
    pewpew_   pewpew_2   pewpew_5  pewpew_8  test_10  test_13  test_16  test_19  test_21  test_4  test_7
    pewpew_1  pewpew_3   pewpew_6  pewpew_9  test_11  test_14  test_17  test_2   test_22  test_5  test_8
    here there are. the backup and restore was a success !! but still the error message (missing files in archive) bothers me a lot!!

    Anyone a gues?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •