Koozali.org: home of the SME Server

Second Disk

Donquick

Second Disk
« on: September 20, 2006, 05:20:02 PM »
Dear All,

No idea what i'm doing so please explain in simple steps.

I have setup SME Server 7 in its simplest possible state and it is working well as a file and print sharing server for 3 people.

I have added a second IDE drive to the server computer.  I simply want to use it for extra disk space for shared storage (say drive F: my shared area of the original drive being drive E:)

Can somebody tell me how to do it please.  I can go into the server-manager and i can now access the command prompt after reading several articles.  However, i cannot understand things like "add it in fstab to mount it in your ibay's folder" without more detailled explanation.

As an addendum to this question, how do i focus on a particulr disk in the command prompt (ie what is the linusx equiv. of c:\ )

Sorry for being stupid,  thanks,

Magnus

Offline jonic

  • *
  • 103
  • +1/-0
Second Disk
« Reply #1 on: September 20, 2006, 09:25:09 PM »
You should do some reading on linux first, if you want to use the shell. http://www.tldp.org/LDP/intro-linux/html/index.html would be a good start.

Otherwise stick to the server-manager options only.

Offline Gaston94

  • *****
  • 184
  • +0/-0
Second Disk
« Reply #2 on: September 21, 2006, 06:26:59 PM »
Hi,

as adviced, managing disk devices under U*x can be really disruptive and you really have to care about waht you are doing.

Looking at some Linux beginner site is not a bad idea (apologize this comment is from my understanding of your questions,
not a final opinion of you)

In a short way :
 - you can retrieve which devices are connected to you system from the "dmesg" output command
 - you mostly should have your main (IDE) disk (ie the one hosting SME) recognized as /dev/hda and the new one as /dev/hdb
if so, you'll need to perform the following task (I DO assume your new (IDE) disk is hdb)
 - create a partition on the disk
Code: [Select]
fdisk /dev/hdb (new, primary, default and default, write)
 - create a filse system on it
Code: [Select]
/sbin/mkfs.ext3 /dev/hdb1
 - choose where you would like this extra space to be accessible
for instance I can suggest using an ibay "data" (you have to create it)
 - mount the new partition on this ibay and create the standard directories entries :
Code: [Select]
mount /dev/hdb1   /home/e-smith/files/ibays/data
mkdir /home/e-smith/files/ibays/data/html
mkdir /home/e-smith/files/ibays/data/cgi-bin
mkdir /home/e-smith/files/ibays/data/files

 - recreate the quota on this FS
Code: [Select]
quotacheck -cguv /home/e-smith/files/ibays/data
signal-event ibay-modify data


and you are nearly done. Add the following line in the /etc/fstab file
Code: [Select]
/dev/hdb1   /home/e-smith/files/ibays/data ext3    usrquota,grpquota        1 1
Do not worry about the template based advice on the top of the file, you really have to edit this one.

That's it
before performing these actions, you have to basically know what is a FS, a mount point, an editor (vi, pico) and understand some system reports.
some of the above commands can wipe you existing data (ie: you do not address your new disk but the exiting one), be aware of this

Rgds
Gaston
PS most of the above informations came from Grand'Pa french site
[edit] corrected mount point name[/edit]

Donquick

Excellent
« Reply #3 on: September 22, 2006, 11:20:54 AM »
Hi Gaston,

Thanks so much for your help.  This is really perfect and i have learned a lot while doing it.

All the other links i found used the method of mounting to a new area on the primary disk and then using the 'ln' command to link to the new area.  This did not seem to work on my system and the new ibay created at the mount point still showed capacity of the primary disk not the new one.  

On the 'quotacheck' command i get an error, but i heave read somewhere that this is because i don't have any users with quotas so i expected this.

I am a bit confused about the line in the fstab file refering to ibay_iso which does not seem to exist.  I hope the mount works when i next reboot the system.  I have tried a 'mount -a' and there is no error so i presume we are ok.

I must say forums relly on people like you who answer the question asked rather than referring the questioner to long winded user manuals which don't ususally even contain the answers at all.

The article by Michiel Blotwijk is really good too, but it doesn't tell the whole story or get you to a postion where your new disk space is accessible.  It seems strange to give all this information and stop just before issuing the final command needed to complete the task and access the new disk.

Anyway.  Thanks again,

Don

Offline Gaston94

  • *****
  • 184
  • +0/-0
Re: Excellent
« Reply #4 on: September 22, 2006, 04:21:36 PM »
Hi,
Quote from: "Donquick"

I am a bit confused about the line in the fstab file refering to ibay_iso which does not seem to exist.  I hope the mount works when i next reboot the system.  I have tried a 'mount -a' and there is no error so i presume we are ok.


This was the point I just made a copy/paste from the site I mentionned. I have now corrected my post : the "_iso" characters have nothing to do with the other informations, forget them (and remove any references in your fstab).
Should you get some mail report about the quota and are not able to fix it, you might consider replacing the mount options "usrquota,grpquota" with this one "defaults".

G.

Donquick

Thanks
« Reply #5 on: September 22, 2006, 04:31:39 PM »
Thanks,

I notice that i had already made the "_iso" change so i think all will now work.

Thanks for the tip about quotas i will change if necessary.

Thanks,

Don