Posts

Showing posts from June, 2014

Libxml error while compiling dual php - "make: *** [ext/dom/node.lo] Error 1"

Libxml error while compiling dual php - "make: *** [ext/dom/node.lo] Error 1" ext/dom/node.c: In function 'dom_canonicalization': ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type ext/dom/node.c:1955:5: error: dereferencing pointer to incomplete type make: *** [ext/dom/node.lo] Error 1 This is a PHP error when compile the older version when install libxml2 from bigger version 2.9.0. Fix: Need to update patch. + vi libxml29_compat.patch + copy and paste below code in the file: 'libxml29_compat.patch' ============================== ============================== ============= --- ext/dom/node.c    2012-08-06 17:49:48.826716692 +0800 +++ ext/dom/node.c    2012-08-06 17:52:47.633484660 +0800 @@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA          RETVAL_FALSE;      } else {          if (mode == 0) { +#ifdef LIBXML2_NEW_BUFFER +            ret = xmlOutputBufferGetSize(buf); +#else              ret = buf->buffer->u

Boot Failure after Latest Kernel Update - "warning: selinux targeted policy relabel is required"

warning: selinux targeted policy relabel is required When rebooting the server due to kernel upgrade we may face below error due to "SELinux is in permissive mode, the operation would have been denied but was permitted due to permissive mode." Error: Warning -- SELinux targeted policy relabel is required. Relabeling could take a very long time, depending on file system size and speed of hard drives. Reason: SELinux is preventing access to files with the label, file_t. Fix: We have done below steps to overcome the issue, > Login the server through KVM > Enter into single user mode. > Edit the file: "/etc/selinux/config" as below SELINUX=permissive to SELINUX=disabled > exit from single user mode Now the box will boot-up normally. :) !!!

KVM disk performance: raw vs qcow2 & Steps to Convert raw to qcow2

Image
Disk Format: Raw vs. Qcow2: The libvirt(The virtualization API. libvirt is: A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes))  snapshots can only be performed on certain type of disk formats. There are several types of VM disk formats, but the most  common are raw and qcow2 (copy-on-write).     * qcow2 [ "QEMU Copy-On-Write" ]     * qcow2 is an updated version of the qcow format, intended to supersede it. The main difference with the original is that qcow2 supports multiple virtual machine snapshots through a new, flexible model for storing snapshots. *   Users can easily convert qcow disk images to the qcow2 format. QEMU and Xen have retained the qcow format for backwards compatibility. How qcow2 works: *   Raw disks are presented as-is to the VM without any disk layering and do not support snapshots, whereas qcow2 disks support a range of special features including snapshots, compression and encrypt