Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234062 - app-backup/amanda-2.5.2_p1-r4 "Device or resource busy"
Summary: app-backup/amanda-2.5.2_p1-r4 "Device or resource busy"
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 10:05 UTC by Laurento Frittella (mrfree)
Modified: 2009-04-01 07:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurento Frittella (mrfree) 2008-08-06 10:05:12 UTC
With the 2.5.2_p1-r3 version all works but after the upgrade to 2.5.2_p1-r4 amanda stops to work returning "Device or resource busy" at every tape access (amcheck, amdump, amflush)
Fortunately a simple downgrade restore the normal functionalities.

Please ask me for info that could be useful to fix this bug
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-07 00:07:20 UTC
I've been using this for a while with no such trouble:
Tue Jul  1 02:48:41 2008 >>> app-backup/amanda-2.5.2_p1-r4

amanda@archivaris ~ $ myamcheck
Amanda Tape Server Host Check
-----------------------------
Holding disk /mnt/dump/amanda: 107269044 kB disk space available, using 52428800 kB as requested
read label `ORXNET08', date `20080711'
NOTE: skipping tape-writable test
Tape ORXNET08 label ok
Server check took 0.013 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 5 hosts checked in 0.626 seconds, 0 problems found

(brought to you by Amanda 2.5.2p1)

Please post your `emerge --info' and describe the tape hardware you use (including the tapetype and tapedev settings from your amanda.conf).
Comment 2 Laurento Frittella (mrfree) 2008-08-07 07:44:53 UTC
Are you using xinetd or daemontools to start amanda daemons?
I'm actually using daemontools and nc, because in the past I have found a env-related problem with the run script suggested in the amanda documentation I think my actual issue could be related with daemontools/nc too.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-07 16:43:45 UTC
You said if you downgrade the problem goes away, downgrade to what?

I use xinetd for my various amanda deployments (2xLTO1,2xLTO3).
Comment 4 Laurento Frittella (mrfree) 2008-08-07 16:51:02 UTC
(In reply to comment #3)
> You said if you downgrade the problem goes away, downgrade to what?

Downgrade to 2.5.2_p1-r3, as I told in the first comment this version works well (naturally I haven't made any change in the configuration)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-07 17:01:58 UTC
Ok, could you please try -r4, but comment out line 224 (--with-maxtapeblocksize) or the chg-multi fix (test individually).

If the maxtapeblocksize resolves it, next try different values instead of commenting out.

Could you please provide us with more information about your setup as well?
Tape hardware, spool, emerge --info.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-13 21:11:30 UTC
Please do what i suggested in my last comment and report back, otherwise i'll close this bug as NEEDINFO.
Comment 7 Laurento Frittella (mrfree) 2008-08-13 21:31:53 UTC
(In reply to comment #6)
> Please do what i suggested in my last comment and report back, otherwise i'll
> close this bug as NEEDINFO.

I'm spending my holidays, I'll try it as soon as possible... in September ;)
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-09-18 04:30:21 UTC
It's mid september now, and no response.
Please test on 2.6.0p2
Comment 9 Laurento Frittella (mrfree) 2008-09-18 08:07:18 UTC
(In reply to comment #8)
> It's mid september now, and no response.
> Please test on 2.6.0p2

Using 2.6.0p2-r1 I obtain:

Error reading 524288 bytes from /dev/nst0: Device or resource busy
Error reading Amanda header.

Should I try with your suggestions on comment #5?
Comment 10 Laurento Frittella (mrfree) 2008-09-18 08:18:58 UTC
Commenting out "--with-maxtapeblocksize" row in the ebuild solves the problem. Which value should I try with?

PS: sorry for the delay for the info
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-09-24 02:24:40 UTC
For values, please test powers of two from 16k to 512k. Also please specify what blocksize you have configured for your tapes in the amanda tapetype.
Comment 12 Laurento Frittella (mrfree) 2008-09-24 11:06:34 UTC
I've added AMANDA_MAX_TAPE_BLOCK_KB=32 in my make.conf to make the existing tape-set work
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-09-24 19:14:54 UTC
Ok, that's the make.conf, what other values there worked or didn't?

Also, please paste your tapetype definition from amanda.conf, it's critical to debug this.

Here's the one I use:
define tapetype ULTRIUM-TD3 {
    comment "IBM ULTRIUM-TD3 with LTO3 media, hwcompression off"
    length 402432 mbytes
    filemark 0 kbytes
    speed 69766 kps
    blocksize 32kb
    readblocksize 32kb
}
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-01 07:47:33 UTC
No response from user.