Update Workflows/Linux/Expand RHEL Filesystem.md
This commit is contained in:
@ -15,34 +15,34 @@ This step goes over how to increase the usable space of the virtual disk within
|
||||
!!! warning "Be Careful"
|
||||
When you follow these steps, you will be deleting the existing partition and immediately re-creating it. If you do not use the **EXACT SAME** starting sector for the new partition, you will destroy data. Be sure to read every annotation next to each command to fully understand what you are doing.
|
||||
|
||||
=== "Using GDISK (Rocky)"
|
||||
=== "Using GDISK"
|
||||
|
||||
``` sh
|
||||
sudo dnf install gdisk -y
|
||||
gdisk /dev/<diskNumber> # (1)
|
||||
p <ENTER> # (2)
|
||||
d <ENTER> # (3)
|
||||
4 <ENTER> # (4)
|
||||
n <ENTER> # (5)
|
||||
4 <ENTER> # (6)
|
||||
<DEFAULT-FIRST-SECTOR-VALUE> (Just press ENTER) # (7)
|
||||
<DEFAULT-LAST-SECTOR-VALUE> (Just press ENTER) # (8)
|
||||
<FILESYSTEM-TYPE=8300 (Linux Filesystem)> (Just press ENTER) # (9)
|
||||
w <ENTER> # (10)
|
||||
```
|
||||
``` sh
|
||||
sudo dnf install gdisk -y
|
||||
gdisk /dev/<diskNumber> # (1)
|
||||
p <ENTER> # (2)
|
||||
d <ENTER> # (3)
|
||||
4 <ENTER> # (4)
|
||||
n <ENTER> # (5)
|
||||
4 <ENTER> # (6)
|
||||
<DEFAULT-FIRST-SECTOR-VALUE> (Just press ENTER) # (7)
|
||||
<DEFAULT-LAST-SECTOR-VALUE> (Just press ENTER) # (8)
|
||||
<FILESYSTEM-TYPE=8300 (Linux Filesystem)> (Just press ENTER) # (9)
|
||||
w <ENTER> # (10)
|
||||
```
|
||||
|
||||
1. The first command needs you to enter the disk identifier. In most cases, this will likely be the first disk, such as `/dev/sda`. You do not need to indicate a partition number in this step, as you will be asked for one in a later step after identifying all of the partitions on this disk in the next command.
|
||||
2. This will list all of the partitions on the disk.
|
||||
3. This will ask you for a partition number to delete. Generally this is the last partition number listed. In the example below, you would type `4` then press ++enter++ to schedule the deletion of the partition.
|
||||
1. The first command needs you to enter the disk identifier. In most cases, this will likely be the first disk, such as `/dev/sda`. You do not need to indicate a partition number in this step, as you will be asked for one in a later step after identifying all of the partitions on this disk in the next command.
|
||||
2. This will list all of the partitions on the disk.
|
||||
3. This will ask you for a partition number to delete. Generally this is the last partition number listed. In the example below, you would type `4` then press ++enter++ to schedule the deletion of the partition.
|
||||
|
||||
=== "Using FDISK (Oracle / Other OS)"
|
||||
=== "Using FDISK w/ LVM"
|
||||
|
||||
``` sh
|
||||
# Resize Partition of Disk in PV Group
|
||||
fdisk /dev/hda # Use pvdisplay to get the disk identifier
|
||||
p # List Partitions
|
||||
2 # Assume Partition 2 (e.g. /dev/hda2)
|
||||
d # Delete the partition
|
||||
2 # Assume Partition 2 (e.g. /dev/hda2)
|
||||
n # Make a new Partition
|
||||
p # Primary Partition Type
|
||||
Starting Sector: <Use Default Value>
|
||||
@ -56,6 +56,7 @@ This step goes over how to increase the usable space of the virtual disk within
|
||||
reboot
|
||||
|
||||
# Resize PV Device
|
||||
pvdisplay # Note Current Size then reference it later
|
||||
pvresize /dev/hda2
|
||||
pvdisplay # To Confirm size Increased
|
||||
|
||||
|
Reference in New Issue
Block a user