It will be necessary to clean up the stale Garden shed files. This can be done either by recreating VM's or via manually cleanup. The recommended solution is to recreate the VM's as this guarantees a clean state for GrootFS.
Recreate all VMs:This can be done by going to Directory Config at Ops Manager and selecting
Recreate all VMs check-box.
Alternatively, you can upgrade the Stemcell version of PAS aka Elastic Runtime (ERT) tile by downloading newer Stemcell from network.pivotal.io. This will also force a recreate of VM's.
Click
Apply Changes to begin VM recreation process.
Manual steps:
- Confirm that GrootFS is enabled by going to PAS Tile, Settings tab, select Application Containers, and verify that "Enable the GrootFS container image plugin for Garden RunC" is checked off.
WARNING: If GrootFS is disabled then DO NOT proceed with these steps. - Check the contents of
/var/vcap/data/garden/depot/*/config.json
on Diego cell and see that each root.path
is set to /var/vcap/data/grootfs/store/{unprivileged,privileged}/images/*/rootfs
. If all match that pattern, then it is safe to delete the contents of /var/vcap/data/garden/graph/aufs
.
- Manually remove the contents of graph aufs directory:
rm -rf /var/vcap/data/garden/graph/aufs
Afterwards, check capacity of Diego cells with
df -h in order to validate space has been reclaimed.