Resizing NTFS Volumes in VMWare

VMWare allows for some tricks for resizing volumes which are particularly useful for Windows NTFS.
We have been doing Physical to Virtual (P2V) imports of a number of our older windows systems recently. We imported a number of these with the original disk partitioning which had a paltry 4GB C: drive configured. Of course we now find we need to grow this, and we have the same limitation we had on the physical machine – the D: partition is in the way.
What we should have done while importing was to check the box tell VMWare to create a separate virtual disk for each volume. Too late now – and resorting to traditional partition manipulation tools would be painful.
No worries though – VMWare will let you import an existing virtual machine. So do the import again, using the VM as a source. Check the box this time and re-size the volumes at the same time. When the import completes, power up the new VM and delete the old one. Now that the volumes are on separate virtual disks future growth will be much easier.
Another trick VMWare makes possible is easy extension of the C: drive NTFS filesystem – windows generally won’t let you do that on a running system.

  • Power down the VM
  • Go to another windows VM and add a hard disk
  • Select “use an existing disk” and browse the data store for the VMDK you want to fix.
  • Use the normal windows storage management tools to expand the filesystem.
  • Remove the disk from the second VM.
  • Power up your modified VM and Bob’s your Uncle.

No Comments | Filed under technology | Tagged as
RSS 2.0 Feeds: comments technology

Uptime Humor

Devotion To Duty

Devotion To Duty

 http://xkcd.com/705/

No Comments | Filed under technology | Tagged as
RSS 2.0 Feeds: comments technology

GoDaddy (Virtuozzo) Virtual Server in cacti

A business site I provide some spport to runs on a GoDaddy virtual Linux server. We were having some performance issues so I dug into the available data and found we were hitting our memory limits. It seems the Virtuozzo system used by GoDaddy has hard and soft resource limits – you can go over the soft limits for short periods but after a while bad things start to happen. Like Virtuozzo shooting your processes in the head. As the applications and OS think they have the hard limit available, staying below the soft limit is problematic.

Virtuozzo makes status information in /proc/user_beancounters. The different fields are pretty cryptic – their meanings are described in detail here.

The attached zip file contains two cacti template exported from Cacti version Version 0.8.7b, a snippet to add to the snmpd.conf on the server and a one line shell script called readbeans which is called by the snmpd agent. Deploy these latter items on your GoDaddy VM and suck the templates into Cacti. This will give you a “Virtuozzo Beancounters” data query which you can add to your device which should give you access to 20 graphs (don’t check resource, that one is bogus).

I found that building a compound graph like this brought together the most interesting values:

This long term graph shows where I implemented the crude but effective solution of restarting various system processes nightly (snmpd, httpd, mysqld, named and Plesk), some of which were gradual memory hogs.

Download this template

No Comments | Filed under technology | Tagged as , ,
RSS 2.0 Feeds: comments technology