Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: FreeBSD 6.4-RELEASE amtape DailySet2 eject

  1. #1
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Question FreeBSD 6.4-RELEASE amtape DailySet2 eject

    Operating system level FreeBSD 6.4-RELEASE-p3

    Amanda server upgraded from 2.6.0p2 to 2.6.1

    Library hardware is Exabyte EZ17

    Applied recommended glib level patch to common-src/event.c (__FreeBSD__).

    Everything seems to work until the last tape is left in the drive...amtape DailySet2 eject results
    in "amtape: slot <none> is ejected." and the tape is not ejected.

    This exact same configuration works without a hitch on 2.6.0p2 and before.

    mtx level is 1.3.11.

    perl level is 5.8.9.

    tape changer is chg-zd-mtx.

    I can continue to use this configuration in production by issuing "mt offline && mtx unload" after the amdump is complete.

    Debugging is possible during the daytime hours...all dumps run at night.

    Thanks, in advance, for any assistance that you can provide in this matter.

    David.

  2. #2
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    Yikes -- the piece of Amanda::Changer::compat that should handle ejecting volumes is missing. I'll have a patch (just to the perl, so something you can apply to your already-built Amanda) shortly.

  3. #3
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Smile

    Great! I look forward to deploying 2.6.1 on all of our tape servers!

  4. #4
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    OK, patch is here:
    [url]http://github.com/djmitche/amanda/commit/compat-eject-fix.patch[/url]

  5. #5
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    Don't apply the installchecks (they have a line of debugging code that won't work except on my machine), but the perl/* changes should be fairly straightforward to apply either to your source tree or to the in-place Amanda perl modules.

  6. #6
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Unhappy

    I applied your patch (tried both applying it to the installed system and to the source during the install).

    The result seems exactly the same ... "amtape: slot <none> is ejected.

    I have tested as many amtape commands as I use in production ... slot #, slot next, slot advance, clean, show, label xxxxxx, etc. and only "eject" fails to perform.

    I had an opportunity to install amanda-2.6.1-20090206 ( which includes you patch).

    I still needed to apply the recommended glib fix (common-src/event.c).

    The result is the same...only eject fails.

    I fell back to amanda-2.6.0p2 and the problem(s) went away.

    I have access to the server over the weekend. If there is anything that I can do to provide additional information, please let me know.

  7. #7
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Unhappy

    Also, if it helps, /usr/local/libexec/amanda/chg-zd-mtx -eject works ... I haven't changed any configuration files/options since upgrading, but chg-zd-mtx seems to indicate (to me) that the configs are OK.

  8. #8
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    I'll commit the event.c patch in a moment.

    Can you attach the chg-glue debug log?

  9. #9
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Unhappy

    Please don't assume I know what I'm doing!

    amgetconf DailySet2 dbopen.chg-glue
    export DEBUG=9
    amtape DailySet2 eject
    amgetconf DailySet2 dbclose.chg-glue:/tmp/amanda/server/chg_glue.<timestamp>.debug

    1233959309.538653: chg_glue: pid 74919 ruid 90 euid 90 version 2.6.1: start at Fri Feb 6 17:28:29 2009
    1233959354.143300: unknown: pid 74922 ruid 90 euid 90 version 2.6.1: at Fri Feb 6 17:29:14 2009
    1233959354.143386: unknown: pid 74922 finish time Fri Feb 6 17:29:14 2009


    I'm also including /tmp/amanda/server/amtape.<timestamp>.debug

    1233959315.094604: amtape: pid 74920 ruid 90 euid 90 version 2.6.1: start at Fri Feb 6 17:28:35 2009
    1233959315.097366: amtape: pid 74920 ruid 90 euid 90 version 2.6.1: rename at Fri Feb 6 17:28:35 2009
    1233959315.098488: amtape: changer: >> -eject
    1233959315.333440: amtape: changer: << EXITSTATUS 0
    1233959315.333545: amtape: changer: << <none> OK: no volume loaded
    1233959315.333656: amtape: pid 74920 finish time Fri Feb 6 17:28:35 2009

    I'm not good, but I'm persistent.

  10. #10
    Join Date
    Apr 2008
    Location
    Goshen, KY
    Posts
    38

    Red face

    I apparently misspoke when I said that all the amptape commands except "eject" were working.

    The "clean" command also has problems:

    amtape DailySet2 clean

    amtape: device <error> not clean: unknown command '-clean

    Yes, there was no trailing apostrophe.

    This is with amanda-2.6.1-20090207 ... didn't have to apply any extra patches ... thanks.

    /usr/local/libexec/amanda/chg-zd-mtx -clean returned "7 tape:/dev/nrsa0" correctly.

    We're doing okay, though, with the new amanda-2.6.1.

    30 of 52 clients are running 2.6.1 (I'll have 50 upgraded by 2/15/2009).

    2 clients are runing 2.5.2.p1 due to build restrictions of older OS levels.

    1 of 5 servers is running 2.6.1 (4 servers are running 2.6.0p2).

Posting Permissions

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