ClayB's picture

I downloaded the ova file and created a VM for the Turnkey Linux Lamp Stack. It's currently sitting, waiting to become my production web server. 

I was only able to use the 20Gb file size that the .ova file came with, I wasn't able to adjust the amount of space given the the machine. 

The extra 80Gb drive is sitting on the machine, seemingly in limob. I've managed to do a few things with it but can't seem to come out with the solution I want. 

Currently:

Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa8b2a8da

Device     Boot    Start       End   Sectors  Size Id Type
/dev/sda1  *      122880    999423    876544  428M 83 Linux
/dev/sda2        1001953  39062500  38060548 18.2G 8e Linux LVM
/dev/sda3       39070080 209712509 170642430 81.4G 83 Linux

Disk /dev/mapper/turnkey-root: 17 GiB, 18253611008 bytes, 35651584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/turnkey-swap_1: 512 MiB, 536870912 bytes, 1048576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/turnkey-turnkey2: 82 GiB, 88046829568 bytes, 171966464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

How do I combine /dev/sda2/ with /dev/sda3 (without losing the data)?

Or, is there a better way to create the Turnkey Lamp VM adding the appropriate amount of diskspace?

Thanks!

Forum: 
Tags: 
Jeremy Davis's picture

You could work from where you're up to and add /dev/sda3 to the existing LVM. See this blog post for hints. "example #2" should be close enough to where you are up to to get you up and running as desired. Keep in mind though that if there is anything on /dev/sda3 then you will lose it during this process.

Alternatively you could remove your sda3 and resize sda2 (and then resize the LVM). Although TBH there aren't really any advantages to that over the above, so probably not worth the effort...

Finally, you could just install from ISO and then create the VM specs exactly as you desire right from the start! :)

ClayB's picture

It eventually lead to a killed machine, which was fine, there was nothing of importance on it, I was just using it to test out the installtion of Turnkey. 

That being said, it would be nice for the Lamp Stack to offer an alternative, larger disk space version. Maybe 100Gb or so? 

I've downloaded the ISO and will install from that. Probbly would have been the easier, more time friendly thing to do anyway :)

Thanks for your help!

Add new comment