Disk partition full on Photon Airgap
search cancel

Disk partition full on Photon Airgap

book

Article ID: 377373

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

Photon OS, Airgap partition is full

Environment

TCA 2.2

 

Cause

Partition size is too small

Resolution

For Photon 3.0 

1. Increase the disk in vCenter

2. Take a snapshot

3. SSH into the airgap server

4. Get the disk and partition info

df -h

/dev/sdb1

/dev/sdb2

/dev/sdb3 - this will be the one we want

 

Resize the partition

5. SSH into the photon OS

6. To open the cfdisk utility for the sdb disk.

sudo cfdisk /dev/sdb

 

7. Use the arrow keys to select the sdb3 partition and press Enter.

8. Select the "Resize" option and press Enter.

9. Use the arrow keys to increase the size of the partition to the desired amount and press Enter.

10. Select "Write" to save the changes and exit cfdisk.
 

Resize the file system

To resize the file system on the sdb3 partition using the resize2fs tool, follow these steps

Use the resize2fs command to resize the file system on the sdb3 partition to the size of the partition: 

sudo resize2fs /dev/sdb


*If you want to specify a new size, you can use sudo resize2fs /dev/sdb3 <new_size> where <new_size> is the desired size in blocks or in units such as KB, MB, GB, or TB


Remove the snapshot.