root@<VIDM-FQDN> [ ~ ]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs 7.9G 12K 7.9G 1% /dev/shm
tmpfs 7.9G 808K 7.9G 1% /run
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda4 17G 16G 0 100% /
tmpfs 7.9G 184K 7.9G 1% /tmp
/dev/sda2 119M 26M 87M 23% /boot
/dev/mapper/db_vg-db 20G 502M 19G 3% /db
/dev/mapper/tomcat_vg-horizon 20G 2.8G 16G 15% /opt/vmware/horizon
tmpfs 1.6G 0 1.6G 0% /run/user/1001
tmpfs 1.6G 0 1.6G 0% /run/user/0Navigate to Identity & Access Management > Directories > Sync now) is failing with the following error.Failed to save config to disk
Username or password is incorrect".The root partition (/dev/sda4) on one or more Identity Manager nodes is full. This is often caused by unlinked log files that remain in use by rsyslog or excessive accumulation of journal, message and audit files. When the partition is full, the system cannot update critical files such as config-state.json.
IMPORTANT:
First take a snapshot of all appliances in the vIDM cluster (non-memory, quiesced) before proceeding any further as per KB How to take a Snapshot of VMware Identity Manager.
If extending the disk space per option 4, delete any existing snapshots for the vIDM appliances, and create clones of the appliances instead for any rollback purposes.
Option 1: Rotated log files still opened by rsyslogd
Rotated log files that are renamed, while unlinked from the filesystem, are sometimes still in use by rsyslog.
lsof +L1 | grep delete | grep "rsyslogd"rsyslogd 512314 root 15w REG 8,4 97697061 0 196612 /var/log/messages-1770865801 (deleted)
rsyslogd 512314 root 97w REG 8,4 97697061 0 196612 /var/log/messages-1770865801 (deleted)systemctl restart rsyslogdf -B M | grep -iE "filesystem|sda4"
Option 2: Clearing journal files
cd /var/log/auditdo ls -lhtruncate -s 0 audit.log/etc/logrotate.conf from weekly rotation to daily rotation and then run command logrotate /etc/logrotate.conf /etc/cron.d/hzniptables file. The hzniptables file is present under /etc/cron.d*/1 * * * * cat /dev/null >/var/log/messages/usr/local/horizon/conf/runtime-config.properties on each node:analytics.deleteOldData=true
analytics.maxQueryDays=90vi /etc/rsyslog.conf(and remove all the input methods) after confirming that /usr/local/horizon/scripts/enableRSyslog.hzn status shows no syslog present. (Copy backup before edit)ps aux | grep rsyslog
systemctl status rsyslog
systemctl restart rsyslog
Option 3: Clean up pgService backup files
If numerous *.backup files exist for /var/log/pgService/, remove them with the following command per KB 372820:
rm -f /var/log/pgService/*.backup
Option 4: Resize / partition of the appliances
Resize the /dev/sda4 disk to 20G on all appliances of the cluster by following the steps detailed in this KB: How to Increase vIDM appliance disk space (broadcom.com)
Option 5: Investigate disk usage
cat /etc/logrotate.conf
cat /etc/cron.d/hzniptablesNote: Check the result of the both the commands again, so that we could compare and check which directory has consumed more space.du -ah / 2>/dev/null --exclude=/opt/vmware/horizon --exclude=/db | sort -rh | head -n 20/var folder:du -ah /var 2>/dev/null | sort -rh | head -n 20Note: Observe any dip in the Partition Utilization metric or is it still incrementing? You can check the output of above commands for next couple of days more./etc/systemd/journald.conf for SystemMaxUse property (by default 100M).du -sh /var/cache/ if normal in MB sizelsof | grep '(deleted)'view /etc/rsyslog.conf where the input methods remove instead of cache. Then change it on a single node to monitor if this resolves the issue, Apply the same changes to the other nodes after few days.cat /usr/local/horizon/conf/db.pwd
psql -U postgres saascopy (select * from "CacheEntry") to '/tmp/CacheEntry.csv’ with csv;Note: Can run the same above command again after 2-3 days and compare the result.du -ah / 2>/dev/null | sort -rh | head -n 100
find ./ -type f -size +100M | less
find ./ -type d -exec sh -c 'echo -n "{}: " && find "{}" -type f | wc -l' \; | awk '$2 > 100' | sort -k2,2nr |lessIf the required space is still not getting reclaimed, follow the KB below to check the gc.logs: Uncompressed gc.logs are causing the /root partition to run out of space in VMware Identity Manager.
Note 1: The nodes can experience higher load due to misconfiguration of the connectors. You can distribute the load across all nodes and check for improvement in disk utilization.
Note 2: Reboot the nodes so that
jvmand other CPU processes release temporary files.Note 3: Validate the KB (HW-134096 - VMware Identity Manager Connector may fail to communicate due to
config-state.jsoncorruption (broadcom.com)) to restore the configuration files if they are corrupt or empty.