"Active/passive means that one controller is active to process I/O requests, while the other is idle in standby mode ready to take over I/O activity should the active primary controller fail or be taken offline.
An active/active configuration enables both controller nodes to process I/Os, and provide a standby capability for the other."
Ref:
Active/active vs. active/passive arrays
(http://searchstorage.techtarget.com/answer/Active-active-vs-active-passive-arrays
)
2011年12月17日 星期六
2011年12月7日 星期三
windows dd usage
Show you how to clone usb disk first 100MB
suppose your usb disk is drive number 1 (check windows "Disk management" and find out its number)
dd if=\\.\PhysicalDrive1 of=sdb.dd bs=1M count=100
But this windows dd's writing to disk is very SLOW.
Reference:
2011年11月11日 星期五
2010年10月13日 星期三
Netbeans theme
aloha color theme
1. Install
Tools -> plugins -> Available plugins : search "theme"
check "Extra color theme" and install it
2. Setup
Tools -> options -> Fonts & Colors : choose Aloha
Ref:
2010年7月23日 星期五
CRC calculation
INPUT: 11010011101100
PATTERN (polynomial): 1011
To calculate n-bit checksum, you need a (n+1)-bit pattern.
In this example, we'll calculate CRC-3 (3-bit).
CRC-n pattern can be found in Wiki.
Method:
1. Align INPU & PATTERN to the left.
2. Read the leftmost bit of INPUT.
If the bit is 0, do nothing.
If the bit is 1, let INPUT = (INPUT XOR PATTERN).
Move PATTERN to the right by one bit.
Repeat step 2 until you got a n-bit INPUT, which is the CRC-n.
Verify:
You should get 3-bit CRC: 101.
Ref:
2010年5月6日 星期四
[windows batch] using variables in for loop
In a windows batch file (.bat or .cmd):
FOR /L %%i IN (1,1,5000) DO {
ECHO %%i
sleep -m 500
}
ref:
2010年4月25日 星期日
Using glib in Windows (vc 2005 settings)
1. download glib Binaries and Dev and extract them to
F:\glib\glib_2.24.0_dll
F:\glib\glib-dev_2.24.0-2_win32
2. open VC 2005 and create a windows console project
project property (alt + f7)
* General -> Additional Include Directories: F:\glib\glib-dev_2.24.0-2_win32\include\glib-2.0
* Linker -> General -> Additional Library Dependencies: "F:\glib\glib-dev_2.24.0-2_win32\lib"
* Linker -> Input -> Additional Dependencies: glib-2.0.lib
* copy from F:\glib\glib-dev_2.24.0-2_win32\lib\glib-2.0\include\glibconfig.h to F:\glib\glib-dev_2.24.0-2_win32\include\glib-2.0\glibconfig.h
3. Try to build a program using glib :
#include (iostream)#include (glib.h)#include (glib/gprintf.h)int main(int argc, char* argv[]){gchar ch[128];g_sprintf(ch, "hello world");std::cout((g_strup(ch)((std::endl;return 0;}
4. Before running your new program, put all libg*.dll in F:\glib\glib_2.24.0_dll\bin to your working directory (eg. Debug/).
Ref:
訂閱:
文章 (Atom)