r2 - 26 May 2004 - 23:48:06 - LeoGalambosYou are here: TWiki >  Egothor Web  >  EgothorFAQ > DiscIndexDataFsck

Problem

How can I verify the structure of metadata in a barrel? How can I fix it when it is corrupted?

Solution

Use the tool DiscIndexData:

$java org.egothor.db.disc.DiscIndexData /tmp/my_www/1/

The output (when everything is OK) should be similar to this:

Read-only mode.
Metadata: /tmp/my_www/1/
Size:     64
Everything is OK

If you want to fix a corrupted metadata structure, issue the following command:

$java org.egothor.db.disc.DiscIndexData -fix /tmp/my_www/1/

The output should look like this:

Read/Write mode!
Metadata: /tmp/my_www/1/
Size:     64
Everything is OK

Available in 1.2.5 and later

-- LeoGalambos - 17 Mar 2004

WebForm?
TopicClassification PublicFAQ
OperatingSystem

OsVersion

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback