So, you've got a few Xen images around, and they are starting to fill up. How do you add a few more gigs to 'em?
root@tpe:/# xm shutdown vm01That's it, you just added a gig to your image called 'vm01.img'.
root@tpe:/# cd /xenimages
root@tpe:/xenimages# dd if=/dev/zero bs=1024 count=1000000 >> vm01.img
root@tpe:/path/to/images# resize2fs -f vm01.img
Are you 100% sure the image is formated as ext2/ext3? If it is as reiserfs, you'll need to use the 'resize_reiserfs' command.
This entry is from my tutorial section and was written on Nov. 8, 2006. It's been tagged with Virtualization and Tips, Tricks and Hacks and My Big Fat Server. There have been 2 comments so far.
I tried the above and upon givine the resize2fs command I get this:
"resize2fs: Bad magic number in super-block while trying to open vm01.img
Couldn't find valid filesystem superblock."
any advice?