Skip to end of metadata
Go to start of metadata

Symptom


User gets this error with CDP 3 Disk Safe stored on NFS:

2011-01-19 16:31:00,880 ERROR - TASK(zimbra backup): Error replicating device / (0714caf7-ec47-4ba1-83fa-ffabaaee9030) com.r1soft.backup.server.disksafe.blockstore.Rib: Failed to load block store at com.r1soft.backup.server.disksafe.blockstore.Rf.loadDB(Rf.java:558) at com.r1soft.backup.server.disksafe.blockstore.Rg.openR1DBNativeBlockStore(Rg.java:31) at com.r1soft.backup.server.disksafe.blockstore.Rd.open(Rd.java:75) at com.r1soft.backup.server.disksafe.blockstore.Ri.getBlockStore(Ri.java:65) at com.r1soft.backup.server.disksafe.metadata.entity.RecoveryPoint.startAddMember(RecoveryPoint.java:646) at com.r1soft.backup.server.task.DataProtectionPolicyTask.Ra(DataProtectionPolicyTask.java:1470) at com.r1soft.backup.server.task.DataProtectionPolicyTask.Ra(DataProtectionPolicyTask.java:1361) at com.r1soft.backup.server.task.DataProtectionPolicyTask.Rc(DataProtectionPolicyTask.java:943) at com.r1soft.backup.server.task.DataProtectionPolicyTask.run(DataProtectionPolicyTask.java:398) at com.r1soft.backup.server.task.scheduler.TaskRunner.run(TaskRunner.java:155) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.sql.SQLException: database is locked at com.r1soft.r1db.DB.throwex(DB.java:289) at com.r1soft.r1db.NativeDB.prepare(Native Method) at com.r1soft.r1db.DB.prepare(DB.java:115) at com.r1soft.r1db.Stmt.execute(Stmt.java:82) at com.r1soft.backup.server.disksafe.blockstore.Rf.configPragmas(Rf.java:441) at com.r1soft.backup.server.disksafe.blockstore.Rf.loadDB(Rf.java:529) ...

Setup is a CDP 3.8.2 on CentOS backing up to a NetApp SAN over NFS3.

Cause


CDP 3.0 uses file locks on the block store to protect the block store from another instance of CDP accidentally trying to open it. 

Resolution


Resolution is starting nfslock on the Linux NFS client where CDP Server is running.

To start nfslock, run the following command:

/etc/init.d/nfslock start

See the "Linux NFS configuration services" article in http://www.dba-oracle.com/oracle_tips_linux_nfs.htm for more information.

Related Articles


Page: Error - Caused by Java SQL SQLException Database Is Locked (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Linux cdp agent fails with "Floating Point Exception" (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: BMR of a Citrix Xen 6.0 paravirtualized VM (Knowledge Base) Labels: bare-metal_restore_3, disk_safe_3, partition_3, file_system_3, bmr_3, citrix_3, xen_3, pv_3, hvm_3
Page: Setting Permissions on SSHFS File System (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Assigning Backups to a Different Disk Safe (Knowledge Base) Labels: disk_safe_3
Page: Error - Caused by Java SQL SQLException Database Is Locked (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Could Not Create Disk Safe Directory (Knowledge Base) Labels: disk_safe_3, troubleshoot_3, cdp_server_3
Page: Error - Linux cdp agent fails with "Floating Point Exception" (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Location Does Not Contain a Valid Disk Safe (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Using Two Policies per Agent (Knowledge Base) Labels: disk_safe_3, policy_3, agent_3, troubleshoot_3, volumes_3
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3
Page: Setting Permissions on SSHFS File System (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Error - Restore with Overwrite Files on Drops the Network (Knowledge Base) Labels: file_restore_3, troubleshoot_3
Page: Error - AGENT Unable to Set Default Name Check Option (Knowledge Base) Labels: randmmap_3, troubleshoot_3, agent_3
Page: Error - Caused by Java SQL SQLException Database Is Locked (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Could Not Create Disk Safe Directory (Knowledge Base) Labels: disk_safe_3, troubleshoot_3, cdp_server_3
Page: Error - Could Not Start Snapshot (Knowledge Base) Labels: troubleshoot_3, agent_3
Page: Error - Java Heap Space out of Memory (Knowledge Base) Labels: troubleshoot_3
Page: Error - Linux cdp agent fails with "Floating Point Exception" (Knowledge Base) Labels: nfs_3, disk_safe_3, troubleshoot_3
Page: Error - Location Does Not Contain a Valid Disk Safe (Knowledge Base) Labels: disk_safe_3, troubleshoot_3
Page: Using Two Policies per Agent (Knowledge Base) Labels: disk_safe_3, policy_3, agent_3, troubleshoot_3, volumes_3
Labels:
nfs_3 nfs_3 Delete
disk_safe_3 disk_safe_3 Delete
troubleshoot_3 troubleshoot_3 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.