Page 1 of 1

Migrate from Ubuntu to Amahi

Posted: Thu May 19, 2011 10:03 pm
by geekraver
Hi all

I have a server set up with 5 disks running Ubuntu. I have greyhole set up with data replicated across my disks (about 3TB replicated across about 7TB of storage).

I have had a lot of problems with getting Samba permissions to work the way I want them with Ubuntu, and so am thinking about installing Amahi; I have used Amahi before and it worked pretty well; I'm just not a Fedora fan.

Ideally I would like to be able to do the install in such a way that I can use my already stable greyhole storage pool.

Here is my current situation:

/dev/sda1 is /
/dev/sda5 is swap
/dev/sda3 is mounted as /media/disk1
/dev/sdb1 is mounted as /media/disk2
/dev/sdc1 is mounted as /media/disk3
/dev/sdd1 is mounted as /media/disk4
/dev/sde1 is mounted as /media/disk5

The /media/disk* partitions are my storage pool.

Greyhole.conf has:

db_engine = mysql
db_host = localhost
db_user = greyhole_user
db_pass = 89y63jdwe
db_name = greyhole
storage_pool_directory = /media/disk1/gh, min_free: 10gb
etc

Each of my various samba shares are of the form:

[svn]
path = /media/disk2/lz/svn
browseable = yes
writable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
write list = gram
valid users = gram
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole

Does it seem feasible that I could install Amahi on the root partition and keep everything else intact without losing anything or having to rebuild all the tombstones?

Re: Migrate from Ubuntu to Amahi

Posted: Sat May 21, 2011 7:30 pm
by sabat
Should work just fine. You must remember to use teh same share names and capitalization. Other than that, should be fine. Sounds like you know enough about greyhole to figure out the rest.
One potential problem I can forsee is the caps on the gh folders on the individual drives, but that should be easy to rename the folders on the drives if so, keep that in mind.
I really see no problems other than that.

Re: Migrate from Ubuntu to Amahi

Posted: Sun May 22, 2011 3:06 pm
by geekraver
Thanks for the reply. In the end (before your reply) I decided to just do a clean install and migrate via copying. I think it may have been okay to do what I wanted but I thought that there was some risk and that a few days of file copying/replicating wasn't that big a deal in the end.