When the appliance is not connecting to vCenter to figure out the node names, and when running a large environment where the source and destination datastore is unknown.
The following can help in re-configuring the VM unavailable to vCenter to know replication status. This may be required to check how many VMs are replicating along with replication status, RPO settings, compression, quiesce and violation and gid of the VMs.
The below commands will help to figure out the required details of replicated VMs. This needs to be run on each appliance to get the info.
cd /opt/vmware/vpostgres/9.5/bin
(here you may change the version folder 9.5 to the proper one)./pg_dump -U vrmsdb -Fp -c > /tmp/DBBackup.bak
echo -e "\n\n" && echo -e "\t\t ***REPLICATED VMs AND THEIR CONFIGURATION*** \n" && echo "select name AS Replicated_VM_Name, networkcompressionenabled AS compression, quiesceguestenabled AS quiesce, rpo AS rpo_in_minutes, rpoviolation AS Violation, movalue AS GID from groupentity;" | /opt/vmware/vpostgres/current/bin/psql -U vrmsdb
replicated_vm_name | compression | quiesce | rpo_in_minutes | violation | gid
--------------------+-------------+---------+----------------+-----------+------------------------------------------
win2k12r2 | t | f | 1440 | f | GID-########-####-####-####-############
Rep | f | f | 1440 | f | GID-########-####-####-####-############
echo -e "\n\n" && echo -e "\t\t ***REPLICATED VMs AND THEIR TARGET STORAGE*** \n" && echo "select sourcediskfilename AS source_disk, '/vmfs/volumes/' || destinationdatastoreuuid || '/' || destinationpath || '/' || destinationdiskfilename AS Destination_Path_Disk from diskentity;" | /opt/vmware/vpostgres/current/bin/psql -U vrmsdb
source_disk | destination_path_disk
------------------------------------+----------------------------------------------------------------------------
[iscsi-1] win2k12r2/win2k12r2.vmdk | /vmfs/volumes/########-########-####-############/win2k12r2/win2k12r2.vmdk
[iscsi-1] Rep/Rep.vmdk | /vmfs/volumes/########-########-####-############/
Rep/Rep.vmdk
ls -l
on the /vmfs/volumes
directory on the DR ESXi host.>/tmp/vmlist.txt
,
>/tmp/vmdisklist.txt
which can be later copied using scp software.