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

Robert Blok robert.blok at logicacmg.com
Wed Mar 17 10:56:20 CST 2004


Wim, Philip,

Below a log of how I corrupted the control file. Strangely, The controlfile
doesn't become 1 byte in size. Actually, I have to abort it.

Philip, the lsof doesn't give any open files on both controlfiles:
[root at prac01 root]# lsof | grep control
[root at prac02 root]# lsof | grep control

[root at prac01 a1]# lsof ./control01.ctl
[root at prac01 a1]# lsof ../a2/control02.ctl

[root at prac02 a1]# lsof ./control01.ctl
[root at prac02 a1]# lsof ../a2/control02.ctl

Kind Regards,
Robert.

> how do you corrupt the first control file ?
> I guess I don't see this happening at all here

[oracle at prac01 test]$ cp -Rp --o_direct ./backup/* .
cp: preserving times for `./a1': Operation not permitted
cp: preserving times for `./a2': Operation not permitted
cp: preserving times for `./r1': Operation not permitted
cp: preserving times for `./r2': Operation not permitted
[oracle at prac01 test]$ srvctl start database -d test
[oracle at prac01 test]$ ps -ef | grep smon
oracle   22393     1  0 10:44 ?        00:00:00 ora_smon_test1
oracle   22583  1511  0 10:44 pts/1    00:00:00 grep smon
[oracle at prac01 test]$ sqlplus '/ as sysdba'

SQL*Plus: Release 9.2.0.4.0 - Production on Wed Mar 17 10:44:59 2004

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data
Mining options
JServer Release 9.2.0.4.0 - Production

SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data
Mining options
JServer Release 9.2.0.4.0 - Production
[oracle at prac01 test]$ cat /dev/zero

[oracle at prac01 test]$ ls -al /dev/zero
crw-rw-rw-    1 root     root       1,   5 Mar 19  2002 /dev/zero
[oracle at prac01 test]$ cp --o_direct /dev/zero ./a1/control01.ctl

[oracle at prac01 test]$ ls -al ./a1/control01.ctl
-rw-r-----    1 oracle   dba      904527872 Mar 10 11:37 ./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.


More information about the Ocfs-users mailing list