http://www.cisco.com/c/en/us/support/docs/field-notices/638/fn63812.html
As title, It is a memo of my daily work, it won't be very detail but enough to retrieve what I have to.
Wednesday, November 19, 2014
Tuesday, November 18, 2014
Cancel a vMotion Task
Normally, VMware do not allow you to cancel an on-going vMotion task (I am not talking about Storage vMotion). On the web, there are some recommendations like restarting vmware-mgmt or restarting the vCenter service. I can say restarting vmware-mgmt (vpxa) never helps. Restarting vCenter service (vpxd) is too costly. A possible idea is creating an environment that force the vMotion task timeout by itself which is max. 15 minutes. The easiest way is to uncheck vMotion function checkbox on the destination hosts' network and such that vMotion traffic would be stucked on the network and failed by timeout. I think this cost is much lower then restarting the whole vCenter while your vCenter is managing thousands of hosts or a lot of backup software is depending on it. Backup software do not affected by vMotion network is down (yes, you should separate management network and vMotion network as a best practice.)
Monday, June 30, 2014
Completely disable Java update on all users
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Update\Policy]
"EnableJavaUpdate"=dword:00000000
Wednesday, June 18, 2014
VMware Compatibility Guide
http://partnerweb.vmware.com/comp_guide2/detail.php?deviceCategory=io&productid=10474&deviceCategory=io&details=1&VID=1137&DID=0045&SVID=1137&SSID=0048&vioSolutions=Standard%20-%20IO%20Devices&page=1&display_interval=10&sortColumn=Partner&sortOrder=Asc
Wednesday, March 26, 2014
Setting up Tomcat with SSL and client certificate authentication
1. Correctly install all OpenSSL and APR library
2. Modify conf/server.xml
<Service name="Catalina">
.....
<Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8443" SSLEnabled="true" connectionTimeout="20000" SSLCertificateFile="SSL.cer" SSLCertificateKeyFile="SSL.key" SSLCACertificateFile="CA.cer" SSLCertificateChainFile="CAChain.cer" maxThreads="150" scheme="https" SSLVerifyClient="require" SSLProtocol="TLSv1" SSLCARevocationFile="crl.pem" SSLVerifyDepth="2" />
.....
</Service>
remark:
All certificate file should be in PEM format
SSK.key should have no password
crl.pem should be used to block revoked certificate
2. Modify conf/server.xml
<Service name="Catalina">
.....
<Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8443" SSLEnabled="true" connectionTimeout="20000" SSLCertificateFile="SSL.cer" SSLCertificateKeyFile="SSL.key" SSLCACertificateFile="CA.cer" SSLCertificateChainFile="CAChain.cer" maxThreads="150" scheme="https" SSLVerifyClient="require" SSLProtocol="TLSv1" SSLCARevocationFile="crl.pem" SSLVerifyDepth="2" />
.....
</Service>
remark:
All certificate file should be in PEM format
SSK.key should have no password
crl.pem should be used to block revoked certificate
Adding SDK repo to SLES11 SP3
zypper ar -t yum -n SLES11-SDK-SP3-Updates http://smt/repo/\$RCE/SLE11-SDK-SP3-Updates/sle-11-x86_64/ SMT-http_smt:SLES11-SDK-SP3-Updates
zypper ar -t yum -n SLES11-SDK-SP3-Pool http://smt/repo/\$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/ SMT-http_smt:SLES11-SDK-SP3-Pool
zypper ar -t yum -n SLES11-SDK-SP3-Pool http://smt/repo/\$RCE/SLE11-SDK-SP3-Pool/sle-11-x86_64/ SMT-http_smt:SLES11-SDK-SP3-Pool
Friday, March 14, 2014
Secret HotSpot option improving GC pauses on large heaps
http://blog.ragozin.info/2012/03/secret-hotspot-option-improving-gc.html
Thursday, March 13, 2014
Visual GC Error: Not Supported for this JVM (Remote Connection)
http://fahdshariff.blogspot.hk/2012/02/visual-gc-error-not-supported-for-this.html
Wednesday, March 12, 2014
An error occurred while consolidating disks: msg.disklib.CID_MISMATCH.
Today I meet this error when trying to consolidate snapshots.
Finally, I find that I could be easily solve by 1 step.
1. Click go to snapshot from the latest and try consolidate.
2. Repeat going to a earlier snapshot until you get consolidate snapshot success.
Finally, I find that I could be easily solve by 1 step.
1. Click go to snapshot from the latest and try consolidate.
2. Repeat going to a earlier snapshot until you get consolidate snapshot success.
Monday, February 24, 2014
Thursday, February 20, 2014
Write NTFS USB Drive on Mac OS X
Nowadays USB is so large that usually format in NTFS only.
But Mac OS X only mount NTFS as readonly.
On the web there are many guide to teach you how to enable read/write NTFS on Mac OS X by modifying /etc/fstab as follow
1. sudo vi /etc/fstab (it is normal if file is not exist and please create a new file)
2. Add the following line in /etc/fstab and save the file
LABEL=YOURDISKNAME none ntfs rw,auto,nobrowse
3. Open /Volume and you will not able to use your USB in read/write mode
**TRICK, if your mounted drive name is "Untitled", it will not work. Please rename your USB drive to some name in Windows first!
But Mac OS X only mount NTFS as readonly.
On the web there are many guide to teach you how to enable read/write NTFS on Mac OS X by modifying /etc/fstab as follow
1. sudo vi /etc/fstab (it is normal if file is not exist and please create a new file)
2. Add the following line in /etc/fstab and save the file
LABEL=YOURDISKNAME none ntfs rw,auto,nobrowse
3. Open /Volume and you will not able to use your USB in read/write mode
**TRICK, if your mounted drive name is "Untitled", it will not work. Please rename your USB drive to some name in Windows first!
Wednesday, January 29, 2014
Saturday, January 25, 2014
Change MiWIFI back to a normal WIFI LAN CARD
XIAOMI is selling a USB WIFI Adapter in RMB9.9
http://www.xiaomi.com/miniwifi
But it is designed to make your PC to a WIFI router instead of a pure WIFI adapter.
I figured a way to change it back to a normal WIFI Adapter by just installing its driver without using bundled software.
Please download from here.
https://docs.google.com/uc?authuser=0&id=0B8gWj5_Gu6ZudU1FOFp5NzhHdTQ&export=download
Tuesday, January 14, 2014
Huge Oracle Trace + Alert Log
SQL> show parameter max_dump_file_size
SQL> alter system set max_dump_file_size='1024m' scope=both;
UTF8 issue after upgrading MySQL to 5.5
In MySQL 5.5.X it introduce utf8mb4 and lead to old table might have coding issue.
<my.cnf>
[client]
default_character_set = utf8mb4
[mysql]
default-character-set=utf8mb4
skip-character-set-client-handshake
[mysqld]
character_set_server = utf8mb4
collation_server = utf8mb4_general_ci
init-connect = 'SET NAMES utf8mb4'
skip-character-set-client-handshake
----------
Convert your table / column collation
<my.cnf>
[client]
default_character_set = utf8mb4
default-character-set=utf8mb4
skip-character-set-client-handshake
character_set_server = utf8mb4
collation_server = utf8mb4_general_ci
init-connect = 'SET NAMES utf8mb4'
skip-character-set-client-handshake
----------
Convert your table / column collation
ALTER TABLE mytable CONVERT TO CHARACTER SET utf8mb4
ALTER DATABASE `databasename` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
Subscribe to:
Posts (Atom)