Koozali.org: home of the SME Server

extra hard drive, web i-bay, symlinks

Oluf

extra hard drive, web i-bay, symlinks
« on: August 28, 2003, 04:46:29 AM »
Hi,

I have a somewhat unusual question (I think). I've added a hard drive to my SME 5.5 Update X (think it's the latest, don't know how to check that over a putty connection). I've mounted it as /maxtor20 using /etc/fstab.

Now I have two directories on the drive web and music. I'm using the music directory for storing my own CDs ripped to MP3. I want to use the web directory as an extended web space.

I wasn't sure how to extend the web ibay, so I created a symlink from the ibay to the /maxtor20/web directory.

However something stops apache from serving up files via that symlink. Seems to be related to permissions, but I can't quite figure out where to start checking.

I've mounted /maxtor20 with uid=username and gid=shared. I'm not sure I have SGID on it, and I think that's what I need. Can someone help me in my obviously mis-guided attempt?

Much appreciate any tips,

Oluf

Kevin

Re: extra hard drive, web i-bay, symlinks
« Reply #1 on: August 28, 2003, 07:25:30 AM »
Try this.  A search of the forums would have turned it up anyway.
http://e-smith.org/bboard/read.php?f=1&i=31036&t=31036

Oluf

Re: extra hard drive, web i-bay, symlinks
« Reply #2 on: August 28, 2003, 10:17:51 AM »
Kevin,

Thanks for the pointer. I guess I could make that work. But as usual I forgot to mention several things in my original post. I've already formatted the drive as FAT32 and put data on it. I wanted to link this into an existing ibay structure without having to replace the whole ibays directory through mounting the new drive there.

Maybe I need to bite the bullet and copy all existing ibays to the new drive and then mount it like suggested.

Any alternatives?

-Oluf

Kevin Tollison

Re: extra hard drive, web i-bay, symlinks
« Reply #3 on: August 28, 2003, 06:06:27 PM »
You can do it, it will require more entries in  /etc/fstab.  Mainteance could turn into a nightmare if you point too many ibay to the second drive IMHO.

I have just started experimenting with this within the last week or so myself.  Feel free to email me and maybe we can share some pointers and or disasters.

There is also some infomation here that may be useful.
http://e-smith.org/bboard/read.php?f=3&i=35431&t=35431&v=f

Bill

Re: extra hard drive, web i-bay, symlinks
« Reply #4 on: August 29, 2003, 04:43:21 PM »
I have a similar setup with a pair of ide drives used for user backup space. I mounted the 2 drives in /mnt as usual and then set up directories in the ibay and did a mount --bind to link the two. Seems to be working well. The drives are fat32 just in case I need to mount them in a windows machine to retrieve the date they contain.