Greyhole: Increase disk space

You can find the installation document here:

Greyhole installation document
This time I want to write about the operations you might need to perform after a while

replace small disk

remove the disk

greyhole --stats
greyhole --going=/data/disks/disk1/gh
greyhole --stats
greyhole --logs
service samba stop
service greyhole stop

In case there was a landing zone on that disk

rsync -a /data/disks/disk01/landing /data/disks/disk02/
cd /data/greyhole-landing
unlink <share_that_have_been_one_the_disk_you_want_to_replace>
ln -s /data/disks/disk2/landing/share_name share_name

turn of the server, remove the disk and put in the new one

shutdown -h now

create the zpool

zpool export disk01
zpool create -o version=23 bay1 -m /data/disks/disk01 /dev/disk/by-id/ata-ST_foobar
mkdir /data/disks/disk01/gh

tell greyhole about the new volume vi /etc/greyhole.conf

 storage_pool_drive = /data/disks/bay1/gh, min_free: 10gb

Now it’s time for some cleanup tasks

greyhole --stats
greyhole --fsck
greyhole --logs
greyhole --balance
greyhole --logs
Tagged ,