LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   DVD error (but still server related) - Resource temporarily unavailable (https://www.linuxquestions.org/questions/linux-server-73/dvd-error-but-still-server-related-resource-temporarily-unavailable-888928/)

guna_pmk 06-29-2011 03:51 AM

DVD error (but still server related) - Resource temporarily unavailable
 
Hi all,

Though this may appear inappropriate here,it still is related to server (I think). I have a script kicked off by cron every night to make backups to Blu-ray. But for the past couple of days, I see the following error for the dvd+rw-format -b /dev/dvd command:

Code:

blanking .:-[ FORMAT UNIT failed with SK=2h/ASC=04h/ACQ=08h]: Resource temporarily unavailable
But when I run the command the next day (from the cron), it works without any problem. It looks like some sort of resource allocation problem (or is it not?) to me. But I tried going through /var/log/messages and dmesg. I am getting no clue out of them.

Has anybody got any idea how to start investigating things?

My platform is CentOS 5.5.

Thanks

guna_pmk 06-30-2011 08:07 AM

Update on this. I tried moving the back up time (the disc writing time in effect) 30 mins later. It works now. But the question remains. Why it failed? How can I investigate why it failed?

Still looking for ideas.

Thanks

guna_pmk 07-04-2011 05:20 AM

Bad news. It failed again with the same message. Still struggling to find what it is.

Any ideas people?

Thanks

guna_pmk 07-07-2011 05:03 AM

Damn me. Here is excerpt from the actual code that does the backup script

Quote:

# Include a script library with common variables and functions (used by other
# scripts as well)
. ../GenericUtilities/ShellUtils.shl
# Some other task
# Some other task
# Some other task
# Some other task
echo echo ${DATE} > ${BK_DATE_FILE}
# Some other task
# Some other task
/usr/bin/dvd+rw-format -b /dev/dvd
/usr/bin/growisofs -use-the-force-luke=dao -speed=1 -Z /dev/dvd=${ISO}
# Rest of the script
I had two workspaces - a development space and a live space. What I usually do is develop the code in the development space, test it, commit to the repository and update the live workspace from the repository.

I have the BK_DATE_FILE variable declared in the ShellUtils.shl. In this case, I had done it only on the development workspace and not in the live one. So the shell script had a blank for BK_DATE_FILE. I now updated the live workspace and it works.

If somebody needs a better explanation, please let me know the exact thing you want to know; I shall try to answer as best as I can.

Thanks for your time.


All times are GMT -5. The time now is 02:33 PM.