I just found out about the greyhole attic, and how to clear it via command line, and I also found out you can apparently add a share with a special name like "Greyhole Recycle Bin" or "Greyhole Trash", select 'Uses Pool' and then any files deleted from other shares should be visible in the trash share, allowing a nice way of inspecting and managing deleted files. Problem is, I tried created such a special share in Amahi control panel, but when I delete files from other shares, they don't appear in the trash share. I tried both names above. Am I missing something? Do I need to add extra parameters to the share (e.g. vf recycle)?
Greyhole + Amahi rocks!!!
Greyhole Recycle Bin
Re: Greyhole Recycle Bin
That should do it. Did you manually type the share name of do a copy and paste? Best to manually enter it in and do not change the path.
I have been using it for quite some time with no issues.
I have been using it for quite some time with no issues.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole Recycle Bin
Share | Location
Greyhole Recycle Bin | \\hda\Greyhole Recycle Bin
Greyhole Trash | \\hda\Greyhole Trash
Above is a copy and paste from Amahi control panel shares page. I copied and pasted the share name from http://code.google.com/p/greyhole/wiki/DocAttic, but I've checked this manually and it's character-for-character. I assume I should see folders for each share under \\hda Greyhole Trash\ (one for each other share I have, like 'Music', 'Videos' etc.) since I believe this greyhole trash share exposes the attics of all drives in the drive pool, but I see nothing in there. Weird.
Had a look in the samba log files and couldn't see any mention of 'trash', 'recycle' or 'bin', but I'm not sure that's the right place to look to diagnose this.
Greyhole Recycle Bin | \\hda\Greyhole Recycle Bin
Greyhole Trash | \\hda\Greyhole Trash
Above is a copy and paste from Amahi control panel shares page. I copied and pasted the share name from http://code.google.com/p/greyhole/wiki/DocAttic, but I've checked this manually and it's character-for-character. I assume I should see folders for each share under \\hda Greyhole Trash\ (one for each other share I have, like 'Music', 'Videos' etc.) since I believe this greyhole trash share exposes the attics of all drives in the drive pool, but I see nothing in there. Weird.

Re: Greyhole Recycle Bin
That is correct. The reason I mentioned manually typing it is because some times there are hidden characters and spaces that get copied.
I created a new share called "Greyhole Trash" and then after running, I started seeing the shares which Greyhole manages appear.
You might consider removing the share and deleting the /var/hda/files/filename associated with that share. Then create a new share and restart Samba. Then when you run the Greyhole fsck it should start putting deleted files in that folder. Keep in mind it will only keep it for shares that Greyhole manages.
I created a new share called "Greyhole Trash" and then after running
Code: Select all
greyhole -f
You might consider removing the share and deleting the /var/hda/files/filename associated with that share. Then create a new share and restart Samba. Then when you run the Greyhole fsck it should start putting deleted files in that folder. Keep in mind it will only keep it for shares that Greyhole manages.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole Recycle Bin
Ok, I deleted the share from Amahi, but there was no corresponding folder under /var/hda/files/ to delete. I guess Amahi deletes that automatically when you delete a share. Then I restarted samba, created a new share called 'Greyhole Trash', then restarted samba again. Then ran greyhole -f and I saw that it scheduled a fsck in the greyhole log. I didn't see it print any log entry to say that it completed the fsck, but it's back working away on tombstones and stuff
Greyhole never seems to be idle for me, always busy moving stuff around. Anyway, the Trash share still doesn't show anything when I delete files via the other shares (that are using the pool), but I did notice a hidden folder created under each share called .Trash-500, and a corresponding hidden RAR file (1kb - weird) called .Trash-500.rar. What is this? Under .Trash-500 there's 3 folders 'expunged', 'files' and 'info', but all are empty on the share I just did a test delete. However I noticed for other shares, the deleted files ARE being shown under 'files' in their .Trash-500 folder. So it might be that greyhole is busy and hasn't gotten around to moving the file to the trash folder yet?

Re: Greyhole Recycle Bin
I may be mistaken, but I don't believe files are put in the Greyhole Trash unless you set the copies for the share to be at least 1. I could be wrong though as I never use storage pooling without the extra copies option. Greyhole should not always be busy unless you have a lot of files to be moved.
In my opinion, you get the most from Greyhole by using the max copies option. That way if a drive goes bad, there are always extra copies of your files.
The hidden files you see are probably for using the Samba Recycle Bin option as outlined in the wiki.
http://wiki.amahi.org/index.php/Share_Extra_Parameters
In my opinion, you get the most from Greyhole by using the max copies option. That way if a drive goes bad, there are always extra copies of your files.
The hidden files you see are probably for using the Samba Recycle Bin option as outlined in the wiki.
http://wiki.amahi.org/index.php/Share_Extra_Parameters
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: Greyhole Recycle Bin
I really appreciate your help bigfoot65
Some of my shares (e.g. Videos) is too big to have multiple copies, but other shares (e.g. Photos) do have 'extra copies' set to 1. When I delete from either type of share, still nothing in trash. But I have a bigger issue now, my 2Tb landing zone drive has just died (WD-EARS, typical), so I'm currently in the process of moving all data off it onto a new drive. My plan is to copy the contents of /var/hda/files (this is the mount point for the failing drive) to a spare drive. There are 500,000+ files equating to ~190Gb and is gonna take about 9 hours to do. After that, I will edit fstab to comment out the landing zone drive (mounted at /var/hda/files) and instead mount the folder I moved the files by adding this line to the end:
/new/drive/new/landing/zone /var/hda/files auto bind,gid=46,defaults 0 0
as per http://hamrotechtips.blogspot.com.au/20 ... older.html
Then reboot, and hopefully everything still works and I can pull out the busted disk. I hope that's the right thing to do...
So I have to sort my disks out first and then I'll look at the recycle bin issue again after that. Maybe it's even caused by the failing disk!
Thanks again.

/new/drive/new/landing/zone /var/hda/files auto bind,gid=46,defaults 0 0
as per http://hamrotechtips.blogspot.com.au/20 ... older.html
Then reboot, and hopefully everything still works and I can pull out the busted disk. I hope that's the right thing to do...
So I have to sort my disks out first and then I'll look at the recycle bin issue again after that. Maybe it's even caused by the failing disk!
Thanks again.
Who is online
Users browsing this forum: No registered users and 22 guests