
The advantages of virtualization are many: redundancy, faster smoothness of handling systems and applications, snapshots for easy complement liberation and a ability to fast record or enhance resources are only a few examples.
Growing record systems is a common charge in virtualized environments. While it’s utterly easy to do in Windows, it can be a bit harder in Linux. It’s probable to enhance a Linux record complement around a authority line, though this is vapid and infrequently unreliable, presumably heading to deformed partitions. It’s improved to streamline a routine by booting a practical appurtenance regulating a application called GParted that constitutes a bootable front picture in a form of an .iso file.
In this essay I’ll cover how to resize Red Hat Enterprise Linux partitions with GParted in possibly a Red Hat Virtualization or VMWare environments. The stairs will be identical for other Linux distributions though competence have some slight variance.
Here are a prerequisites to get started:
- Access to VMWare/Red Hat Virtualization (RHV) console
- Administrative rights in VMWare/RHV
- Administrative rights in Linux
- The bootable GParted .iso image.
- If regulating RHV, we need to bucket a .iso picture into a RHV sourroundings around a ISO Uploader Tool (see here for directions)
For this exercise, assume we are perplexing to resize /dev/vda2 from 75 Gb to 100 Gb and a stream blueprint is:
/dev/vda1 – boot
/dev/vda2 – /
/dev/vda3 – swap
1. Power off a VM.
2. Grow a hoop space as desired.
For RHV:
Click a VM in a RHV console, name a “Disks” add-on afterwards click Edit:

You can't change a stream distance value though we can extend a distance by a specified amount. In a instance above, I’ll extend a distance by 25 Gb. Skip to step three.
For VMWare:
Right-click a VM, name “Edit Settings” afterwards name a Hard Disk:

Adjust a provisioned distance accordingly and click “OK.” If a choice to enhance a hoop is not available, check for and mislay any snapshots afterwards try again.
3. Mount a GParted front image:
For RHV:
Right-click a VM and name “Run Once”:

As shown above, enhance “Boot Options” afterwards click “Attach CD” and name your handling complement picture file.
Under “Boot Sequence” name “CD-ROM” and afterwards click a “Up” symbol to a right to make that a default foot device.
Click OK. The practical appurtenance will energy up. Skip to step five.
If we are regulating VMware and a practical appurtenance is not set to foot from a CD-ROM initial by default, follow these steps:

Now right-click a VM, name “Edit Settings,” and click a “Options” tab:

Check off a choice to “The subsequent time a practical appurtenance boots, force entrance into a BIOS setup screen” underneath “Force BIOS Setup.”
Click “OK.”
Power on a VM and entrance a console.

As shown in a screenshot above, use a right arrow pivotal to go to a “Boot” add-on and use a + pointer to pierce CD-ROM Drive to a top.
Go to Exit and leave “Exit Saving Changes” highlighted afterwards press enter. Answer “Yes” to save a changes.
5. The practical appurtenance will foot from a CD.
6. Attach to a console.
7. At a categorical GParted shade possibly strike enter or wait for a default choice to load.
8. Hit enter during a “configuring console-data” box. (“Don’t hold keymap”).
9. Hit enter during a “Which denunciation do we prefer?” prompt.
10. Hit enter during a “Which mode do we prefer?” prompt.
11. You’ll see a categorical GParted screen:

Note a distance of a barter volume (1 Gb).
12. In this instance we’ll extend a /dev/vda2 volume to 100 Gb, though we have to pierce that barter record to a distant right before we can do so. Right-click a red barter volume (dev/vda3) and name “Resize/Move.”
13. In a subsequent box enter “0” in a “Free space following (MiB)” field.
14. Hit add-on afterwards click “Resize/Move.”
15. Click “OK” to a warning that relocating a assign competence means a handling complement to
fail.
16. You’ll afterwards see a barter assign changed to a finish of a volume:

17. Right-click /dev/vda2 and name “Resize.”
18. Drag a right side of a assign all a approach to a right to enhance a volume.
19. Click “Resize.”
20. Click “Apply.”
21. When a operation(s) finish we should see an finish outcome that looks like this:

22. Click “Close” when finished., afterwards energy off/on a VM and endorse a volume has been
expanded (run df -h after logging in or fdisk -l -u -s /dev/vda).
23. If we are regulating VMWare, we competence wish to return a stairs we followed in step 4 to
move a “CD-ROM” choice behind to a strange mark in a foot order.
Also see:
How to hoop confidence risks in Red Hat virtualization environments
How to conduct your Red Hat subscription on RHEL 7.3
5 information center-ready Linux distributions
How to guard your Linux servers with nmon
Article source: http://www.techrepublic.com/article/how-to-resize-a-virtual-red-hat-enterprise-linux-partition/#ftag=RSS56d97e7
