Robert Blok
2004-Mar-10 06:15 UTC
[Ocfs-users] copy error + control file corruption in ocfs 1.10
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@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@prac01 test]$ for file in `ls ./a2/*`> do > cp --o_direct -Rp $file ./backup/a2 > done[oracle@prac01 test]$ for file in `ls ./a1/*`; do cp --o_direct -Rp $file ./backup/a1; done [oracle@prac01 test]$ for file in `ls ./r1/*`; do cp --o_direct -Rp $file ./backup/r1; done [oracle@prac01 test]$ for file in `ls ./r2/*`; do cp --o_direct -Rp $file ./backup/r2; done - Creating a corrupt control file [oracle@prac01 a1]$ cp /dev/zero control01.ctl cp: cannot create regular file `control01.ctl': Permission denied --> both instances are crashed! [oracle@prac01 a1]$ rm control01.ctl [oracle@prac01 a1]$ cp ../a2/control02.ctl ./control01.ctl [oracle@prac01 a1]$ svrctl start database -d test bash: svrctl: command not found [oracle@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.
Bryce
2004-Mar-10 09:26 UTC
[Ocfs-users] copy error + control file corruption in ocfs 1.10
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@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@prac01 test]$ for file in `ls ./a2/*` > > do > > cp --o_direct -Rp $file ./backup/a2 > > done > [oracle@prac01 test]$ for file in `ls ./a1/*`; do cp --o_direct -Rp $file > ./backup/a1; done > [oracle@prac01 test]$ for file in `ls ./r1/*`; do cp --o_direct -Rp $file > ./backup/r1; done > [oracle@prac01 test]$ for file in `ls ./r2/*`; do cp --o_direct -Rp $file > ./backup/r2; done > > - Creating a corrupt control file > > [oracle@prac01 a1]$ cp /dev/zero control01.ctl > cp: cannot create regular file `control01.ctl': Permission denied > > --> both instances are crashed! > > [oracle@prac01 a1]$ rm control01.ctl > [oracle@prac01 a1]$ cp ../a2/control02.ctl ./control01.ctl > [oracle@prac01 a1]$ svrctl start database -d test > bash: svrctl: command not found > [oracle@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@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs-users