Do I need to restart my server after editing fstab and mtab?

Posted by jaypabs on Server Fault See other posts from Server Fault or by jaypabs
Published on 2013-06-27T09:27:17Z Indexed on 2013/06/27 10:22 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

I'm just wondering if I need to restart my server after editing fstab and mtab. I changed something in this file manually due to problem with awstats report.

I am using ISPConfig 3 with the help of the tutorial from howtoforge. But due to removing/deleting of some account, the configuration of fstab and mtab messed up.

I also ask this question at howtoforge forum but until now no one has answered. If you'd like to read my question please visit it here.

I tried very hard to fix the problem w/o luck.

Update:

Here's what happen to my fstab:

Before the value was (I omitted the other):

/var/log/ispconfig/httpd/mydomain.com /var/www/clients/client1/web1/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/example.com /var/www/clients/client1/web2/log    none    bind,nobootwait    0 0

So I changed it to the correct path:

/var/log/ispconfig/httpd/mydomain.com /var/www/clients/client1/web2/log    none    bind,nobootwait    0 0
/var/log/ispconfig/httpd/example.com /var/www/clients/client1/web3/log    none    bind,nobootwait    0 0

I also found mtab to have the same value as above that's why I edited it manually.

from:

/var/log/ispconfig/httpd/mydomain.com /var/www/clients/client1/web1/log none rw,bind 0 0
/var/log/ispconfig/httpd/example.com /var/www/clients/client1/web2/log none rw,bind 0 0

to:

/var/log/ispconfig/httpd/mydomain.com /var/www/clients/client1/web2/log none rw,bind 0 0
/var/log/ispconfig/httpd/example.com /var/www/clients/client1/web3/log none rw,bind 0 0

I edited those value because the correct path of mydomain.com and example.com should be under web2 and web3 folder respectively.

As of now the log of example.com is pointed to:

/var/www/clients/client1/web2/log

when it should be:

/var/www/clients/client1/web3/log

So I am thinking that this is because of fstab and mtab.

Please guide me how to point the log correctly to it's default directory.

I explain the scenario one by one at this link.

to dawud:

Based on your example mount -o remount,noexec /var, should I run mount -o remount,noexec /var/log/ispconfig/httpd/example.com?

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu-12.04