
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Can someone confirm if this is the correct procedure when performing an IDB defrag?
Our Cell Manager is running 6.21 on Windows 2008 R2 Sp1
- Ensure that the last IDB backup was successful – note down the tape number in case a restore is required
- Ensure there are no backups running:
omnistat (will show any active tasks)
omnisv –stop (stops the DP services) - Copy C:\Program Files\Omniback to C:\temp\Omniback
- Start the Data Protector services and shut down omnitrig (omnitrig –stop) to ensure no scheduled backups are started.
- Double-check that no backups are running by running an “omnistat”.
- Ensure that no Data Protector manager GUI sessions are open and then run the following commands:
omnidbutil -purge –dcbf
omnidbutil –fixmpos
omnidbutil -purge_failed_copies
omnidbutil -purge -filenames –force - The omnistat command can be used to monitor the progress of the “omnidbutil -purge -filenames –force” command.
- omnidbutil –clear
- Once the above commands have been completed, proceed with the IDB export to files:
omnidbutil -writedb -cdb C:\DB\ -mmdb C:\DB - When prompted, confirm the exports for the various components.
- After the IDB export you will need to make a copy of the following directories as per the command prompt advises:
"C:/Program Files/OmniBack/db40/msg"
"C:/Program Files/OmniBack/db40/dcbf" - Copy these to a temporary location as they will need to be copied back to their original location after the import
- Once the exports have completed, perform a re-initialize of the IDB:
omnidbinit - Then re-import the export dumps taken earlier:
omnidbutil -readdb -cdb C:\DB\ -mmdb C:\DB - After the import is complete you will need to copy the following directories back to their original location:
"C:/Program Files/OmniBack/db40/msg"
"C:/Program Files/OmniBack/db40/dcbf" - Once the imports have completed remove invalid references to DCBF. This should be run following IDB recovery:
omnidbutil -remap_dcdir - Restart the data protector services.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Your detailed plan looks good and yes, in Win2008 and R2, by default IDB is located in C:\ProgramData\OmniBack\ directory.
So, step3 needs to be modified as:
3.Copy C:\ProgramData\OmniBack to C:\temp\Omniback
Also, you may have to add a trailing "\" for mmdb export location for step 9 and 14: omnidbutil -writedb -cdb C:\DB\ -mmdb C:\DB\. Not a must thing to consider, but just to be careful.
Prakasam S

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: IDB Defrag
So i think with step 11 and 15 we need to add C:\ProgramData\OmniBack\db40\msg and C:\ProgramData\OmniBack\db40\dcbf to the list of directories to take copies of


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Your detailed plan looks good and yes, in Win2008 and R2, by default IDB is located in C:\ProgramData\OmniBack\ directory.
So, step3 needs to be modified as:
3.Copy C:\ProgramData\OmniBack to C:\temp\Omniback
Also, you may have to add a trailing "\" for mmdb export location for step 9 and 14: omnidbutil -writedb -cdb C:\DB\ -mmdb C:\DB\. Not a must thing to consider, but just to be careful.
Prakasam S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: IDB Defrag
Hi,
the new 2008R2 gotcha was already mentioned. If you are just doing that for the stated purpose (compacting the IDB after the filename purge so as to speed it up significantly), you can avoid steps 11/12 (copying binary files somewhere safe), 13 (omnidbinit) and 15 (copy binary files back). Specifically avoiding 13 makes things simpler, as you don't have to rebuild anything regarding IDB files and extensions. The IDB is still truncated and filled sequentially from the start on the readdb step, so there really is no sense in omnidbinit here. Not copying away and copying back the binary files also makes sense as they are laying around unchanged anyway, and it really saves time and space. The procedure you post is complete even for the case where you move everything to a blank drive, and there the additional steps make sense. But not for just in-place IDB health maintenance.
BTW, to get a rough feeling of how long it will take, the filename purge and the writedb will take roughly as long as an IDB check each, the import will be faster (provided there was anything purged in this or a previous purge session). So just expect two to three times the IDB check time you saw before the maintenance. It really depends on whether you did a filename purge ever before without compacting, as that makes the IDB really slow (I've seen 4h check times for moderately sized IDBs of like 20GB).
HTH,
Andre.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: IDB Defrag
Just on the new location of the IDB etc in C:\ProgramData, what does that mean for C:\Program Files\Omniback ? As i still have all the old directories intact there occupying a large portion of drive space, are these still required?
C:\ProgramData\Omniback = 29GB
C:\Program Files\Omniback = 8GB
i'm running a physical system with low disk space so if i can claim back that 8GB from the old location that would be rather useful.
Updated steps:
Procedure Steps for Windows 2008/R2 Cell Manager
- Ensure that the last IDB backup was successful – note down the tape number in case a restore is required
- Ensure there are no backups running:
- omnistat (will show any active tasks)
- omnisv –stop (stops the DP services)
- Copy C:\Program Files\Omniback & C:\ProgramData\Omniback to C:\temp\DP
- Start the Data Protector services and shut down omnitrig (omnitrig –stop) to ensure no scheduled backups are started.
- Double-check that no backups are running by running an “omnistat”.
- Ensure that no Data Protector manager GUI sessions are open and then run the following commands:
- omnidbutil -purge –dcbf
- omnidbutil –fixmpos
- omnidbutil -purge_failed_copies
- omnidbutil -purge -filenames –force
- The omnistat command can be used to monitor the progress of the “omnidbutil -purge -filenames –force” command.
- omnidbutil –clear
- Once the above commands have been completed, proceed with the IDB export to files:
- omnidbutil -writedb -cdb C:\DB\ -mmdb C:\DB\
- When prompted, confirm the exports for the various components.
- After the IDB export you will need to make a copy of the following directories as per the command prompt advises:
- "C:/Program Files/OmniBack/db40/msg"
- "C:/Program Files/OmniBack/db40/dcbf"
- "C:/ProgramData/OmniBack/db40/msg"
- "C:/ProgramData/OmniBack/db40/dcbf"
- Copy these to a temporary location as they will need to be copied back to their original location after the import
- Once the exports have completed, perform a re-initialize of the IDB:
- omnidbinit
- Then re-import the export dumps taken earlier:
- omnidbutil -readdb -cdb C:\DB\ -mmdb C:\DB\
- After the import is complete you will need to copy the following directories back to their original location:
- "C:/Program Files/OmniBack/db40/msg"
- "C:/Program Files/OmniBack/db40/dcbf"
- "C:/ProgramData/OmniBack/db40/msg"
- "C:/ProgramData/OmniBack/db40/dcbf"
- Once the imports have completed remove invalid references to DCBF. This should be run following IDB recovery:
- omnidbutil -remap_dcdir
- Restart the data protector services.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: IDB Defrag
The C:\Program Files\Omniback directory contains the DP executables and you can remove other old directories from it(db40, config, depot, etc.,). Before you delete, ensure the database files are located in C:\ProgramData.
Prakasam S