Page 1 of 1

How to remove a disk from pool and migrate data?

Posted: Thu Nov 18, 2010 8:13 am
by wiredfutureman
Hi all, after scouring the forms and wiki I am still not clear on how to remove a disk from a pool and migrate data on it to the other disks.

I've got an external USB drive (silly, I know) which I had added to my pool, that I now would like to remove. Therefore, all data on it needs to go somewhere.

What are the steps I need to take and in what order?

Thanks.

Re: How to remove a disk from pool and migrate data?

Posted: Thu Nov 18, 2010 8:35 am
by wiredfutureman
Answering my own question here:

1. Go to the Greyhole directory on the drive
eg. ls /var/hda/files/drives/drive1/gh/

2. Have a look what's in there and copy the files somewhere else (do NOT copy them to another drive in your pool! copy them somewhere completely different for the meantime!)

3. Untick the box next to the drive in the Amahi dashboard, to remove the drive from the pool
eg http://hda/setup?sub=disk_pooling&tab=share

4. Dismount the drive and do with it as you please, then copy the data you saved from your temporary place to a share of your choosing.

This is what I did and it worked :)

Re: How to remove a disk from pool and migrate data?

Posted: Sun Nov 28, 2010 7:38 am
by gboudreau
In a Terminal, as root:

Code: Select all

greyhole --going /var/hda/files/drives/drive1/gh/
Wait for that to finish, then de-select that drive from the Amahi dashboard (Setup > Shares > Storage Pool).

Re: How to remove a disk from pool and migrate data?

Posted: Mon Nov 29, 2010 5:14 am
by wiredfutureman
Would I have broken anything if I had not run that command first and copied stuff manually?

So far I'm not missing anything as in my case I just wanted to remove the external HDD and re-use it. The only file on it was a 100GB image of another computer, which I trashed (the image, not the comp) :)

Re: How to remove a disk from pool and migrate data?

Posted: Mon Nov 29, 2010 5:17 am
by gboudreau
Doing it manually is fine; it's just more work for you, and somewhat error-prone.