Unix Technical Forum

Return code for dd command

This is a discussion on Return code for dd command within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, I'm having an error while saving data on a tape. 0512-008 : The /usr/bin/dd command failed with return ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:02 AM
NoAR
 
Posts: n/a
Default Return code for dd command

Hi,

I'm having an error while saving data on a tape.
0512-008 : The /usr/bin/dd command failed with return code of 2.
Backup canceled.

Does anybody know what the return code 2 does mean or how to solve this
problem ?

Thanks,

Arnaud

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:02 AM
steven_nospam at Yahoo! Canada
 
Posts: n/a
Default Re: Return code for dd command

Not sure about the dd command, but when cpio returns code 2 it is
actually just a warning that it could not save a selected file onto
backup media.

cpio is supplied a list of files to be written to tape. When it comes
time to write a specific file (eg. /var/spool/qdaemon/hdw62hs), if that
file no longer exists (due to a print job having completed and been
removed for example), then an error message appears about the file. The
cpio continues on, then exits with status 2 when it reached the end.

Perhaps this is happening in dd as well, but dd treats it as an error
and stops? Just a guess...sorry.

Steve

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:03 AM
NoAR
 
Posts: n/a
Default Re: Return code for dd command

Thanks for information.

In fact, the daily backup worked fine thanks to crontab
(0 23 * * 1-5 /usr/bin/savevg -ivp rootvg). Now we have this error
everyday.

I searched the whole Web but nobody seem to have had this problem.

Arnaud

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:03 AM
NoAR
 
Posts: n/a
Default Re: Return code for dd command

In fact, the whole message is :

"From: daemon
To: root
Création du fichier d'informations (/image.data) pour rootvg..
Création de la pseudo-image d'amorçage sur bande.........
0512-011 savevg : La commande /usr/bin/dd a échoué (code retour : 2).
Sauvegarde annulée.
************************************************** ***************
cron : le message précédent constitue la sortie standard
et l'erreur standard de l'une de vos commandes cron."

which approximatively means :

"Creation of the information file (/image.data) for rootvg..
Creation of the bootable pseudo-image on tape.........
0512-011 savevg : Command /usr/bin/dd failed (return code : 2).
Backup canceled.
************************************************** ***************
cron : the previous message is the standard output
and the standard error of one of your cron commands."

Any help would be appreciated.

Thanks,

Arnaud

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com