I have greyhole running. I want to replace one of my hard drives for a bigger capacity one. The hd does not contain the os. H The hd is indexed in fstab as indicated in the wiki.
e.g.
UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2
I need to know how I go about that. Especially, if the hd has greyhole stuff on it what am i supposed to do? How do i tell in fstab which entry/uuid is which drive?
Replace a hard drive in a greyhole pool
Re: Replace a hard drive in a greyhole pool
1. first add the new drive to the system:
https://wiki.amahi.org/index.php/Adding ... o_your_HDA
2. then tell greyhole you want to remove the old drive with the --going attribute:
Greyhole will now remove the data from the old drive and copy it over to the pool (this also includes the new drive you have added)
3. You can now remove the old drive's reference from /etc/fstab, remove the drive from the system, and tell greyhole it is gone:
edit: There's no wiki entry about this? .... I couldn't find one.
https://wiki.amahi.org/index.php/Adding ... o_your_HDA
2. then tell greyhole you want to remove the old drive with the --going attribute:
Code: Select all
greyhole --going=/var/hda/files/drives/drive1/gh
or dependending on your setup:
greyhole --going=/var/hda/drives/drive1/gh
(replace drive1 with the drive you want to remove)
3. You can now remove the old drive's reference from /etc/fstab, remove the drive from the system, and tell greyhole it is gone:
Code: Select all
greyhole --gone=/var/hda/drives/drive1/gh
edit: There's no wiki entry about this? .... I couldn't find one.

Re: Replace a hard drive in a greyhole pool
Thanks! The only problem is I cannot add a drive until I remove one... What should I do in this case?
Re: Replace a hard drive in a greyhole pool
Well, if you have data on the old disk you need to backup it don't you?
Or you can also
1. remove the old drive (as above) and tell greyhole it is gone (with --gone as above)
2. add the new drive to the system and to greyhole
3. do a "greyhole -f" to force a filesystem check to fix the links after the old drive was removed
4. put the old drive into another PC and copy the files over to the pool
or if you don't have another PC you can also:
1. as above
2. as above
3. as above
4. disconnect one of the drives other than the new one and connect the old one you are removing onto that port
5. boot with a live CD, and copy the data from the old drive to the new one (in a temporary directory)
6. then remove the old drive, reconnect the other drive
7. boot the amahi system and then copy/move the data from the temp directory of the new drive into the pool (for this you need to mount the shares locally (as per the amahi wiki).
Or you can also
1. remove the old drive (as above) and tell greyhole it is gone (with --gone as above)
2. add the new drive to the system and to greyhole
3. do a "greyhole -f" to force a filesystem check to fix the links after the old drive was removed
4. put the old drive into another PC and copy the files over to the pool
or if you don't have another PC you can also:
1. as above
2. as above
3. as above
4. disconnect one of the drives other than the new one and connect the old one you are removing onto that port
5. boot with a live CD, and copy the data from the old drive to the new one (in a temporary directory)
6. then remove the old drive, reconnect the other drive
7. boot the amahi system and then copy/move the data from the temp directory of the new drive into the pool (for this you need to mount the shares locally (as per the amahi wiki).
Re: Replace a hard drive in a greyhole pool
I like your second suggestion, thanks. I wonder though since the drive I'm replacing was a Greyhole-d drive (and the new one too I plan to add it to the pool), you think I can just back it up and restore it's content?
Is this equivalent to the scenario Greyhole was designed for in which a hd fails?
Is this equivalent to the scenario Greyhole was designed for in which a hd fails?
Re: Replace a hard drive in a greyhole pool
Yeah, I guess you could do this:
1. a full disk copy with clonezilla (http://clonezilla.org/) (this will copy the full partitions from the old drive to the new one).
2. then use gparted to resize the partition to use the full size of the new disk.
3. then edit fstab with the id of the new drive (keep the same mount path).
-> reboot, and everything should work fine, without touching the files.
I never did this, but I don't see why it wouldn't work
edit: and 4. don't forget a "greyhole -f" to force a check after you are done to make sure everything is fine.
1. a full disk copy with clonezilla (http://clonezilla.org/) (this will copy the full partitions from the old drive to the new one).
2. then use gparted to resize the partition to use the full size of the new disk.
3. then edit fstab with the id of the new drive (keep the same mount path).
-> reboot, and everything should work fine, without touching the files.
I never did this, but I don't see why it wouldn't work

edit: and 4. don't forget a "greyhole -f" to force a check after you are done to make sure everything is fine.
Who is online
Users browsing this forum: No registered users and 50 guests