These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Quotas reset on VPS reboot on the new forum.
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..
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 ;-)
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.
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!
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 :)
VMPro 3.55
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]