Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Dave on August 06, 2003, 08:35:13 AM
-
OK, i've searched the forum and used a lot of the information available to successfully add a second drive. I've also mounted the drive as one of my iBays. However, I have a little problem with the way the ibay is being enumerated.
Here's what I did:
I created an iBay named 'video'. I then mounted the second hard drive as that ibay: /home/e-smith/files/ibays/video
The fstab looks like this:
LABEL=/1 / ext3 usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda2 swap swap defaults 0 0
/dev/sdb1 /home/e-smith/files/ibays/video ext3 defaults 1 2
df -h results in this:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 33G 5.9G 25G 19% /
/dev/sda1 97M 14M 78M 15% /boot
none 125M 0 124M 0% /dev/shm
/dev/sdb1 67G 29G 34G 46% /home/e-smith/files/ibays/video
Now, after connecting to the ibay from a windows machine I noticed that there had been a change to the directory structure by the server. When accessing the ibay I was presented with a folder named ibay which contained the usual three folders of html, cgi-bin and files. So, I have a tree of /home/e-smith/files/ibays/video/ibay/
This is not so good. What I want to do is be able to connect to the ibay and be directly in the main files folder. Now, I know I can specify the subfolder when I map the ibay from a windows machine but this results in a default share name of 'files on server\video\ibay'. I know you can rename the share but on every reboot that custom name is lost.
Obviously, this is linked to the way the second drive has been mounted to the ibay. What I really wanted to do was to have a folder in / on sdb1 named video and mount that folder as the video ibay folder on sda3 as I'd like to have another ibay on sdb1 in addition to video. However, I can't find a way to mount a folder to a folder. Not sure if symlinking is a suitable solution here.
Can anyone help me out here? I don't want to mount the whole ibay tree onto the second drive as I have 33GB of space on the primary drive which can service some ibays. I just want to split the location of the ibays across several drives and for it to appear to be seamless when accessing from a Windows box.
-
Interesting.....
I just moved the three folders (files, cgi-bin and html) up into the video directory and the ibay still worked fine. I then checked settings on the ibay itself and disabled ftp and web access.
et voila!
Now, when mapping to the ibay one is dropped directly into the files directory and the default share name is - video on 'server' -.
Happy with that.
Still, any assistance in being able to have two separate ibays on the second drive would be appreciated.
-
I cheated and created 2 partitions (1 for each Ibay) and mounted them seperately. I'm sure there is an easier/smarter way, but it worked without having to think too much.....
Trevor B
Dave wrote:
>
> Interesting.....
>
> I just moved the three folders (files, cgi-bin and html) up
> into the video directory and the ibay still worked fine. I
> then checked settings on the ibay itself and disabled ftp and
> web access.
>
> et voila!
>
> Now, when mapping to the ibay one is dropped directly into
> the files directory and the default share name is - video on
> 'server' -.
>
> Happy with that.
>
> Still, any assistance in being able to have two separate
> ibays on the second drive would be appreciated.
-
TrevorB wrote:
>
> I cheated and created 2 partitions (1 for each Ibay) and
> mounted them seperately. I'm sure there is an easier/smarter
> way, but it worked without having to think too much.....
I was thinking of doing that but it places a hard limit on the size of each ibay. I want to be able to alter the total available space for ibay files simply by rationalising the contents of an ibay. For example, delete some video and immediately there's more room for files in, say, an mp3 ibay on the same drive. That's the sort of flexibility I was hoping for.
Still, things are working well and the old adage is that 'if it isn't broken, don't fit it'. So, I think I'll leave it the way it is and keep an eye out for another large SCSI drive (I only have three drive bays - it's a 1U). A nice 146GB would work well.......
-
Dear, oh dear.
''if it isn't broken, don't FIX it'
Damn typos.