Is there a way of forcing Greyhole to clear Landing Zone

PatrickDickey
Posts: 75
Joined: Thu Jan 19, 2012 6:52 am

Is there a way of forcing Greyhole to clear Landing Zone

Postby PatrickDickey » Fri Aug 02, 2013 3:30 am

Hi everyone,

I have my Amahi Server set up so that my landing zone is on the same drive as / and my LVM (it's an older Fedora 14 installation). What I want to know is, whether I can force greyhole to empty the landing zone altogether, as I want to do a reinstallation, and I don't want to lose any files in there. Here are my overall stats on the server:

Free space: 2.3 TB
Used space: 2.6 TB
Total space: 4.9 TB

I have two 2TB drives, along with various other drives in the server, and nothing is overly full (plenty of free space on everything). So, what I'm wanting to do is clean out /var/hda/files.

I realize that I can manually move the files, but I also know that it's not the preferable way to do it (in other words, it might cause issues with Greyhole).

One final thing (the editing that I'm doing). I noticed in the Shares tab, that I could (in theory) remove /var/hda/files from my storage pool. I know that greyhole will move everything off of the drive at that point, but what are the other effects of doing so? ****IF I choose to go this route, it will basically involve this series of steps: Remove /var/hda/files --> When Greyhole is done moving everything, shut the computer down --> Disconnect all of the drives, so that I don't lose data --> Install Amahi (newest version) --> Shut down (after configuring the server) and reconnect all drives --> Add them back into the storage pool.

Will that method work, or will I risk losing all of my data?

Thanks, and have a great day.:)
Patrick.

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

Re: Is there a way of forcing Greyhole to clear Landing Zone

Postby bigfoot65 » Fri Aug 02, 2013 5:27 am

You should be able to set all shares to 1 or more copies, then from the command line as root user do:

Code: Select all

greyhole -f
That should force it into action.

On a side note, I would recommend not including /var/hda/files in the storage pool. By doing so, you have 2 copies (symlink and a copy) of files which is redundant. It does not hurt anything, but remember that it is also the landing zone so space could become an issue.

It's best to only include drives which are for Greyhole only in the pool in my opinion.
ßîgƒσστ65
Applications Manager

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

PatrickDickey
Posts: 75
Joined: Thu Jan 19, 2012 6:52 am

Re: Is there a way of forcing Greyhole to clear Landing Zone

Postby PatrickDickey » Sun Aug 04, 2013 8:44 pm

You should be able to set all shares to 1 or more copies, then from the command line as root user do:

Code: Select all

greyhole -f
That should force it into action.

On a side note, I would recommend not including /var/hda/files in the storage pool. By doing so, you have 2 copies (symlink and a copy) of files which is redundant. It does not hurt anything, but remember that it is also the landing zone so space could become an issue.

It's best to only include drives which are for Greyhole only in the pool in my opinion.
So, I should be able to simply remove the landing zone (/var/hda/files) from the pool, and it should move everything off then. Right? I'm guessing this, because it moves everything off of the partition before it removes the partition from the pool (at least that's what I would *hope* happens).

Have a great day.:)
Patrick.

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

Re: Is there a way of forcing Greyhole to clear Landing Zone

Postby bigfoot65 » Mon Aug 05, 2013 5:14 am

I don't believe it will remove the /gh folder automatically. You will need to do that manually. Best that it does not as it preserves data in case of acidentally removing drive from pool or a file that might be located there and no where else.

I could be wrong as I have not had to remove a partition from the pool except when replacing a drive. Please do let us know how it works and we can add something to the wiki.
ßî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 30 guests