VMWare Fusion 6 On Mac - Need To Increase Disk Size

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.
sharingsunshineAsked:
Who is Participating?
 
JohnBusiness Consultant (Owner)Commented:
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
 
sharingsunshineAuthor Commented:
what is the url?  All I see on vmware.com is a converter for vCenter.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
JohnBusiness Consultant (Owner)Commented:
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
 
sharingsunshineAuthor Commented:
It's only for Windows.  I only have 2 Macbooks and an iPad and no access to a Windows system.
0
 
JohnBusiness Consultant (Owner)Commented:
I thought that. Might one of your friends or colleagues has a Windows system where you could do this?
0
 
strungCommented:
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
 
sharingsunshineAuthor Commented:
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
 
strungCommented:
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
 
JohnBusiness Consultant (Owner)Commented:
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
 
sharingsunshineAuthor Commented:
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
 
sharingsunshineAuthor Commented:
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
 
serialbandCommented:
You need to be asking for linux help, not Windows or MacOS.

What does your fdisk -l show?
0
 
sharingsunshineAuthor Commented:
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
 
sharingsunshineAuthor Commented:
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
 
sharingsunshineAuthor Commented:
oops! I meant to direct my comments to serialband instead of John.
0
 
sharingsunshineAuthor Commented:
the link to Jordansphere made it much more understandable.  Consequently, I was able to resize the disk.  Thanks for the link and help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.