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?
Greyhole Trash, did i do it right?
Re: Greyhole Trash, did i do it right?
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.
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.
-
- Posts: 54
- Joined: Tue Mar 22, 2011 7:09 am
Re: Greyhole Trash, did i do it right?
I had a restart, does that count?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.
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.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.
Re: Greyhole Trash, did i do it right?
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.
-
- Posts: 54
- Joined: Tue Mar 22, 2011 7:09 am
Re: Greyhole Trash, did i do it right?
I did empty the attic yesterday, i did not think it was possible to access them after reading about the Greyhole Trash yesterday.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.
There are things appearing in the Greyhole trash now.

-
- Posts: 54
- Joined: Tue Mar 22, 2011 7:09 am
Re: Greyhole Trash, did i do it right?
I cannot find this.. 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.
Re: Greyhole Trash, did i do it right?
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.
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.
-
- Posts: 54
- Joined: Tue Mar 22, 2011 7:09 am
Re: Greyhole Trash, did i do it right?
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?
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?
Re: Greyhole Trash, did i do it right?
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.)
-
- Posts: 54
- Joined: Tue Mar 22, 2011 7:09 am
Re: Greyhole Trash, did i do it right?
Ok, good enough. Thanks again for all the help.
Who is online
Users browsing this forum: No registered users and 19 guests