Unable to expand /storage partition
search cancel

Unable to expand /storage partition

book

Article ID: 398442

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

After adding disk space to the Storage partition of the LCM appliance using https://knowledge.broadcom.com/external/article/345999, the autogrow-disk script does not expand the partition.

After running the script, the command df -h shows the pervious disk size.

When manually running /etc/bootstrap/everyboot.d/20-autogrow-disk to expand the /storage partition, the output of the script shows an error for the resize of /storage-storage_0: 

 "resize2fs: Permission denied to resize filesystem"

Environment

Aria Suite Lifecycle 8.x

Cause

There is a service or process that is still accessing the filesystem

Resolution

Stop the services or processes that are using the filesystem and run the autogrow-disk script again. 

  1. Identify processes running on the file system:
         fuser -v -m /dev/mapper/storage-storage_0

  2. Kill or stop the services using the file system. For example, the following vRSLCM services can be stopped:
         service vrlcm-server stop
         service blackstone-spring stop
         service vpostgres stop
         service cap-workflow-engine stop
         service cap-appliance-management stop

    Note: Running the fuser command again should return something like this, or show no results:
    root@LCMserver [ ~]# fuser -v -m /dev/mapper/storage-storage_0
                         USER        PID ACCESS COMMAND
    /dev/dm-3:           root     kernel mount /storage

    Note: the root account accessing the filesystem for the mount should not cause an issue and the autogrow-disk script should be able to complete.

  3. Resize the File System by running the autogrow-disk script manually:
         /etc/bootstrap/everyboot.d/20-autogrow-disk

  4. Validate that the disk has been expanded. 
         df -h

  5. Restart the appliance and log into the UI:
         reboot