Skip to main content
Very Important: This is a risky operation and is not recommended if the server does not have a backup.

Checking Disks

To list disks in the system:
Disk List As seen in the image, the added disk appears as /dev/sdb. Example commands will proceed with /dev/sdb.

Creating Partition on New Disk

Follow the steps below in the fdisk interface:
1

Add New Partition

Press n key and create a new partition.
2

Select Type

Press p key to create a primary partition.
3

Enter Partition Number

Type 1 to specify the partition number.
4

Use Default Settings

Press Enter key (twice) to accept all default settings.
5

Write and Exit

Press w key to save changes.

Creating Physical Volume

Listing Volume Groups

Volume Group List

Adding New Disk to Existing Volume Group

You can use the following command to add the /dev/sdb1 disk to the volume group in your system:

Listing Logical Volumes

Logical Volume List

Expanding Logical Volume

To expand the logical volume named ubuntu-lv in the volume group named ubuntu-vg with 100% free space, you can run the following command:

Expanding File System