Disk Quota Issue - Locating The Folders With The Highest Number Of Files
we've been having issues with reaching or exceeding our disk quotas. I've checked carefully, and while I've cleared our mail queue's, I don't think that's the issue.
So what I'm really looking for is a way to figure out why we have so many files (our quota is 220000, and I'm pretty confident that we aren't intentionally doing anything to create so many files). There's lots of information on finding the folders with the largest file sizes, but locating the folders with the greatest number of files isn't quite so simple--or at least, it doesn't seem very clear to me.
Does anyone know a way via the command line to figure out this information, short of going through every single folder and figuring out how many files are in the specific folder?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Disk Quota Not Notified
we have a plan that is go out quota. In the old server we received an email alert when quota is near 80% and 100%.. now (new server) we haven't received nothing and our isp say that is not possible ...? we have whm and notifications check is all cehcked. how to config this?
View Replies!
View Related
Setting Disk Quota In VPS
I'm running a VPS, it sounds weird but its more like a learning lab I bought to help me get better skills in linux environment, so far I've learned a bit more in BIND and apache. I use the panel webmin, I tried setting a mount but it didn't work. The mounted devices output this: simfs on / type simfs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec) Now, that struck me is that other VPSes that have CentOS with cpanel has their disk quota installed already. (That includes directadmin and lxadmin)
View Replies!
View Related
/tmp Disk Quota Exceeded But Not
Has anyone ever run into this before? We are running into issues with one of our hosting servers, it claims that the /tmp folder has exceeded the disk quota but when you actually go to the /tmp folder it's not at all. Here are the outputs: # df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 60G 2.4G 58G 4% / # df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/simfs 1500000 80589 1419411 6% / # du -hs /tmp 8.2M /tmp # echo 11111111 > /tmp/testfile # cat /tmp/testfile 11111111 But it still gives a PHP error saying /tmp disk quota exceeded until I completely empty the folder and then it works for a few hours and does the same thing.
View Replies!
View Related
Can't Update WHM Account Disk Quota
Using cPanel/WHM to administer Accounts. I've been allocated additional disk space by my host, but can't seem to use it -- the existing (original) Account quota won't update. I've tried changing the quota for the existing Package, as well as creating a new package with the desired quota and 'upgrading' the Account to the new Package, but the Account's quota remains the same. It's as tho' the Account quota value is cached somewhere, and isn't getting refreshed.
View Replies!
View Related
Disk Quota Not Working For User Accounts
I am having Virtuozzo vps with cpanel/WHM installed.I have created some accounts in it by setting disk quota . Now the issue is : some users are using space over the allocted one ,when i use the command quota -u (username),i can see that the users are used the space over the allocated one and they are still allowed to upload file . How to fix this issue ?
View Replies!
View Related
VPS Disk Quota Status Keeps Increasing Every 2 Days
I have had over 4 different VPS providers and in all of them, I was always using less than 5 gigs and most of it is from the OS and the VPS files, my website is less than 400 megs of size including the backups. For some reasons, my Disk Quota is at 8.3 gigs and it was at 8.2 gigs yesterday. My website's files are not that big and the Database is like 30 megs and the backups are compressed so they are like 4 megs. The problem is that I really don't know what files are making my Disk Quota to go up since I haven't uploaded anything or download files to my VPS.
View Replies!
View Related
Virtual Private Server (VPS) Wont Restart - Disk Quota Exceeded
An automatic backup in plesk has filled up the disk space in my VPS. It seemed to crash first of all - couldn't access my website, then i tried to restart it. It wont restart and comes up with the error below. As i can't get into plesk i don't know how to delete these old backup files, seem to be in a catch 22. Help Jul 17, 2008 01:05:33 PM Start Process Completed Jul 17, 2008 01:05:33 PM Click here to open/close operation details.Start VPS #48606643 Failed Jul 17, 2008 01:05:33 PM Operation start with the VPS(s) VEID48606643 is started. Jul 17, 2008 01:05:33 PM Starting VE ... Jul 17, 2008 01:05:33 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] Jul 17, 2008 01:05:33 PM VE is mounted Jul 17, 2008 01:05:33 PM Setting devperms 20002 dev 0x7f00 Jul 17, 2008 01:05:33 PM Setting devperms 20007 dev 0xac8 Jul 17, 2008 01:05:33 PM Adding port redirection to VE(1): 4643 8443 Jul 17, 2008 01:05:33 PM Adding IP address(es): 212.227.251.151 Jul 17, 2008 01:05:34 PM ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0 Jul 17, 2008 01:05:34 PM bash: line 264: echo: write error: Disk quota exceeded Jul 17, 2008 01:05:35 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] Jul 17, 2008 01:05:35 PM VE is unmounted Jul 17, 2008 01:05:35 PM VE start failed Jul 17, 2008 01:05:35 PM Operation start with the VPS(s) VEID48606643 is finished with errors: #1004 Error invoking vzctl utility: Starting VE ... vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is mounted Setting devperms 20002 dev 0x7f00 Setting devperms 20007 dev 0xac8 Adding port redirection to VE(1): 4643 8443 Adding IP address(es): 212.227.251.151 ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0 bash: line 264: echo: write error: Disk quota exceeded vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is unmounted VE start failed . Failed Jul 17, 2008 01:05:35 PM Complete Process Failed
View Replies!
View Related
Removing Large Files Or Folders CentOS
Something weird happening here. I have tried every string possible... There are a number of folders I want to remove off my server, tried the good old and simple... rm -r /folder/ And then went and ended up with a string as long as my screen. No matter what I do, as it goes recursive in to the directory it asks me if I want to remove each file individually. No matter what string or action I take it insists on asking me as it goes to delete each file. Could this be a configuration option in CentOS?
View Replies!
View Related
Offsite Backups (via Rsync) - What Files/folders To Backup
I'm currently using (amongst other backup systems) rsync to an offsite space (am using BQBackup at the moment) I'm just wondering - apart from backing up all of /home/, /var/lib/mysql/ and the important config files (httpd.conf, php.conf, etc etc) is there anything else that *needs* to be backed up? Obviously in a worst case scenario, a new machine would be deployed with a fresh OS install (and a fresh WHM/cPanel install) so I wouldn't worry about backing up OS files or cPanel core files, although I'm wondering if there's anything apart from the /home/ directory and the MySQL databases which would be lost (and so need backing up) in the event of a crash?
View Replies!
View Related
Simple Script To Find Suspected Files And Folders
Try this useful script to find all 777 permission files and folders in /home directory also it can find all names of suspected folders and files you want and then you can take the required action to install this follow the steps login as root Code: cd /root Code: pico checkpandnscript.sh Enter this code and in the 5th line from the end change email@email.com to your email Code: # This file will help you to find suspected folders and files in /home directory # Coded and desgined by Alrutani Web Hosting www.alrutani.com , for more informations please contact us. #!/bin/sh echo " " > /root/perdfmbc echo "################# Folders with 777 permission #################" >> /root/perdfmbc echo " " >> /root/perdfmbc find /home -type d -perm 777 |egrep -v "./cpapachebuild|./.cpan|./src" >> /root/perdfmbc echo " " >> /root/perdfmbc echo "################## Files with 777 permission ##################" >> /root/perdfmbc echo " " >> /root/perdfmbc find /home -type f -perm 777 >> /root/perdfmbc echo " " >> /root/perdfmbc echo "############### Folders & files must be checked ###############" >> /root/perdfmbc echo " " >> /root/perdfmbc find /home -name forum >> /root/perdfmbc find /home -name upload >> /root/perdfmbc find /home -name 4images >> /root/perdfmbc find /home -name gallery >> /root/perdfmbc find /home -name uploader >> /root/perdfmbc find /home -name up >> /root/perdfmbc find /home -name r57shell >> /root/perdfmbc find /home -name r57shell.php >> /root/perdfmbc find /home -name r57.php >> /root/perdfmbc find /home -name c99shell >> /root/perdfmbc find /home -name c99shell.php >> /root/perdfmbc find /home -name c99.php >> /root/perdfmbc find /home -name shell.php >> /root/perdfmbc echo " " >> /root/perdfmbc echo "###############################################################" >> /root/perdfmbc echo "Developed by Alrutani Web Hosting http://www.alrutani.com" >> /root/perdfmbc echo "For more informations please contact us." >> /root/perdfmbc echo " " >> /root/perdfmbc cat /root/perdfmbc | mail -s "Suspected files & folders in your server" email@email.com cd /root rm -rf perdfmbc # This file will help you to find suspected folders and files in /home directory # Coded and desgined by Alrutani Web Hosting www.alrutani.com , for more informations please contact us. To add more files and folders that you want the system to list fine Code: find /home -name upload >> /root/perdfmbc after it add Code: find /home -name xxxxxx >> /root/perdfmbc where xxxxx is the name of the file or the folder you want Save file Ctrl X select yes then click enter Code: chmod 755 checkpandnscript.sh To make the script works daily Code: crontab -e At the end enter Code: * 3 * * * sh /root/checkpandnscript.sh save and exit done !! now to test the script Code: cd /root Code: sh checkpandnscript.sh you will receive email from the server
View Replies!
View Related
Daily Backup + Rsync Ssh + Large Number Of Files
i just wana know is it safe to do remote daily backup for about 70,000 files? file sizes is about 200kb and every day i have about 1000 new file, so rsync first should check old files becouse i am deleting about 30-50 of them daily and them backup new 1000 files , so how much it will take every time to compare that 70,000 files? i have 2 option now: 1-using second hdd and raid 1 2-using rsync and backuping to my second server , so i can save about $70 each month.
View Replies!
View Related
350 Mb Disk Usage But No Files?
I am getting problem , my package is 500MB and i have checked cpanel > file manager , there is showing disk usage 350 MB but there is no file under public_html/ and out of public_html/ directory , what can i do and why this is showing 350 MB disk usage but there is no files.
View Replies!
View Related
Ssh Locating A File.
I created backup file the other day and tried to move it to root, however its not there is there anyway I can search the entire search for it? I cant remember the backup's file name either so it is possible to search for a file using locate or find, and list all files with a tar.gz exstension as this would help nail it down.
View Replies!
View Related
Locating Outdated And Exploited Scripts
Is there a way to located out dated and already exploited scripts on my VPS? I have already cleaned out the /tmp directory but how can I scan my clients accounts to determine if they have been exploited? Or if they should update scripts that they are running.
View Replies!
View Related
Softlayer Network Issue Or My Server Issue
Softlayer Network Issue or My server Issue? I unable to ping softlayer.com or any external server since 14/1/2009 06:00 UTC. I SSH into the server and ---------------- [root@server ~]# ping softlayer.com ping: unknown host softlayer.com [root@server ~]# nslookup softlayer.com ;; connection timed out; no servers could be reached ----------------- My server is located at Seattle, Server Room 2
View Replies!
View Related
2 SATAII Disk W/RAID0 Vs One SAS Disk
I am looking for better disk performance. Due to the tight budget, I have to choose one of following options as my disk choice: 2 SATAII disk w/RAID0, 7200rpm, 32M cache for each disk 1 SAS disk, 15000rpm, 16M cache. which one will be better and how better if other things(hardware & OS) are same?
View Replies!
View Related
Disk Image To Disk Partition (Xen)
can a Xen disk image be converted to a diskpartition? Someone is asking whether I can host his disk image at his current host, which he is leaving for poor I/O (wonder why that would be ). I can host a diskimage, but I don't like diskimages (slow, and 100GB isn't very 'comfortable' either). Is there any way out there to convert a disk image into a normal partition?
View Replies!
View Related
C99Shell Folders?
I found these folders in the root /usr/bin/c99 /usr/include/boost/numeric/interval/detail/c99_rounding_control.hpp /usr/include/boost/numeric/interval/detail/c99sub_rounding_control.hpp what are these ? is it normal folders ? or somebody hacked our server? what shall I do?
View Replies!
View Related
Nobody Folders And Delete
when people run a forum and the template and forumdate folders may created some files with nobody permission, the user could not delete them by the user themself, and need admin login as root with ssh to delete those, and let the files permission can run as the user instead of nobody. the server is centos with cpanel and suexec.
View Replies!
View Related
.htaccess And Folders
In the public_html directory, I have php_value user_agent "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0" <IfModule mod_security.c> SecFilterScanPost </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Errordocument 404 /404.html RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php [L] </IfModule> Then I created a new directory named caller There is an exact same .htaccess in public_html/caller However, the .htaccess in the public_html directory rewrites all request to index.php .htaccess in public_html/caller rewrites all request to /caller/index.htm The thing is when I access [url] whatever the one that's called is /public_html/index.php How can I arrange so that the one called is /caller/index.htm?
View Replies!
View Related
IIS 5.1 - Browsing Folders
Well I finally got around to getting my IIS up and running which will save some time with uploading various files to check that they are working correctly but now I have run into a new problem. What used to happen with my IIS is it would list out all of the folders which I had in the wwwroot and I would simply navigate through and select which site needed to be tested. At the moment, I have cleared out the wwwroot folder entirely since all of the stuff in there was to do with a "Windows XP Professional" page which appeared upon installation. However, now that I don't need it anymore, I decided to clear it out and test IIS out by making a new folder called "sites" into wwwroot. Now though, it simply comes up with a "Directory Listing Denied. This Virtual Directory does not allow contents to be listed." error message, even though I have changed the permissions on the wwwroot folder to allow writing etc. Could this be because it's IIS 5.1 and I need to install IIS 6.0 instead or is something else wrong? I know for a fact that my operating system (Windows Media Center Edition 2005) will do this list as I have had it before, back before I installed Vista and then decided to come back to MCE.
View Replies!
View Related
Emails Going To SPAM Folders
I can send e-mails out but many times they go directly to the recipient's SPAM box. Also, my server cannot send to any company e-mail that uses MXLogic.net's services. Going to [url]<--My server IP is on ZERO blacklists. /etc/resolv.conf appears correct /etc/hosts also appears correct Is there something that I am overlooking?
View Replies!
View Related
Accessing Shared Folders
I have server which all files and folders are stored on. Now there are a couple of folders which are only accessible by one machine at present and all the other machines when they access the folder it is displayed as empty. I have checked all permisions and all machines viewing of files settings are the same and folders accessible by all machines have the same settings as the couple which are only accessible from this one machine. If I copy and paste the folder all machines then have access to the folder from although this would be a lengthy exercise for the full hard drive.
View Replies!
View Related
Folders Display Permissions
I would to know how I can change the display permissions for my website sub folders and files from public view, for instants The current is you can access to any folders or files once trying access to any folders in my website like open this link www.yoursite.com/photos/ will see all sub-folders and files in this “photos” folder also you can see the other folders in another level by going to the top level folders! but I think there is a way to enforce my users to write the full path of any selected photo or file they want without browsing my folders and sub-folder.
View Replies!
View Related
Mystery Folders Being Created
I am designing a site for a client and in all the years I've done design etc, I've come up against a phenomenon with their VPS server they have. It's linux and uploading files I am using WS_FTP Home. I am uploading files and folders to their public_html/domain.com/ (*I use domain here for their privacy) and in some folders (directories) after doing so, a mystery folder suddenly appears that is named 5" and as you enter that folder, you see the path directory show up "public_html" and if you go into that one, you come up to the domain.com folder again, and if you deeper into that one you start to see this phenomenon of mirroring folders of the one you go into. Example: public_html/domain.com/images/5"/public_html/domain.com/images/file ***the file whether it's an image jpg, png, etc is created as the last directory as a folder, not a file. I should also mention that as you go deeper in the 5" mystery directory folder, you no longer see the path in the FTP anything past the 5" one even as you go further in. Oh, and it doesn't allow you to delete these 5" folders regardless of what permissions. And this folder seems to show up in many areas of this website's directory structure...mostly where images are (don't know if that is just a coincidence). So hope all this makes sense....anyone seen this before and what the cause could be? Their host doesn't seem to know the reason and says they cannot see it even though others can. They said it's the FTP program as the cause and not their server. My comeback to that is that I've used this FTP for years and never before seen this happen. It's only with this one client's server.
View Replies!
View Related
SSL Certificates Works For Folders?
Say i have domain zzzzz.com and have some folders say a, b and c would ssl if installed for main domain zzzzz.com work for https://zzzzz.com/a and so on ? or would wildcard ssl be required for that ? And what if that /a folder is actually a subdomain, but since you can access subdomains via url/folder instead of folder.url would ssl work on it using url/folder option instead of subdomain url ?
View Replies!
View Related
Deny Perl In Public Folders
How do you guys deny run of perl/bash scripts from /tmp, /var/tmp, /dev/shm? I've tried to build simple shell wrapper, but that's not a compromise if you run for example spamassassin on the same server (it needs direct io to/from perl binary). I'm looking intro some kind of binary wrapper or patch that will deny running perl scripts from public folders (also the same for shell scripts will be great). Any ideas or solutions? If anyone interested in primitive shell wrapper code: Code: #!/bin/sh ARGS=`echo $@ | grep -v "/tmp/"` if [ "$ARGS" != "" ]; then /usr/bin/perl.orig $ARGS; fi
View Replies!
View Related
Number Of Sites
I just want a rough idea; How many sites could safely fit on a server with the following specs? PENTIUM-4 1.5GHZ 512MB DDR RAM CentOS Linux 5.X I am thinking in terms of CPU power and Ram here. The sites I have in mind are all low usage (at most 300MB storage and 1GB bandwidth per month) so bandwidth and storage is irrelevant here.
View Replies!
View Related
QUOTA
I've a dedicated with VERY high-end specs 16gb ram SCSI RAID10 SATAII RAID5 CentOS 4.5 x86_64 Kernal 2.6.9-55.ELsmp cPanel However, it has a serious problem, which is with any quota process such as, modifying accounts' quota/creating new account with specific quota(if set to unlimited no problem occurs)/restoring account from a backup file even its a 10mb file when it reaches the quota check section. When any of those happens the load goes Very high 50+ and even can hang the server for sometime if there is a big backup to restore so its quota is big . and the top process that appears at 'top' is quotaon 105% CPU. When I reboot the server and it come back online I can do any quota process with no issues at all for few hours after a reboot then if I do any quota concerning action the problem happens again! The DC said its not a hardware problem while I was suspecting it is!
View Replies!
View Related
Quota
I am trying to add a new user and here's what I'm doing: Code: login as: root root@server.ip.address.here's password: Last login: Fri Aug 31 18:54:25 2007 from my.last.ip [18:56:05][root@chii]~$ useradd -d /home/chiisana_alf -G chiisana_crew chiisana_alf [18:56:31][root@chii]~$ passwd chiisana_alf Changing password for user chiisana_alf. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. So far so good; right? Next: Code: [18:56:40][root@chii]~$ cd /home [18:56:46][root@chii]/home$ ls -lha total 52K drwx--x--x 13 root root 4.0K Aug 31 18:54 . drwxr-xr-x 22 root root 4.0K Aug 31 17:45 .. drwxr-xr-x 5 root root 4.0K Aug 31 00:38 .cpan drwx------ 3 root root 4.0K Aug 31 00:37 .cpcpan drwx------ 2 root root 4.0K Aug 29 12:04 MySQL-install drwx--x--x 10 chiisana chiisana 4.0K Aug 30 09:54 chiisana drwx------ 2 root root 4.0K Aug 31 18:54 chiisana_alf drwx------ 4 chiisana_edo chiisana_edo 4.0K Aug 31 15:43 chiisana_edo drwx------ 4 chiisana_mrpc chiisana_mrpc 4.0K Aug 31 00:36 chiisana_mrpc drwx------ 4 chiisana_neo chiisana_neo 4.0K Aug 31 01:42 chiisana_neo drwx------ 3 root root 4.0K Aug 31 10:01 cpapachebuild drwxr-xr-x 3 root root 4.0K Aug 28 15:25 cpins drwx------ 2 webadmin webadmin 4.0K Nov 10 2006 webadmin [18:56:48][root@chii]/home$ What the? root? That's not right.... Code: [18:56:48][root@chii]/home$ chown chiisana_alf:chiisana_alf chiisana_alf/ chown: changing ownership of `chiisana_alf/': Disk quota exceeded Er.... Code: [18:58:54][root@chii]/home$ du -h chiisana_alf/ 4.0K chiisana_alf/ [18:59:10][root@chii]/home$ df -h Filesystem Size Used Avail Use% Mounted on /dev/vzfs 100G 3.4G 96G 4% / /tmp 100G 3.4G 96G 4% /var/tmp
View Replies!
View Related
Quota
I am running cPanel and all the quotas are showing as unlimited and 0mb space used, I have tryed the rebuilt quotas in cPanel but this has no effect, can anyone shed some light on this?
View Replies!
View Related
Zipping Up Multiple Public_html Folders From Shell
OK so I'm on the shell and looking at the contents of my home/ directory which has all the various accounts. In each account directory are subdirs such as mail, logs, tmp, etc, and public_html. Is there a way (or a ZIP command) to be in the home directory and create a massive ZIP file containing all the account directories, each containing ONLY the respective public_html subdir for that account? Using the command "zip -r Backups.zip ./" seems to include all those extra folders (such as mail, etc.) that aren't needed.
View Replies!
View Related
Access Folders In Root / Bypass Wordpress
My blog is set up to display in the root of my domain, although the files on the server sit within their own folder: i.e Server files Public_html/wordpressfiles/ Broswer displays www . mydomain . com/ (disaplys pages from /wordpressfiles) The problem I have is that I can't access individual directories within the root, unrelated to wordpress. e.g I have Public_html/folder2/... Setup on the server, but if I enter the path in my browser: www . mydomain . com/folder2 wordpress thinks I want to access: www . mydomain . com/wordpress/folder2 ...which doesn't exist. How can I re-gain access to folders in the root, without wordpress interfering?
View Replies!
View Related
Addon Domain, Cant Have Password Protected Folders
I have 2 domains on 1 account. My main website is www.aviationcafe.net and i added on www.modelcuir.com thats what it looks like to the public. But with my host it will be www.modelcuir.aviationcafe.net. I noticed in the files area that modelcuir is it's own file, i can password protect that but it will stop people getting onto the website completly and i only want to stop them getting into the members area. I can't create a members area either unless i can add a new folder which i can't i dont think.
View Replies!
View Related
Apache 1.3 For One Site, Two Cgi-bin Folders
my server has just one site, apache conf has such a line: Code: ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/cgi-bin/" and Code: <Directory "usr/local/apache/htdocs/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> then, my cgi script may run well under the said folder, /usr/local/apache/htdocs/cgi-bin but I have another script need to be setup another cgi-bin under its own folder below htdocs folder, like, /usr/local/apache/htdocs/anotherscript/cgi-bin however, when I run the said script in browser: Code: http://www.mydomain.com/anotherscript/cgi-bin/abc.cgi the browser just shows source codes, instead of running it. I am guessing something wrong in httpd.conf, may I know how to set apache httpd.conf to meet my requirement?
View Replies!
View Related
|