The installation of the AMA Linux agent fails due to insufficient disk space. By default the agent requires 10Gb of disk space to run.
To resolve the issue, follow these steps:
- Check Disk Space:
- Use the df -Th command to check the disk space usage
-
df -hT /var
-
df -hT /opt
-
Df -hT /etc
- /var requires 10GB of disk space whereas /opt , /etc directory requires minimum of 500 MB of space
- Free Up Space:
- Identify and remove unnecessary files or applications to free up space in the /var, /opt and /etc partition.
- Alternatively, increase the size of the partitions if possible.
- Reattempt Installation:
- Once sufficient space is available, reattempt the installation of the AMA agent.
sudo /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.2/./shim.sh -install
Reference: