Solved

How to resize a partition on centOS 6.3 (VMware VM on ESX)?

Posted on 2014-09-08
8
643 Views
Last Modified: 2014-09-08
I need to expand the partition (main) on a centOS 6.3 VM, it is also a virtual machine running on ESX 5.1. I have increased the file storage successfully within VMware ESX, but need the steps to increase the size within the operating system.

Here is the specs:

df -h
vmware view
centOS 6.3
0
Comment
Question by:meade470
  • 3
  • 3
  • 2
8 Comments
 
LVL 4

Assisted Solution

by:mbertl
mbertl earned 200 total points
ID: 40309877
You mostly would do that with:

lvm pvresize --setphysicalvolumesize <size> <physicalvolume>

and then

lvm lvresize --size + <size> <logicalvolume>
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 300 total points
ID: 40309891
1. Check the disk in OS with fdisk -l
2. Create a physical partition of required size and change the type to "Linux LVM"
3. Create the PV of newly created FS #pvcreate /dev/sdxx
4. Extend the vg by PV size so the space can be used in LV resize #vgextend <vg> <pv>
5. Resize the LV #lvextend -L+<size>G <lv>
6. perform online resizing #resize2fs <lv>
7. Verify with #lvs and #df -h

TY/SA
0
 
LVL 2

Author Comment

by:meade470
ID: 40309925
Can you please expand on some of your answers Sandy?

2. Create a physical partition of required size and change the type to "Linux LVM"
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 300 total points
ID: 40309931
#fdisk /dev/sdxx

Press "n"

Press "p"

Press "1"

Select start and end cylinder(size)

then use the system id to modify the FS type by pressing "t" and then type code : 8e

Press "w"

TY/SA
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Author Comment

by:meade470
ID: 40309936
Also, could i use gParted in pre-environment to make the changes?
0
 
LVL 13

Accepted Solution

by:
Sandy earned 300 total points
ID: 40309981
you can, i would not suggest..

TY/SA
0
 
LVL 4

Assisted Solution

by:mbertl
mbertl earned 200 total points
ID: 40310033
What do you mean with 'pre-environment'? If you mean, booting with a Live system like Part Image: yes, i'd do it that way.
0
 
LVL 2

Author Closing Comment

by:meade470
ID: 40310039
Thanks - using gParted
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

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

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

20 Experts available now in Live!

Get 1:1 Help Now