Difference between revisions of "Greyhole moving data out of the pool"

From Amahi Wiki
Jump to: navigation, search
Line 6: Line 6:
  
 
You will need to start by [[Open_Terminal_as_root|opening terminal as root user]] and replace the " # " with the number of the drive you are removing.  
 
You will need to start by [[Open_Terminal_as_root|opening terminal as root user]] and replace the " # " with the number of the drive you are removing.  
{{Code|Code=greyhole --going=/var/hda/files/drives/drive<nowiki>#</nowiki>/gh}}
+
greyhole --going=/var/hda/files/drives/drive<nowiki>#</nowiki>/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 greyhole.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 greyhole.conf).
  
Line 12: Line 12:
 
* The fsck command can re-create the landing zone, if needed, so you will not need to.
 
* The fsck command can re-create the landing zone, if needed, so you will not need to.
 
* 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.
An example if you are going to be removing drive1. {{Code|Code=greyhole --going=/var/hda/files/drives/drive1/gh}}
+
An example if you are going to be removing drive1.  
 +
greyhole --going=/var/hda/files/drives/drive1/gh
  
  
 
=== See Also: [[Reconnect_existing_Greyhole_storage_pool]] ===
 
=== See Also: [[Reconnect_existing_Greyhole_storage_pool]] ===

Revision as of 18:24, 9 August 2014

This page describes how to remove a drive from Greyhole and transfer the share files to another drive.


NOTE: You can precede the commands with sudo in Ubuntu without becoming root.


You will need to start by opening terminal as root user and replace the " # " with the number of the drive you are removing.

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 greyhole.conf).

Then it will automatically start a fsck to make sure there are enough file copies on the other drives. If it doesn't use the command below as root.

bash code
​greyhole --fsck​
  • The fsck command can re-create the landing zone, if needed, so you will not need to.
  • If you have files that are not in a share they will need to be manually moved to another drive.

An example if you are going to be removing drive1.

greyhole --going=/var/hda/files/drives/drive1/gh


See Also: Reconnect_existing_Greyhole_storage_pool