28 Comments

  1. I am stuck at step 2:
    2. Create the virual tape and label it. This is where the backup files will be stored. We will need to create 15 slots as per tapecycle keyword:

    It doesnt do anything! Kindly assist! @jpmuga

    1. Author

      That command should create a lot of directory named slot1 slot2 …. slot15 under /central_backup/ServerNetBackup/slots. Have you checked if the directory exist? What is the error that you see?

  2. Hi,, I have a problem in restoring the data.
    I have labelled my vtapes and it showed well when I used “amtape show” command.
    However, when I used amrestore command, the output showed “ERROR: Error loading device header — unlabeled volume”.
    Could you please give me any advice?
    Thanks in advance.

    1. Author

      Are you having leading zero on the slot number? You may refer to this page for more info regards to this error. On Zmanda wiki also stated :
      “Do not add a leading zero to the slot number, as chg-disk would not understand that.”

  3. I am having this issues when I run amcheck command.

    amcheck: error while loading shared libraries: libamserver-3.3.2.so: cannot open shared object file: No such file or directory

    what possibly have went wrong? can you help. I am using desktopbackup instead of ServerNetBackup. but I am sure it has nothing to do in here.
    another issue I think could be the permissions on the /central_backup directory. I was not able to create this directory from amandabackup user login. Is this going to cause trouble. But I chown the directory with recurssive and force option from root user.
    your help is truly appreciated.
    thanks in advance.
    Mac Maha.

    1. Author

      The naming should not be the problem. Try to locate whether libamserver-3.3.2.so is exist or not in your server. If exist, execute following command:
      ldconfig

  4. I do not understand why I need “tapecycle 15 tapes”. I will do backup on hard drive. Can I setup the Amanda for only 1 tape (harddrive)? I mean:
    dumpcycle 1 week
    runspercycle 7
    tapecycle 1 tape
    ???

    What is advantage of using multiple tapes? Is there any?

  5. Hey, thanks for the tutorial, now in my environment CENTOS is the server but the servers I am backing up are mostly FreeBSD and Ubuntu. 1 question, when am creating the disklist file in the place of dumptype for all the servers can i just put “root-tar”?

    thanks
    twitter.com/jpmuga

    1. Author

      Yes you can. It will just dump the backup as tar without compression as described in the dumptype definition

  6. There is a small mistake in the client configuration section: the file which defines the name of the amanda server must be named
    .amandahosts
    (there is an s at the end).
    Specifying the wrong name here would lead to an error like this:
    user amandabackup from w.x.y.z. is not allowed to execute the service noop: Please add the line ...

    1. Author

      Thanks for the highlight Thorsten, I have made correction to the post as per advised

  7. Great blog!

    OK now how do we restore after a successful backup?
    Amanda`s howtos are like reading a foreign language for me. Thank you!

    Also why is your install method not the YUM install way like everyone else?

    Thanks again!

  8. I am getting error after

    #for n in `seq 1 15` ; do amlabel ServerNetBackup ServerNetBackup-${n} slot ${n}; done

    The error:
    Can’t load tapelist file (/etc/amanda/testBackup/tapelist)

    Please help!

    1. Author

      You should use the same name of your project in the command depending on your configuration file. Your command should be like this:
      for n in `seq 1 15` ; do amlabel testBackup testBackup-${n} slot ${n}; done

      Anyway, I have updated the post with a better/simple way. I received some complaint that the older post is misleading some how.

  9. Everything is fine with the server but when i label the slots it shows the error

    Reading label…
    Found an empty tape.
    Writing label ‘ServerNetBackup-1’…
    Error writing label: Can’t open file //central_backup/ServerNetBackup/slots/data//00000.ServerNetBackup-1: Permission denied

    if i run with sudo it shows this error:
    sudo: Reading: command not found
    -bash-4.1$ sudo Reading label…
    sudo: Reading: command not found
    -bash-4.1$ Found an empty tape.
    -bash: Found: command not found
    -bash-4.1$ Writing label ‘ServerNetBackup-1’…
    -bash: Writing: command not found
    -bash-4.1$ Error writing label: Can’t open file //central_backup/ServerNetBackup/slots/data//00000.ServerNetBackup-1: Permission denied
    >

    Actually i had changed the amanda.conf [tape size to 10000] because i have only 500 gb. kindly resolve this issue.

    1. Author

      Have you assign correct ownership to the directory?
      chown amandabackup.disk /central_backup/ServerNetBackup -Rf

      You dont need to use sudo if you run the command as amandabackup user. Anyway, I have updated the post with a better/simple way. I received some complaint that the older post is misleading some how.

  10. is that this configuration works if I put ipv6 address?

  11. I am facing some problem when i check finally using ‘amcheck ServerNetBackup’ command then like-
    ============================================
    -bash-4.1$ amcheck ServerNetBackup
    Amanda Tape Server Host Check
    —————————–
    slot 15:read label `ServerNetBackup-15′, date `X’.
    NOTE: skipping tape-writable test
    Tape ServerNetBackup-15 label ok
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/bx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/bx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/cx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/cx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    Server check took 1.019 seconds

    Amanda Backup Client Hosts Check
    ——————————–
    WARNING: bx.husenitravels.com: selfcheck request failed: timeout waiting for ACK
    WARNING: cx.husenitravels.com: selfcheck request failed: timeout waiting for ACK
    Client check: 2 hosts checked in 30.038 seconds. 2 problems found.
    ======================================

    Please provide me solution of this problem.

  12. I am facing the following error while i check using ‘amcheck ServerNetBackup’ command.

    ============================================

    -bash-4.1$ amcheck ServerNetBackup
    Amanda Tape Server Host Check
    —————————–
    slot 15:read label `ServerNetBackup-15′, date `X’.
    NOTE: skipping tape-writable test
    Tape ServerNetBackup-15 label ok
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/bx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/bx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/cx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/cx.husenitravels.com does not exist
    NOTE: it will be created on the next run.
    Server check took 1.019 seconds

    Amanda Backup Client Hosts Check
    ——————————–
    WARNING: bx.husenitravels.com: selfcheck request failed: timeout waiting for ACK
    WARNING: cx.husenitravels.com: selfcheck request failed: timeout waiting for ACK
    Client check: 2 hosts checked in 30.038 seconds. 2 problems found.
    ======================================

    Please provide me solution.Thanks

    1. Are you able to ping this host bx.husenitravels.com. The other option is to add IP address in disklist …

  13. hi,
    thanks for this how to.
    The amcheck gives me this error:

    -bash-4.1$ amcheck ServerNetBackup
    Amanda Tape Server Host Check
    —————————–
    slot 7:Found an empty or non-amanda tape.
    slot 8:Found an empty or non-amanda tape.
    slot 9:Found an empty or non-amanda tape.
    slot 10:Found an empty or non-amanda tape.
    slot 11:Found an empty or non-amanda tape.
    slot 12:Found an empty or non-amanda tape.
    slot 13:Found an empty or non-amanda tape.
    slot 14:Found an empty or non-amanda tape.
    slot 15:Found an empty or non-amanda tape.
    slot 1:Found an empty or non-amanda tape.
    slot 2:Found an empty or non-amanda tape.
    slot 3:Found an empty or non-amanda tape.
    slot 4:Found an empty or non-amanda tape.
    slot 5:Found an empty or non-amanda tape.
    slot 6:Found an empty or non-amanda tape.
    (expecting a new tape)
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/server.eclettica.it does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/server.eclettica.it does not exist
    NOTE: it will be created on the next run.
    Server check took 4.190 seconds

    Amanda Backup Client Hosts Check
    ——————————–
    Client check: 1 host checked in 3.486 seconds. 0 problems found.

    (brought to you by Amanda 2.6.1p2)

    suggestions?

    tnx

  14. I run with both iptables and SELINUX on, and there are three things you need to do to get Amanda to work properly.

    On the server the following line needs to be added to /etc/sysconfig/iptables

    -A INPUT -m state –state NEW -m tcp -p tcp –dport 50000:50100 -j ACCEPT

    On the client computers you need to add this line to iptables:

    -A INPUT -m state –state NEW -m udp -p udp –dport 10080 -j ACCEPT

    On both the client and the server you need to enter this command:

    modprobe ip_conntrack_amanda

    And then you need to change /etc/sysconfig/iptables-config with the following option:

    IPTABLES_MODULES=”ip_conntrack_amanda”

    After making these changes you need to reload iptables on both the server and the clients using this command:

    service iptables restart

    After making all of those changes you should be able to run Amanda backups successfully with iptables running.

  15. hi, the only doubt is , where is the place for /central_backup/, because i didn’t find this folder in my arquiteture, can you help me with this? thanks

  16. Hi,

    I am receiving error “Load tape ServerNetBackup-15 now
    Continue [?/Y/n/d]? Y
    Not an amanda tape: Can’t open tape device changer: No such file or directory” while trying to restore. Please help.

    Thanks
    Mahesh

  17. getting this error

    amcheck ServerNetBackup
    Amanda Tape Server Host Check
    —————————–
    ERROR: program /usr/lib/amanda/planner: not executable
    ERROR: program /usr/lib/amanda/dumper: not executable
    ERROR: program /usr/sbin/amcheck: not setuid-root
    slot 15: volume ‘ServerNetBackup-15′
    Will write to volume ‘ServerNetBackup-15′ in slot 15.
    NOTE: skipping tape-writable test
    NOTE: host info dir /etc/amanda/ServerNetBackup/curinfo/192.168.110.221 does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/ServerNetBackup/index/192.168.110.221 does not exist
    NOTE: it will be created on the next run.
    Server check took 0.670 seconds

    Amanda Backup Client Hosts Check
    ——————————–
    WARNING: 192.168.110.221: selfcheck request failed: Permission denied
    Client check: 1 host checked in 10.015 seconds. 1 problem found.

    (brought to you by Amanda 3.3.3)

  18. after running “for n in `seq 1 15`; do amlabel ServerNetBackup-${n} slot ${n}; done” this command I`m getting this error “amlabel: command not found”. what could be the solution for this ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>