Results 1 to 4 of 4

Thread: I canīt recover files from amrecover

  1. #1

    Default I canīt recover files from amrecover

    Hello,
    this is my problem.
    Iīve installed amanda-server on "backup-agp.domain.es" and amanda-client on "thais.domain.es".
    Backup runs everynight correctly. But when I try to restore a file I canīt.
    If I try amrecover from server, I get:

    [root@backup-agp ~]# amrecover turdep_backup
    AMRECOVER Version 3.1.3. Contacting server on amandahost ...
    220 backup-agp AMANDA index server (3.1.3) ready.
    Setting restore date to today (2011-05-16)
    200 Working date set to 2011-05-16.
    200 Config set to turdep_backup.
    Use the sethost command to choose a host to recover
    amrecover> listhost
    200- List hosts for config turdep_backup
    ........
    thais.domain.es
    .......
    201- localhost
    200 List hosts for config turdep_backup
    amrecover> sethost thais.domain.es
    200 Dump host set to thais.domain.es.
    amrecover> listdisk
    200- List of disk for host thais.domain.es
    201- /etc
    201- /root
    201- /usr/local
    201- /var
    201- /vz/dump
    201- /etc/vz/conf
    201- /vz/scripts
    200 List of disk for host thais.domain.es
    amrecover> setdisk /var
    200 Disk set to /var.
    599 Can't open '/amanda/turdep_backup/index/thais.domain.es/_var/20110516090008_1' for writting: Permission denied
    No index records for disk for specified date
    If date correct, notify system administrator
    The file existing at "/amanda/turdep_backup/index/thais.domain.es/_var/" is 20110516090008_1.gz

    And if I try from the client:
    [root@thais ~]# amrecover turdep_backup
    AMRECOVER Version 2.5.0p2. Contacting server on amandahost ...
    220 backup-agp AMANDA index server (3.1.3) ready.
    200 Access OK
    Setting restore date to today (2011-05-16)
    200 Working date set to 2011-05-16.
    200 Config set to turdep_backup.
    200 Dump host set to thais.domain.es.
    Trying disk / ...
    Trying disk root ...
    Can't determine disk and mount point from $CWD '/root'
    amrecover> listdisk
    200- List of disk for host thais.domain.es
    201- /etc
    201- /root
    201- /usr/local
    201- /var
    201- /vz/dump
    201- /etc/vz/conf
    201- /vz/scripts
    200 List of disk for host thais.domain.es
    amrecover> setdisk /var
    200 Disk set to /var.
    No index records for disk for specified date
    If date correct, notify system administrator
    The amindexd log shows:

    [root@backup-agp turdep_backup]# more amindexd.20110516131859.debug
    Mon May 16 13:18:59 2011: amindexd: pid 30623 ruid 33 euid 33 version 3.1.3: start at Mon May 16 13:18:59 2011
    Mon May 16 13:18:59 2011: amindexd: version 3.1.3
    Mon May 16 13:18:59 2011: amindexd: < 220 backup-agp AMANDA index server (3.1.3) ready.
    Mon May 16 13:18:59 2011: amindexd: > SECURITY USER root
    Mon May 16 13:18:59 2011: amindexd: (sockaddr_in *)0x7fffd6865860 = { 2, 962, 10.210.209.35 }
    Mon May 16 13:18:59 2011: amindexd: < 200 Access OK
    Mon May 16 13:18:59 2011: amindexd: > FEATURES fffffeff9ffeffff07
    Mon May 16 13:18:59 2011: amindexd: < 200 FEATURES ffffffff9efefbffffffffff01
    Mon May 16 13:18:59 2011: amindexd: > DATE 2011-05-16
    Mon May 16 13:18:59 2011: amindexd: < 200 Working date set to 2011-05-16.
    Mon May 16 13:18:59 2011: amindexd: > SCNF turdep_backup
    Mon May 16 13:18:59 2011: amindexd: pid 30623 ruid 33 euid 33 version 3.1.3: rename at Mon May 16 13:18:59 2011
    Mon May 16 13:18:59 2011: amindexd: < 200 Config set to turdep_backup.
    Mon May 16 13:18:59 2011: amindexd: > HOST thais.domain.es
    Mon May 16 13:18:59 2011: amindexd: < 200 Dump host set to thais.domain.es.
    Mon May 16 13:19:10 2011: amindexd: > DISK /var
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-3', file=55, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-16-09-00-08 1 cinta-3 55 1 1
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-2', file=51, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-16-02-30-02 0 cinta-2 51 1 1
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-1', file=42, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-15-02-30-01 2 cinta-1 42 1 1
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-7', file=53, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-14-02-30-01 1 cinta-7 53 1 1
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-6', file=56, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-13-02-30-02 1 cinta-6 56 1 1
    Mon May 16 13:19:10 2011: amindexd: append_to_tapelist(tapelist=(nil), label='cinta-5', file=54, partnum=1, isafile=0)
    Mon May 16 13:19:10 2011: amindexd: - 2011-05-12-02-30-02 1 cinta-5 54 1 1
    Mon May 16 13:19:10 2011: amindexd: < 200 Disk set to /var.
    Mon May 16 13:19:10 2011: amindexd: > OISD /
    Mon May 16 13:19:10 2011: amindexd: Can't open '/amanda/turdep_backup/index/thais.domain.es/_var/20110516090008_1' for writting
    : Permission denied
    any idea? I know, Iīm lost

  2. #2
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,031

    Default

    Amindexd try to unzip the 20110516090008_1.gz to 20110516090008_1.

    Do /amanda/turdep_backup/index/thais.domain.es/_var/20110516090008_1 exists?

    Do the userid 33 can write to /amanda/turdep_backup/index/thais.domain.es/_var ?

  3. #3

    Default

    Do /amanda/turdep_backup/index/thais.domain.es/_var/20110516090008_1 exists?

    No, it doesnīt. But if I try gunzip 20110516090008_1.gz, into 20110516090008_1, recover give same result.

    [root@backup-agp _var]# ls -l
    total 32
    -rwxrwxrwx. 1 amandabackup disk 1423 may 12 02:52 20110512023002_1.gz
    -rw-------. 1 amandabackup disk 1457 may 13 02:55 20110513023002_1.gz
    -rw-------. 1 amandabackup disk 1490 may 14 04:47 20110514023001_1.gz
    -rw-------. 1 amandabackup disk 1306 may 15 02:39 20110515023001_2.gz
    -rw-------. 1 amandabackup disk 9687 may 16 02:52 20110516023002_0.gz
    -rw-------. 1 amandabackup disk 1381 may 16 11:45 20110516090008_1.gz
    [root@backup-agp _var]# gunzip 20110512023002_1.gz
    [root@backup-agp _var]# ls -l
    total 36
    -rwxrwxrwx. 1 amandabackup disk 5680 may 12 02:52 20110512023002_1
    Do the userid 33 can write to /amanda/turdep_backup/index/thais.domain.es/_var ?

    yes, it is amandabackup:

    more /etc/passwd
    ....
    amandabackup:x:33:6:Amanda Backup
    .....
    [root@backup-agp slot4]# ls -l /amanda/turdep_backup/index/thais.domain.es/_var/
    total 32
    -rwxrwxrwx. 1 amandabackup disk 1423 may 12 02:52 20110512023002_1.gz
    Thanks in advanced

  4. #4

    Default Disabled SELINUX

    I only disabled SELINUX, at /etc/selinux/config. Change "Enforcing" to "Disabled" and reboot.
    Bye

    Quote Originally Posted by Beverly View Post
    I am having the same problem. Any resolution here? I have tried everything I could think of to resolve this, shy of completely reformatting and re-installing the software. If I cannot find an answer soon, then that will be my next move, which I am really not looking forward to. I have scoured the internet in search of a solution, and I am beginning to feel pretty hopeless that I will find one. If anyone can help me out here, you would have my undying gratitude. I am thinking that if I am forced to reformat, that I very well may just go ahead and buy a new system instead. I am thinking about stopping in [url=http://press.hhgregg.com]hhgregg[/url] and seeing what they have to offer. I have not yet been to this establishment, so I am somewhat curious as to what kind of deals they have. Thank you very much.

Tags for this Thread

Posting Permissions

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