TurnKey Linux Virtual Appliance Library

change disk size on project pier virtual applance

Adam Falk's picture

I have deployed the project pier VA into a VM Ware environment.  I have changed the disk space in vmware to 40 gig instead of the default 20, but I have not figured out how to get the OS to regonize the increased storage space.  I do not have a lot of experience with linux, but am a quick study.

 

Any information would be greatly appreciated.

 

Adam

Adam Falk's picture

I figured it out...

I felt safe because I was able to make a VM sanpshot and restore it if I messed things up to badly.

 

I used "cfdisk" to delete the swap partition then recreated it out at the end of the disk space. actually near the end, ther is some unused space beyond it, just incase.  Then rebooted the device.  I then used cfdisk to remove the first partition and then created it again using the same start point and gave it a higher ending value, leaving some unused space between the two partitions.

then I used resize2fs /dev/hsa1 to increase the filesystem size.

 

all is good with the world...

Liraz Siri's picture

That's a neat trick

Most users wouldn't have the guts to try that sort of magic on bare metal but on a VM appliance, going back is easy it encourages you to experiment. Nice!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)