Welcome to WebmasterWorld Guest from 107.20.34.173

Forum Moderators: bakedjake

Message Too Old, No Replies

enabling quotas on a live server

dangerous?

     

jamie

2:27 pm on Feb 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi,

setting up one's own server is very exciting - every day something new crops up ;)

this time it's disk quotas:

our redhat server is going strong with 12 vitual hosts on it. i would now like to set up user quotas, however i think i should have done this at the start? man quotacheck:

...It is also unwise to run quotacheck on a live filesystem as actual usage may change during the scan. To prevent this, quotacheck tries to remount the filesystem read-only before starting the scan. After the scan is done it remounts the filesystem read-write...

if i force quotacheck to run, will it do funny things to the disk preventing our websites from being seen - during the time quotacheck takes to complete?

or can i simply use the -m flag to force it to run? is this 'dangerous'

many thanks

seindal

7:20 pm on Feb 15, 2003 (gmt 0)

10+ Year Member



quotecheck doesn't modify user data on the disk. The 'danger' referred to is simply that the registered disk usage might be somewhat off.

I can't see how a quotecheck on a live system can cause any serious problems for the system.

It might cause unwanted effects for the users, though. If a user has large temp files during the scan, which are removed before the scan is done, that user might end up with a registered usage over the real usage, and hence have a de-facto quota below the wanted quota.

René.

jamie

7:31 am on Feb 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



that's a relief rené thanks.

the only users on the system are pop accounts only (apart from myself). so i'll give all those a max of 10 mb and myself a bit more.

cheers

seindal

9:26 am on Feb 16, 2003 (gmt 0)

10+ Year Member



It is also unwise to run quotacheck on a live filesystem as actual usage may change during the scan

The key parts of this are "unwise" and "usage may change".

If you can suppress the remount, you can run quotacheck on your live system with little danger.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month