Knowledge Base


Increase the hard disk space of a XEN Virtual Machine


Had a VM today running out of disk space, so i shut it down and made a copy of the container as a backup, i strongly suggest you should make a copy too!

i added 1 GB to the container file, in my case "debian-amavis.img"

dd if=/dev/zero bs=1M count=1024  >> debian-amavis.img

then i just ran this 

resize2fs -f debian-amavis.img

and voila, after the reboot i had 1.1GB free, again!

df -h
Dateisystem Größe Benut Verf Ben% Eingehängt auf
/dev/sda1 2,0G 812M 1,1G 43% /




<- Zurück zur Übersicht