Greyhole Trash, did i do it right?

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 4:31 am

I have tried to mount the Greyhole Trash as described elsewhere, so i have more control over deleted files.

When i delete a file is it supposed to show up in the share instantly, or does the fsck have to do its job first? I am asking because my fsck queue will not finish for several days at least.

Here is my greyhole config: http://pastebin.com/jg4L6PJJ

And my smb: http://pastebin.com/kwAM3G7g

Any tips?

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Greyhole Trash, did i do it right?

Postby lrevxl » Sat Jul 23, 2011 5:53 am

It looks right except for one thing, you do not need a num_copies entry in greyhole.conf since it isn't going to persist multiple file copies for the trash, it just puts whatever was actually deleted into the trash. It won't do any harm, I don't think, but it isn't needed.

Now, fsck does not put anything into the trash share, that happens when Greyhole processes a delete task or when a file gets updated and you're using multiple copies. (The out of date copies are now 'dirty' and are moved to the attic.) When Greyhole sees that you've got a Trash share it'll start creating symlinks whenever it does anything that moves to the attics. That said, it won't take effect until you've restarted Greyhole. So if your fsck is still running from the other thread then it won't have picked that up yet. Not to mention if you've got a backlog of tasks it might not even have gotten to the delete tasks yet.

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Re: Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 8:38 am

Now, fsck does not put anything into the trash share, that happens when Greyhole processes a delete task or when a file gets updated and you're using multiple copies. (The out of date copies are now 'dirty' and are moved to the attic.)

When Greyhole sees that you've got a Trash share it'll start creating symlinks whenever it does anything that moves to the attics.

That said, it won't take effect until you've restarted Greyhole.
I had a restart, does that count?
So if your fsck is still running from the other thread then it won't have picked that up yet. Not to mention if you've got a backlog of tasks it might not even have gotten to the delete tasks yet.
It is the same fsck. Before all the trouble i moved a lot of files to an external drive, wich later failed. They where not super important files, but they also have turned up, wich is good news. I really wanted to keep some of them, but i am afraid they will be deleted again with the ongoing fsck, because i did delete them at one point. I do not know if this is correct. That is the reason i would like the trash to work, so i can keep some or all of them.

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Greyhole Trash, did i do it right?

Postby lrevxl » Sat Jul 23, 2011 9:00 am

If the deletes are still pending tasks it's possible they'll be 'deleted', but all delete means in this case is that they'll be moved to the attic, so they'll be safe. Some files may already be in the attics, have you checked? Anything that was deleted before you created the Trash share won't show up there, so you'll need to ask them there. There's a link at the bottom of the Amahi wiki that links to a blog article I wrote about how to manually browse the attics.

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Re: Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 9:03 am

If the deletes are still pending tasks it's possible they'll be 'deleted', but all delete means in this case is that they'll be moved to the attic, so they'll be safe. Some files may already be in the attics, have you checked? Anything that was deleted before you created the Trash share won't show up there, so you'll need to ask them there. There's a link at the bottom of the Amahi wiki that links to a blog article I wrote about how to manually browse the attics.
I did empty the attic yesterday, i did not think it was possible to access them after reading about the Greyhole Trash yesterday.

There are things appearing in the Greyhole trash now. :D Everything went better than expected! Thank you for helping.

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Re: Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 10:29 am

. There's a link at the bottom of the Amahi wiki that links to a blog article I wrote about how to manually browse the attics.
I cannot find this.

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Greyhole Trash, did i do it right?

Postby lrevxl » Sat Jul 23, 2011 10:41 am

http://revxatlarge.blogspot.com/2011/04 ... e-and.html

I should have been more specific, it was at the bottom of the Greyhole section of the Amahi wiki. Above is the URL for the article.

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Re: Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 11:06 am

Thanks, good post, very informative.

However i did not find out if the behavior is different with Greyhole Trash and Attic. Before, when i emptyed the attic to free space it was instant. When i delete files from the share Greyhole Trash, that makes no difference on the Attic size when i run stats on the console.

Is it my ongoing fsck that prevents this from showing the right way, or does this work antother way?

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Greyhole Trash, did i do it right?

Postby lrevxl » Sat Jul 23, 2011 11:11 am

Since you're deleting through a samba share, those deletes must be processed through spool files. So, yes, the ongoing fsck blocks that. If you run the empty attic command from Greyhole directly it should be immediate as it will simply remove all files in the attic rather than process spool files. (I'd have to double check that, but I'm fairly certain.)

Vertigo500
Posts: 54
Joined: Tue Mar 22, 2011 7:09 am

Re: Greyhole Trash, did i do it right?

Postby Vertigo500 » Sat Jul 23, 2011 12:25 pm

Ok, good enough. Thanks again for all the help.

Who is online

Users browsing this forum: No registered users and 19 guests