Migration from Freenas all ZFS volumes to another machines lvm is pretty simple.
create on you new machine logical volume and start netcat which will write everything it receives to the new LVM of your choice:
# Source box
dd bs=16M if=/dev/disk/by-path/iscsi-mysql-lun-0 | nc 192.168.1.254 19000
# Destination box (192.168.1.254)
nc -l -p 19000|dd bs=16M of=/dev/vg0/mysql-data
In the last time I get a lot questions and feedback to some older posts (Active/Passive Cluster) where I used DRBD. And actually I never wrote how to setup DRBD and I try to fill this gap now. Also this post will be a new ground for some new ideas and posts related to Active/Passive Clustering with KVM.
DRBD (Distributed Replicated Block Device) is a really cool cluster solution to have radundant data on two or more nodes. Everybody know RAID, DRBD is like RAID 1 over network.
Continue reading ‘DRBD master/slave setup’
I want to show you how to create a LVM snapshot on the fly, before you install some nasty updates.
But first things first, I have my KVM virtual machine (/dev/vg0/Webserver) and want to upgrade it.
Before I go on, I create a LVM snapshot to be able to restore the origin data.
lvcreate -L 200000 -s -n Webserver_Snapshot /dev/vg0/Webserver
- L 200000 is the size in MB
-s flag is to create a snapshot
-n Webserver_Snapshot is the name of new logical volume
If you delete your origin volume your snapshot will be automatically deleted!
Yeah after installation of Windows seven – my Grub-Bootloader was removed and I get only the Windows bootmager.
This article describe hot to mount root “/” which was created on LVM from a live CD and install GRUB Boot-Loader.
Step 1: Get a live CD in my case it was Ubuntu 10.10 Desktop edition.
Continue reading ‘Mount LVM from liveCD’
for my KVM guests I use only LVM disks, I find it easy to use and administer.
Every time you running out of space you can resize your lvn volume.
Bus some days ago I moved some virtual servers to another physical Dom0(Host) and was a little bit confused – how to move lvm – DD was not the best idea.
There is always another way, here is my:
Very important! Shut-down virtual machine.
Continue reading ‘Accessing data on guest lvm’