vSphere Replication 8.x
/opt/vmware/var/log/preupdatelog reports not enough space in VRMS DB, although partition /var/lib/vrmsdb is just 1% used (as checked running command 'df -h' in VR appliance shell.)./opt/vmware/var/log/preupdatelog : psql.bin: fe_sendauth: no password suppliedNumber of found VCTA tunnels: 0No DRxx replications found. Continue with upgrade...+ grep -q vmware-vcta+ rpm -qa+ '[' -r /opt/vmware/hms/conf/embedded_db.cfg ']'+ source /opt/vmware/hms/conf/embedded_db.cfg++ EMB_DB_INSTALL_DIR=/opt/vmware/vpostgres/current++ EMB_DB_INSTANCE=vrmsdb++ EMB_DB_USER=vrmsdb++ EMB_DB_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx++ EMB_DB_STORAGE=/var/lib/vrmsdb++ EMB_DB_MAX_CONNECTIONS=150+ echo /opt/vmware/vpostgres/current/opt/vmware/vpostgres/current++ /opt/vmware/hms/bin/embedded-db.sh --status+ '[' ok == ok ']'+ export PGPASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+ PGPASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+ /opt/vmware/vpostgres/current/bin/pg_dump -U vrmsdb -Ft vrmsdb+ /usr/bin/bzip2 --bestpg_dump: [tar archiver] could not write to output file: No space left on device+ '[' 1 '!=' 0 ']'+ echo 'pg_dump failure detected'pg_dump failure detected+ systemctl stop hms-vpostgres+ export -f background+ exit 0+ nohup bash -c background
# /opt/vmware/vpostgres/current/bin/psql -U vrmsdb/opt/vmware/hms/conf/embedded_db.cfg and use the password against the entry 'EMB_DB_PASSWORD'.incomingeventlogentity and outgoinglogentity:> select count(*) from outgoingeventlogentity> select count(*) from incomingeventlogentity
incomingeventlogentity had total of 7 million entries filling up the VRMS database.# systemctl stop hms# epochtime=`date +%s`000 && conditiontime=$((epochtime-3600000)) && echo "DELETE from incomingeventlogentity WHERE timestamp < $conditiontime;DELETE from outgoingeventlogentity WHERE timestamp < $conditiontime; " | /opt/vmware/vpostgres/current/bin/psql -U vrmsdb# systemctl start hms