LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-29-2011, 04:51 AM   #1
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Rep: Reputation: 5
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
 
Old 06-30-2011, 09:07 AM   #2
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
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
 
Old 07-04-2011, 06:20 AM   #3
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
Bad news. It failed again with the same message. Still struggling to find what it is.

Any ideas people?

Thanks
 
Old 07-07-2011, 06:03 AM   #4
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C - Resource temporarily unavailable golmschenk Programming 1 03-07-2010 04:28 PM
Resource temporarily unavailable hostmaster Linux - Enterprise 2 02-14-2010 05:41 AM
Resource temporarily unavailable manoj.linux Linux - Enterprise 3 11-06-2009 09:21 AM
usb_bulk_read() - open error 11 Resource temporarily unavailable GSMD Programming 0 10-24-2006 02:07 AM
Sendmail Error Deferred: Resource temporarily unavailable shawnbishop Linux - Software 3 03-19-2006 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration