Click to See Complete Forum and Search --> : Back up error


DipeshKhakhkhar
09-10-2004, 02:15 PM
Hi,

I have a script which does daily back up.

/**********************************

#!/bin/sh
DEVICE="sda1 sda3 sdb1 sdb2 sda5"
if ( ! mt -f /dev/st0 rewind) then
echo "No tape in drive" && exit 1
fi

for item in $DEVICE; do
mount /dev/$item -o remount,ro
dump -0auqb 64 -f /dev/st0 /dev/$item
mount /dev/$item -o remount,rw
done

**********************************/

It failed and gave me the following error for one of the file system.

Error message
==========

DUMP: cannot rewrite /etc/dumpdates: Read only file system
DUMP: Entire dump is aborted.
mount: /var is busy.


Can somebody please tell me what cause this error and how should i rectify it. Shall i again run the back and see whether i am getting the error or what. Any help would be highly appreciated.

Thanks in the anticipation that I will get some useful hint to solve the above problem.

Cheers!!

JohnT
09-10-2004, 04:48 PM
DUMP: cannot rewrite /etc/dumpdates: Read only file system
http://publib16.boulder.ibm.com/pseries/en_US/files/aixfiles/filesystems.htm#a1249cf

DipeshKhakhkhar
09-13-2004, 11:58 AM
hi,

Thanks for replying and providing me the link for understanding the concepts.

I have made the changes like, removed -u option from the back up script so that it won't write anything now and kept the mouting of the file systems in the read mode only.

I hope tonight it will run properly.

Thanks !
Cheers

JohnT
09-13-2004, 04:33 PM
Your welcome and I hope it behaves like it should. Keep us posted.:p

DipeshKhakhkhar
09-14-2004, 10:34 AM
Hi John,

Its working now. Thanks a ton for the help.

Cheers!!