Hard disk quota ?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Hard disk quota ?

Unread post by kram »

Hello,

I just noticed that I not able to allocate disk quotas to domains.
I am almost 100% sure it was working a week ago?

/etc/fstab

proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/md0 none swap sw 0 0
/dev/md1 /boot ext3 defaults 0 0
/dev/md2 / ext3 defaults 0 0


df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md2 2902481912 102994404 2653210876 4% /
/dev/md1 256586 49977 193361 21% /boot
tmpfs 6160212 0 6160212 0% /usr/local/psa/handlers/before-local
tmpfs 6160212 0 6160212 0% /usr/local/psa/handlers/before-queue
tmpfs 6160212 0 6160212 0% /usr/local/psa/handlers/before-remote
tmpfs 6160212 360 6159852 1% /usr/local/psa/handlers/info
tmpfs 6160212 440 6159772 1% /usr/local/psa/handlers/spool


I tried this article over a Parallels http://kb.parallels.com/en/768

/usr/local/psa/admin/sbin/usermng --isquotable
1

mount -o remount /

quotaon /dev/md2
-bash: quotaon: command not found ??

Any suggestions on how to resolve this?
Mark Brindley
2Large Networks - Web solutions that work
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Hard disk quota ?

Unread post by nobody »

You /etc/fstab should look like this in order to assign quotas.

Code: Select all

/dev/md2 / ext3 defaults,usrquota 0 0
Enter the ,usrquota for any partition you need quota. In your case you have allocated all space in the / partition. So you only need to edit one line.

Then reboot the box. And ready !
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Re: Hard disk quota ?

Unread post by kram »

OK - found the problem for the error "-bash: quotaon: command not found"

I ran yum install quota :)

[root@webhost ~] mount -o remount /
[root@webhost ~] quotaon /dev/md2
quotaon: Can't find mountpoint for device /dev/md2
quotaon: No correct mountpoint specified.

Please could you help me with the correct command to run?
Mark Brindley
2Large Networks - Web solutions that work
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Re: Hard disk quota ?

Unread post by kram »

I have tried a number of times and variations to get this resolved.
Can adnybody give me a hand/pointer?

:?:
Mark Brindley
2Large Networks - Web solutions that work
Post Reply