LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Networking’ Category

Centos – Implementing a vpn server and client using openvpn

Instead of sshing into your home machine from anywhere, it is actually more secure and convenient to vpn instead. With vpn, you can share different subnets as well. The problem most people find is that setting up a vpn server can be complicated – well, not so with openvpn.
This tutorial is a summarised version of [...]

Creating Xen Redundant Virtual Machines with Backup Procedures

It is a good idea to backup the whole virtual machine to a separate machine to achieve redundancy. 99% uptime and full redundancy can be achieved using on-the-fly mirroring, ie network raid 1. Hardware and network performance will determine if this method will work or not. There are a few software that can achieve this. [...]

Resizing file based xen virtual machine

You can create file based xen instances (eg, blarblar.img). If you have partitions in the file and want to increase the disk space, you cannot use resize2fs straight away on it. So you need to create a new larger file, then transfer the old file data onto it:
say I want the new filesize to be [...]

How to resize LVM running Xen part 1 – increase disk size

Resizing a lvm partition is straight forward if it doesn’t contain a partition table. Simply do a:
lvresize -L disksize /dev/vg/lv
resize2fs /dev/vg/lv
If it is running a virtual machine like xen with a partition table, how to resize the domU, whether to shutdown domU or not depends largely on the partiton structure. In centos, if you do [...]

Careful when running DNS Service in a virtual machine

There are things that might have been overlooked. If you run dns in a virtual machine, all other machines will attempt to connect to it to resolve domain names. What if DomO (parent machine) goes down? Not a good idea to run DNS in virtual machines; need to be very careful if you do.
Parent machine [...]