Bacula-users

Re: [Bacula-users] Warning to DVD users

2011-02-21 16:25:22
Subject: Re: [Bacula-users] Warning to DVD users
From: Jari Fredriksson <jarif AT iki DOT fi>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Feb 2011 23:22:50 +0200
On 21.2.2011 21:44, ganiuszka wrote:
> 2011/2/21 Jari Fredriksson <jarif AT iki DOT fi>:
>> On 21.2.2011 0:57, ganiuszka wrote:
>>> Hi,
>>>
>>> The "free" command is running before every WRITE. If "free" command
>>> does not work properly then WRITE will not work. "dvd-handler" script
>>> uses the "popen2" Python module which in new Python version throws
>>> warning because this module is deprecated in new Python. That may be
>>> your issue after the system upgrade to Squeeze.
>>>
>>> If your "free" command shows something like below output, that is this 
>>> problem.:
>>>
>>> # /usr/local/bacula/etc/scripts/dvd-handler /dev/sr0 free
>>> /usr/local/bacula/etc/scripts/dvd-handler:41: DeprecationWarning: The
>>> popen2 module is deprecated.  Use the subprocess module.
>>>   import popen2
>>> 1616412672
>>> No Error reported.
>>>
>>> When you put "hash" ("#") in python module on that warning then DVD
>>> backup will be work. Another solution is rewrite "dvd-handler" script
>>> using "subprocess" Python  module instead "popen2".
>>>
>>
>> I know knothing about python. Which module is that "python module" that
>> I need to comment the warning out?
> 
> Hi,
> 
> This module is in localization /usr/lib/python2.6/popen2.py. There are
> those two lines:
> 
> warnings.warn("The popen2 module is deprecated.  Use the subprocess module.",
>               DeprecationWarning, stacklevel=2)
> 
> When you put hash ("#") at the begining those lines, warning should
> not occur in the "free" command. For example:
> 
> #warnings.warn("The popen2 module is deprecated.  Use the subprocess module.",
> #              DeprecationWarning, stacklevel=2)
> 
>> For example the following fails with the newer kernels, but not with older..
>>
>> ----------------------- /etc/bacula/blank_dvd ------------------------
>>
>> dd if=/dev/zero bs=1024 count=512 | growisofs -Z /dev/sr0=/dev/fd/0
> 
> Did you try with other discs? Are there any errors in "dmesg" log?
> What error is reported after running this command?
> 
> Regards
> gani
> 

I wrote this to Debian list. The error message is included:

My setup:

Debian Lenny amd64 under VMware 2.0.2 on Windows7 hostm using a Writable
DVD-RW drive. The drive is configured to be directly accessed to the
Linux client, not via ATAPI emulation.

If I use kernel 2.6.26-2-amd64 growisofs works.

If I upgrade kernel to .32 via Backports, or distupgrade to Squeeze
growisofs not more works.

It does not recognize the DCD-drive any more as capable to write a DVD.

The error message printed is:

":-( /dev/dvdrw: media is not recognized as recordable DVD: 0"

Several good media tried, but no joy.

When I googled this, I found numerous Ubuntu posters, so it must have
been around with the newer kernel for some time.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users