[Ocfs-users] copy error + control file corruption in ocfs 1.10

Bryce philip.copeland at oracle.com
Wed Mar 10 15:26:07 CST 2004


Umm I think you tripped over an oversight on my part
If you grab the modifed coreutils, unpack and look at the code in
src/copy.c about line 1858, it crates a buffer for data read in to be
stored in

  buf = (char *) alloca (buf_size + sizeof (int));

that line should probably have alloca replaced with valloc

What I think is happening (I'm caught doing port forwarding stuff atm)
is that the read is being made as O_DIRECT into a buffer that is not
page aligned. I'll try ad get this port forward stuff don asap and try
and get back to a solution for you

Phil
=--=


On Wed, 2004-03-10 at 12:15, Robert Blok wrote:
> Wim,
> 
> Below are two problems I found in testing the newly released ocfs version.
> Just for your information.
> 
> Gr,
> Robert.
> 
> - Copying of multiple files gives errors
> 
> [oracle at prac01 test]$ cp --o_direct -R ./a2/* ./backup/a2/.
> cp: writing `./backup/a2/./ccdata.dbf.bck': Invalid argument
> cp: writing `./backup/a2/./ccindex.dbf': Invalid argument
> cp: writing `./backup/a2/./control02.ctl': Invalid argument
> cp: writing `./backup/a2/./system01.dbf': Invalid argument
> cp: writing `./backup/a2/./temp01.dbf': Invalid argument
> cp: writing `./backup/a2/./undotbs01.dbf': Invalid argument
> cp: writing `./backup/a2/./undotbs01.dbf.bck': Invalid argument
> cp: writing `./backup/a2/./undotbs02.dbf': Invalid argument
> [oracle at prac01 test]$ for file in `ls ./a2/*`
> > do
> > cp --o_direct -Rp $file ./backup/a2
> > done
> [oracle at prac01 test]$ for file in `ls ./a1/*`; do cp --o_direct -Rp $file
> ./backup/a1; done
> [oracle at prac01 test]$ for file in `ls ./r1/*`; do cp --o_direct -Rp $file
> ./backup/r1; done
> [oracle at prac01 test]$ for file in `ls ./r2/*`; do cp --o_direct -Rp $file
> ./backup/r2; done
> 
> - Creating a corrupt control file
> 
> [oracle at prac01 a1]$ cp /dev/zero control01.ctl
> cp: cannot create regular file `control01.ctl': Permission denied
> 
> --> both instances are crashed!
> 
> [oracle at prac01 a1]$ rm control01.ctl
> [oracle at prac01 a1]$ cp ../a2/control02.ctl ./control01.ctl
> [oracle at prac01 a1]$ svrctl start database -d test
> bash: svrctl: command not found
> [oracle at prac01 a1]$ srvctl start database -d test
> PRKP-1005 : Failed to start up cluster database test
> ORA-00227: corrupt block detected in controlfile: (block 315, # blocks 1)
> ORA-00202: controlfile: '/oradata/test/a1/control01.ctl'
> 
> 
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
> _______________________________________________
> Ocfs-users mailing list
> Ocfs-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs-users



More information about the Ocfs-users mailing list