MsSQL dbname(Suspect)

EXEC sp_resetstatus dbname;
ALTER DATABASE dbname SET EMERGENCY;

DBCC checkdb(‘dbname’);
ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
DBCC CheckDB (‘dbname’, REPAIR_ALLOW_DATA_LOSS);
ALTER DATABASE dbname SET MULTI_USER;

OpenSSL .pfx export private.key

https://slproweb.com/products/Win32OpenSSL.html

Win64 OpenSSL v1.1.1g

C:\Program Files\OpenSSL-Win64\bin\openssl.exe

OpenSSL> pkcs12 -in filename.pfx -nocerts -out key.pem

Enter Import Password:
Enter PEM pass phrase:
Verifying – Enter PEM pass phrase:

OpenSSL> rsa -in key.pem -out server.key

Huawei Switch Stack Lab 2

Add stack:
SW1
int stack-p 0/1
port int g0/0/8 enable
int stack-p 0/2
port int g0/0/7 enable
quit
stack slot 0 priority 200

SW2
int stack-p 0/1
port int g0/0/7 enable
int stack-p 0/2
port int g0/0/8 enable
quit
stack slot 0 renumber 1

save & reboot, and then plug stack cable(SW1 g0/0/8 to SW2 g0/0/8, SW1 g0/0/7 to SW2 g0/0/7)

Delete stack:
SW1
int stack-p 0/1
shut int g0/0/8
undo port int g0/0/8 enable
int stack-p 0/2
shut int g0/0/7
undo port int g0/0/7 enable
quit
stack slot 0 priority 100

SW2
int stack-p 1/1
shut int g1/0/7
undo port int g1/0/7 enable
int stack-p 1/2
shut int g1/0/8
undo port int g1/0/8 enable
quit
stack slot 1 renumber 0

Huawei Switch Stack Lab 1

Add stack:
SW1
int stack-p 0/1
port int g0/0/12 enable
stack slot 0 priority 200

SW2
int stack-p 0/2
port int g0/0/11 enable
quit
stack slot 0 renumber 1

save & reboot, and then plug stack cable

Delete stack:
SW1
int stack-p 0/1
shut int g0/0/12
undo port int g0/0/12 enable
stack slot 0 priority 100

SW2
int stack-p 1/2
shut int g1/0/11
undo port int g1/0/11 enable
quit
stack slot 1 renumber 0

ESXi Cannot open the disk ‘/vmfs/volumes/…’ or one of the snapshot disks it depends on.

An error was received from the ESX host while powering on VM sub.domain.com.
Failed to start the virtual machine.
Module DiskEarly power on failed.
Cannot open the disk ‘/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk’ or one of the snapshot disks it depends on.

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=5fdb3838
parentCID=91a1b14e
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com-000001.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000002-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000002-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “6d06c2adf18d4b5ca7ae92e65fdb3838″

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000001.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8”
CID=91a1b14e
parentCID=30b6f4a5
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000001-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000001-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=91a1b14e
parentCID=ffffffff
isNativeSnapshot=”no”
createType=”vmfs”

# Extent description
RW 976777216 VMFS “sub.domain.com-flat.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.adapterType = “lsilogic”
ddb.deletable = “true”
ddb.geometry.biosCylinders = “60801”
ddb.geometry.biosHeads = “255”
ddb.geometry.biosSectors = “63”
ddb.geometry.cylinders = “60801”
ddb.geometry.heads = “255”
ddb.geometry.sectors = “63”
ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”
ddb.thinProvisioned = “1”
ddb.toolsVersion = “9349”
ddb.uuid = “60 00 C2 9b 7c 5c a8 15-b2 03 9f dc ba 38 56 60”
ddb.virtualHWVersion = “8”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk

CID=91a1b14e

replace to

CID=30b6f4a5

ESXi snapshot command

vim-cmd vmsvc/getallvms

vim-cmd vmsvc/snapshot.create 119 test
vim-cmd vmsvc/snapshot.get 119
vim-cmd vmsvc/snapshot.removeall 119

 

  • snapshot.create
  • snapshot.dumpoption
  • snapshot.get
  • snapshot.remove
  • snapshot.removeall
  • snapshot.revert
  • snapshot.setoption
  • get.snapshotinfo

ESXi task job status

vim-cmd vimsvc/task_list
ManagedObjectReference) [
‘vim.Task:haTask-137-vim.VirtualMachine.consolidateDisks-516821853‘,
‘vim.Task:haTask-ha-host-vim.HostSystem.acquireCimServicesTicket-516825125’
]

watch -d -n 60 ‘vim-cmd vimsvc/task_info haTask-137-vim.VirtualMachine.consolidateDisks-516821853 | grep -E “name|entityName|state|progress”‘