Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accidental odmdelete

Status
Not open for further replies.

Sudmill

Programmer
Apr 20, 2001
65
GB
Hi,

I was attempting to redirect the errpt to the syslog, and was deleting an entry from the ODM when I ran the following truncated command;

odmdelete -o errnotify

This has deleted 47 objects, when I only expected it to delete 2, so obviously some other vitals ones have now gone. We have a backup from this morning, so my question is how do we restore either the whole ODM or preferably just the errnotify entries from our filesystem backup?


Im feeling a bit of a fool, so any help would be appreciated !



Cheers

John (Sudmill)
 
Just found out that performing the following command might solve it;

restore -xvqf /dev/rmt0 /etc/objrepos/errnotify

This will restore over the top of the now smaller errnotify file. It remains to be seen if there is any kind of keying or ID fields that will get out of sync as a result (not sure how ODB works). I expect the reboot scheduled for tomorrow will tell me the answer !

Cheers

John (Sudmill)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top