What does a normal entry in the GH log file look like?

VirtualMe
Posts: 13
Joined: Sun Nov 28, 2010 5:27 pm

What does a normal entry in the GH log file look like?

Postby VirtualMe » Tue Dec 07, 2010 7:39 pm

I copied a file to my share and at quick inspection it looks to me like GH is saving tombstones 3 times. Is this what a normal entry in the log file looks like?

Dec 7 20:10:48 7 parse_logs: Parsing Samba logs...
Dec 7 20:10:48 7 parse_logs: Done parsing.
Dec 7 20:10:48 7 simplify_tasks: Simplifying pending tasks.
Dec 7 20:10:48 7 sleep: Nothing to do... Sleeping.
Dec 7 20:10:58 7 parse_logs: Parsing Samba logs...
Dec 7 20:10:58 7 parse_logs: Done parsing.
Dec 7 20:10:58 7 write: Now working on task ID 18: write Docs/TI-89 Titanium Manual.pdf
Dec 7 20:10:58 6 write: File created: Docs/TI-89 Titanium Manual.pdf - 7.81MB
Dec 7 20:10:58 7 write: Loading tombstones for Docs/TI-89 Titanium Manual.pdf... Got 0 tombstones.
Dec 7 20:10:59 7 write: Drives with available space: /var/hda/files/drives/sdc1/gh (860GB avail) - /var/hda/files/drives/sdb1/gh (860GB avail)
Dec 7 20:10:59 7 write: Saving 2 tombstones for Docs/TI-89 Titanium Manual.pdf
Dec 7 20:10:59 7 write: Saving tombstones in /var/hda/files/drives/sdc1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving tombstones in /var/hda/files/drives/sdb1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Copying file to /var/hda/files/drives/sdb1/gh/Docs/TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Creating symlink in share pointing to the above file copy.
Dec 7 20:11:00 7 write: Saving 2 tombstones for Docs/TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving tombstones in /var/hda/files/drives/sdc1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving tombstones in /var/hda/files/drives/sdb1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Copying file to /var/hda/files/drives/sdc1/gh/Docs/TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving 2 tombstones for Docs/TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving tombstones in /var/hda/files/drives/sdc1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 write: Saving tombstones in /var/hda/files/drives/sdb1/gh/.gh_graveyard/Docs//TI-89 Titanium Manual.pdf
Dec 7 20:11:00 7 sleep: Nothing to do... Sleeping.
Dec 7 20:11:10 7 parse_logs: Parsing Samba logs...
Dec 7 20:11:10 7 parse_logs: Done parsing.
Dec 7 20:11:10 7 sleep: Nothing to do... Sleeping.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: What does a normal entry in the GH log file look like?

Postby gboudreau » Tue Dec 07, 2010 11:43 pm

Yes, that is normal.
Tombstones are very small text files that contain metadata about the file copies, including the location of all file copies for a single file. As such, it's saved once at the beginning, when a decision has been made as the where the file copies will go, and then again each time a file copy is created, to mark it as 'OK'.
This is required to be able to fix any issue that would arise from shutting down the greyhole server while it's working on creating file copies.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 50 guests