Solved

VMWare Fusion 6 On Mac - Need To Increase Disk Size

Posted on 2016-09-22
17
50 Views
Last Modified: 2016-09-23
I have ran out of space on my virtual disk.  I increased it to 50 GB but when I do df -h / in the Centos 6 Guest system it shows no free space.

I tried following this guide but still it doesn't show any increase in space.  

Please  help.
0
Comment
Question by:sharingsunshine
  • 9
  • 4
  • 3
  • +1
17 Comments
 
LVL 90

Expert Comment

by:John Hurst
ID: 41811660
If a modern guest machine, you can use VMware Converter (free) to read in the VM, and output to a bigger disk. I have done this with Windows guest machines.
0
 

Author Comment

by:sharingsunshine
ID: 41811667
what is the url?  All I see on vmware.com is a converter for vCenter.
0
 
LVL 90

Expert Comment

by:John Hurst
ID: 41811674
This is the site you need.

https://my.vmware.com/en/web/vmware/evalcenter?p=converter

I have V 6.11 here and it came from the above. I need to check if there is a MAC version, and if not, you would have to enlarge the machine on a Windows Host.
0
 

Author Comment

by:sharingsunshine
ID: 41811772
It's only for Windows.  I only have 2 Macbooks and an iPad and no access to a Windows system.
0
 
LVL 90

Expert Comment

by:John Hurst
ID: 41811780
I thought that. Might one of your friends or colleagues has a Windows system where you could do this?
0
 
LVL 53

Expert Comment

by:strung
ID: 41811791
Which guide were you referring to in your first post? Was it this one:  https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1020778  ?
0
 

Author Comment

by:sharingsunshine
ID: 41811794
no, I have already done that.  I am now on to https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006371

Seems I am down to
root@localhost ~]# pvcreate /dev/sda3
  Can't initialize physical volume "/dev/sda3" of volume group "vg_centos6" without -ff

Open in new window


When I start to use the -ff I get this message
[root@localhost ~]# pvcreate -ff /dev/sda3
Really INITIALIZE physical volume "/dev/sda3" of volume group "vg_centos6" [y/n]

Open in new window


I am not sure if I should do that or not.
0
 
LVL 53

Expert Comment

by:strung
ID: 41811800
I think that is telling you it will erase your volume, so you need a backup you can re-install from.

If that is the case, I wonder if it would not be simpler to make a new larger VM and copy the old one over to the new one.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 90

Expert Comment

by:John Hurst
ID: 41811805
I am not sure how you just bring a VM image into a newer, bigger VM. It is not one of the Make New Machine options.

You can add a disk to an existing VM, but then you do not have a single image.

Another (less palatable) option would be to just build a new machine, but that means installing software and setting up.
0
 

Author Comment

by:sharingsunshine
ID: 41811813
If there is a way to do this
If that is the case, I wonder if it would not be simpler to make a new larger VM and copy the old one over to the new one. 

Open in new window


that would certainly work
0
 

Author Comment

by:sharingsunshine
ID: 41811816
I think that is telling you it will erase your volume, so you need a backup you can re-install from.

Open in new window


I have not been able to come up with a way to backup other than snapshots.  Is there a preferred way?
0
 
LVL 53

Accepted Solution

by:
strung earned 500 total points
ID: 41811828
0
 
LVL 27

Expert Comment

by:serialband
ID: 41811942
You need to be asking for linux help, not Windows or MacOS.

What does your fdisk -l show?
0
 

Author Comment

by:sharingsunshine
ID: 41812275
not sure if correct sda or not.  Following http://www.jordansphere.co.uk/extending-a-vmware-vmdk-and-lvm-in-centos-6/ item #4.

root@localhost ~]# fdisk -l

Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00011f70

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        2611    20458496   8e  Linux LVM
/dev/sda3            2611        5221    20966162+  8e  Linux LVM

Disk /dev/mapper/vg_centos6-lv_root: 18.9 GB, 18865979392 bytes
255 heads, 63 sectors/track, 2293 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_centos6-lv_swap: 23.5 GB, 23546822656 bytes
255 heads, 63 sectors/track, 2862 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@localhost ~]# vgdisplay | grep Free
  Free  PE / Size       0 / 0   
[root@localhost ~]# 

Open in new window


As you can see partition 3 was created I have done all of #4 and fdisk -l shows sda3 exists.  However, the volume group shows 0 free.
0
 

Author Comment

by:sharingsunshine
ID: 41812276
John, regarding your comment about this being a Linux question.  I put in Linux distributions as a topic.  The reason I led with Mac is because many times options for Windows hosts aren't the same as for a Mac host.  Case in point, your VMConverter suggestion.
0
 

Author Comment

by:sharingsunshine
ID: 41812282
oops! I meant to direct my comments to serialband instead of John.
0
 

Author Closing Comment

by:sharingsunshine
ID: 41813080
the link to Jordansphere made it much more understandable.  Consequently, I was able to resize the disk.  Thanks for the link and help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now