Quotas reset on VPS reboot

7 posts / 0 new
Last post
#1 Mon, 04/14/2008 - 21:33
steven

Quotas reset on VPS reboot

Hello

I have virtualmin pro on a vps and whenever I reboot the server, the user/groups quotas have to be re-enabled on /

(through 'Disk and Network Filesystems' > '/ (Root filesystem) -Linux Native Filesystem (ext3)' > 'Use Quotas? - User and Group > Save)

Something is being overwritten when the VPS is started but I am not sure. Can someone please help..

Tue, 04/15/2008 - 18:23
DanLong

Do you have a "disk quotas" module in the system category? If so be sure it's enabled there also before you reboot. YOu didn't say your OS or VMPro version. THat's always helpful ;-)

Wed, 04/16/2008 - 04:38 (Reply to #2)
DanLong

Are you sure you're on CentOS 5.x? I note the distinction in the beginning comment line. The following are fstabs from 4.6 and 5.1 respectively:

fstab 4.6

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 grpquota,suid,dev,usrquota,exec 0 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0

fstab 5.1

/dev/VolGroup00/LogVol00 / ext3 grpquota,usrquota,rw 0 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

I think what Joe was referencing is that your fstab has no boot assigned, something you don't have access to may be over riding your settings in a read only file.

This would be mtab:

/dev/mapper/VolGroup00-LogVol00 / ext3 rw,grpquota,usrquota 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

This should give you something working on a standard box to compare.

Tue, 04/15/2008 - 19:23
Joe
Joe's picture

Some VPS systems copy files around on boot. Make sure whatever the source for the mtab and fstab is has the right data.

--

Check out the forum guidelines!

Wed, 04/16/2008 - 01:49
steven

Sorry, It is a VPS 'slice' from slicehost.com

Centos 5.1 on Xen virtualization

Yeah, disk quotas is enabled. I have to set this after I do the 'Disk and Network Filesystems' thing. After reboot it is lost again.

Joe, I have no idea what you just said :)

Wed, 04/16/2008 - 01:51 (Reply to #5)
steven

VMPro 3.55

Wed, 04/16/2008 - 02:12 (Reply to #6)
steven

I refer to this post here http://www.virtualmin.com/forums/hacks/quotas-and-reiserfs.html

I have tried both /etc/mtab and /etc/fstab and problem still exists.

Here is the contents of my /etc/fstab

[code:1]
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda1 / ext3 errors=remount-ro,noatime 0 1
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/simfs / reiserfs usrquota,grpquota 0 0
[/code:1]

here is my mtab

[code:1]
/dev/sda1 / ext3 rw,noatime,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
[/code:1]

Topic locked