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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |