Difference between revisions of "Greyhole moving data out of the pool"
From Amahi Wiki
Line 1: | Line 1: | ||
This page describes how to remove a drive from [[Greyhole]] and transfer the share files to another drive. | This page describes how to remove a drive from [[Greyhole]] and transfer the share files to another drive. | ||
− | You will need to start by using the command below as root but replace the " # " with the number of the drive you are removing. {{Code|Code= greyhole --going=/var/hda/files/drives/drive#/gh}} | + | You will need to start by using the command below as root but replace the " # " with the number of the drive you are removing. {{Code|Code=greyhole --going=/var/hda/files/drives/drive#/gh}} |
* The command above will check if there are files on the drive you are removing that aren't on other drives, and if so, it will automatically transfer them to other drives. It will then remove that drive from the pool (in greyhiole.conf). | * The command above will check if there are files on the drive you are removing that aren't on other drives, and if so, it will automatically transfer them to other drives. It will then remove that drive from the pool (in greyhiole.conf). | ||
Line 9: | Line 9: | ||
* If you have files that are not in a share they will need to be manually moved to another drive. | * If you have files that are not in a share they will need to be manually moved to another drive. | ||
* The command line will show you the progress and when it is done you can remove the drive. | * The command line will show you the progress and when it is done you can remove the drive. | ||
− | * An example if you are going to be removing drive 1. {{Code|Code= greyhole --going=/var/hda/files/drives/drive1/gh}} | + | * An example if you are going to be removing drive 1. {{Code|Code=greyhole --going=/var/hda/files/drives/drive1/gh}} |
Revision as of 19:25, 18 August 2012
This page describes how to remove a drive from Greyhole and transfer the share files to another drive.
You will need to start by using the command below as root but replace the " # " with the number of the drive you are removing.
bash code |
---|
greyhole --going=/var/hda/files/drives/drive#/gh
|
- The command above will check if there are files on the drive you are removing that aren't on other drives, and if so, it will automatically transfer them to other drives. It will then remove that drive from the pool (in greyhiole.conf).
Then you will need to start a fsck by using the command below as root, to make sure there are enough file copies on the other drives.
bash code |
---|
greyhole --fsck
|
- The fsck command can re-create the landing zone, if needed, so you will not need to.
Tips
- If you have files that are not in a share they will need to be manually moved to another drive.
- The command line will show you the progress and when it is done you can remove the drive.
- An example if you are going to be removing drive 1.
bash code |
---|
greyhole --going=/var/hda/files/drives/drive1/gh
|