Two failing drives -Help!

spline
Posts: 35
Joined: Wed Jan 05, 2011 3:56 am

Re: Two failing drives -Help!

Postby spline » Mon May 14, 2012 10:06 pm

Hi, me again,

i just want to show another way how to replace drives. I've done something similar during the last day because i stopped using Amahi and switched to Ubuntu.
If you know how to mount and unmout drives, don't mind to edit the greyhole configuration file and fstab manually and work carefully, this is an easy way.

First make sure to get your failing drives (call the F1 and F2) out of the storage pool to avoid greyhole (GH) will write more data to them.
Stop GH.
Edit the GH conf file to get them out.
Unmount the drives, comment out the lines in fstab (dont delete the lines, you will need them later on)
power down your computer
plug in the new drives (N1 and N2), boot up, make some partitions on them, format them.
Mount N1 and N2 to the same place as F1 and F2 where before (have a look into the fstab)
Run blkid to get the UUIDs of the new drives.
Tell GH to use them
Now they are in the storage pool but still empty.

Run a greyhole -f manually
This will clean up the landing zone and will also delete the links to files which where stored only on one of the failing drives. You will not see the files in your share anymore, but they are still there (but not maintained by GH but on the failing drives)

Now, mount the old drives (F1 and F2) to a place of your choice (e.g. /tmp/F1 and /tmp/F2)

Now you have to know where your landing zone is.

Move the files from F1 and F2 into your landing zone. mv /tmp/F1/* /var/hda/files
It's best, if you don't move them at once but step by step to avoid your landing zone to run full.

Be advised: You don't use SAMBA to copy the files. So GH doesn't recognize, that there are new files to distribute over the pool. So run a greyhole -f from time to time to give GH a chance to spread the files over the disks and empty your landing zone.

That's it.
Unmount F1 and F2 make sure N1 and N2 are permanently mounted in the fstab and recycle your old drives.


Juergen

Who is online

Users browsing this forum: No registered users and 23 guests