Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: b2vn on January 31, 2007, 09:14:10 PM

Title: Moving e-smith/files to another hd
Post by: b2vn on January 31, 2007, 09:14:10 PM
Hi everybody

I'm running out of space on my primary drive so I have mounted another one.Since my primary drive is not very big, I thought of this situation when I installed my server, but I had not foreseen the problem I have encountered.

What I have done is:
1) mounted the new disc at /mnt/s250g
2) created a dir e-smith/ on it
3) copied the directory /home/e-smith/files to the above dir
4) removed /home/e-smith/files
5) and finally created a synlink by 'ln -s /mnt/s250g/e-smith/files files' in /home/e-smith

The link is created, and I can cd into it, and with pwd it seem to work. Next I tested my email, and it works. I have tested ftp connection and it works too.

The only thing that does not work is my ibays. When i try to view the content of an ibay with my explorer, I get the error '403 Forbidden'.

How can I fix this?
Title: Moving e-smith/files to another hd
Post by: b2vn on January 31, 2007, 09:55:12 PM
I found the solution:
[root@hogwarts /]# mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

[root@hogwarts /]# echo Options FollowSymLinks >> /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85DefaultAccess

[root@hogwarts /]# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

[root@hogwarts /]# /etc/init.d/httpd graceful

There might be other tip on the side if any other is interested:
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm
Title: Re: Moving e-smith/files to another hd
Post by: byte on February 01, 2007, 11:16:40 AM
Quote from: "b2vn"
I'm running out of space on my primary drive so I have mounted another one.


Have a look at this NFR...

http://bugs.contribs.org/show_bug.cgi?id=1362

This allows for seperate partitions so next time you would be able to install another drive and assuming to setup the SME Server with lvm you would be able to use vgextend (google LVM)