Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-03-2012, 10:38 PM   #1
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
how to go about resizing the virtual disk?

Hi guys ,
We are running machines in virtual environment.

As a part of virtual solution we have a disk created in form of files on host machine.

The problem is we are facing space crunch and need to re size the harddisk files of virtual machines.

There a catch the virtual machines are running linux and using LVM so resizing the actual hardisk file with dd is not an option(correct me if i m wrong) .I guess i have to first reduce the LV and then create some un partitioned space on virtual machines file system .

Any help would be appreciated.
Old 01-04-2012, 05:19 PM   #2
LQ Newbie
Registered: Jan 2012
Location: Ohio
Distribution: Debian, CentOS, Fedora, LFS
Posts: 24

Rep: Reputation: Disabled
I'm a bit unclear on your setup. The disk is a file on the host machine, and the VM is using LVM for it's partitioning, correct?

So you should be able to increase size of the disk file (using whatever procedure is correct for your virtualization setup) then inside the VM it should look like the hard disk magically grew. You may be able to do a pvresize and have the physical volume resize to take up the extra space. Then your volume group should be bigger, and you can resize logical volumes or add new LVs as needed.

I once added a drive to a RAID and expanded the size of the array, so I used pvresize to expand and use the whole space.

If I'm misunderstanding your setup, please clarify. I'm not sure why you'd what to reduce the size of the LV.

Last edited by Gomer_X; 01-04-2012 at 05:21 PM. Reason: Failure.
Old 01-04-2012, 06:24 PM   #3
Registered: Mar 2008
Posts: 18,478

Rep: Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770
I'd clonezilla on a VM then reboot to the original os.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting past disk errors resizing partitions josephj Linux - Desktop 3 07-13-2009 06:41 PM
Resizing Physical Disk On LVM Setup tajamari Linux - Server 2 12-03-2008 11:38 PM
Resizing the hard disk with Gparted altella Ubuntu 4 11-17-2008 04:43 AM
disk/lv resizing sandiegon Linux - General 1 01-02-2004 09:52 AM
partitioning plus recovery disk CAN'T work, resizing AFTER might, new OS CD also beginnerx Linux - Newbie 7 10-17-2003 12:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration