Changes

From SME Server
Jump to navigationJump to search
1,562 bytes added ,  02:33, 20 December 2008
Adding Additional Optional steps to allow Symlinks to work; adding more alternatives to consider
Line 186: Line 186:     
=== Mapping ===
 
=== Mapping ===
4.0 Alternatives
+
'''4.0 Alternatives'''
   −
Alternative 1: Use /home to mount the new disk
+
====Alternative 1: Use /home/e-smith/files to mount the new disk====
 +
 
 +
Ideal if you wish to have one set of disks run SME and another set to be the user and ibay data.
    
On standard Linux machines, the /home directory contains the user's directories and is therefore a popular place to mount a bigger disk.
 
On standard Linux machines, the /home directory contains the user's directories and is therefore a popular place to mount a bigger disk.
   −
However, on a SME server this is not a good idea:
+
However, on SME server this is not a good idea:
    
SME stores all its configuration files in /home/e-smith/db.  
 
SME stores all its configuration files in /home/e-smith/db.  
 
<br>If for whatever reason your disk doesn't mount, the configuration files will no longer be accessible, causing all kinds of nasty problems.
 
<br>If for whatever reason your disk doesn't mount, the configuration files will no longer be accessible, causing all kinds of nasty problems.
   −
Mounting your second disk to /home or even /home/e-smith/files effectively means that your first disk will no longer be used to store user files.
+
Mounting under /home/e-smith/files however is useful if you wish your secondary disk to be your primary data repository for ibays and users.
<br>In some cases that might be a good idea, but in most cases you are just wasting the remaining space of your first disk.
+
Mounting your second disk to /home/e-smith/files effectively means that your first disk will no longer be used to store user files.
 +
<br>In some cases that might be a good idea (system vs data seperation), but in many cases you are just wasting the remaining space of your first disk. <br> An additional benefit is that SME processes will work seemlessly (see also Option Steps).
 +
 
 +
 
 +
 
 +
====Alternative 2: Mounting a specific ibay or user====
 +
 
 +
Similar to alternative 1, you can simply mount the disk for a specific iBay. If you need multiple iBays covered though it implies you have to create multiple partitions on the disk. The benefit like alternative one is simplicity of standard SME processes while limiting waste on your primary disk. The down side is inflexibility and waste on the secondary disk.
   −
Alternative 2: A much better approach is to leave the second disk mounted at /mnt/newdisk and to create symlinks (symbolic links) for specific ibays or user folders.  
+
====Alternative 3: Mounting and Symlinking====
 +
A much better approach is to leave the second disk mounted at /mnt/newdisk and to create symlinks (symbolic links) for specific ibays or user folders. The benefit is flexibility and efficient usage of the all disks. The down side is that you may have to make more modifications to ensure SME services and contribs work as expected (see also Optional Steps).
   −
The following example shows you how to place the IBAYNAME ibay on the second disk.  
+
The following example shows you how to place the IBAYNAME ibay on the second disk using Alternative (3).
    
4.1 Create the necessary subdirectories on your second disk
 
4.1 Create the necessary subdirectories on your second disk
Line 234: Line 244:  
  ls /home/e-smith/files/ibays/IBAYNAME
 
  ls /home/e-smith/files/ibays/IBAYNAME
   −
4.10 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache:
+
=== Optional Steps to Extend services ===
 
+
==== Quota ====
db accounts setprop IBAYNAME FollowSymLinks enabled
  −
signal-event ibay-modify IBAYNAME
     −
=== Quota (optional) ===
+
5.1 Next you might want to activate the quota on the disk.  
 
  −
5.0 Next you might want to activate the quota on the disk.  
   
<br>This will only work if you activated quota management for at least one user (Server Manager > Collaboration > Quota Management).
 
<br>This will only work if you activated quota management for at least one user (Server Manager > Collaboration > Quota Management).
   Line 248: Line 254:  
If you get "quotacheck: Old file not found" you probably haven't activated quota management.
 
If you get "quotacheck: Old file not found" you probably haven't activated quota management.
 
<br>If quotachecks comes back to the command prompt without errors, you're ready.
 
<br>If quotachecks comes back to the command prompt without errors, you're ready.
 +
 +
==== Virus Scan ====
 +
5.2 By default virus scan only scans /home/e-smith/files and does not follow symlinks. If you wish to have the additional hard drive to be scanned then you either need to mount it under this directory or follow the guidelines in http://wiki.contribs.org/SME_Server:Documentation:FAQ#Virus_Scanning.
 +
 +
==== Apache ====
 +
5.3 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache:
 +
 +
db accounts setprop IBAYNAME FollowSymLinks enabled
 +
signal-event ibay-modify IBAYNAME
 +
 +
==== Unknown ====
 +
There may be other steps or modifications to services not yet encountered. If you find some, please document it here.
    
=== Final check ===
 
=== Final check ===
147

edits

Navigation menu