Create LVM

#pvcreate /dev/sda1
#vgcreate VGName /dev/sda1
#lvcreate VGName -n LVName -L 10G

Creating an LVM2 Logical Volume for Swap

Create the LVM2 logical volume of size 256 MB:

# lvm lvcreate VolGroup00 -n LogVol02 -L 256M
Format the new swap space:

# mkswap /dev/VolGroup00/LogVol02
Add the following entry to the /etc/fstab file:

/dev/VolGroup00/LogVol02 swap swap defaults 0 0
Enable the extended logical volume:

# swapon -va
Test that the logical volume has been extended properly:

# cat /proc/swaps # free

Refer Link : http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System...

Graph Failed due to graph_generation_failed No fonts found

กราฟใน HyperVM ไม่ขึ้น แสดง Error :
Graph Failed due to graph_generation_failed No fonts found; this probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig(3) manual page and on http://fontconfig.org

วิธีแก้ง่ายๆ เลย
#yum -y groupinstall Fonts
รอจนเสร็จ
จบ

HyperVM/Xen nash-hotplug using 100% of resources (Debian)

Some of the default HyperVM templates have an issue with nash-hotplug taking a large amount of resources (usually 99%). If you are having this issue, a quick an easy way to fix this is add the following to /etc/rc.local on the guest VDS:

pkill -9 nash

This is a temporary fix, until a more permanent one is provided by Lxlabs/HyperVM. This problem is supposedly already fixed in CentOS 4, however seems to still appear in Debian 3. For debian, do the following:

Open up /etc/init.d/local and add:

#!/bin/bash
pkill -9 nash

Then run the following:

chmod 755 /etc/init.d/local

Syndicate content