Archive for the tag 'disk'

SBDavid

Super Grub2 Disk

Super Grub2 Disk

The primary purpose of Super GRUB2 Disk is to help you boot into an OS whose bootloader is broken.

Second, and almost as important, is to be a tool to learn more about GRUB2 and the booting process.

Difference between Super GRUB Disk and Super GRUB2 Disk

GRUB2 is a complete rewrite of GRUB, and Super GRUB2 Disk is a complete rewrite as well.
As Super GRUB2 Disk uses GRUB2, the differences between GRUB Legacy and GRUB2 also apply to the different versions of Super GRUB Disk.

Perhaps the most notable difference between Super GRUB Disk based on grub legacy and Super GRUB2 Disk is that Super GRUB2 Disk does not write to the disk at all, and so cannot rewrite the MBR. Super GRUB2 Disk can only be used to boot a broken system, it cannot fix it directly. Though once a system is booted, re-installing grub is usually just a matter of running “grub-install /dev/sda”.

SBDavid

Cpanel disk usage calculation

As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures. The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage. The file contents are a colon (:) separated list of user names and
figures in bytes.

Example “mysql-disk-usage contents

[~]# cat /var/cpanel/datastore/mysql-disk-usage

Support for /scripts/updatemysqlquota ends as of cPanel™ 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.

Disk Space Usage and bandwidth data (RRD)

In cPanel™ 11.25 the number of bandwidth data (RRD) files has increased. File names have also changed for clarity. There are now two files for each protocol and for the aggregate.

As noted above, the number of RRD files generated by the system increased with cPanel™ 11.25. With this comes an increase in the disk space used by /var/cpanel/bandwidth.

To prevent issues related to disk consumption by the RRD files, during the cPanel™ Update /usr/local/cpanel/bin/chk_bwrrd_space is used to examine the disk mount that contains /var/cpanel/bandwidth.

If insufficient disk space is detected then bandwidth generation is disabled.

Mailbox disk usage in Parallels Plesk Panel.

Problem: Parallels Plesk Panel shows incorrect statistics for the mailboxes on the domains. Domain mailboxes use less disk space then it is shown at the Control Panel. Disk usage for the mailbox is shown even if mail service is disabled on the domain.

Issue was discovered in Parallels Plesk Panel version 10.0.1.

In order to fix the issue apply hot-fix on the server.

Replace the file $PRODUCT_ROOT_D/admin/smb/application/controllers/StatisticsController.php with the file from the attachment below.

http://kb.parallels.com/Attachments/14688/Attachments/StatisticsController_linux.zip

The installation procedure is at http://kb.parallels.com/en/8083

After that recalculate statistics for the domains with the statistics utility. Statistics utility can be found in directory e $PRODUCT_ROOT_D/admin/sbin/.

/usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=domain.tld

Reference : http://parallels.com/

Cpanel disk space consumed by an account’s MySQL and PostgreSQL database

To enable this feature toggle the following Tweak Setting:

When displaying disk usage in cPanel/WHM include Postgresql and MySQL® disk usage.

As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures.

The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage.

cat /var/cpanel/datastore/mysql-disk-usage

Support for /scripts/updatemysqlquota ends as of cPanelTM 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.

Reference: http://cpanel.net

Next »