How to increase /dev/sda4 partition space in Aria Suite Lifecycle
search cancel

How to increase /dev/sda4 partition space in Aria Suite Lifecycle

book

Article ID: 430047

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

This article provides step-by-step instructions for increasing the size of the /dev/sda4 partition in Aria Suite Lifecycle.

May encounter one or more of the following symptoms when the partition runs out of available space:

  • Login to Aria Suite Lifecycle fails with the following error:
    Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection
  •  Critical services (including vPostgres and the Web UI / API services) fail to start.
  • The system partition or root mapper /dev/sda4 (mapped as /dev/mapper/system-system0) reports 100% disk space utilization via df -h.

Environment

Aria Suite Lifecycle 8.18

Cause

The /root partition has reached 100% capacity, preventing the database from starting.

Resolution

Workaround (Temporary Space Reclamation)

If the root partition is full and prevents services or resizing operations from running smoothly, clean up oversized logs before proceeding with partition expansion:

  1. Identify large files consuming space across the root directory:

    find / -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh | head -n50
    
  2. Change directory to /var/log
    cd /var/log
  3. Truncate the oversized rotated log file to free up space immediately:

    truncate -s 0 /var/log/messages.1
    
  4. Verify root partition space availability:

    df -h
    
  5. Restart the Aria Suite Lifecycle service:

    systemctl restart vrlcm-server.service

Resolution

Remove any existing snapshot on the LCM VM. Shutdown the VM and increase the size of the Hard disk1. Power on the VM and take snapshot before proceeding to below steps which will resize the partition.

Extend the root partition by following steps below:

1. Invoke partitioning tool (menu-driven interface) by running the below command.

# cfdisk /dev/sda

Note: This step is applicable only for the root partition:

2. Using arrow keys select /dev/sda4

3. Using tab key Or shift tab select [ Resize ] then enter
4. Enter the New Disk Size to Expand the Root Partition

  • Note:  start by checking how much free space is available on /dev/sda. Next, make sure the new disk size is larger than the current root partition. For example, if adding 10 GB, the new total size should be the ( current root partition size +  10 GB ) which should be available in free space.

5. Using tab key select [ Write ]

6. type "yes"

7. Press tab to [ Quit ]

8. Next, resize the file system with "resize2fs" to use the new space:

[before resize2fs]
# df -h | grep "sda4"
/dev/sda4 8.8G 3.9G 4.5G 47% /

[run resize2fs]
# resize2fs /dev/sda4

[after resize2fs]
# df -h | grep "sda4"
/dev/sda4 12G 3.9G 7.3G 35% /

9. Run 'df -h' command to verify the allocated space.

Additional Information

UI is inaccessible for extended period during patching of Aria Suite Lifecycle.