|
From: Dave I. <dav...@en...> - 2007-02-13 20:37:40
|
Is there a way, when writing a webmin module, to use lock_file() and unlock_file() and *not* have the file diff be included when webmin_log() is called. I general, I want to log file diffs, but in one particular case the file contains passwords and I don't want the passwords to appear in the log. Thanks Dave Isaacs |
|
From: Jamie C. <jca...@we...> - 2007-02-13 20:44:56
|
On 13/Feb/2007 12:37 Dave Isaacs wrote .. > Is there a way, when writing a webmin module, to use lock_file() and > unlock_file() and *not* have the file diff be included when webmin_log() > is called. I general, I want to log file diffs, but in one particular > case the file contains passwords and I don't want the passwords to > appear in the log. Yes - if you set the second parameter for lock_file to 1, it will not be diffed when logging is done. - Jamie |
|
From: Russ F. <ru...@to...> - 2007-02-26 13:53:51
|
I like Webmin - what a great product! Thanks to all who contribute to
it!
On a virtualmin virtual server I have an svn service running in svn
+ssh mode.
When I - the admin for the server - run the svn client against that
service, I have no problems.
But others are getting:
svn: Can't find a temporary directory
Some research on that, and perusing the SVN source, shows me that
several likely tmp locations are tested and are not writeable.
This smells like quota!
So I logged in as one of those normal users and did this:
% date > /tmp/testsvn
date: write error: Disk quota exceeded
date: write error: Disk quota exceeded
So it's definitely quota!
Trouble is, the quota was 100MB, and only 44MB were used.
I've increased quota for the server by 100MB and still no joy. I've
run the quota checks, and I've validated all virtual servers. I've
turned off quota on the VS. I've clicked "Recheck and refresh
configuration". Related to quota it said:
User quotas are enabled for home and email directories, but group
quotas are not. Total virtual server quotas will not be enforced.
Between each test, I've logged out from the normal user account and
logged in again.
My testing consists of running
% date > /tmp/testsvn
since this is clearly not an svn problem.
I've exhausted the easy tests. I'd like some suggestions on what to
try next, either from Jamie or other users.
--r
From Webmin Start page
Operating system
CentOS Linux 4.2
Webmin version
1.320
From Edit Server page
Total server quota
200MB
Server administrator's quota
100MB
Disk space used (including sub-servers)
44 MB (752 kB by Unix user, 44 MB by mail / FTP users)
Space used by databases
8192 bytes (8192 bytes in this server, 0 bytes in sub-servers)
Disk Usage page
Allowed disk quota
200 MB
Disk space used
44 MB
Size of databases
8192 bytes
Percent of quota used
21%
Disk Quotas
/ | New Linux Native Filesystem | User quotas active
Russ Ferriday - Topia Systems - Open Source content management with
Plone and Zope
ru...@to... - office: +44 2076 1777588 - mobile: +44 7789 338868
- skype: ferriday
a member of
Zea Partners
|
|
From: Jamie C. <jca...@we...> - 2007-02-26 19:28:33
|
On 26/Feb/2007 05:53 Russ Ferriday wrote .. <blockquote type=3D"cite"> <div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig">I like Webmin - what a great product! Thanks to all who contribute to it!</div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig"><br class=3D"khtml-block-placeholder" /></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig"><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span">On a virtualmin virtual server I have an svn service running in svn+ssh mode.</span></font></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig"><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span">When I - the admin for the server - run the svn client against that service, I have no problems. </span></font></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D" sig"><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span">But others are getting:</span></font></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig"><span style=3D"line-height: normal;" class=3D"Apple-style-span"><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span"> svn: Can't find a temporary directory</span></font></span></div><div style=3D"margin: 4px 0px; padding: 2px 4px;" id=3D"sig">Some research on that, and perusing the SVN source, shows me that several likely tmp locations are tested and are not writeable.</div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig">This smells like quota!</div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;" id=3D"sig"><span style=3D"line-height: normal;" class=3D"Apple-style-span"><font color=3D"#000000" class=3 D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span">So I logged in as one of those normal users and did this:</span></font></span></div><div><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span"> % date > /tmp/testsvn</span></font></div><div>date: write error: Disk quota exceeded</div><div><font color=3D"#000000" class=3D"Apple-style-span"><span style=3D"background-color: transparent;" class=3D"Apple-style-span"> date: write error: Disk quota exceeded</span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div><b>So it's definitely quota!</b></div><div><br class=3D"khtml-block-placeholder" /></div><div>Trouble is, the quota was 100MB, and only 44MB were used. </div><div>I've increased quota for the server by 100MB and still no joy. I've run the quota checks, and I've validated all virtual servers. I've turned off quota on the VS. I've click ed "Recheck and refresh configuration". Related to quota it said: <ul><li style=3D"margin: 0px 0px 13px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">User quotas are enabled for home and email directories, but group quotas are not. Total virtual server quotas will not be enforced.</span></font></li></ul></div><div>Between each test, I've logged out from the normal user account and logged in again.</div><div>My testing consists of running <i /></div><div><i> % date > /tmp/testsvn </i></div><div>since this is clearly not an svn problem. </div><div><br class=3D"khtml-block-placeholder" /></div><div>I've exhausted the easy tests. I'd like some suggestions on what to try next, either from Jamie or other users.</div><div><br class=3D"khtml-block-placeholder" /></div><div>--r</div><div><br class=3D"khtml-block-placeholder" /></div><div><span style=3D"text-decoration: underline;" class=3D" Apple-style-span">From Webmin Start page</span></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Operating system</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">CentOS Linux 4.2</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Webmin version</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">1.320</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><br class=3D"khtml-block-p laceholder" /></span></font></div><div style=3D"margin: 0px; font-size: 13px;"><font size=3D"4" face=3D"Helvetica" style=3D"font-size: 15px;" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><span style=3D"text-decoration: underline;" class=3D"Apple-style-span">From Edit Server page</span></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Total server quota</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">200MB</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Server administrator's quota</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"He lvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">100MB<b /></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Disk space used (including sub-servers)</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">44 MB (752 kB by Unix user, 44 MB by mail / FTP users)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Space used by databases</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">8192 bytes (8192 bytes in this server, 0 bytes in sub-serve rs)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><br class=3D"khtml-block-placeholder" /></span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div style=3D"margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13.3px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 16px;"><span style=3D"text-decoration: underline;" class=3D"Apple-style-span">Disk Usage page<br /></span></div><table width=3D"375" cellspacing=3D"0" cellpadding=3D"0" style=3D"padding: 2px 0px; width: 375px; empty-cells: hide;"><tbody><tr><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 119px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Allowed disk quota</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 64px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">200 MB</span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 136px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Disk space used</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 38px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">44 MB</span></font></div></td></tr><tr><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 119px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetic a" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Size of databases</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 64px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">8192 bytes</span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 136px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Percent of quota used</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 38px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">21%</span></font></div></td></tr></tbody></table><div><br class =3D"khtml-block-placeholder" /></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; color: black;" id=3D"sig"><font size=3D"3" class=3D"Apple-style-span"><span style=3D"font-size: 12px; line-height: normal;" class=3D"Apple-style-span"><span style=3D"text-decoration: underline;" class=3D"Apple-style-span">Disk Quotas</span></span></font></div><div style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; color: black;" id=3D"sig"><font size=3D"3" class=3D"Apple-style-span"><span style=3D"font-size: 12px; line-height: normal;" class=3D"Apple-style-span">/ | New Linux Native Filesystem | User quotas active</span></font></div></div></blockquote><span style=3D"font-family: Verdana,Arial,Helvetica,sans-serif;">Hi Russ,<br />Did you try increasing the <span style=3D"font-weight: bold;">Server administrator's quota</span> too? That also applies in this case..<br />Also, is /tmp perhaps on a different filesystem? You can see this in the Disk and Network Filesystems module.<br /><br />=A0- Jamie<br /><br /></span> |
|
From: Russ F. <ru...@to...> - 2007-02-26 19:42:08
|
On 26 Feb 2007, at 19:28, Jamie Cameron wrote: > On 26/Feb/2007 05:53 Russ Ferriday wrote .. >> I like Webmin - what a great product! Thanks to all who contribute >> to it! >> >> On a virtualmin virtual server I have an svn service running in svn >> +ssh mode. >> When I - the admin for the server - run the svn client against >> that service, I have no problems. >> But others are getting: >> svn: Can't find a temporary directory >> Some research on that, and perusing the SVN source, shows me that >> several likely tmp locations are tested and are not writeable. >> This smells like quota! >> So I logged in as one of those normal users and did this: >> % date > /tmp/testsvn >> date: write error: Disk quota exceeded >> date: write error: Disk quota exceeded >> >> So it's definitely quota! >> >> Trouble is, the quota was 100MB, and only 44MB were used. >> I've increased quota for the server by 100MB and still no joy. >> I've run the quota checks, and I've validated all virtual servers. >> I've turned off quota on the VS. I've click ed "Recheck and >> refresh configuration". Related to quota it said: >> User quotas are enabled for home and email directories, but group >> quotas are not. Total virtual server quotas will not be enforced. >> Between each test, I've logged out from the normal user account >> and logged in again. >> My testing consists of running >> % date > /tmp/testsvn >> since this is clearly not an svn problem. >> >> I've exhausted the easy tests. I'd like some suggestions on what >> to try next, either from Jamie or other users. >> >> --r >> >> From Webmin Start page >> Operating system >> CentOS Linux 4.2 >> Webmin version >> 1.320 >> >> From Edit Server page >> Total server quota >> 200MB >> Server administrator's quota >> 100MB >> Disk space used (including sub-servers) >> 44 MB (752 kB by Unix user, 44 MB by mail / FTP users) >> Space used by databases >> 8192 bytes (8192 bytes in this server, 0 bytes in sub-serve rs) >> >> >> Disk Usage page >> Allowed disk quota >> 200 MB >> Disk space used >> 44 MB >> Size of databases >> 8192 bytes >> Percent of quota used >> 21% >> >> Disk Quotas >> / | New Linux Native Filesystem | User quotas active > Hi Russ, > Did you try increasing the Server administrator's quota too? That > also applies in this case.. > Also, is /tmp perhaps on a different filesystem? You can see this > in the Disk and Network Filesystems module. > > - Jamie > Thanks, Jamie. Yes, I did try Server Admin's quota. Tried raising it, and turning off both quotas. And /tmp is on the / filesystem. Disk and Network Filesystems module tells me that, and here to confirm: % cd /tmp % df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda3 113267944 71764128 35750140 67% / So no leads there. Is there something I need to do to activate the quota, apart from saving the settings for the VS? I've saved and then logged in afresh. Should I do something more? --r Russ Ferriday - Topia Systems - Open Source content management with Plone and Zope ru...@to... - office: +44 2076 1777588 - mobile: +44 7789 338868 - skype: ferriday a member of Zea Partners |
|
From: Jamie C. <jca...@we...> - 2007-02-26 19:47:43
|
On 26/Feb/2007 11:41 Russ Ferriday wrote .. <blockquote type=3D"cite"> <br /><div><div>On 26 Feb 2007, at 19:28, Jamie Cameron wrote:</div><br class=3D"Apple-interchange-newline" /><blockquote type=3D"cite"> On 26/Feb/2007 05:53 Russ Ferriday wrote .. <blockquote type=3D"cite"> <div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;">I like Webmin - what a great product! Thanks to all who contribute to it!</div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><br class=3D"khtml-block-placeholder" /></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;">On a virtualmin virtual server I have an svn service running in svn+ssh mode.</span></font></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;">When I - the admin for the server - run the svn client against that service, I have no problems. </span></font></div><div id=3D" sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;">But others are getting:</span></font></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><span class=3D"Apple-style-span" style=3D"line-height: normal;"><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;"> svn: Can't find a temporary directory</span></font></span></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px;">Some research on that, and perusing the SVN source, shows me that several likely tmp locations are tested and are not writeable.</div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13 px;">This smells like quota!</div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px;"><span class=3D"Apple-style-span" style=3D"line-height: normal;"><font color=3D"#000000" class=3D"3"><span class=3D"Apple-style-span" style=3D"background-color: transparent;">So I logged in as one of those normal users and did this:</span></font></span></div><div><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;"> % date > /tmp/testsvn</span></font></div><div>date: write error: Disk quota exceeded</div><div><font color=3D"#000000" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"background-color: transparent;"> date: write error: Disk quota exceeded</span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div><b>So it's definitely quota!</b></div><div><br class=3D"khtml-block-placeholder" /></div><div>Trouble is, the quota was 100MB, and only 44MB w ere used. </div><div>I've increased quota for the server by 100MB and still no joy. I've run the quota checks, and I've validated all virtual servers. I've turned off quota on the VS. I've click ed "Recheck and refresh configuration". Related to quota it said: <ul><li style=3D"margin: 0px 0px 13px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">User quotas are enabled for home and email directories, but group quotas are not. Total virtual server quotas will not be enforced.</span></font></li></ul></div><div>Between each test, I've logged out from the normal user account and logged in again.</div><div>My testing consists of running <i /></div><i><div><i> % date > /tmp/testsvn </i></div><div>since this is clearly not an svn problem. </div><div><br class=3D"khtml-block-placeholder" /></div><div>I've exhausted the easy tests. I'd like some suggestions on what to try next, either from Jam ie or other users.</div><div><br class=3D"khtml-block-placeholder" /></div><div>--r</div><div><br class=3D"khtml-block-placeholder" /></div><div><span class=3D"Apple-style-span" style=3D"text-decoration: underline;">From Webmin Start page</span></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Operating system</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">CentOS Linux 4.2</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Webmin version</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">1.320< /span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><br class=3D"khtml-block-p laceholder" /></span></font></div><div style=3D"margin: 0px; font-size: 13px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span" style=3D"font-size: 15px;"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><span class=3D"Apple-style-span" style=3D"text-decoration: underline;">From Edit Server page</span></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Total server quota</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">200MB</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Server administrator's quota</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"He lvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">100MB<b /></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Disk space used (including sub-servers)</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">44 MB (752 kB by Unix user, 44 MB by mail / FTP users)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Space used by databases</b></span></font></div><div style=3 D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">8192 bytes (8192 bytes in this server, 0 bytes in sub-serve rs)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><br class=3D"khtml-block-placeholder" /></span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div style=3D"margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 13.3px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 16px;"><span class=3D"Apple-style-span" style=3D"text-decoration: underline;">Disk Usage page<br /></span></div><table width=3D"375" cellspacing=3D"0" cellpadding=3D"0" style=3D"padding: 2px 0px; width: 375px; empty-cells: hide;"><tbody><tr><td valign=3D"top" style=3D"margin: 0px 0.5px; p adding: 0px 2px; width: 119px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Allowed disk quota</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 64px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">200 MB</span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 136px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Disk space used</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 38px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D "font-size: 13.3px;">44 MB</span></font></div></td></tr><tr><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 119px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetic a" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Size of databases</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 64px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">8192 bytes</span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 136px;"><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Percent of quota used</b></span></font></div></td><td valign=3D"top" style=3D"margin: 0px 0.5px; padding: 0px 2px; width: 38px;"><div style=3D" margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">21%</span></font></div></td></tr></tbody></table><div><br class=3D"khtml-block-placeholder" /></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; color: black;"><font size=3D"3" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 12px; line-height: normal;"><span class=3D"Apple-style-span" style=3D"text-decoration: underline;">Disk Quotas</span></span></font></div><div id=3D"sig" style=3D"margin: 4px 0px; padding: 2px 4px; line-height: 13px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; color: black;"><font size=3D"3" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 12px; line-height: normal;">/ | New Linux Native Filesystem | User quotas active</span></font></di v></i></div><i /></blockquote><i><span style=3D"font-family: Verdana,Arial,Helvetica,sans-serif;">Hi Russ,<br />Did you try increasing the <span style=3D"font-weight: bold;">Server administrator's quota</span> too? That also applies in this case..<br />Also, is /tmp perhaps on a different filesystem? You can see this in the Disk and Network Filesystems module.<br /><br /> - Jamie<br /><br class=3D"khtml-block-placeholder" /></span></i></blockquote></div>Thanks, Jamie.<div>Yes, I did try Server Admin's quota. Tried raising it, and turning off both quotas.</div><div>And /tmp is on the / filesystem. <span><i>Disk and Network Filesystems module <span style=3D"font-style: normal;" class=3D"Apple-style-span"> tells me that, and here to confirm</span><span style=3D"font-style: normal;" class=3D"Apple-style-span">:</span></i></span></div><div><br class=3D"khtml-block-placeholder" /></div><div>% cd /tmp</div><div>% df .</div><div>Filesystem 1K-blocks Used Available Us e% Mounted on</div><div>/dev/hda3 113267944 71764128 35750140 67% /</div><div><br class=3D"khtml-block-placeholder" /></div><div>So no leads there.</div><div>Is there something I need to do to activate the quota, apart from saving the settings for the VS?</div><div>I've saved and then logged in afresh. Should I do something more?</div><div>--r</div></blockquote>Just to make sure that the quota is really being used, you could SSH in as the user and run the command :<br />quota -v<br />Let me know what that outputs..<br /><br />=A0- Jamie<br /><br /> |
|
From: Russ F. <ru...@to...> - 2007-02-26 20:19:33
|
On 26 Feb 2007, at 19:47, Jamie Cameron wrote:
> Just to make sure that the quota is really being used, you could
> SSH in as the user and run the command :
> quota -v
> Let me know what that outputs..
>
> - Jamie
-bash-3.00$ quota -v
Disk quotas for user yaddayadda (uid 516):
Filesystem blocks quota limit grace files quota
limit grace
/dev/hda3 13080* 5120 0 none 20 0 0
Currently total, and admin are set for 200MB and 100MB resp.
Disk space used (including sub-servers)
44 MB (752 kB by Unix user, 44 MB by mail / FTP users)
Space used by databases
8192 bytes (8192 bytes in this server, 0 bytes in sub-servers)
If I give unlimited quota, in the VS page, no change.
BUT, I went to the Mail and FTP user page and noticed the user had
local dir quota of 5MB, but used 13MB. So when I gave the user 40MB,
and do my test again, it works!
AND, when I put the user back to 5MB (this bears on his home
directory as I read it) even though he still has 13MB "used",
(actually his home dir is practically empty most of his data is in svn,
-bash-3.00$ du -sh .
20K .
)
the problem does not come back!
SO raising his person quota temporarily and putting back again solved
the problem "permanently".
There's more to quota than meets the eye.
So, I'm out of my fix, but I think there is still a problem somewhere
in quota processing. If you need more data points, let me know.
Best
-r
Russ Ferriday - Topia Systems - Open Source content management with
Plone and Zope
ru...@to... - office: +44 2076 1777588 - mobile: +44 7789 338868
- skype: ferriday
a member of
Zea Partners
|
|
From: Jamie C. <jca...@we...> - 2007-02-26 20:28:52
|
On 26/Feb/2007 12:19 Russ Ferriday wrote .. <blockquote type=3D"cite"> <br /><div><div>On 26 Feb 2007, at 19:47, Jamie Cameron wrote:</div><br class=3D"Apple-interchange-newline" /><blockquote type=3D"cite"><span style=3D"border-collapse: separate; -x-border-x-spacing: 0px; -x-border-y-spacing: 0px; color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;" class=3D"Apple-style-span"><i style=3D"font-style: italic;"><i style=3D"font-style: italic;"><span style=3D"font-style: italic;" class=3D"Apple-style-span">Just to make sure that the quota is really being used, you could SSH in as the user and run the command :</span><br style=3D"font-style: italic;" /><span style=3D"font-style: italic;" class=3D"Apple-style-span">quota -v</span><br style=3D"font-style: italic;" /><span style=3D"font-style: italic;" class=3D"Apple-style-span">Let me know what that outputs..</span><br style=3D"font-style: italic;" /><br style=3D"font-style: italic;" /><span style=3D"font-style: italic;" class=3D"Apple-style-span"> - Jamie</span></i></i></span></blockquote></div><div><br class=3D"khtml-block-placeholder" /></div><div>-bash-3.00$ quota -v</div><div>Disk quotas for user yaddayadda (uid 516): </div><div> Filesystem blocks quota limit grace files quota limit grace</div><div> /dev/hda3 13080* 5120 0 none 20 0 0 </div><div><br class=3D"khtml-block-placeholder" /></div><div>Currently total, and admin are set for 200MB and 100MB resp.</div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Disk space used (including sub-servers)</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">44 MB (752 kB by Unix user, 44 MB by mail / FTP users)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span"><b>Space used by databases</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span style=3D"font-size: 13.3px;" class=3D"Apple-style-span">8192 bytes (8192 bytes in this server, 0 bytes in sub-servers)</span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div><br class=3D"khtml-block-placeholder" /></div><div>If I give unlimited quota, in the VS page, no change.</div><div><br class=3D"khtml-block-placeholder" /></div><div>BUT, I went to the Mail and FTP user page and noticed the user had local dir quota of 5MB, but used 13MB. So when I gave the user 40MB, and do my test again, it works!</div><div>AND, when I put the user back to 5MB (thi s bears on his home directory as I read it) even though he still has 13MB "used", (actually his home dir is practically empty most of his data is in svn, </div><div>-bash-3.00$ du -sh .</div><div>20K .</div><div>)</div><div>the problem does not come back!</div><div><br class=3D"khtml-block-placeholder" /></div><div>SO raising his person quota temporarily and putting back again solved the problem "permanently".</div><div><br class=3D"khtml-block-placeholder" /></div><div>There's more to quota than meets the eye.</div><div><br class=3D"khtml-block-placeholder" /></div><div>So, I'm out of my fix, but I think there is still a problem somewhere in quota processing. If you need more data points, let me know.</div><div><br class=3D"khtml-block-placeholder" /></div><div>Best </div><div>-r</div></blockquote>So was this user the owner of the domain, or a separate mailbox account?<br /><br />=A0- Jamie<br /><br /> |
|
From: Russ F. <ru...@to...> - 2007-02-26 20:36:13
|
On 26 Feb 2007, at 20:28, Jamie Cameron wrote: > On 26/Feb/2007 12:19 Russ Ferriday wrote .. >> >> On 26 Feb 2007, at 19:47, Jamie Cameron wrote: >> >>> Just to make sure that the quota is really being used, you could >>> SSH in as the user and run the command : >>> quota -v >>> Let me know what that outputs.. >>> >>> - Jamie >> >> -bash-3.00$ quota -v >> Disk quotas for user yaddayadda (uid 516): >> Filesystem blocks quota limit grace files quota limit grace >> /dev/hda3 13080* 5120 0 none 20 0 0 >> >> Currently total, and admin are set for 200MB and 100MB resp. >> Disk space used (including sub-servers) >> 44 MB (752 kB by Unix user, 44 MB by mail / FTP users) >> Space used by databases >> 8192 bytes (8192 bytes in this server, 0 bytes in sub-servers) >> >> >> If I give unlimited quota, in the VS page, no change. >> >> BUT, I went to the Mail and FTP user page and noticed the user had >> local dir quota of 5MB, but used 13MB. So when I gave the user >> 40MB, and do my test again, it works! >> AND, when I put the user back to 5MB (thi s bears on his home >> directory as I read it) even though he still has 13MB "used", >> (actually his home dir is practically empty most of his data is in >> svn, >> -bash-3.00$ du -sh . >> 20K . >> ) >> the problem does not come back! >> >> SO raising his person quota temporarily and putting back again >> solved the problem "permanently". >> >> There's more to quota than meets the eye. >> >> So, I'm out of my fix, but I think there is still a problem >> somewhere in quota processing. If you need more data points, let >> me know. >> >> Best >> -r > So was this user the owner of the domain, or a separate mailbox > account? not the owner. Just a mailbox account. --r Russ Ferriday - Topia Systems - Open Source content management with Plone and Zope ru...@to... - office: +44 2076 1777588 - mobile: +44 7789 338868 - skype: ferriday a member of Zea Partners |
|
From: Jamie C. <jca...@we...> - 2007-02-26 20:37:44
|
On 26/Feb/2007 12:36 Russ Ferriday wrote .. <blockquote type=3D"cite"> <br /><div><div>On 26 Feb 2007, at 20:28, Jamie Cameron wrote:</div><br class=3D"Apple-interchange-newline" /><blockquote type=3D"cite"> On 26/Feb/2007 12:19 Russ Ferriday wrote .. <blockquote type=3D"cite"> <br /><div><div>On 26 Feb 2007, at 19:47, Jamie Cameron wrote:</div><br class=3D"Apple-interchange-newline" /><blockquote type=3D"cite"><span class=3D"Apple-style-span" style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><i style=3D"font-style: italic;"><i style=3D"font-style: italic;"><span class=3D"Apple-style-span" style=3D"font-style: italic;">Just to make sure that the quota is really being used, you could SSH in as the user and run the command :</span><br style=3D"font-style: italic;" /><span class=3D"Apple-style-s pan" style=3D"font-style: italic;">quota -v</span><br style=3D"font-style: italic;" /><span class=3D"Apple-style-span" style=3D"font-style: italic;">Let me know what that outputs..</span><br style=3D"font-style: italic;" /><br style=3D"font-style: italic;" /><span class=3D"Apple-style-span" style=3D"font-style: italic;"> - Jamie</span></i></i></span></blockquote></div><div><br class=3D"khtml-block-placeholder" /></div><div>-bash-3.00$ quota -v</div><div>Disk quotas for user yaddayadda (uid 516): </div><div> Filesystem blocks quota limit grace files quota limit grace</div><div> /dev/hda3 13080* 5120 0 none 20 0 0 </div><div><br class=3D"khtml-block-placeholder" /></div><div>Currently total, and admin are set for 200MB and 100MB resp.</div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Disk space used (includi ng sub-servers)</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">44 MB (752 kB by Unix user, 44 MB by mail / FTP users)</span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;"><b>Space used by databases</b></span></font></div><div style=3D"margin: 0px;"><font size=3D"4" face=3D"Helvetica" class=3D"Apple-style-span"><span class=3D"Apple-style-span" style=3D"font-size: 13.3px;">8192 bytes (8192 bytes in this server, 0 bytes in sub-servers)</span></font></div><div><br class=3D"khtml-block-placeholder" /></div><div><br class=3D"khtml-block-placeholder" /></div><div>If I give unlimited quota, in the VS page, no change.</div><div><br class=3D"khtml-block-placeholder" /></div><div>BUT, I went to the Mail and FTP user page and noticed the user had local dir quota of 5MB, but used 13MB. So when I gave the user 40MB, and do my test again, it works!</div><div>AND, when I put the user back to 5MB (thi s bears on his home directory as I read it) even though he still has 13MB "used", (actually his home dir is practically empty most of his data is in svn, </div><div>-bash-3.00$ du -sh .</div><div>20K .</div><div>)</div><div>the problem does not come back!</div><div><br class=3D"khtml-block-placeholder" /></div><div>SO raising his person quota temporarily and putting back again solved the problem "permanently".</div><div><br class=3D"khtml-block-placeholder" /></div><div>There's more to quota than meets the eye.</div><div><br class=3D"khtml-block-placeholder" /></div><div>So, I'm out of my fix, but I think there is still a problem somewhere in quota processing. If you need more data points, let me know.</div><div><br class=3D"khtml-block-placeholder" /></div><div>Best </div><div>-r</div></blockquot e>So was this user the owner of the domain, or a separate mailbox account?<br /></blockquote>not the owner. Just a mailbox account.</div><div>-</div></blockquote>Ah .. in that case, that would explain it. The quota settings on the Edit Virtual Server page aren't really relevant, as this user's own quota would be taking effect instead.<br /><br />=A0- Jamie<br /><br /> |
|
From: Russ F. <ru...@to...> - 2007-02-26 21:02:07
|
On 26 Feb 2007, at 20:37, Jamie Cameron wrote: > On 26/Feb/2007 12:36 Russ Ferriday wrote .. >> >> On 26 Feb 2007, at 20:28, Jamie Cameron wrote: >> >>> On 26/Feb/2007 12:19 Russ Ferriday wrote .. >>>> >>>> On 26 Feb 2007, at 19:47, Jamie Cameron wrote: >>>> >>>>> Just to make sure that the quota is really being used, you >>>>> could SSH in as the user and run the command : >>>>> quota -v >>>>> Let me know what that outputs.. >>>>> >>>>> - Jamie >>>> >>>> -bash-3.00$ quota -v >>>> Disk quotas for user yaddayadda (uid 516): >>>> Filesystem blocks quota limit grace files quota limit grace >>>> /dev/hda3 13080* 5120 0 none 20 0 0 >>>> >>>> Currently total, and admin are set for 200MB and 100MB resp. >>>> Disk space used (includi ng sub-servers) >>>> 44 MB (752 kB by Unix user, 44 MB by mail / FTP users) >>>> Space used by databases >>>> 8192 bytes (8192 bytes in this server, 0 bytes in sub-servers) >>>> >>>> >>>> If I give unlimited quota, in the VS page, no change. >>>> >>>> BUT, I went to the Mail and FTP user page and noticed the user >>>> had local dir quota of 5MB, but used 13MB. So when I gave the >>>> user 40MB, and do my test again, it works! >>>> AND, when I put the user back to 5MB (thi s bears on his home >>>> directory as I read it) even though he still has 13MB "used", >>>> (actually his home dir is practically empty most of his data is >>>> in svn, >>>> -bash-3.00$ du -sh . >>>> 20K . >>>> ) >>>> the problem does not come back! >>>> >>>> SO raising his person quota temporarily and putting back again >>>> solved the problem "permanently". >>>> >>>> There's more to quota than meets the eye. >>>> >>>> So, I'm out of my fix, but I think there is still a problem >>>> somewhere in quota processing. If you need more data points, let >>>> me know. >>>> >>>> Best >>>> -r >>>> So was this user the owner of the domain, or a separate mailbox >>>> account? >>> not the owner. Just a mailbox account. >> - > Ah .. in that case, that would explain it. The quota settings on > the Edit Virtual Server page aren't really relevant, as this user's > own quota would be taking effect instead. > Perhaps. ( I assume that all users are totalled in the VS page limits.) I don't know why my test worked even after I put the quota back to 5MB while he had 13MB of stuff. And why was it counting 13MB when his home was empty. You say on the user edit that it applies to the home directory. His only had 20kB in it. Something is dodgy here. I'm not saying it's Webmin, but the whole picture is less than satisfying. Anyway, I'm not losing sleep on this, but I think it's an area that needs some cleanup, at least on CentOS. If you want me to look at this further, just ask. Thanks for provoking a solution, and congrats on some great software. --r Russ Ferriday - Topia Systems - Open Source content management with Plone and Zope ru...@to... - office: +44 2076 1777588 - mobile: +44 7789 338868 - skype: ferriday a member of Zea Partners |