<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>InstaCarma Blog &#187; space</title>
	<atom:link href="http://www.instacarma.com/blog/tag/space/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Sat, 10 Mar 2012 21:44:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>mail folder taking up huge space</title>
		<link>http://www.instacarma.com/blog/technical/mail-folder-taking-up-huge-space/</link>
		<comments>http://www.instacarma.com/blog/technical/mail-folder-taking-up-huge-space/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:08:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1076</guid>
		<description><![CDATA[Filed under: cPanel, email, mail, space Issue : No email accounts have been created on the domain but still the mail folder is taking up huge space. Solution : When a cPanel account is created, a default email account with the cPanel username is also created automatically. In this case it seems that it has [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/email/'>email</a>, <a href='http://www.instacarma.com/blog/tag/mail/'>mail</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p><strong>Issue : </strong></p>
<p>No email accounts have been created on the domain but still the <em>mail</em> folder is taking up huge space.</p>
<p><strong>Solution : </strong></p>
<p>When a cPanel account is created, a default email account with the cPanel username is also created automatically.<br />
In this case it seems that it has been set as  catchall which is why any email sent to the domain at anything@yourdomain.com is saved under the default email address. You can delete them via Webmail .<br />
(cPanel >> Email Accounts >> At the bottom, you will see the cPanel username and a Webmail icon besides it. Login to it using your cPanel password and delete the emails.)</p>
<p>To disable catchall and prevent this from happening again, do the following : </p>
<p>1. Login to the cPanel of the domain.<br />
2. Click on &#8216;Mail&#8217; icon.<br />
3. Click on &#8216;Default Address&#8217;.<br />
4. Click on &#8216;Set Default Address&#8217; link.<br />
5. Enter :fail: in the text box and click on &#8216;Change&#8217; button.</p>
<p>This should fix the problem!</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/mail-folder-taking-up-huge-space/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/mail-folder-taking-up-huge-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to clear /tmp partition</title>
		<link>http://www.instacarma.com/blog/technical/how-to-clear-tmp-partition/</link>
		<comments>http://www.instacarma.com/blog/technical/how-to-clear-tmp-partition/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 17:31:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[tmp]]></category>
		<category><![CDATA[tmpwatch]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1065</guid>
		<description><![CDATA[Filed under: disk, space, tmp, tmpwatch Issue : How to clear unwanted stuff from the /tmp partition on the server? Fix : Run the following command : tmpwatch &#8211;mtime &#8211;all 48 /tmp The above command will remove all files and folders from the /tmp which have not been accessed in the last couple of days [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a>, <a href='http://www.instacarma.com/blog/tag/tmp/'>tmp</a>, <a href='http://www.instacarma.com/blog/tag/tmpwatch/'>tmpwatch</a></p>
<p><strong>Issue :</strong></p>
<p>How to clear unwanted stuff from the <em>/tmp</em> partition on the server?</p>
<p><strong>Fix :  </strong></p>
<p>Run the following command : </p>
<blockquote><p>tmpwatch &#8211;mtime &#8211;all 48 /tmp</p></blockquote>
<p>The above command will remove all files and folders from the <em>/tmp</em> which have not been accessed in the last couple of days (24*2=48).</p>
<p>You can modify the number of hours as required.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/how-to-clear-tmp-partition/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/how-to-clear-tmp-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No  space left on device</title>
		<link>http://www.instacarma.com/blog/technical/no-space-left-on-device/</link>
		<comments>http://www.instacarma.com/blog/technical/no-space-left-on-device/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:01:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=754</guid>
		<description><![CDATA[Filed under: disk, Mysql, space Issue : Following error shows up on the websites which run with mysql. Warning: session_write_close() [function.session-write-close]: write failed: No space left on device (28) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Restarting MySQL fixes the issue temporarily. Fix : This usually occurs when /tmp runs out of space. You can check the [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p><strong>Issue : </strong></p>
<p>Following error shows up on the websites  which run with  mysql. </p>
<p><em>Warning: session_write_close() [function.session-write-close]: write failed: No<br />
 space left on device (28)<br />
in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 </em></p>
<p>Restarting MySQL fixes the issue temporarily.</p>
<p><strong>Fix : </strong></p>
<p>This usually occurs when <em> /tmp</em> runs out of space. You can check the space by using the following command:</p>
<blockquote><p>root@server# df -h </p></blockquote>
<p>Couple of tips to clear some space in<em> /tmp</em> :</p>
<p>1. Check and remove older session files.</p>
<blockquote><p>root@server# rm -f /tmp/sess*</p></blockquote>
<p>2. Get rid of semaphores.</p>
<blockquote><p>root@server# ipcs -s | grep nobody | perl -e &#8216;while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/no-space-left-on-device/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial on clearing  Disk Space on a Server</title>
		<link>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/</link>
		<comments>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/#comments</comments>
		<pubDate>Sun, 24 May 2009 13:47:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Popular Posts]]></category>
		<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=375</guid>
		<description><![CDATA[Filed under: apache, backup, cPanel, disk, exim, Mysql, space Running out of disk space is a very common issue.  Be it a web-hosting service provider or the end-user.  I wanted to share a few tips that the technical support staff  at InstaCarma use to resolve disk-space issues on a cPanel server. As we all know, [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/apache/'>apache</a>, <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/exim/'>exim</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p>Running out of disk space is a very common issue.  Be it a <strong>web-hosting </strong>service provider or the end-user.  I wanted to share a few tips that the<strong> technical support</strong> staff  at <strong>InstaCarma</strong> use to resolve disk-space issues on a <strong>cPanel</strong> server. As we all know, there are various partitions on a server which are meant for different purposes. So, the methods used to deal with space issues on these partitions will also vary. Let us see them one by one.</p>
<p>The <strong>/USR</strong> partition</p>
<p>1. Restart the<strong><em> httpd</em></strong> service. This might free a little space some times.</p>
<p>2. Check for <strong><em>apache logs</em></strong> like error_log, access_log , suexec_log in <em>/usr/local/apache/logs</em> . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside.</p>
<p>3. Same can be done for the files in<em> <strong>cPanel logs</strong></em> (<em>/usr/local/cpanel/logs</em>)  as well .</p>
<p>4. <strong><em>Domlogs</em></strong> &#8211; Get into  the <em>/usr/local/apache/domlogs/</em> directory. Run the following command :-</p>
<p># ls -al -SR | head -10        &#8212;&gt; It will list 10 files in the decreasing order according to their size</p>
<p>If the domlog file is too large for a domain then it is possible that <em>awstats</em> is not running . Check whether <em>cpanellogd</em> is running on the server  using <em> pstree</em> . If not, restart it .<br />
Else, it is possible that awstats for only that particular domain is not updating. Get into the directory <em>/usr/local/cpanel/base</em> and check if any file as &#8216;awstats.domainname.com.conf&#8217; exists.   If yes , delete that file.</p>
<p>Now,  run <em>/scripts/runweblogs</em> for that user.  It will update the awstats and automatically clear the domlogs file thereafter.<strong> Do not</strong> delete the domlogs file itself.</p>
<p>5. Remove old and unwanted backups of  &#8216;apache&#8217;  that might have been taken long ago. Also, check for any other duplicate folders that can be removed safely.</p>
<p>6. Remove<strong> core files, </strong>if any . Normally, some core files (like core.1234) might be present in<em> /usr/local/cpanel/whostmgr/docroot</em> . Check for these and remove them.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/HOME</strong> partition</p>
<p>1.  Check for unwanted cpmove/tar files for the user accounts in <em>/home</em> and delete them.</p>
<p>2.  Check for any cpmove folders as well in <em>/home</em></p>
<p>3.  Check the folder &#8216;cprestore&#8217;  in <em>/home</em> for any tar files. Be careful. These should  be deleted only if they are very old,say about 4-5 months.</p>
<p>4. Using <em>find</em> command you can check for unwanted tar files(especially cpmove/backup) in the entire home directory. Check their size. If you think that deleting them will  make considerable difference to the disk space then delete them.</p>
<p>5. Check for core files and delete them.</p>
<p>6.  Search for large accounts and see if they are hosting any prohibited content or violating your company policies. If yes, take appropriate measures as per your policies.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/VAR</strong> partition</p>
<p>1. Restart the <strong>mysql</strong> service.</p>
<p>2. Log files in <em>/var/log </em>like exim_mainlog, mailmon.log, messages, mysqld.log, mysql_slow_queries.log  can be deleted after taking backups of the required ones..</p>
<p>Note that there is no point in deleting these log files if the size is very small. Check whether deleting these would make any difference.</p>
<p>If you are deleting them then do <strong>re-create</strong> the files, or you can use the command &#8216;echo &#8221; &#8221; &gt; logfile&#8217; to empty the existing files.</p>
<p>3.  Clear Mysql logs like server-name.err or any other  present  in <em>/var/lib/mysql</em></p>
<p>4. Delete mysql-bin.000* file  in <em>/var/lib/mysql</em>, if present.</p>
<p>5. There might be useless large .sql files   in <em>/var/lib/mysql</em> . Delete them.</p>
<p>6.  Remove unwanted emails from spool. You can use the following code to do that :</p>
<blockquote><p>exim -bpc<br />
exim -bpru | grep frozen | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;&lt;&gt;&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;nobody&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru|awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exiqgrep -o 86400 -i | xargs exim -Mrm<br />
exim -bpc</p></blockquote>
<p>7. There might be yum cache files inside the <em>/var/cache</em> folder which can take space. To remove them do:<br />
#  yum clear all<br />
#  yum list all</p>
<p>8. Again, search for any core files ( core dump ) like core.12* etc.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/BACKUP</strong> partition</p>
<p>1. Remove any tar/cpmove files if they are too old and large.</p>
<p>2. Remove any old  configuration backups ( like apache.bkp) or any log file backup , say 3-4 months old.</p>
<p>3. Check for core files and remove them.</p>
<p>These are some of the general steps that can be followed to deal with space issues on the servers.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache error :Segment No Space left on device</title>
		<link>http://www.instacarma.com/blog/technical/apache-error-segment-no-space-left-on-device/</link>
		<comments>http://www.instacarma.com/blog/technical/apache-error-segment-no-space-left-on-device/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 16:57:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=157</guid>
		<description><![CDATA[Filed under: apache, disk, space Issue : While starting apache Error : Segment No space left on device. Fix : Check if there&#8217;s any disk space issue on server using &#8220;df -h&#8221; Fix that worked in this case : Empty /usr/local/apache/logs/error_log (It was 360 MB)]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/apache/'>apache</a>, <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p><strong>Issue : </strong><br />
While starting apache<br />
Error : Segment No space left on device.</p>
<p><strong>Fix : </strong><br />
Check if there&#8217;s any disk space issue on server using &#8220;df -h&#8221;<br />
Fix that worked in this case : Empty /usr/local/apache/logs/error_log (It was 360<br />
MB)</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/apache-error-segment-no-space-left-on-device/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/apache-error-segment-no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

