Xen: extend lvm of virtual machine

First: Make sure to shut down the virtual machine or to unmount the disk inside it. Once finished you can start to extend the logical volume on the hypervisor: lvextend -L+400G /dev/vg0/disk e2fsck -f /dev/vg0/disk resize2fs /dev/vg0/disk There might be a chance you need kpartx, growpart (provided by cloud-guest-utils) followed by resize2fs to grow the mounted partition. In case you shut down the virtual machine you may start it again with...

April 4, 2014 · 1 min

Hetzner, Debian 7.0 Wheezy, Xen, LVM, Routing, zusätzliche IP-Adressen

## im Rescuesystem von Hetzner installimage #ruft den Installer von Hetzner auf # dort dann Debian > Debian-70-wheezy-64-minimal auswaehlen # folgende Config fuer Software-RAID 1 mit LVM verwenden DRIVE1 /dev/sda DRIVE2 /dev/sdb SWRAID 1 SWRAIDLEVEL 1 BOOTLOADER grub HOSTNAME HIER_NAME_EINSETZEN PART /boot ext2 512M PART lvm vg0 all LV vg0 root / ext4 50G LV vg0 swap swap swap 4G IMAGE /root/.oldroot/nfs/install/../images/Debian-70-wheezy-64-minimal.tar.gz # den Editor verlassen (zweimal Escape und abspeichern), dann wird installiert # danach reboot und login mit den Credentials vom Rescuesystem # (eventuell muss man ssh-keygen -f "/home/user/....

June 4, 2013 · 2 min