It is currently Sun May 05, 2024 6:29 pm

News News of Lik`s forum

Site map of Lik`s forum » Forum : Lik`s forum

cPanel/WHM/OpenVZ/Xen/Linux/IPMI Lik`s forum

FreeBSD + cPanel fonts location

IF under the "Bandwidth" section in the cPanel user-interface (http://cpanel_server.com:2082/frontend/ ... width.html) you can not see the details of the months and days (only blank fields), most likely the issue connected with improper GD/Fonts work.

The real reason is "incorrect" (from cPanel point of view) fonts location. Following symbolic link resolves it:
Code: Select all
ln -s /usr/local/lib/X11/fonts/URW /usr/share/fonts
Read more : FreeBSD + cPanel fonts location | Views : 2387 | Replies : 0 | Forum : FreeBSD specific


Increase Hard Drive Space

Is it possible to increase maybe even decrease the hard drive of a VPS via FluidVM, if so how?


For OpenVZ, simply increase the quota as admin. For Xen, disassociate the root disk, resize it from the Virtual Storage Manager and associate it back. Now start the VM and resize the volume by running "resize2fs" after logging in to the VM as root.
Read more : Increase Hard Drive Space | Views : 2114 | Replies : 0 | Forum : FluidVM




Round-robin SWAP

One useful thing in adding more swap on different disks is that you can have the kernel use the different locations in round-robin as RAID0 partition.

You can do that by editing the lines for the swap in /etc/fstab. You have to change the defaults option to pri=0 on all lines defining swap.

The trick aroung pri=0 is this:
Pri comes from priority, and thus defining the priority of the swap partition/file which will be ...
Read more : Round-robin SWAP | Views : 2443 | Replies : 0 | Forum : Linux specific


suid vpslogin xen (ssh to compute node)

The vpslogin program allows control panel users to login to the compute node and access their xen consoles directly using their control panel credentials. This is useful for example to reset the root password. Accessing the Xen console required root privileges. That executable makes sure that the user logging in gets access only to his VMs.

Need to put /usr/local/sbin/vpslogin suid on the compute node for it to work correctly.
Code: Select all
chmod u+s /usr/local/sbin/vpslogin

Without suid: ...
Read more : suid vpslogin xen (ssh to compute node) | Views : 1986 | Replies : 0 | Forum : FluidVM


Understanding OpenVZ resource limits

OpenVZ resource limits can be a little tricky, even after reading through the documentation on the OpenVZ website. With this post, I hope to explain the /proc/user_beancounters file as well as provide an illustration of memory guarantees/limits in an example 256mb container.

Before attempting to understand OpenVZ’s memory limits, let’s recap Linux’s memory setup. This background information is important to firmly grasp OpenVZ’s behavior. You can safely skip this section if you already understand Linux’s ...
Read more : Understanding OpenVZ resource limits | Views : 2791 | Replies : 0 | Forum : OpenVZ related


Linux kernel memory overcommiting

1 The Linux kernel supports the following overcommit handling modes
2
3 0 - Heuristic overcommit handling. Obvious overcommits of
4 address space are refused. Used for a typical system. It
5 ensures a seriously wild allocation fails while allowing
6 overcommit to reduce swap usage. root is allowed to
7 allocate slighly more memory in this mode. This is the
8 default.
9
10 1 - Always overcommit. Appropriate for some scientific
11 applications. ...
Read more : Linux kernel memory overcommiting | Views : 2481 | Replies : 0 | Forum : Linux specific


Traffic shaping

Traffic shaping with tc
From OpenVZ Wiki

Sometimes it's necessary to limit traffic bandwidth from and to a container. You can do it using ordinary tc tool.

Packet routes

First of all, a few words about how packets travel from and to a container. Suppose we have Hardware Node (HN) with a container (CT) on it, and this container talks to some Remote Host (RH). HN has one "real" network interface eth0 and, thanks to ...
Read more : Traffic shaping | Views : 2729 | Replies : 0 | Forum : OpenVZ related


vps_iptables_tune.sh

# cat vps_iptables_tune.sh
echo "Checking iptables modules via lsmod and will autoenable all missing modules."
echo ""

lsmod|grep ipt_conntrack ||modprobe ipt_conntrack
lsmod|grep ipt_LOG ||modprobe ipt_LOG
lsmod|grep ipt_owner||modprobe ipt_owner
lsmod|grep ipt_state||modprobe ipt_state
lsmod|grep ip_conntrack_ftp||modprobe ip_conntrack_ftp
echo ""
echo "lsmod checks and modprobe part is complete."
echo ""

echo "Your /etc/sysconfig/iptables-config must have the following line :"
echo "IPTABLES_MODULES=\"ip_conntrack_netbios_ns xt_state ipt_conntrack ipt_LOG ipt_owner ipt_state ip_conntrack_ftp\""
echo ""

echo "Your /etc/sysconfig/iptables-config have now:"
grep IPTABLES_MODULES= /etc/sysconfig/iptables-config
echo "" ...
Read more : vps_iptables_tune.sh | Views : 2358 | Replies : 0 | Forum : OpenVZ related


Error while creating backup through the cPanel interface

Problem creating backup through the cPanel interface on the server. The following error appeared in the /usr/local/cpanel/logs/error_log:
2009-08-31 19:54:11 info Not updating privileges for {account} (reseller login and no password specified in ~/.my.cnf)
2009-08-31 19:54:20 info Not updating privileges for {account} (reseller login and no password specified in ~/.my.cnf)

The backup cannot be created with the following message in the cPanel interface:
backup-8.31.2009_19-54-34_{account}.tar.gz (Mon Aug 31 19:54:34 2009)

Tthe issue is ...
Read more : Error while creating backup through the cPanel interface | Views : 2549 | Replies : 0 | Forum : Server Side Actions


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22