Help with auto mounting raid and Amahi share service

digitaldissent
Posts: 9
Joined: Sat Dec 26, 2009 9:52 pm

Help with auto mounting raid and Amahi share service

Postby digitaldissent » Sat Jan 02, 2010 6:17 pm

Ok, let me try and explain. New install of F12 on a 80GB drive and two 500GB drives setup as Raid 1 using the software utility in Fedora (not LVM)

I am another one of those Windows guys who knows very little about nix.

I created all my shares under the Amahi dashboard which then auto created all the folders on my raid array, I called it "500GB". I edited the conf file for ushare to point to the new shares. Everything worked great until I rebooted.

I have to start the array and mount "500GB" manually after I log in to the server, no biggie but....
The share service Amahi uses starts at boot and auto creates all the shares so when I start the array it mounts as "500GB_". I have all the correct shared folders under "500GB" but all my data is under "500GB_" make sense?

Is there a way to set my array to start and mount at boot before the Amahi service starts and auto creates the shares? or maybe set the Amahi service to not start at boot? I could then start the raid then start Amahi manually?

And by Amahi service I mean Samba or whatever else is providing that service and creating shares on the fly.

If you Linux guys know a better way to do this I would love to hear, I do however want to make this work on my existing hardware, I know a new board with on-board raid would be better.

Thanks!! :?

User avatar
lou1z
Posts: 206
Joined: Fri Jul 17, 2009 1:58 am

Re: Help with auto mounting raid and Amahi share service

Postby lou1z » Sun Jan 03, 2010 9:18 am

is your raid in the /etc/fstab?
i don't use software raid so i'm not that familiar with it but when disks don't automount, it's usually a sign that the entry point isn't mounted in fstab eg /dev/sdb1 /var/hda/files/share

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Help with auto mounting raid and Amahi share service

Postby moredruid » Sun Jan 03, 2010 11:44 am

the exact syntax eludes me ATM, but you need to give an mdadm command which will write your config to /etc/mdadm.conf, which makes it possible to have them loaded at boot time.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

robnix
Posts: 12
Joined: Wed Nov 04, 2009 3:39 pm

Re: Help with auto mounting raid and Amahi share service

Postby robnix » Wed May 05, 2010 7:13 am

You'll most likely run into issues with seeing the RAID volume in Linux using cheap on board raid controllers, since it's all done with a driver at the OS level anyway. If you want to use RAID, use Linux software RAID, it's a lot more flexible and resilient than the cheap on board raid you'll see on most motherboards. Linux RAID is portable across systems because the RAID config isn't tied to the hardware, you'll most likely get better performance letting the CPU handle the i/o than a cheap raid controller, and you can use LVM to make the array expandable. Here's a good guide on getting it setup:

http://www.gagme.com/greg/linux/raid-lvm.php

You may want to take a look at Amahi's storage pooling though, it'll give you more flexibility, letting you mirror only the data you want instead of the entire drive, plus you can add more storage to your pool much more easily.

hfxrzw
Posts: 40
Joined: Sun Dec 27, 2009 8:03 am
Location: Scotland

Re: Help with auto mounting raid and Amahi share service

Postby hfxrzw » Sun Jul 18, 2010 1:09 am

Robnix, did you actually read the first post? Particularly the first line?? :roll:

Who is online

Users browsing this forum: No registered users and 2 guests