Results 1 to 5 of 5

Thread: problem with amcheckdump

  1. #1
    Join Date
    Oct 2008
    Location
    Campinas-SP
    Posts
    34

    Default problem with amcheckdump

    I have two samba DLE in my disklist. They are:
    Code:
    bigslam         win2k_backup	//srv004/Backup   root-tar
    bigslam         win2k_wwwroot	//srv004/wwwroot  root-tar
    not only amcheckdump is returning an error on this DLE (please, check [url]http://forums.zmanda.com/showthread.php?t=1539[/url]) , but EVERY DLE in the tape after these return a error too !

    Code:
            ...
            [-P|--machine-pass] service <password>
    Error writing fd 4: Broken pipe
    Error reading device or writing data to validation command.
    Validating image bigslam:root datestamp 20081202005402 level 0 part 1 on tape diario-24 file #7
    Validation process returned 1 (full status 256)
      using '/bin/tar tf - > /dev/null && cat > /dev/null'.
    or this
    Code:
           ...
            [-A|--authentication-file FILE] [-S|--signing on|off|required]
            [-P|--machine-pass] service <password>
    Error writing fd 4: Broken pipe
    Error reading device or writing data to validation command.
    Validating image minibit:fileserver_p-t datestamp 20081202005402 level 1 part 1 on tape diario-24 file #39
    Validation process returned 1 (full status 256)
      using '    /usr/bin/gzip -dc |/bin/tar tf - > /dev/null && cat > /dev/null'.
    I guess the error status was not reset or something like that.

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

    Default

    What release are you using?
    In amanda-2.6.0p2, it should correctly check the following images after an error.
    amanda-2.6.0p2 can't check samba image, it will be fixed in 2.6.1

  3. #3
    Join Date
    Oct 2008
    Location
    Campinas-SP
    Posts
    34

    Default

    Quote Originally Posted by martineau View Post
    What release are you using?
    Hi martineau, it is amanda-backup_server-2.6.0p2-1.suse10.

    Quote Originally Posted by martineau View Post
    In amanda-2.6.0p2, it should correctly check the following images after an error.
    Looks like there is a bug somewhere....
    Every day there is a different backup image after the 2 samba images.
    And, in a consistent way, every regular (not samba) image following the samba image is marked as "Validation process returned 1 (full status 256)".
    I double check this and I restore every image flagged in this way just to check if there is any problems. Every restore was successful, so I am sure there is no problem with the image itself on the tape.
    One day, just for fun, I commented the samba DLE in disk list, so the samba backup was not made. The amdumpcheck didn't returned an error in this day.

    Quote Originally Posted by martineau View Post
    amanda-2.6.0p2 can't check samba image, it will be fixed in 2.6.1
    Good to know. As soon it will be released I will upgrade.

    thanks,

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

    Default

    Quote Originally Posted by marozsas View Post
    Looks like there is a bug somewhere....
    Every day there is a different backup image after the 2 samba images.
    And, in a consistent way, every regular (not samba) image following the samba image is marked as "Validation process returned 1 (full status 256)".
    This error come from the samba share error, it's just a misalignment of the error and is not easy to fix.

    The attached patch fix the samba error, you can apply it to the amcheckdump perl script.
    Attached Files Attached Files

  5. #5
    Join Date
    Oct 2008
    Location
    Campinas-SP
    Posts
    34

    Thumbs up Solved

    SOLVED !

    Quote Originally Posted by martineau View Post
    This error come from the samba share error, it's just a misalignment of the error and is not easy to fix.

    The attached patch fix the samba error, you can apply it to the amcheckdump perl script.
    Thanks Martineau ! It worked !

    In fact I had to change the patch to
    Code:
    ...
    "SMBCLIENT" => "/bin/tar tf -"
    ...
    because the symbol @GNUTAR@ is not defined anywhere in the rpm package 2.6.0p2.

    I'm glad it is working now, amcheckdump is verifying the samba images as expected:
    Code:
    Validating image bigslam:win2k_wwwroot datestamp 20081205005401 level 1 part 1 on tape diario-27 file #43
      using '/bin/tar tf - > /dev/null && cat > /dev/null'.
    Validating image bigslam:srv datestamp 20081205005401 level 1 part 1 on tape diario-27 file #44
      using '/bin/tar tf - > /dev/null && cat > /dev/null'.
    Validating image bigslam:win2k_backup datestamp 20081205005401 level 1 part 1 on tape diario-27 file #45
      using '/bin/tar tf - > /dev/null && cat > /dev/null'.
    Validating image bigslam:firebird datestamp 20081205005401 level 1 part 1 on tape diario-27 file #46
    I was studying the code and I see why it is difficult to fix. I will try to fix it and if I can, I will return a patch to you to decide if it good enough to go to the main code.

    thanks again !

    cheers,

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
  •