recovering from an unresponsive hostd after a datastore/storage goes PDL

Hostd crashes with the below: Hostd.log 2018-12-17T22:37:50.138Z info hostd[9130B80] [Originator@6876 sub=Hostsvc] Storage data synchronization policy set to invalidate_change 2018-12-17T22:37:50.140Z info hostd[9130B80] [Originator@6876 sub=Libs] lib/ssl: OpenSSL using FIPS_drbg for RAND 2018-12-17T22:37:50.140Z info hostd[9130B80] [Originator@6876 sub=Libs] lib/ssl: protocol list tls1.2 2018-12-17T22:37:50.140Z info hostd[9130B80] [Originator@6876 sub=Libs] lib/ssl: protocol list tls1.2 (openssl flags 0x17000000) 2018-12-17T22:37:50.140Z info hostd[9130B80] [Originator@6876 sub=Libs] […]

Read More

PostgreSQL: could not open file “/var/lib/pgsql/data/pg_clog/0726”: No such file or directory

when selecting a specific date from a table, at times due to database corruption Postgres might report the file was not found. hsphere=# select * from TABLE; ERROR:  could not access status of transaction 1918986094 DETAIL:  could not open file “/var/lib/pgsql/data/pg_clog/0726”: No such file or directory   In Such instances, we will need to re-create […]

Read More

Few Handy VMware Powershell commandlines

Add a HDD to a virtual machine: $VM=’name of the VM’ $size=’Size in GB, Numeric only’ $Datastore=’Name of the Datastore’ $ProvisionType=”Thin/Thick/EagerZeroedThick”) $Controller=’SCSI Controller 0′ New-HardDisk -VM $VM -CapacityGB $size -Datastore $Datastore -StorageFormat $ProvisionType -Controller $Controller $DiskType   Clone VM $Name=’Name of the new VM’ $source=Name of the Source virtual machine’ $Datastore=’Datastore name’ $host=’host name or […]

Read More

Passing through a Nvidia GTX970 to a VMware Virtual machine

Create a virtual machine with EFI boot, install windows + tools and power down the VM Open ssh to the host where the VM is registered to use VIM-cmd vmsvc/getallvms | grep *name_of_VM* cd to the datastore path cd /vmfs/volumes/NVME/nvidia/ Edit the vmx file using the vi editor and add the below lines hypervisor.cpuid.v0 = […]

Read More

Generate a memory dump for a frozen VMware, windows virtual machine.

Enable complete memory dump feature by changing following registry keys:   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CrashControl CrashDumpEnabled    REG_DWORD    0x1   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management PagingFiles    REG_MULTI_SZ    c:\pagefile.sys 13312 13312   Enable keyboard crash dump feature by adding following registry keys:   HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters Value Name: CrashOnCtrlScroll Data Type:    REG_DWORD Value:    1   HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters Value Name: CrashOnCtrlScroll Data Type:    REG_DWORD Value:    1 […]

Read More