Solved

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

Posted on 2014-09-08
8
697 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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
 
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

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

751 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