2011年7月31日 星期日

I/O monitoring: iowait% of top

http://victor.csie.org/blog/archives/292

iowait includes disk I/O, memory I/O, and also affected by process numbers!!

2011年7月30日 星期六

New vSphere Health Check 5.0 & ghettoVCB Script

http://www.virtuallyghetto.com/2011/07/new-vsphere-health-check-50-ghettovcb.html

The vSphere Health Check script has now been updated to support vSphere 5.0 and includes some new features. The popular free virtual machine backup script ghettoVCB has also been updated to support ESXi 5.0!

copy,paste,files, ssh on Chromebook

copy/paste in crosh: double-click copy, three-finger-press paste.

Copying files on chromebook: download them from file:///../Downloads and file:///media/..!!

using ssh key on chromebook: ctrl-alt-t >crosh>ssh>key. download the key into files:///.../Downloads.

Disable Error Reporting on Windows

1. In addition to Error Reporting Service in Service Console, help and support service (svchost.exe -k netsvc) may also need to be disabled.

2. My Computer -> System Properties->Advanced.

http://www.windowsnetworking.com/articles_tutorials/disable-error-reporting-windows-xp-server-2003.html

3. Dr. Watson also needs to be disabled?

2011年7月28日 星期四

tagBeep免費網站監測並免費發簡訊通知!

http://blog.soft.idv.tw/?p=1025

一個免費的主機監控服務—tagBeep,它能設定最短每分鐘幫你監控一次主機狀態(從美國跟歐洲),還可以自動幫網站做快照,更提供了Windows版的桌面監控程式跟Chrome監控外掛,最棒的一點是當網站出問題時,會即時發出免費的簡訊來通知你喔(每天最多20通)!

端點安全為附加價值 桌面虛擬化需要更全面的理由

http://www.informationsecurity.com.tw/article/article_detail.aspx?aid=6240

尤其在ECFA通過後,兩岸三地的溝通越來越頻繁,特別是對台灣銀行業去大陸設分行的需求,企業也在尋求一種方式中央控管的方式,讓前端的東西集中到在台灣總部來控管。


Citrix大中華區總裁曹衡康說,當終端電腦從一千台變成一萬台時,姑且不論當中的硬體設備如處理器、記憶體品牌或規格如何,光是作業系統的大量升級,其汰換的速度就很慢了。而針對資安的需求,在網路上傳遞的甚至也不是資料,而是操作訊號,傳送到後端交由資料中心來處理,他舉例,就像開電視機一樣,電視螢幕裡並不存有資料。

openvz: Unable to fork: Cannot allocate memory

http://forum.openvz.org/index.php?t=msg&goto=9094&
http://www.le4.org/?p=169

cat /proc/user_beancounters


In your UBC, kmemsize has failcnts for veid 1200. To raise this metric limit:

vzctl set 1200 --kmemsize 12752512:12752512 --save; vzctl restart 1200

Basically, your resource limits are too low for your applications' demands. This will fix that, at least on this resource, kernel memory.




用cat /proc/user_beancounters发现112内核内存不够
将原来内核内存由12M调整为64M
vzctl set 112 --kmemsize 67108864:67108864 --save
#vzctl restart 112一般不用重启就行

2011年7月26日 星期二

ffmpeg batch transcoding of mpeg4

@echo off
SET WORKDIR="D:\ffmpeg\WORLD"
SET OUTPUTDIR="D:\ffmpeg\output"
for %%B in (%WORKDIR%\*) do (ffmpeg -y -i %%B -vcodec mpeg4 -vtag XVID
-threads 2 -acodec libmp3lame -b 4000k -ab 128k %%B.xvid.avi)
for %%B in (%WORKDIR%\*.xvid.avi) do (move %%B %OUTPUTDIR%)

2011年7月24日 星期日

sort unique ip address from mail log

sort maillog.tmp | uniq -c

Show & drop MySQL user grants

drop user 'username'@'hostname';
show grants for 'username'@'hostname';

Introduction of VMware vCenter Server

http://benjr.tw/node/590

在使用 VMware vSphere 有一個很重要的關鍵就是 Vcenter.Vcenter 簡單的來說就是 vSphere 的管理介面.不同於以前的單機管理方式,所有使用 vmware EXS /ESXi 都可以同時透過 vcenter 這管理介面來做管理.同時 vmotion,DRS,HA Consolidated Backup,Plug-in 功能皆是在此完成管理.

什麼是 vCenter Server ,vCenter server 只是一個提供服務的應用程式,他必須安裝在 windows 的作業系統上,這個 Windows 可以在虛擬機器上也可以是在實體機器上,目前 VMware ESXi 4.0 支援下列的 Windows 版本.
Windows XP Pro SP2 (SP2 required)
Windows Server 2003, SP1 and SP2 32bit and 64bit all editions
Windows Server 2003, R2 and SP2 32bit and 64bit all editions
Windows Server 2008 32bit all editions
Windows Server 2008 64bit Standard and Enterprise editions

Price of VMware vCenter Server

http://store.vmware.com/store/vmware/en_US/DisplayProductDetailsPage/productID.126844900?resid=Tis6LwoHAtQAAFJBGgcAAAAW&rests=1311455789647

US$2000~3000 for Foundation edition...Soooo expensive!!

VMware Consolidate Backup (vcb) for ESX

http://chiahu.com/blog/?p=508
http://www.weithenn.org/cgi-bin/wiki.pl?vcbMounter
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002978
http://www.petri.co.il/vmware-consolidated-backup-utilities.htm

vcbMounter -h 172.16.68.130 -u user -p password -a name:Debian -r /backup/Debian -t fullvm
vcbRestore -h 172.16.68.130 -u user -p password -s /backup/Debian/