<?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>The cPanel Admin &#187; management</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Managing Multiple Hard Drives with cPanel</title>
		<link>http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/</link>
		<comments>http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 19:13:59 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[management]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=515</guid>
		<description><![CDATA[If you have a server with single standalone drives, you may have considered the possibility of adding additional hard drives to provide more disk capacity to your system. Luckily, this is very easy to set up and use with cPanel. First things first, I&#8217;ll assume that you already have the hard drive physically installed in [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/' rel='bookmark' title='Fixing Quotas on a cPanel Server'>Fixing Quotas on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/rebuild-cpanel-bandwidth-graphs/' rel='bookmark' title='How to Rebuild cPanel Bandwidth Graphs'>How to Rebuild cPanel Bandwidth Graphs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have a server with single standalone drives, you may have considered the possibility of adding additional hard drives to provide more disk capacity to your system. Luckily, this is very easy to set up and use with cPanel.</p>
<p>First things first, I&#8217;ll assume that you already have the hard drive physically installed in your system. This guide will show you how to partition, format, and configure cPanel to use an additional hard drive, in the simplest way possible.</p>
<p><span id="more-515"></span></p>
<h2>1. Partitioning the Disk</h2>
<p>We&#8217;ll assume that the additional disk is supplementary to a system that already has an existing drive and OS installation. Therefore, the new disk will usually only need to be one single partition, unless you have different planned uses for it.  If this is the second disk in your server, it&#8217;s going to be named either /dev/sdb or /dev/hdb, depending on what kind of drive it is. The last letter in the drive name will depend on how many other disks you have in your server, so see <a href="http://www.cyberciti.biz/faq/linux-partition-naming-convention-and-ide-drive-mappings/" target="_blank">this article</a> for a simple explanation on Linux drive mappings.</p>
<p>To find the new disk you added, use<strong> fdisk -l</strong>, which will list the disks active on your server. The additional disk should show up in the order that it&#8217;s physically configured inside the server:</p>
<p><code>Disk <strong>/dev/sdb</strong>: 250.0 GB, 250000000000 bytes<br />
255 heads, 63 sectors/track, 30394 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</code></p>
<p>If you notice, the already-partitioned volumes also list the partition info. For example, this is what the output for the primary hard drive in my test server looks like, which is already set up with two partitions on the primary drive:</p>
<p><code>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1       29884   240043198+  83  Linux<br />
/dev/sda2           29885       30394     4096575   82  Linux swap / Solaris</code></p>
<p>The partition information is blank for the new disk, indicating that it has not been partitioned yet. If yours has already been partitioned and you want to keep that structure, you can skip this section and go straight to formatting.</p>
<p>From here, I want to create one partition which will be /home2 on this server, to provide additional capacity for users on this system.  GNU parted is a simple command line utility to manage disk partitions, and I&#8217;ll use this to create a partition on my new hard drive:</p>
<blockquote><p>parted /dev/sdb</p></blockquote>
<p>Once in parted, type <strong>print free</strong> to show how much space is available to be partitioned:</p>
<pre><code>Number  Start   End    Size   Type  File system  Flags
        0.00kB  250GB  250GB        Free Space</code></pre>
<p>Since I&#8217;m only creating one partition, I use the parted <strong>mkpart</strong> command to specify the start and end space to occupy the whole disk:</p>
<p><code>(parted) mkpart<br />
Partition type?  primary/extended? <strong>primary</strong><br />
File system type?  [ext2]? <strong>ext3</strong><br />
Start? <strong>0kB</strong><br />
End? <strong>250GB</strong></code></p>
<p>Then when I type in print, I see my new partition listed:</p>
<p><code><strong>Number</strong> Start   End    Size   Type     File system  Flags<br />
<strong>1</strong> 0.51kB  250GB  250GB  primary</code></p>
<p>Now, if you&#8217;re creating multiple partitions on the disk, do the same thing, but modify the start and end parameters to sequentially create your partitions.  In the above example, that partition would have a device name as <em>/dev/sdb1</em>, since it&#8217;s the partition numbered 1 on disk /dev/sdb.  If I had a second and third partition, they would be named /dev/sdb2 and /dev/sdb3, respectively.</p>
<p>Type <strong>quit </strong>to close the parted session.</p>
<h2>2. Formatting and Configuring the Disk</h2>
<p>Once you&#8217;ve created the partitions, you can format them easily with mkfs.ext[2|3], using the device name as the argument:</p>
<ul>
<li>For ext3:  <strong>mkfs.ext3 /dev/sdb1</strong></li>
<li>For ext2:  <strong>mkfs.ext2 /dev/sdb1</strong></li>
<li>For ext4:  <a href="http://idolinux.blogspot.com/2010/02/ext4-on-centos-for-large-filesystem.html" target="_blank">see this article</a> or the <a href="https://ext4.wiki.kernel.org/index.php/Ext4_Howto" target="_blank">ext4 wiki</a></li>
</ul>
<p>Repeat this for all the partitions you created, which will be numbered started as /dev/&lt;device&gt;&lt;partition&gt;. My example is using the first partition of the second SCSI hard drive, so the partition device name is /dev/sdb1 .  You can also find the new partition names by running <strong>fdisk -l</strong> again to see the names of the partitions for the new disk.</p>
<p>I also prefer to set the reserved disk space for the root user, as by default this will be 5% of the total partition size. This means for my 250GB disk, about 12GB is being reserved, which is a bit excessive. I instead usually set this to 2500 blocks:</p>
<blockquote><p>root@server [~]#     tune2fs -r 2500 /dev/sdb1<br />
tune2fs 1.39 (29-May-2006)<br />
Setting reserved blocks count to 2500</p></blockquote>
<p>TIP: You can also pass <strong>-m &lt;%&gt;</strong> to the mkfs.ext[2|3] commands to set the percentage for reserved disk space during formatting, which can of course be changed later with tune2fs</p>
<h2>3. Labeling and Mounting the Disk</h2>
<p>Now, you need to label the disk and add it to fstab. In my example, I want to label the disk as /home2, so I&#8217;d use the <strong>e2label</strong> command and pass the partition&#8217;s device name and my desired label as arguments:</p>
<blockquote><p>e2label /dev/sdb1 /home2</p></blockquote>
<p>This can be confirmed by typing e2label /dev/sdb1:</p>
<blockquote><p>root@server [~]# e2label /dev/sdb1<br />
/home2</p></blockquote>
<p>In order to mount the partition, it needs a mount point, and to be added to the file system table. Since the partition will be mounted as /home2, I created a folder called /home2, and added the following to /etc/fstab:</p>
<p><code>LABEL=/home2            /home2                  ext3    defaults,usrquota,noatime        0 0</code></p>
<p>The LABEL value would be set to the label you used in e2label.  To find out more about the fstab file, see <a href="http://www.tuxfiles.org/linuxhelp/fstab.html" target="_blank">this article</a>. Again, you need to repeat these steps for each partition you created.</p>
<p>After you do this, you can mount the new partitions normally:</p>
<blockquote><p>mount /home2</p></blockquote>
<h2>4. Setting up cPanel</h2>
<p>As far as setting up cPanel, there&#8217;s only one file you have to edit &#8211; /etc/wwwacct.conf.</p>
<ul>
<li>HOMEDIR : The location where all new user home folders will be created (/home by default)</li>
<li>HOMEMATCH: Additional home directories that will also be used for new home directory creations &#8211; only takes <strong>one</strong> value, leaving blank disables.</li>
</ul>
<p>So, if you want to specify the partition/folder that all users are set up on, edit the HOMEDIR value and leave HOMEMATCH blank. If you specify a value for HOMEMATCH, cPanel will pick the partition based on which one has the most free space available.</p>
<p>For example, if you specify &#8220;home&#8221; for HOMEMATCH, it will configure users in the following locations:</p>
<ul>
<li>/home</li>
<li>/home* (/home2, /home3, etc)</li>
<li>/anythingwith/home</li>
<li>/usr/home</li>
</ul>
<h2>Additional Resources:</h2>
<p><a href="http://www.linuxplanet.com/linuxplanet/tutorials/4232/1/" target="_blank">Tutorial: Adding Additional Hard Drives in Linux</a></p>
<p><a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/DiskDrives" target="_blank">cPanel Wiki: Disk Drive Management (WHM)</a></p>
<p><map name='google_ad_map_515_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/515?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_515_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=515&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fmanaging-multiple-hard-drives-cpanel%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=515&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/' rel='bookmark' title='Fixing Quotas on a cPanel Server'>Fixing Quotas on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/rebuild-cpanel-bandwidth-graphs/' rel='bookmark' title='How to Rebuild cPanel Bandwidth Graphs'>How to Rebuild cPanel Bandwidth Graphs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>10 Free Monitoring Solutions to Consider</title>
		<link>http://www.thecpaneladmin.com/10-free-monitoring-solutions/</link>
		<comments>http://www.thecpaneladmin.com/10-free-monitoring-solutions/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 21:54:39 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=159</guid>
		<description><![CDATA[Server and network monitoring can be crucial to a host's success. I mean, how embarrassing is it when your customers are aware of downtime before you are? You don't have to pay big bucks or spend loads of time setting up monitoring for your server. We've compiled a list of free monitoring solutions you can use to guarantee minimal downtime for your users, and show customers how reliable your service is!


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/' rel='bookmark' title='Adding New Feature Groups for a cPanel Theme'>Adding New Feature Groups for a cPanel Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Server and network monitoring can be crucial to a host&#8217;s success. I mean, how embarrassing is it when your customers are aware of downtime before you are? You don&#8217;t have to pay big bucks or spend loads of time setting up monitoring for your server. We&#8217;ve compiled a list of free monitoring solutions you can use to guarantee minimal downtime for your users, and show customers how reliable your service is!</p>
<p><span id="more-159"></span></p>
<h2>Monitoring Software</h2>
<p>With a software option, you&#8217;d basically be setting up a server to act as a monitor, or installing software on your PC. Here are some free and open-source software solutions that we&#8217;ve used:</p>
<p><a href="http://nagios.org" target="_blank">Nagios</a></p>
<p>Nagios is considered one of the best free server/network monitoring tools in the industry. It&#8217;s highly customizable and hundreds of plugins are available for it, not to mention that you can easily write your own plugins as well. The only downfall is that the setup can be tricky, and for most setups you need to install the nagios client (NRPE) on the monitored server.</p>
<p><a href="http://munin.projects.linpro.no/" target="_blank">Munin</a></p>
<p>Munin is a plug and play monitoring software mostly for network performance analysis. On a cPanel server, you can install this easily via WHM &gt; Plugins.</p>
<p><a href="http://monitorix.org" target="_blank">Monitorix</a></p>
<p>Monitorix is a free, lightweight monitoring application similar to Nagios and Munin</p>
<p><a href="http://sourceforge.net/projects/phpservermon/" target="_blank">PHP ServerMon</a></p>
<p>Monitors multiple services across multiple servers, allowing each to have its own custom notification settings.</p>
<p><a href="http://www.sourcecodeonline.com/details/server_monitor.html" target="_blank">Server Monitor</a></p>
<p>PHP-based monitoring software allowing monitoring for multiple ports on a server, and provides details uptime reports</p>
<p>Here is a nice list of a few more: <a href="http://sixrevisions.com/tools/10-free-server-network-monitoring-tools-that-kick-ass/" target="_blank">http://sixrevisions.com/tools/10-free-server-network-monitoring-tools-that-kick-ass/</a></p>
<p style="text-align: center;"><a href="http://www.internetuptimemonitor.com/?user-redirect=551"><img class="aligncenter" src="http://www.internetuptimemonitor.com/images/banners/inetuptimemonitor-468x60.gif" border="0" alt="" /></a></p>
<h2>Hosted Solutions</h2>
<p>A hosted monitoring solution is a service offered and maintained by another provider, so you don&#8217;t have any software to install or configure. You&#8217;d generally sign up with the provider and use their control panel to manage your monitored sites. Here are the ones we&#8217;ve tested and recommend:</p>
<p><a href="http://mon.itor.us" target="_blank">mon.itor.us</a></p>
<p>Mon.itor.us is a relatively new monitoring service that promises FREE monitoring forever, for external and internal hosts. When you sign up, you get free access to reports and uptime statistics, as well as widgets you can add to your site. At the time this article was written, this service is still in beta but is rapidly improving and is considered very reliable.</p>
<p><a href="www.247webmonitoring.com" target="_blank">247WebMonitoring</a></p>
<p>This is a 100% free monitoring service that provides a wide range of flexible features for up to 5 sites at intervals of 15, 30, and 60 minutes. Features include content monitoring, pie charts, email/SMS notifications, maintenance mode, and an easy to use control panel. Site also includes a demo showing the service&#8217;s easy of use.</p>
<p><a href="http://www.SiteUptime.com/?aff=10784" target="_blank">SiteUptime</a></p>
<p>The free plan provides monitoring for one site at 30 or 60-minute intervals for HTTP, POP3, SMTP, and FTP, from multiple locations. Low-cost upgrade options are also available: <a href="http://www.SiteUptime.com/?aff=10784" target="_blank">http://www.siteuptime.com/compare.php</a></p>
<p><a href="http://pingdom.com" target="_blank">Pingdom</a></p>
<p>The free plan includes monitoring for one site and up to 20 SMS alerts, with free unlimited email alerts.</p>
<p><a href="http://uptimespy.com" target="_blank">Uptime Spy</a></p>
<p>A more advanced monitoring service that will monitor an unlimited number of resources from several geographic locations at 1,5,15,30, and 60-minute intervals. Features include advanced reporting and statistics, and unlimited notifications.</p>
<p><map name='google_ad_map_159_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/159?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_159_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=159&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2F10-free-monitoring-solutions%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=159&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/' rel='bookmark' title='Adding New Feature Groups for a cPanel Theme'>Adding New Feature Groups for a cPanel Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/10-free-monitoring-solutions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>11 Ways to Free Up Disk Space on a cPanel Server</title>
		<link>http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/</link>
		<comments>http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 19:05:00 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=146</guid>
		<description><![CDATA[I'm sure that most of you have been to the point where one or more of your servers start to fill up as you get more customers. The server's performing just fine, but there's one problem...you're out of disk space! Here are a few simple tricks to freeing up disk space on your cPanel server to help maximize your server's potential.


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/removing-whm-disk-space-errors/' rel='bookmark' title='Removing WHM Disk Space Errors'>Removing WHM Disk Space Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-backup-system/' rel='bookmark' title='The cPanel Backup System'>The cPanel Backup System</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that most of you have been to the point where one or more of your servers start to fill up as you get more customers. The server&#8217;s performing just fine, but there&#8217;s one problem&#8230;you&#8217;re out of disk space! Here are a few simple tricks to freeing up disk space on your cPanel server to help maximize your server&#8217;s potential.</p>
<p><strong>1) Delete user cPanel and Fantastsico backups</strong></p>
<p>If you have the backup feature in cPanel enabled, chances are your users are storing the backups on the server instead of downloading and removing them. On larger servers, this can account for a lot of disk space usage. You may want to consider warning your users ahead of time that backups will automatically be removed from the server after a certain period of time or on certain dates.  You can mass-delete all user cPanel backups on the server with this command:</p>
<blockquote><p>for user in `/bin/ls -A /var/cpanel/users` ; do rm -fv /home/$user/backup-*$user.tar.gz ; done</p></blockquote>
<p>To remove Fantastico backups:</p>
<blockquote><p>rm -rfv /home/*/fantastico_backups</p></blockquote>
<p><strong>2) Move your backups offsite</strong></p>
<p>Similarly to above, if you&#8217;re using <a href="http://www.thecpaneladmin.com/cpanel-backup-system/" target="_self">the cPanel Backup</a> System and are storing your backups locally on the server, you could be using twice as much space as you need to. Consider mounting a backup server to your hosting server and storing the backups there (there is an option to mount external media in WHM &gt; Configure Backups) or using an alternate method of backing up your server that doesn&#8217;t involve storing the backups locally. While local backups may be convenient at times, they tend to be useless when a server failure occurs.</p>
<p><strong>3) Delete cPanel File Manager temp files</strong></p>
<p>When users upload files in File Manager within cPanel, File Manager creates a temp file that may or may not get removed upon upload. You can remove these files using this command:</p>
<blockquote><p>rm -fv /home/*/tmp/Cpanel_*</p></blockquote>
<p><strong>4) Move or archive logs </strong></p>
<p>Most of the server&#8217;s logs are stored in /var/log, which can get rather large on more populated servers. You can change the length of time and frequency of the log rotation in /etc/logrotate.conf, and enable compression to save additional space (at the expense of CPU when the logs are being gzipped). If you want older logs, consider creating a cron job to periodically transfer them to a backup or log server so they aren&#8217;t taking up space on your hosting server.</p>
<p><strong>5) Remove cPanel update archives</strong></p>
<p>Cpanel and EasyApache updates tend to leave behind files that you probably don&#8217;t need. The following can be deleted or moved to a backup server to free up a little bit of space:</p>
<blockquote><p>/usr/local/apache.backup*</p>
<p>/home/cpeasyapache (actual name may vary depending on cpanel version)</p></blockquote>
<p><strong>6) Clean up Yum files</strong></p>
<p>Yum updates leave package cache files on the server. You can clean up all unneeded yum files by running:</p>
<blockquote><p>yum clean all</p></blockquote>
<p><strong>7) Remove pure-ftp partials</strong></p>
<p>When your users upload files to the server via FTP when your server runs pureFTP as an FTP daemon, the FTP server creates temporary files starting with .pureftpd-upload* that get renamed the the actual filename when the upload completes. If the upload doesn&#8217;t complete, these files are left on the server. You can find and delete these by running:</p>
<blockquote><p>locate .pureftpd-upload | xargs rm -fv</p></blockquote>
<p>*If you don&#8217;t run an updatedb regularly, you might want to do so before running this command</p>
<p><strong>8) Decrease the reserved disk space </strong></p>
<p>By default, Linux reserves 5% of the disk space from each partition for the root user, so root can still log in even if the disk is full. You may have noticed when running a df that you may be using 900GB out of a 1TB drive, but only have 50GB available&#8230;that&#8217;s because the other 50GB is reserved.</p>
<p>For larger drives, you really don&#8217;t need the whole 5%. I would recommend setting this value down to 2500 blocks so you can utilize more of the disk space. You can do this with tune2fs:</p>
<blockquote><p>tune2fs -r 2500 /dev/sda1</p></blockquote>
<p>You&#8217;ll want to probably <a href="http://linux.die.net/man/8/tune2fs" target="_blank">man the tune2fs</a> command before you use it for other options on setting the reserved space for your partitions.</p>
<p><strong>9) Remove unneeded accounts</strong></p>
<p>If you have a larger churn rate you probably have some user accounts laying around on your server that you don&#8217;t need. Check out WHM &gt; List Suspended Accounts (or ls /var/cpanel/suspended) and look for suspended accounts that you may be able to remove from the server to free up space. You can terminate accounts in WHM &gt; Terminate an Account or using the command <em>/scripts/killacct &lt;user&gt; &lt;y/n&gt;</em> (y/n indicating whether to save the DNS records)</p>
<p><strong>10) Check for contrabands</strong></p>
<p>As a hosting provider you should have a Terms of Service that specifically tells your customers what they can (or rather cannot) store on your server. Most hosts have specific rules about the hosting of non-website-related backups and copyrighted material, but don&#8217;t pro actively scan their servers for it.  It wouldn&#8217;t hurt to run a few locate commands to find common files associated with copyright violations, like .mp3, .avi, .exe, etc, and have your customers remove them from the server. I once cleared over 300Gb of space on a server just by having customers remove contraband files from the server. On top of that, you&#8217;re also preserving the integrity of your business from a legal standpoint.</p>
<p><strong>11) Consider a larger server</strong></p>
<p>Some of your customers may have a legitimate need for large amount of disk space, and therefore you may be unable to keep the disk space usage on your server at a reasonable level. A lot of hosting providers have alternate servers that are more &#8220;low key&#8221; but have huge disk storage volumes to accommodate customers that have larger sites. You might want to consider investing in a server that will be less populated and only the users that occupy a large amount of space.</p>
<p><map name='google_ad_map_146_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/146?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_146_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=146&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2F11-ways-to-free-up-disk-space-on-a-cpanel-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=146&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/removing-whm-disk-space-errors/' rel='bookmark' title='Removing WHM Disk Space Errors'>Removing WHM Disk Space Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-backup-system/' rel='bookmark' title='The cPanel Backup System'>The cPanel Backup System</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Adding Services to Chksrvd for Monitoring</title>
		<link>http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/</link>
		<comments>http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 15:00:22 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=62</guid>
		<description><![CDATA[Chkservd is the service in cPanel that checks to make sure that services are running, then restarts them if necessary.  It&#8217;s also responsible for the &#8216;Service Manager&#8217; section in cPanel, which is also an interface where added services can be easily checked on and off. Service files are in /etc/chkserv.d/ To add a new service, [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/10-free-monitoring-solutions/' rel='bookmark' title='10 Free Monitoring Solutions to Consider'>10 Free Monitoring Solutions to Consider</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-ip-addresses-server/' rel='bookmark' title='Adding IP Addresses to a Server'>Adding IP Addresses to a Server</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Chkservd is the service in cPanel that checks to make sure that services are running, then restarts them if necessary.  It&#8217;s also responsible for the &#8216;Service Manager&#8217; section in cPanel, which is also an interface where added services can be easily checked on and off.</p>
<p>Service files are in <strong>/etc/chkserv.d/</strong></p>
<p>To add a new service, create a line in &#8221;&#8217;<strong>/etc/chkserv.d/chkservd.conf&#8217;</strong>&#8221; in the same format as the others:</p>
<p><code>service:1<br />
</code><br />
1 means the service should be enabled, 0 means it&#8217;s off.</p>
<p>In &#8221;&#8217;/etc/chkserv.d&#8221;&#8217; each service has its own file.  Create a file called as the name of the service you are monitoring.  The contents of the file are in the format of:</p>
<p><code>#SERVICE = PORT, SEND, RESPONSE, RE-START COMMAND</code></p>
<p>There are two ways that cPanel checks services with chkservd:</p>
<p>*Connection-based monitoring &#8211; By default, cPanel will try to connect to the service&#8217;s specified port, issue a command, and if a response is received within 10 seconds it will consider the service to be online. For instance, FTP:</p>
<p><code>service[ftpd]=21,QUIT,220,/scripts/restartsrv_ftpserver</code></p>
<p>*Process-based monitoring &#8211; cPanel will check for a specific process to determine whether it is online. For instance, named:</p>
<p><code>service[named]=x,x,x,/scripts/restartsrvr_bind,named,named|bind</code></p>
<p>If you have more than one restart command, you can separate them with semicolons in order of preference that they should be run.  Output of these commands will be logged to the chkservd.log</p>
<p>After you&#8217;ve created the service&#8217;s configuration file, restart chkservd:</p>
<blockquote><p>/etc/init.d/chkservd restart</p></blockquote>
<p>You should then see the service listed in WebHost Manager in the &#8216;service manager section&#8217;</p>
<p>Chkservd logs are in /var/log/chkservd.log.  Checks are done every 8 minutes, and everyone online service gets a +, offline services get a -.  If the service is determined to be offline, the restart command(s) specified in that service&#8217;s chkservd configuration file is issued and the output is logged.</p></blockquote>
<p><map name='google_ad_map_62_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/62?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_62_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=62&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fadding-services-to-chksrvd-for-monitoring%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=62&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/10-free-monitoring-solutions/' rel='bookmark' title='10 Free Monitoring Solutions to Consider'>10 Free Monitoring Solutions to Consider</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-ip-addresses-server/' rel='bookmark' title='Adding IP Addresses to a Server'>Adding IP Addresses to a Server</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

