Posts

Showing posts from March, 2015

Concepts of VZ container[with templates]

EZ templates are part and parcel of the Parallels Virtuozzo Containers philosophy because they  provide a way of sharing resources among lots of Containers, thus enabling huge savings in terms of disk space and memory. For example, when you install and cache an OS template on the Hardware Node, Parallels Virtuozzo Containers creates the  /vz/template/<name_of_the_OS> directory containing all the OS files that can be shared among Containers. When a Container based on this template is created, it contains only symlinks to the OS template files. These symlinks occupy very little space on the hard disk. They are situated in the so-called private area of the Container. The corresponding directory is /vz/private/<CT_ID>. The private area of a Container contains not only symlinks to the necessary template files, but also the copy-on-write area of the Container (the area for storing the  information about those changes that the Container makes to the template files; this informa

Mysqli is not working properly

In plesk server, I have installed the php 5.6 as secondary php. Then if I have try to use "mysqli" dbtype in Joomla site, I got error such as database connection error. Cause: ----------- It seems mysqli uses mysqlnd API in secondary php, mysqli Client API library version => mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ mysqli.allow_local_infile => On => On mysqli.allow_persistent => On => On mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => no value => no value mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.max_persistent => Unlimited => Unlimited mysqli.reconnect => Off => Off mysqli.rollback_on_cached_plink => Off => Off By default mysqli uses mysql API in main php, mysqli MYSQLI_SOCKET => /var/run/mysq

LVM Snapshot Process

Image
Reference: http://www.clevernetsystems.com/tag/cow/ This article explains how LVM snapshots work and what the advantage of read/write snapshots is. We will go through a simple example to illustrate our explanation. First, create a dummy device that we will initialize as a PV: # dd if = / dev / zero of =dummydevice bs = 8192 count = 131072 # losetup / dev / loop0 dummydevice #  pvcreate / dev / loop0 #  pvs PV VG Fmt Attr PSize PFree /dev/loop0 lvm2 a-- 1.00g 1.00g We now have a 1GB LVM2 Physical Volume. # vgcreate vg0 # vgs VG #PV #LV #SN Attr VSize VFree vg0 1 0 0 wz--n- 1020.00m 1020.00m # lvcreate -n lv0 -l 100 vg0 # lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert lv0 vg0 -wi-a---- 400.00m We now have a Volume Group vg0 and a 400MB Logical Volume lv0. Let’s see what our device mapper looks like # dmsetup table vg0-lv0: 0 819200 linear 7:0 2048 We have a single device vg0-lv0, as expected. Let’s take a