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

Debain # ssh cannot start

Error Message : Starting OpenBSD Secure Shell server: sshdPRNG is not seeded

How to fix
#cd /dev ; ./MAKEDEV urandom ; /etc/init.d/ssh start

ขอบคุณน้องแจค แห่ง tanoy.net

How to build ramdisk

#cd /boot
#mkinitrd --omit-scsi-modules --with=xennet --with=xenblk --preload=xenblk my-initrd $(uname -r)

Error ที่เจอก็จะหายไปในทันที

ขอขอบพระคุณ อ.ภู แห่ง siamvps.com และ xenmax.com เป็นอย่างยิ่งเลยครับ

-----------------------------------------------------------------------------------------------
Error1 :
Could Not Start Vps, Reason: Error: Device 0 (vif) could not be connected. Hotplug scripts not working.:

Syndicate content