Welcome to WebmasterWorld Guest from 54.146.194.42

Forum Moderators: bakedjake

Message Too Old, No Replies

enabling quotas on a live server

dangerous?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 0


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

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

Preferred Member

10+ Year Member

joined:Oct 28, 2002
posts:492
votes: 0


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é.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 0


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

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

Preferred Member

10+ Year Member

joined:Oct 28, 2002
posts:492
votes: 0


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.