Solved

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

Posted on 2014-09-08
8
680 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

828 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