#1  
Old 16th January 2013, 18:59
sercba sercba is offline
Junior Member
 
Join Date: Jan 2013
Location: Crdoba, Argentina
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Site folder mounted?

Hi, somebody can explain to me this (attached)?

Thanks!
Attached Images
 
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2013, 19:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

The log folders of sites (not the sites folders) are mounted with "mount --bind" from /var/log/httpd/domain.tld to /var/www/clients/client[ID]/web[ID]/log. Seems as if munun is not recognizing this correctly as a mount with --bind does not use any additional space, its just a way to make a directory available in a second place in such a way that it works in chroot enviroments.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th January 2013, 02:06
sercba sercba is offline
Junior Member
 
Join Date: Jan 2013
Location: Crdoba, Argentina
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ahhhh!!! Thank you!!
Reply With Quote
  #4  
Old 17th January 2013, 19:08
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 256
Thanks: 8
Thanked 69 Times in 60 Posts
Default

Hi Till,

Quote:
The log folders of sites (not the sites folders) are mounted with "mount --bind" from /var/log/httpd/domain.tld to /var/www/clients/client[ID]/web[ID]/log.
Is there any way to prevent that ISPConfig uses the bind options for mounting logdirs beside changing the source?

I`m not verry happy with so many bind-mounted entrys and I cant see any reason for using bind-mounts since Im able to get the logs by ftp.

And - much more important for me - i`m running the websites on a drbd-resource with ocfs2. As long as any mount is active under the resource (like mount --bind), the umount of the resource is not possible.

So I first have to unmount the log-folders. At the moment Ive no idea how to fix the umount of a ocfs2-volume in such a case (of course, unmount it by hand works as aspected ).
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #5  
Old 18th January 2013, 11:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
Default

Quote:
Is there any way to prevent that ISPConfig uses the bind options for mounting logdirs beside changing the source?
No.

Quote:
I`m not verry happy with so many bind-mounted entrys and I cant see any reason for using bind-mounts since Im able to get the logs by ftp.
Most users access logs by SSH e.g. with tail or grep. If you have sites with gigabytes of log files and want to see the current entries that get added in realtime, you cant do that with ftp at all.

Quote:
And - much more important for me - i`m running the websites on a drbd-resource with ocfs2. As long as any mount is active under the resource (like mount --bind), the umount of the resource is not possible.
All mounts are in the fstab file so the linux system mounts and unmounts them automatically at boot time and shutdow. If you need to unmount your /var/www filesystem maually, you can e.g. create a script to unmount your volume.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th January 2013, 12:04
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 256
Thanks: 8
Thanked 69 Times in 60 Posts
Default

Quote:
Originally Posted by till View Post
All mounts are in the fstab file so the linux system mounts and unmounts them automatically at boot time and shutdow. If you need to unmount your /var/www filesystem maually, you can e.g. create a script to unmount your volume.
This doesnt work with ocfs2 on a drbd-volume.

Currently one logfolder is mounted:

Code:
/dev/drbd5            150G   25G  126G  17% /srv/www
/dev/sda8              10G  1.4G  8.1G  15% /srv/www/clients/client2/web323/log
If I run umount /srv/www with the --bind-mount active, i get:

Code:
umount: /srv/www: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
Neither "lsof|grep www" nor "fuser -km /srv/www" show anything.

I must first unmount the log-dir by hand before "umount /srv/www" could be executed.

I`m not sure if this is related to drbd or to ocfs.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #7  
Old 18th January 2013, 12:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,614 Times in 4,425 Posts
 
Default

Quote:
This doesnt work with ocfs2 on a drbd-volume.
Unmounting volumes with arecursive script works with any filesystem incl. ocfs2. Your unmount script has to unmount the log dirs first before you unmount the ocfs of course.

Btw. How often do you unmount the /var/www volume (as this would stop all hosting services anyway). I havent done this on my servers within the past 10 years or so.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Enabled SSL on Site, Broke site astewart Developers' Forum 7 3rd April 2009 00:34
Site Skeletons rbartz Feature Requests 11 29th November 2008 17:07
new site is pointed main site mishko Installation/Configuration 3 27th January 2007 14:58
Rename folder -> create new folder equals contents of old folder BlueStream General 20 15th December 2006 04:32
Delete & recreate site folder name kyriakos General 1 24th November 2006 17:41


All times are GMT +2. The time now is 10:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.