How to remove a disk from pool and migrate data?

User avatar
wiredfutureman
Posts: 11
Joined: Fri Jul 30, 2010 3:49 pm
Location: United Kingdom
Contact:

How to remove a disk from pool and migrate data?

Postby wiredfutureman » Thu Nov 18, 2010 8:13 am

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.
My Amahi system: Core2Duo E4500 2.20Ghz, Asus P5B-Plus, 2x Samsung 250GB (s-RAID1), 3x 1.5TB Samsung, 4x Samsung 1TB, H/W RAID0 2x 80GB to be added soon (Samba shares / Greyhole scratch disk)

Read about my experiences on my blog: (tag) amahi, greyhole

Axel Segebrecht - Freelance lighting cameraman, photographer and web designer

User avatar
wiredfutureman
Posts: 11
Joined: Fri Jul 30, 2010 3:49 pm
Location: United Kingdom
Contact:

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

Postby wiredfutureman » Thu Nov 18, 2010 8:35 am

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 :)
My Amahi system: Core2Duo E4500 2.20Ghz, Asus P5B-Plus, 2x Samsung 250GB (s-RAID1), 3x 1.5TB Samsung, 4x Samsung 1TB, H/W RAID0 2x 80GB to be added soon (Samba shares / Greyhole scratch disk)

Read about my experiences on my blog: (tag) amahi, greyhole

Axel Segebrecht - Freelance lighting cameraman, photographer and web designer

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Sun Nov 28, 2010 7:38 am

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).
- Guillaume Boudreau

User avatar
wiredfutureman
Posts: 11
Joined: Fri Jul 30, 2010 3:49 pm
Location: United Kingdom
Contact:

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

Postby wiredfutureman » Mon Nov 29, 2010 5:14 am

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) :)
My Amahi system: Core2Duo E4500 2.20Ghz, Asus P5B-Plus, 2x Samsung 250GB (s-RAID1), 3x 1.5TB Samsung, 4x Samsung 1TB, H/W RAID0 2x 80GB to be added soon (Samba shares / Greyhole scratch disk)

Read about my experiences on my blog: (tag) amahi, greyhole

Axel Segebrecht - Freelance lighting cameraman, photographer and web designer

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Mon Nov 29, 2010 5:17 am

Doing it manually is fine; it's just more work for you, and somewhat error-prone.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 12 guests