LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   cpio error (https://www.linuxquestions.org/questions/aix-43/cpio-error-344561/)

ntoughe 07-19-2005 04:35 AM

cpio error
 
Hi every body,

Does someone has an idea about this error message , that i met on AIX 4.3.3

cpio : 0511-025 Cannot get information about dbalpa/idx12_alpa.dbf.
cpio : 0511-025 Cannot get information about dbalpa/idx13_alpa.dbf.
5975530 block(s)
these messages are the result of the following loop


echo "\n\n\n data base files Compression $ORACLE_SID\n\n"

#for PARTITION in "$REPACOMP1 $REPACOMP2 $REPACOMP3"
#do
cd "$REPACOMP1"
if [ $? -ne 0 ]
then
echo "\n\nERROR_DETECTED during FS compression:$REPACOMP1 "
return
else
find . -print|cpio -omdcB|gzip >$REPDEST/base1${ORACLE_SID}.gz
if [ $? -ne 0 ]
then
echo "\n\nERROR_DETECTED during FScompression $REPACOMP1"
return
fi
VERIFFIC=$REPACOMP1
fi
find . -print|cpio -omdcB|gzip >$REPDEST/base1${ORACLE_SID}.gz

zorba4 07-21-2005 09:31 AM

"find . -print" created a list of files.
cpio tried to ar chive them.
cpio encountered an error with the file named dbalpa/idx12_alpa.dbf.
Have a look at that file : "ls -l dbalpa/idx12_alpa.dbf", and see if the guy who performs the cpio has permissions on that file (probably owned by oracle).
hth
Zorba

ntoughe 07-27-2005 04:54 AM

Thanks for your response,
I effectively verified , before to post my help request , that the file performed had the rights permissions.

which are :
-rwxr-x--x 1 oracle dba 13114 11 jul 11:08 stop+expcomp.sh


and i get the same errors continuously!!




:Pengy:

zorba4 07-27-2005 06:48 AM

and who is performing the cpio ? The same user named "oracle", while he is in the dba group ?

ntoughe 07-27-2005 08:30 AM

yes, it's the user oracle who is performing the script via a crontab, as followed:

01 1 * * * su - oracle -c /home/oracle/tools/prepabase.sh >/dev/null


the above script call the first script i previously sent an excerpt.

eddiebaby1023 08-07-2005 07:07 AM

Why don't you run the script from oracle's crontab? su-ing in cron is A Bad Idea. Also, why are you using $REPACOMP1 instead of $PARTITION in your loop? You're just doing the same thing in the loop three times instead of each of the arguments to the loop.

Back_to_Linux 11-03-2005 04:41 PM

wait wait!
what are the right and who is the owner of the files you want to save, dbalpa/idx12_alpa.dbf and dbalpa/idx13_alpa.dbf.
I encounter the same error because the owner of the file to be saved is nobody, and on the aix system "nobody" have a an ID > 65000, the cpio can't save the file.

ntoughe 11-04-2005 06:15 AM

hi,
The owner is oracle

Back_to_Linux 11-05-2005 07:22 AM

a last idea : what is the size of the file ?
some cpio don't save file more than 2GB.

eddiebaby1023 12-31-2005 11:19 AM

Why are you using the 'm' and 'd' flags? They're only useful when restoring from a cpio archive, not when creating one?


All times are GMT -5. The time now is 08:21 AM.