repquota: Cannot stat() mounted device /dev/simfs: No such file or directory
(there's already a thread for this, but it's 2 years old so I can't post to it, and there was no answer)
Getting these messages from multiple servers every night:
I've already run /scripts/fixquotas -- that isn't the problem. I know why this is happening: cPanel is installed in a virtual machine, where /tmp is a ramdisk provided by the host machine:
I've turned off quota alerts in WHM/cPanel Tweak Settings, but it seems I can't turn off quota-checking, so I'm still getting those superfluous warning messages sent to my pager in the middle of the night, waking me up. I can't change the mount options for /dev/simfs aka /tmp, because my servers are VMs. So how do I get cPanel to stop checking devices they can't check, or stop checking for quotas at all? It's tempting to replace /sbin/quotacheck with a null "exit(0)" program, since I don't use quotas at all (all I need is overall disk use alerts).
repquota: Cannot stat() mounted device /dev/simfs: No such file or directoryI've already run /scripts/fixquotas -- that isn't the problem. I know why this is happening: cPanel is installed in a virtual machine, where /tmp is a ramdisk provided by the host machine:
# mount # or cat /etc/mtab
/dev/vzfs on / type reiserfs (rw,usrquota,grpquota)
/dev/simfs on /tmp type simfs (rw,nosuid,nodev,noexec,relatime,usrquota,grpquota)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
I've turned off quota alerts in WHM/cPanel Tweak Settings, but it seems I can't turn off quota-checking, so I'm still getting those superfluous warning messages sent to my pager in the middle of the night, waking me up. I can't change the mount options for /dev/simfs aka /tmp, because my servers are VMs. So how do I get cPanel to stop checking devices they can't check, or stop checking for quotas at all? It's tempting to replace /sbin/quotacheck with a null "exit(0)" program, since I don't use quotas at all (all I need is overall disk use alerts).
-
I meant to say "/usr/sbin/repquota" not "/sbin/quotacheck". But I can't edit my message to fix it because of this message from the forum software: "Your content can not be submitted. This is likely because your content is spam-like or contains inappropriate elements. Please change your content or try again later. If you still have problems, please contact an administrator." ... which is very weird because I don't see any foul language nor advertisements in the original message. 0 -
Hello :) You could adjust the contact priority for "Disk Usage Warnings" via "WHM Home " Server Contacts " Contact Manager" if you are unable to mount that directory without quotas. Thank you. 0 -
But then I won't get alerts when an account on a genuine filesystem exceeds its quota. That's like asking "how can I get this car to stop making a honking noise when I don't touch the steering wheel" and getting the reply "stop using the car." 0 -
But then I won't get alerts when an account on a genuine filesystem exceeds its quota. That's like asking "how can I get this car to stop making a honking noise when I don't touch the steering wheel" and getting the reply "stop using the car."
Hello :) I was under the impression you did not use quotas at all on this system based on the following quote:I can't change the mount options for /dev/simfs aka /tmp, because my servers are VMs. So how do I get cPanel to stop checking devices they can't check, or stop checking for quotas at all? It's tempting to replace /sbin/quotacheck with a null "exit(0)" program, since I don't use quotas at all (all I need is overall disk use alerts).
If you want to address the issue, the solution is to disable quotas on the /tmp partition. You mentioned that you can't modify the mount options for /tmp because it's a VPS. Could you elaborate on that? What in particular is preventing you from modifying the mount options? Thank you.0 -
Hello :) I was under the impression you did not use quotas at all on this system based on the following quote:
I don't use quotas today. I may need to use quotas tomorrow. cPanel seems to think quotas are important else they wouldn't have this out-of-the-box setting of checking quotas on every machine.You mentioned that you can't modify the mount options for /tmp because it's a VPS. Could you elaborate on that? What in particular is preventing you from modifying the mount options?
I assume the VPS's host machine won't let me modify mount options.root@far:~# grep ' /tmp' /proc/mounts /dev/simfs /tmp simfs rw,nosuid,nodev,noexec,relatime,usrquota,grpquota 0 0 root@far:~# mount -o remount -o rw,nosuid,nodev,noexec,relatime /tmp mount("/dev/simfs", "/tmp", 0xb9133160, MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_REMOUNT|MS_RELATIME, "usrquota,grpquota") = -1 EPERM (Operation not permitted) mount: permission denied
I don't have a name for what's preventing me; the mount() syscall fails with EPERM, so I assume the syscall is passed up to the VPS's host organism, which denies the VPS's request.0 -
I suggest reporting this issue to your VPS hosting provider so they can investigate and make any necessary changes from the VPS hardware node. Thank you. 0 -
I went to the hosting company before I came here. They said "this is a software problem, take it up with the software vendor, or stop using the software that is causing the superfluous error." So I guess I will officially give up on this. 0 -
You may want to contact them again and simply ask if it's possible to change the mount options on /dev/simfs instead of stating the issue that it's causing with cPanel/WHM. Thank you. 0
Please sign in to leave a comment.
Comments
8 comments