Greyhole is filling my Harddrives

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Greyhole is filling my Harddrives

Postby sleife » Wed Aug 22, 2012 2:06 am

Hello everybody

I reinstall my Amahi with Ubuntu 12.04 before it was Fedora.
Then I mount my 4 Harddrive a 2 TB in fstab. Now i configure my Storage Pool (See Bild.png)

Then i do this: http://wiki.amahi.org/index.php/Reconne ... orage_pool

And now Greyhole is filling my hole drives.. why is this? Bevor it was 35% free and now 5% .. ? Whats happend when the drive is full?
Attachments
Bild.png
Bild.png (32.38 KiB) Viewed 4710 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole is filling my Harddrives

Postby bigfoot65 » Wed Aug 22, 2012 4:50 am

Greyhole has a recycle bin that needs to be purged occasionally. I am unsure if there is an auto purge.

Open a terminal window do:

Code: Select all

sudo greyhole -a
That will free up space, a lot depending on how many files you have been moving.
When you reconnect drives, the initial action for Greyhole is to rebuild your shares as they were previously. That may be why it's moving things around.

Chances are if you did not configure copies for your shares, it's deleting all the copies. I would be cautious about emptying the Greyhole trash until you are sure all your files are back in the shares.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Greyhole is filling my Harddrives

Postby sleife » Wed Aug 22, 2012 5:31 am

Ok i did this:

Code: Select all

sudo greyhole -a
there was about 30mb :) not really much.

Hmm i still waiting now whats happend, all my drives are full now :D And when i look in:

Code: Select all

tail -f /var/log/greyhole.log
there are a lot of activities at the moment. But im a little bit confused, when i open the Share Share then i looks like this at the moment:


But probably i have to wait right?
Attachments
asdf.png
asdf.png (44.36 KiB) Viewed 4701 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole is filling my Harddrives

Postby bigfoot65 » Wed Aug 22, 2012 6:24 am

It looks like you have the shares drive in the storage pool. Is that correct? You don't to add it to the pool, only the drives you intend to keep copies on.

Seems like you don't have something properly configured.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Greyhole is filling my Harddrives

Postby sleife » Wed Aug 22, 2012 7:56 am

hmm i don't understand.

what i have done.
1. My 4 HDDs are full with data.
2. Then i reinstall my AMAHI with ubuntu.
3. I reconfigure the HDDs in the fstab

Code: Select all

UUID=bad219aa-76f7-498d-83e2-7b9596528cdb /var/hda/files/drives/drive1 ext4 defaults 1 2 UUID=dab3fcb8-d4cf-4a00-8048-7c59ddea0381 /var/hda/files/drives/drive2 ext4 defaults 1 2 UUID=730db972-5b65-4f95-bc82-7ef282139307 /var/hda/files/drives/drive3 ext4 defaults 1 2 UUID=8c2da133-622a-4e47-a7a3-f4e4877a6531 /var/hda/files/drives/drive4 ext4 defaults 1 2
4. then i add this Harddrives to the Pool (ba.png)
5. then i do this: http://wiki.amahi.org/index.php/Reconne ... orage_pool

6. and now i dont understand whats happend :) Greyhole is duplicate everything and when I open my Shares then i see always this 3 kind of Folder
Image
7. I only want my files back.
Attachments
ba.png
ba.png (37.69 KiB) Viewed 4696 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole is filling my Harddrives

Postby bigfoot65 » Wed Aug 22, 2012 10:16 am

I understand your concern for the data. I thought it odd that there was a gh folder showing in your shares. That is not normal.

Have you checked each Share to see if it is added to the storage pool?

Your data should still be there, just trying to put it in the right place. You also needed to create any shares not present that you had before on the previous install. That will ensure Greyhole syncs with them correctly.

I presume you are looking at the shares on /var/hda/files and not each individual drive. We will get this sorted out, just may need to some more details. Check the Greyhole log for activity as well. It's located in /var/log directory.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Greyhole is filling my Harddrives

Postby sleife » Wed Aug 22, 2012 12:47 pm

bigfoot firstfuly i would say thank you very very much for your help! It isn't usual that someone try to help so carfully.

Ok look here are my share. They had the absolut same Name like before:
Picture 1 - 4

The different is, that under Location isn't the same like before, so when i click on the Samba Share "appz" then i see this one:
Picture "appz.png"

Image
http://www.bilder-upload.eu/show.php?fi ... 664683.png


And here's an extract from the Greyhole.log

Code: Select all

Aug 22 21:37:29 7 write: Saving metadata in /var/hda/files/drives/drive4/gh/.gh_metastore/Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/ANS.lnk Aug 22 21:37:29 7 write: Saving backup metadata file in /var/hda/files/drives/drive3/gh/.gh_metastore_backup/Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/ANS.lnk Aug 22 21:37:29 6 write: Now working on task ID 272177: write Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk Aug 22 21:37:29 6 write: File created: Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk - 926B Aug 22 21:37:29 7 write: Loading metafiles for Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk ... Aug 22 21:37:29 7 write: Got 0 metadata files: array ( ) Aug 22 21:37:29 7 write: 0 metafiles loaded. Aug 22 21:37:29 7 write: Drives with available space: /var/hda/files/drives/drive4/gh (72.6GB avail) - /var/hda/files/drives/drive1/gh (67.8GB avail) - /var/hda/files/drives/drive2/gh (4.82GB avail) Aug 22 21:37:29 7 write: Drives full: /var/hda/files/drives/drive3/gh (0.00B free) Aug 22 21:37:29 7 write: Saving 1 metadata files for Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk Aug 22 21:37:29 7 write: Saving metadata in /var/hda/files/drives/drive4/gh/.gh_metastore/Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk Aug 22 21:37:29 7 write: Saving backup metadata file in /var/hda/files/drives/drive3/gh/.gh_metastore_backup/Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk Aug 22 21:37:29 7 write: Copying 926B file to /var/hda/files/drives/drive4/gh/Filme/gh/Musik/gh/.gh_trash/Filme/FullHD/$RECYCLE.BIN/S-1-5-21-1004336348-630328440-682003330-74132/$R6IQAQB.Andrea/Recent/Lieferantenanforderungen.lnk
Attachments
3.png
3.png (24.04 KiB) Viewed 4685 times
2.png
2.png (23.72 KiB) Viewed 4685 times
1.png
1.png (26.2 KiB) Viewed 4685 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole is filling my Harddrives

Postby bigfoot65 » Wed Aug 22, 2012 2:28 pm

No problem, happy to try and assist.

One problem I see is you have your shares spread out among different drives. Not necessary and kinda defeats the purpose of Greyhole in my opinion. Not sure if that is what might be causing issues, but sure seems like an odd setup.

Shares are typically created on /var/hda/files, i.e. /var/hda/files/docs is for Docs share. Now you can put them anywhere you choose, but I would recommend sticking with the default. If you task Greyhole to keep max copies, it will put one on each drive. You can also limit it to one, then the files will be spread amongst all drives randomly.

The other thing I see is you point to /var/hda/files/drives/drive1 for a Appz, but the share name is not included in the path. It should reflect /var/hda/files/drives/drive1/Appz if that is the name of the share. I would not recommend you make each drive a share as you have done.

No reason to make it so complicated. I would keep it simple and put all shares in /var/hda/files and then tell Greyhole to keep 1 or multiple copies. That is more efficient and protects your data more efficiently. Right now if a drive goes bad, you lose everything on it. That is not good.

Does this all make sense? You can set things up any way you choose, but I would not recommend your current scheme. Stick with the basics and let Greyhole protect your data.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Greyhole is filling my Harddrives

Postby sleife » Wed Aug 22, 2012 2:32 pm

How can i stop greyhole?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole is filling my Harddrives

Postby bigfoot65 » Wed Aug 22, 2012 2:34 pm

Do

Code: Select all

sudo service greyhole restart
. This is also possible via the Dashboard in Settings, Servers option.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 31 guests