VIC Appliance VM Disk is Full
search cancel

VIC Appliance VM Disk is Full

book

Article ID: 342412

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
Services on the VIC Appliance fail to start due to full disk.

Environment

VMware vSphere Integrated Containers 1.0.x
VMware vSphere Integrated Containers 1.x

Cause

Harbor previous log retention policy was by length of time rotating at every 2 weeks. Not by size of the log files, allowing the possibility to fill up the drive.

Resolution

This issue has been fixed in VIC 1.3.0 and later. See the VIC documentation for configuration details.
Access and Configure Appliance Logs


 

 


Workaround:

Workaround:

 

  1. SSH to the VIC Appliance.
    1. Shut down the vSphere Integrated Containers appliance by selecting Shut Down Guest OS. (IMPORTANT: Do not select Power Off.)
    2. Right-click the new vSphere Integrated Containers appliance, and select Edit Settings.
    3. Click vApp Options to modify the settings that you provided when you used the OVA installer to deploy the appliance.
    4. In Appliance Security, update the password for the appliance root account, enable or disable SSH log in.
    5. Click OK to close the Edit Settings window.
    6. Power on the vSphere Integrated Containers appliance
    7. Use prefered SSH client to connect under the user "root".
  2. Validate disk usage with disk free command.

# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/root 16G 15G 434M 98% /

devtmpfs 3.9G 0 3.9G 0% /dev

tmpfs 3.9G 0 3.9G 0% /dev/shm

tmpfs 3.9G 1.6M 3.9G 1% /run

tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup

tmpfs 3.9G 18M 3.9G 1% /tmp

/dev/sdb1 50G 1.3G 46G 3% /data

### lines omitted for brevity ###

  1. Validate what is using the space using Disk Usage.

# du -c -h -d 3 / | grep G

6.5G /var/lib/docker

6.5G /var/lib

8.7G /var/log/harbor

8.8G /var/log

16G /var

### lines omitted for brevity ###

  1. If harbor logs are taking up the needed space, these can be removed using the remove command.

# rm -r /var/log/harbor/<name_of_the_date_folder>/


Additional Information