work related

October 27, 2009

Disk resize redone

I have a few templates that I use when deploying Linux based VMs around here. These come pretty stripped down and minimalist. Getting them up to a usable system is fairly quick with vmware.

But I just made it a bit quicker with my latest template.

The use of LVM is pretty slick for disk type stuff and I was amazed how simple it was to resize and work with the system and other disks. I have just stream-lined my disk growing process by locating the swap space on a LV rather than out on a separate disk partition. This makes the growing of a system disk especially quick and simple.

By placing the swap on the same PV as the / we don't have to muck with moving the swap around any longer. And by using the -l +100%FREE option on the lvresize command it lets lvresize do the work of giving us the whole chunk of new disk.

Well it speed thing up a little anyway..