Flying & Snaking
ҽ
л
ҵBlog
¹鵵...
·...
ͳ...
վ...
Դ
===========================================================
LAMP
===========================================================
LAMPһдָһͨһʹж̬վ߷ĿԴ:LinuxϵͳApacheMySQLݿ⣬PerlPHP Pythonԡ

ȻЩԴרƳͬ⼸һģǶӰϴĿԴӵкܶ๲ͬص㣬͵ЩһʹáڹȥļЩļԲƣһӦαøձ顣Ϊ˸Ʋ֮ͬЭѾijЩչܡĿǰеLinuxжĬϰЩƷLinuxϵͳApacheMySQLݿPerlPHP PythonԣЩƷͬһǿWebӦóƽ̨

ſԴչԴLAMPѾJ2EE.Netҵγ㶦֮ƣܵITĹעԽԽĹӦ̡ûҵͶʶLAMPĿԴɵƽ̨ԼиҵӦúЭӦóΪһֿܺʵøӾоͻLAMPܡǼ۸񶼽ΪҵϢ뿼ǵƽ̨

LAMPض1998ꡣʱMichael KunzeΪ¹־c'tдһƪγΪҵƷʱLAMPʣָLinux ϵͳApacheMySQL ݿPHP PerlPythonűԵϣּĿͷĸɣIT֪ĶдİãKunzeLAMPһܿͱгܡO'ReillyMySQL ABӢȺƹռ֮LAMPΪ˿ԴҵһյơʵϣLAMPһյԴָǰķ
2jliu :2010.05.27 09:11 ::: ( OS&Storage ) ::Ķ:(175) :: (0) :: (0)
===========================================================
Perl: get to know from here
===========================================================
If is a begginner,you can here to start
2jliu :2010.05.25 09:24 ::: ( OS&Storage ) ::Ķ:(27) :: (0) :: (0)
===========================================================
rsync detail info
===========================================================
http://www.ibm.com/developerworks/cn/aix/library/au-rsyncfamily/?S_TACT=105AGX52&S_CMP=tec-csdn 鿴ȫ
2jliu :2010.05.24 10:31 ::: ( OS&Storage ) ::Ķ:(40) :: (0) :: (0)
===========================================================
rsync
===========================================================
rsyncľ£ 鿴ȫ
2jliu :2010.05.24 10:27 ::: ( OS&Storage ) ::Ķ:(52) :: (0) :: (0)
===========================================================
stty
===========================================================
UNIXϵͳܶ࣬ʹķࡣžĻۺ͹۲ѧϰûʵҲѧķ̸̸ԼʹUNIXϵͳsttyһЩᣬϣ㹲 鿴ȫ
2jliu :2010.04.26 15:36 ::: ( OS&Storage ) ::Ķ:(35) :: (0) :: (0)
===========================================================
nic
===========================================================

۲

IJ


2jliu :2010.04.06 15:13 ::: ( OS&Storage ) ::Ķ:(44) :: (0) :: (0)
===========================================================
֪ļٵ:⻯ôȫ
===========================================================
http://www.itpub.net/thread-1287270-1-1.html
2jliu :2010.04.02 13:27 ::: ( OS&Storage ) ::Ķ:(33) :: (0) :: (0)
===========================================================
ٹһ c0t0d0s0
===========================================================
c0t0d0s0 鿴ȫ
2jliu :2010.03.25 15:18 ::: ( OS&Storage ) ::Ķ:(87) :: (0) :: (0)
===========================================================
ZFS
===========================================================
ZFSΪSolaris 10һļZFSZettabyte File SystemҲж̬ļϵͳDynamic File System, ǵһ128λļϵͳŻԶһ¡򵥣
- ֧POSIXļϵͳӦֲ
- 32/64λļϵͳ16 billion billion
- Ӧ˵ZFSһ׼POSIXļϵͳֲ
- ϵͳԱ˵ZFSṩ洢صģͣ˾ĸӲ̷⣬ʹļϵͳô洢ص豸ķʴ100ά
- вcopy-on-writeʽӲ״̬ԶЧ fsck
- ݿ鱻64λУ飬 ֹ̱, ݿRaidһ𻵿һ޸
- ṩ޷ݵĿգṩ޶
1. ԤװOS ZFS谲װ
# pkginfo |grep SUNWzfs
# pkgadd -d .
The following packages are available:
1 SUNWzfs Zettabyte File System (ZFS)
(sparc) 11.10.0,REV=2004.12.26.02.38
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:1
...
Installation of %26lt;SUNWzfs%26gt; was successful.
2. storage pool
# zpool create -f testpool mirror /dev/dsk/c0t1d0s0 /dev/dsk/c0t1d0s1
# zpool df testpool
Pool size used avail capacity
-------------------- ------ ------ ------ --------
testpool 500M 56.0K 500M 1%
# zpool vdevs -v testpool
mirror1
c0t1d0s0
c0t1d0s1
 鿴ȫ
2jliu :2010.03.25 14:23 ::: ( OS&Storage ) ::Ķ:(61) :: (0) :: (0)
===========================================================
Solaris10 ...
===========================================================
޸Solarisϵͳ
1)ʹroot˻¼/etc/systemļһݣ磺
cp /etc/system /etc/system.orig2)༭/etc/system:
set noexec_user_stack=1
set semsys:seminfo_semmni=300
set semsys:seminfo_semmns=1050
set semsys:seminfo_semmsl=400
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=64000000008Gڴ£ͬ
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=300
set shmsys:shminfo_shmseg=30
3)ϵͳʹЧ:
/usr/sbin/reboot
2jliu :2010.03.25 10:02 ::: ( OS&Storage ) ::Ķ:(54) :: (0) :: (0)
===========================================================
UbunTu
===========================================================

˵ʱ,װ˸Ubuntu ( VM),оXPȺԻ.


2jliu :2010.03.22 11:34 ::: ( OS&Storage ) ::Ķ:(31) :: (0) :: (0)
===========================================================
ο
===========================================================
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibm
SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs
SUNWxwfnt SUNWcsl
2jliu :2010.03.22 10:46 ::: ( OS&Storage ) ::Ķ:(30) :: (0) :: (0)
===========================================================
===========================================================

..ʵ..

̫׼֡Ϊ1518ֽڣJumbo Frameijȸͬ9000ֽڡ64000ֽڲȡJumbo Frameܹǧַ̫ܳӣʹݴЧ50%100%洢ӦûУJumbo FrameзͬѰ塣

̫׼֡Ϊ1518ֽڣһļҪΪɿ飬ŵ̫֡Сÿݿ鴫ʱ򶼻֡ͷβĿܹһ֡ļĴ䣬ٺܶ֡ĿʺʹʡͨΪһӦƿûб׼

ʹþ֡ļȱ㡣ȣ֡Խζʧһ֡ݣһθΪص¼´ͶʧݰΪΪķʱĹΣеÿֳֶ֧֡֡ʹáInternetӲֳ֧֡һȳInternetֳ֧ȵ֡ڷǰֶΣӶ󽵵InternetӵܺͿɿԡ⵼Ҫÿһվ֪ĸݰ͵磬ĸݰ͵InternetΪ˼·ϵݰȣIPִMTU·ɷ㷨ǣⲻDZ׼ңھܾ񹥻ǽ㷨йصICMPݰͨˣ֡Internetӵʹá


2jliu :2010.03.21 13:45 ::: ( OS&Storage ) ::Ķ:(26) :: (0) :: (0)
===========================================================
ZFS
===========================================================
ZFS ļϵͳһָԵļϵͳɴӸϸıļϵͳĹʽĿǰеκļϵͳûеĹܺŵ㡣ƣZFS ǿڹŵ(128bit) 鿴ȫ
2jliu :2010.03.19 15:55 ::: ( OS&Storage ) ::Ķ:(28) :: (0) :: (0)
===========================================================
Solaris10
===========================================================
if possible,reuse this operation in later time 鿴ȫ
2jliu :2010.03.19 15:13 ::: ( OS&Storage ) ::Ķ:(29) :: (0) :: (0)
===========================================================
Storage....
===========================================================

3Par

Compellent

򵥵ĽһCompellentһdzҪ():

Զ̼ʱطź;ƹԼԶֲ

 鿴ȫ
2jliu :2010.03.17 09:55 ::: ( OS&Storage ) ::Ķ:(29) :: (0) :: (0)
===========================================================
dd С
===========================================================

,شһ;

˳,ʵͦ

 鿴ȫ
2jliu :2010.03.11 14:51 ::: ( OS&Storage ) ::Ķ:(523) :: (0) :: (0)
===========================================================
Windows 7 SP1ڽʽ
===========================================================
Windows 7 SP1ڽ6³ͣԱš9£΢ʽWindows7SP1

Windows 7SP1Windows7ȥ10·вԼһЩ¡Уش֧USB 3.0

ܵCESչϣպͻ˶PCչʾ֧USB3.0ʼDZԡʵʲԽʾ25GBĸӰUSB1.0׼ʱΪ9.3СʱUSB2.0Ϊ13.9ӣUSB 3.0Ϊ70롣

зʿʾ΢֮˼ƳWindows 7SP1ΪҵûδWindows7ڵȴSP1ķ


2jliu :2010.01.17 15:38 ::: ( OS&Storage ) ::Ķ:(76) :: (0) :: (0)
===========================================================
Windows 770С
===========================================================
Windows 7VistaҪöкܶ ϵͳ£ еһЩܲǺױ֣ǰеһЩҪŴһбһһҽнܡ 鿴ȫ
2jliu :2010.01.10 09:26 ::: ( OS&Storage ) ::Ķ:(76) :: (0) :: (0)
===========================================================
ջ
===========================================================
XenApp5,װһ,Ͽ治
2jliu :2010.01.08 15:08 ::: ( OS&Storage ) ::Ķ:(14017) :: (0) :: (0)
===========================================================
512->4k
===========================================================

30Ӳ̴ͳ512ֽwillΪ4KС

 鿴ȫ
2jliu :2010.01.04 10:39 ::: ( OS&Storage ) ::Ķ:(786) :: (0) :: (0)
===========================================================
How to design IO for your application
===========================================================

Now get more about these,many knowledge there...


2jliu :2009.12.27 09:48 ::: ( OS&Storage ) ::Ķ:(246) :: (0) :: (0)
===========================================================
A10
===========================================================

A10,,ϧ...


2jliu :2009.12.25 16:20 ::: ( OS&Storage ) ::Ķ:(495) :: (0) :: (0)
===========================================================
· I/O
===========================================================

,˳ٳ

http://technet.microsoft.com/zh-cn/library/cc725907(WS.10).aspx

 鿴ȫ
2jliu :2009.12.23 17:17 ::: ( OS&Storage ) ::Ķ:(338) :: (0) :: (0)
===========================================================
΢7֧
===========================================================

ҵ,Ȼ;


2jliu :2009.12.13 15:21 ::: ( OS&Storage ) ::Ķ:(148) :: (0) :: (0)
===========================================================
ع2009
===========================================================

Oracle10gR2RAC/postgreSQL/MySQL/MSSQL->Oracle/EMC/ESX/NetApp/BNT CX4 etc.... ã˽Ϥ,ô;

Ӧ/洢///˼·...


2jliu :2009.12.04 14:04 ::: ( OS&Storage ) ::Ķ:(1904) :: (0) :: (0)
===========================================================
1Win7ʽ
===========================================================
ҵ; install oracle11g
2jliu :2009.12.03 14:13 ::: ( OS&Storage ) ::Ķ:(154) :: (0) :: (0)
===========================================================
⻯ٴ̸ʹ
===========================================================
Щʱ䣬ĶesxIJּ£ζ͸˽Ĺؼ
2jliu :2009.11.24 14:54 ::: ( OS&Storage ) ::Ķ:(542) :: (0) :: (0)
===========================================================
PowerShell
===========================================================
Windows PowerShell ΢˾ΪWindowsĿdzʽshellűԼõн档ȫµļṩ˷ḻĿԶϵͳ 鿴ȫ
2jliu :2009.11.18 12:47 ::: ( OS&Storage ) ::Ķ:(219) :: (0) :: (0)
===========================================================
ѡASMʱ洢ֵһ㿼
===========================================================

raid 0+1,raid 0Ĵraid1,ײĴraid 0,raid 1Դ̵࣬еһ̳𻵣raid 0+1Ҫ̵ؽڼ䣬̵ҲʧЧģĻָʱȽϳܻȽϺ,Ϊraid 0ڶдܱȽϿ졣

raid 1+0 raid 1Ļraid 0ãraid 1Դ࣬Ǵֽڵȫࡣһ̳𻵣ֻһ𻵣Ϊraid 1ǻãԲᵼ´̳𻵣ָʱֻǻ̵ָʱ䡣ڴд롢ҪI/O࣬ûraid 0+1죬ǻָʱ̡

raid 5raid1ڴʹϱȽ٣block࣬ûraid 1+0ߣûraid 1+0죬ڶд̻߶̣Ҫ໨һЩʱ2ʱ䡣ԿorionģOLTPϵͳǰһ¡

raidԺ󣬾ǿfile system, raw partition or ASM,ASMṩļϵͳIJԣṩraw partitionܡASMһݿֻʹ2Ϳԣһݷʣһȡȡ鵵־ȡ̻LUNʱǶǴӴ濪ʼڴȡݵĴôǰ벿ֵ棬죬뻮ش顣

 鿴ȫ
2jliu :2009.11.06 09:26 ::: ( OS&Storage ) ::Ķ:(5374) :: (0) :: (0)
===========================================================
rpmReadSignature failed
===========================================================

install rpm Ĵ rpmReadSignature failed

 鿴ȫ
2jliu :2009.10.23 09:17 ::: ( OS&Storage ) ::Ķ:(244) :: (3) :: (0)
===========================================================
detail egenera
===========================================================

after install as4u6 with media DVD,hint that remove dvd and insert into egenera installation media(https://portal.egenera.com/_layouts/login.aspx?ReturnUrl=%2f part download patches)

 鿴ȫ

2jliu :2009.10.20 12:22 ::: ( OS&Storage ) ::Ķ:(2186) :: (0) :: (0)
===========================================================
˽Egenera...
===========================================================
Egeneraǹý(Utility Computing)ƽ̨췽洦ȵλ, Ʒʹʵ⻯. Egeneraϵͳ˸ķԼǿϵͳ, ʹô, 洢, 綼⻯һṹ. Egeneraµķṹ--ؼӦû--Գʩչĵ, ʹûԶ̬չϵͳƽ̨, ϵͳ, ⻯ϵͳĸ,dzЧ缰SAN洢á
2jliu :2009.10.19 14:06 ::: ( OS&Storage ) ::Ķ:(1416) :: (0) :: (0)
===========================================================
services.msc
===========================================================
services.msc,itѧһ
2jliu :2009.10.14 14:41 ::: ( OS&Storage ) ::Ķ:(90) :: (0) :: (0)
===========================================================
MySpaceзӲ̸
===========================================================
˿ƼѶ ʱ1013Ϣݹý屨罻վMySpaceܶѾзϵӲ̸PCIe̬棬ΪҵҪ洢 MySpaceҵĸܲ¡ķ(Richard Buckingham)ƣȥ20̴洢ûиITҵµIJ漼ٸµʱڡ MySpaceʾʹ󣬵ȴɱǰʹӲʱ1%ֱʹ160GB320GBԼ640GB濨°껹1.28TB档
2jliu :2009.10.14 14:19 ::: ( OS&Storage ) ::Ķ:(60) :: (0) :: (0)
===========================================================
ȫ
===========================================================
ȫ : SVS
2jliu :2009.10.14 14:04 ::: ( OS&Storage ) ::Ķ:(62) :: (0) :: (0)
===========================================================
һһڶЧ
===========================================================

⻯洢⻯ϣʵһһڶЧĵ⻯ͬʱҪּ

δչ

Ӳ豸ʣ

ЧĸӦ֮໥Ӱ죬

ͰѶӦϵһϵͳijɱ


2jliu :2009.10.13 11:41 ::: ( OS&Storage ) ::Ķ:(131) :: (0) :: (0)
===========================================================
2ƪмֵ2:ͰWeb2.0ݿƽ̨
===========================================================

http://tech.it168.com/a2009/0831/671/000000671601.shtml

 鿴ȫ
2jliu :2009.10.13 11:18 ::: ( OS&Storage ) ::Ķ:(408) :: (0) :: (0)
===========================================================
2ƪмֵ1Nehalemʲô
===========================================================

עĻNehalemʳITýƵԽԽ࣬ NehalemʲôNehalemʵӢضһCPU΢ܹĴ룬뱾ûʲôʵʵ塣NehalemȷӦǣȫµĿ΢ܹ

Ϊ"Tick-Tock"ƷͼչսԵż2008ӢضҪչǷCPUһ΢ܹ----Nehalem΢ܹΪһ΢˸йܣܿƣദչԼЧơ

Nehalem΢ܹΪҪ֣ںǼں

һ. ں˵Դ֮ǰ΢ܹŻͼǿҪΪ¼棺
(1) ֳ֧߳----̼߳ĺʱ˸߳
(2) ֧⻯豸/ (VT-d)----֮ǰ⻯CPUΪĻ豸/⻯ЧܺЧʡ
(3) ں˼ģʽ(Turbo Mode)----ںж̬١ԸҪرԼٵں˵С磬һĺ˵Nehalem ΢ܹУһֻҪںˣԹرں˵Уͬʱѹں˵ƵߡֻҪһںˣԹرںˣͬʱѹһںߵߵƵС̬ĵϵͳCPUЧʡ
(4) SSE 4.2ָȵȡ

. Ǽں˵ƸĶĿҪУ
(1) Cache----ȫںʽCacheƣL1ƺCore ΢ܹһL2óӳٵƣÿں256KBL3ùʽƣƬں˹
(2) ڴ(IMC)----оƬƵCPUƬϣֶ֧ͨDDR3ڴ棬ڴȡӳٴȼ٣ڴɴ
(3) QPI----"ͨ"ȡǰ(FSB)һֵ㵽Ӽ20λQPIɴᆰ˵ÿ25.6GBԶFSBɱȡQPIܹʵֶ֧ķƽ̨QPIڶദ֮Ļ

ĿǰNehalem΢ܹBloomfield(BloomfieldҲDzƷ)ѾʽΪ" i7"Ʒƣ"i7"ϵбšһںδӢض˾PCƷ콢Ʒơ

׿Nehalem΢ܹĴ̨ʽĴ i7ֵ֧оƬΪx584ںˣƻڽļСڷͱʼDZԵNehalem΢ܹҲڽ½С

ӢضƷĿ
ϤӢض˾˴Ŷ֪ÿӢضIJƷ߾дԵļڿʱһƷĿ롣Щ벻ʽIJƷУֻڿ׶εĹͨ

ӢضƷʱʹõʽƷƺͲƷȷҪԶԶڲƷͿ׶ΣƷƷƺͲƷ漰ķ̫࣬編ɷģ̱עᣬʹ÷Χķģûܶȵȵȡ

ˣΪ˹ͨ棬ʹô빵ͨӢض˾ѴѡȨĿĿĸˣǿԸԼϲ²Ʒ¼ȡ롣ҲпգиǰᣬΪ˱ⷨDZڵķգֵѡӦǵͼϿҵġ

ӢضܶƷĿŶڼ(California)ɽɽĹԼո(Oregon)ܱߣطӢضĿ鶼ԹΧĵֵɽȵΪƷĿĴ룬ڵͼ϶ҵ

ȻѡòݣĿĸҲԴԼĵͼطͼϿҵΪ롣ӡУйŶӸһЩĿùPearl River(齭)Yellow River(ƺ), O'River(걽)ȵȣΪĿԵģҲֻڲͨʹãڶ벢Ϊ֪

һ£NehalemʵոݲеһССdzǡ

 鿴ȫ

2jliu :2009.10.13 11:15 ::: ( OS&Storage ) ::Ķ:(66) :: (0) :: (0)
===========================================================
Enable FTP and TELNET Services
===========================================================
cd to /etc/xinetd.d
vi wu-ftpd
Change the disable field from "yes" to "no" and save changes.
vi telnetChange the disable field from "yes" to "no" and save changes.

2jliu :2009.09.30 07:15 ::: ( OS&Storage ) ::Ķ:(3129) :: (1) :: (0)
===========================================================
Getting Information from the OS
===========================================================

OS

patchlevel

memory

I/O Info

CPU Info

CPU / Memory

Sun Solaris

showrev -p

sysinfo
vmstat
/usr/sbin/prtconf
for general information + memory
/usr/sbin/psrinfo -v for CPU info

sar -d
iostat

/opt/RICHPse/bin/se
/opt/RICHPse/examples/toptool.se
sar -u
/usr/bin/mpstat

/opt/RICHPse/bin/se
/opt/RICHPse/examples/toptool.se
top
/etc/swap -l

Linuxgrep MemTotal /proc/meminfo
free
vmstat 3 5grep "model name" /proc/cpuinfo
cat /proc/cpuinfo
sar -u 2 5
sar -b
top
sar -W 5 5

HP-UX

swlist

sam

vmstat -n 2 200

AIX/RS-6000

instfix -ivqk

smit or sar

 鿴ȫ
2jliu :2009.09.30 07:14 ::: ( OS&Storage ) ::Ķ:(165) :: (0) :: (0)
===========================================================
UNIX Commands for DBAs
===========================================================

File and Directory Navigation

The "pwd" command displays the current directory:
root> pwd
/u01/app/oracle/product/9.2.0.1.0
The "ls" command lists all files and directories in the specified directory. If no location is defined it acts on the current directory. The "-a" flag lists hidden "." files. The "-l" flag lists file details.
root> ls
root> ls /u01
root> ls -al
More Examples:
ls -al | pg do a full directory listing and prompt to stop stuff whizzing off the page.
ls | wc -l count the files in the current directory.
ls -alt list files in date order
ls -alt | head -10 as above but only display the first 10
ls -l $ORACLE_HOME/reports60/printer/admin/spoolcmd.sh Verify that the spoolcmd.sh file has execute permissions
ls -s | awk '{if ($1 > 50) print $1 " " $2 }' list all files over 50 blocks in size.
ls -alq List files with hidden characters. Very useful when you cannot delete a file for an unknown reason, as sometimes a file can be created with hidden control characters. (very common when stty not set properly)
ls -1 Shows the files in a list (just the file names, this option is useful in shell scripts where the files names need to be fed into another program or command for manipulation)
ls -1h The option "-h" comes handy to display the size of the files in a human readable form.
ls -lr The parameter -r shows the output in the reverse order
ls -lR The -R operator makes the ls command execute recursivelythat is, go under to the subdirectories and show those files too


The "cd" command is used to change directories:
root> cd /u01/app/oracle
The "touch" command is used to create a new empty file with the default permissions:
root> touch my.log
The "rm" command is used to delete files and directories. The "-R" flag tells the command to recurse through subdirectories.
root> rm my.log
root> rm -R /archive
The "mv" command is used to move or rename files and directories. The "." represents the current directory
root> mv [from] [to]
root> mv my.log my1.log
root> mv * /archive
root> mv /archive/* .
The "cp" command is used to copy files and directories:
root> cp [from] [to]
root> cp my.log my1.log
root> cp * /archive
root> cp /archive/* .
The "mkdir" command is used to create new directories:
root> mkdir archive
The "rmdir" command is used to delete directories:
root> rmdir archive
The "grep" command performs a search for a specified string or pattern.
ps -eaf | grep oracle Show all processes owned by oracle.

The "find" command can be used to find the location of specific files. The "/" flag represents the staring directory for the search. Wildcards such as "dbms*" can be used for the filename.
root> find / -name dbmspool.sql
root> find / -print | grep dbmspool.sql Search everywhere for the specified file
root> find . -exec grep "DISPLAY" {} ; -print | pg Search all files for the text string "DISPLAY" - takes a while to run !
Display only the lines in /etc/oratab where the lines do not (-v option; negation) start with # character (^ is a special character indicating beginning of line, similarly $ is end of line).
root> grep -v '^#' /etc/oratab

2jliu :2009.09.30 07:13 ::: ( OS&Storage ) ::Ķ:(93) :: (0) :: (0)
===========================================================
weblogic 9.2 LINUXװȫ!
===========================================================
ESBװ
1. ȷϰװĻDzLINUX AS 4
[root@yaoxj ~]# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
Kernel r on an m
2. weblogic
groupadd weblogic --
cat /etc/group --鿴Ƿ
:
adduser -g weblogic -p weblogic weblogic --û
3. weblogic û½
su weblogic --лweblogic
4. BEA-ESB LINUX ӦĿ¼ 磺/media/cdrom
5. ִ
./alsb250_wls920_linux32.bin --ʼװ ֽ
Extracting 0%..................................................................................
Nextһ ͼ:
ѡ YES NEXTͼ:
ѡáװ· NEXTͼ:
ѡ complete NEXTͼ:
NEXTͼ:
ѡYES NEXTͼ:
NEXTͼ: ʼװ
װ½
DONEװѡRun Quickstartֿͼ
6. ִ
/home/weblogic/bea/weblogic92/common/bin/config.sh
ͼ
AquaLofic Service Bus ѡ
NEXTͼ: [дû]
NEXTͼ: [ѡJDK ѡJRocket SDK 1.5.0.0..]
NEXTͼ: [һЩò]
ѡYES NEXTͼ: [˿ں]
NEXTͼ:
NEXTͼ:
NEXTͼ: [ĬϵweBlogicݿ ]
NEXTͼ:
NEXTͼ:JMSıʽļ
NEXTͼ:
NEXTͼ:
createͼ:
Done
ʹ
/data/weblogic/bea/user_projects/domains/base_domain/startWebLogic.sh [WebLogicװ·ͬ]
ʹIEMozilla weblogic
Server̨:
ESB̨
 鿴ȫ
2jliu :2009.09.29 19:53 ::: ( OS&Storage ) ::Ķ:(200) :: (0) :: (0)
===========================================================
weblogic 9.2 LINUXװȫ
===========================================================
weblogic 9.2 LINUXװȫ ESBװ 鿴ȫ
2jliu :2009.09.29 19:49 ::: ( OS&Storage ) ::Ķ:(138) :: (0) :: (0)
===========================================================
weblogic 9.2 LINUXװȫ
===========================================================
weblogic 9.2 LINUXװȫ ESBװ 鿴ȫ
2jliu :2009.09.29 19:49 ::: ( OS&Storage ) ::Ķ:(66) :: (0) :: (0)
===========================================================
SecureCRT config files
===========================================================

C:Documents and SettingsMypetnameApplication DataVanDyke;

ʱʹõ

 鿴ȫ
2jliu :2009.09.27 15:08 ::: ( OS&Storage ) ::Ķ:(1077) :: (1) :: (0)
===========================================================
ESX installing error
===========================================================

choose vsphere enterprise õһsn,һֱʾcdrom;ѵsnԲ choose vsphere enterprise plus -sn -> install successfully


2jliu :2009.09.27 14:07 ::: ( OS&Storage ) ::Ķ:(80) :: (0) :: (0)
===========================================================
Ķiops/mbps/latency
===========================================================

File1

This maps to this test:
Test: mytest
Small IO size: 8 KB
Large IO size: 1024 KB
IO Types: Small Random IOs, Large Random IOs
Simulated Array Type: CONCAT
Write: 0%
Cache Size: Not Entered
Duration for each Data Point: 60 seconds
Small Columns:, 0
Large Columns:, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
Total Data Points: 38

Name: /dev/sdb1 Size: 1069254144
1 FILEs found.

Maximum Large MBPS=1915.12 @ Small=0 and Large=13
Maximum Small IOPS=40539 @ Small=30 and Large=0
Minimum Small Latency=0.08 @ Small=1 and Large=0

File2

TEST START

...................

 鿴ȫ
2jliu :2009.09.27 09:25 ::: ( OS&Storage ) ::Ķ:(92) :: (0) :: (0)
===========================================================
man mkfs.ext3
===========================================================

-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmentation,
and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-privi-
leged processes are prevented from writing to the filesystem. The default percentage is 5%.

/dev/sdbr1 917G 104M 871G 1% /u09


2jliu :2009.09.25 13:24 ::: ( OS&Storage ) ::Ķ:(10651) :: (0) :: (0)
===========================================================
˽NetApp...
===========================================================
IJԻᣬǰûнӴҪ˽ʵ
2jliu :2009.09.25 09:16 ::: ( OS&Storage ) ::Ķ:(84) :: (0) :: (0)
===========================================================
ѻȡԼwin7롣
===========================================================

Ҫwin7ļ룬Ҫи Windows Live ID (MSN ˺)˵ֻҪhotmail msn˺żɡ

ȻѾɵWindows 7ЧCD-KEYҾӦһרԼģ΢Ѿṩ Windows 7 к룬ҪЩƽⲹͿԳɹ Windows 7 Beta ʹõ 20098

 鿴ȫ
2jliu :2009.09.12 21:16 ::: ( OS&Storage ) ::Ķ:(198) :: (0) :: (0)
===========================================================
ʹWin7
===========================================================
Щʱмƻװʹ ˡ
2jliu :2009.09.12 09:23 ::: ( OS&Storage ) ::Ķ:(76) :: (0) :: (0)
===========================================================
io examples
===========================================================
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 3 616 893472 563880 2798072 0 0 18782 446 0 1 13 2 66 19
0 3 616 893152 563880 2798072 0 0 228817 17576 3400 5444 5 2 75 18
0 3 616 889496 563880 2798072 0 0 254042 489 3056 4260 5 2 76 18
1 2 616 889496 563880 2798072 0 0 258193 172 2230 3125 3 1 78 17
1 1 616 897688 563880 2798072 0 0 152570 80 1825 2412 3 1 81 15
1 2 616 898432 563884 2798068 0 0 54074 144 1822 3130 5 3 79 13
2 1 616 898432 563884 2798068 0 0 55129 340 1821 2250 3 1 82 14
0 2 616 898552 563884 2798068 0 0 50585 64 1782 2156 3 1 85 12
1 2 616 898568 563884 2798068 0 0 59555 1863 2073 3031 5 1 82 13
1 1 616 898688 563884 2798068 0 0 51909 4013 2403 5213 11 2 70 17
0 2 616 898712 563896 2798056 0 0 58209 3068 2024 2602 4 1 82 14
0 3 616 898784 563896 2798056 0 0 50562 324 2163 2774 3 0 82 14
0 2 616 898784 563896 2798056 0 0 51377 416 2415 3134 4 1 81 14
0 2 616 898936 563896 2798056 0 0 42921 8 1761 2277 3 0 85 12
5 10 616 898936 563896 2798056 0 0 55712 9976 3321 8656 25 3 55 18
0 3 616 899008 563896 2798056 0 0 42506 3878 2340 5561 11 2 66 21
0 2 616 899104 563896 2798056 0 0 44961 16419 2239 3255 4 1 82 13
0 2 616 899352 563896 2798056 0 0 45778 86 1840 2578 3 1 83 14
1 1 616 899352 563896 2798056 0 0 48153 272 1802 2530 3 1 83 13
0 3 616 899504 563896 2798056 0 0 46881 764 2157 2817 3 1 83 13
0 3 616 899512 563896 2798056 0 0 36450 636 3140 4132 4 1 81 15
1 1 616 899600 563900 2798052 0 0 37345 896 3469 4592 4 1 79 16
0 2 616 899616 563900 2798052 0 0 41705 552 3075 4057 4 1 81 14
0 2 616 907760 563900 2798052 0 0 43754 17 1759 2523 3 1 85 12
0 2 616 907760 563900 2798052 0 0 36545 164 1829 2438 3 0 84 12
0 2 616 907760 563900 2798052 0 0 45277 3239 2110 3582 6 1 81 13
0 2 616 907760 563900 2798052 0 0 41924 3295 2231 4437 10 1 73 15
0 2 616 907824 563908 2798044 0 0 35122 524 1528 1727 2 0 84 13
0 2 616 907824 563908 2798044 0 0 34161 4396 1429 1599 2 1 85 12
1 2 616 907824 563908 2798044 0 0 53786 81 1462 1609 3 0 85 12
2 3 616 897240 563908 2798044 0 0 67273 503 2624 3239 22 12 54 11
1 2 616 901280 563908 2798044 0 0 75840 11374 3444 7052 44 3 37 16
1 2 616 901280 563908 2798044 0 0 25697 308 1742 1710 15 0 72 13
0 2 616 907384 563908 2798044 0 0 18850 90 1177 1047 10 0 78 12
0 2 616 907280 563908 2798044 0 0 55489 13116 1577 1818 3 1 84 12
0 2 616 907304 563920 2798100 0 0 50842 32 1213 1182 2 0 86 11
1 1 616 907304 563920 2798100 0 0 60457 304 1392 1473 3 0 84 13
0 2 616 907448 563920 2798100 0 0 44009 108 1333 1281 2 0 86 12
0 2 616 907448 563920 2798100 0 0 52114 151 1465 1521 3 0 85 12
0 3 616 907576 563920 2798100 0 0 69529 376 1512 1664 3 1 85 11
0 2 616 907520 563920 2798100 0 0 35913 228 1676 1720 8 0 79 12
0 3 616 907584 563928 2798092 0 0 39642 484 2452 2922 3 0 82 14
1 3 616 907584 563928 2798092 0 0 47935 1468 2445 2911 3 1 82 14
7 12 616 899840 563928 2798092 0 0 207717 3892 2366 4947 11 2 67 20
0 4 616 891248 563928 2798092 0 0 298528 697 2446 4217 5 3 72 20
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
2 4 616 882240 563936 2798152 0 0 296298 268 2219 4726 5 3 71 20
0 4 616 888240 563952 2798136 0 0 292026 4656 2430 3643 3 2 75 19
0 4 616 887008 563952 2798136 0 0 294024 206 2327 4027 3 4 70 23
2 3 616 888688 563952 2798136 0 0 299777 9954 3239 7795 24 4 39 33
0 4 616 888152 563972 2798116 0 0 293185 11971 2358 3622 5 2 73 20
0 4 616 888672 563980 2798108 0 0 298128 172 2540 3334 3 2 74 21
2 2 616 888696 563980 2798108 0 0 257370 461 2606 3600 3 2 74 21
2 4 616 888744 563980 2798108 0 0 307521 420 2858 4084 3 2 74 21
0 4 616 889328 563980 2798108 0 0 302833 36 2308 3547 3 2 77 18
1 4 616 889352 563992 2798096 0 0 291585 128 2249 3370 3 2 76 19
2jliu :2009.09.08 14:44 ::: ( OS&Storage ) ::Ķ:(90) :: (0) :: (0)
===========================================================
TPC׼tpmcֵ
===========================================================
TPC׼tpmcֵ
̸ʹܶʱα

ûѡƽ̨ʱԵһͷ׷ӵ硣ûϣһ ֶ׼,ܹϵͳܣԴΪѡ͵ݡ ¹۹ᵽܺһֶ ۣңκζȱ㣬ǵʹ߶ܶ˽ⲻʱ ױһЩݳĽۡTPC׼Ϊһ Щʵʽ飬԰ûЩ

һʲôTPCtpmC?
tpmCֵڹⱻ ںϵͳʲôtpmCֵ?һЩ ûԱijЩ˾ļԱʹ⣬شľȷ tpmCֵг̶ԶơtpmCһҲдΪTPMTPMC

1TPC

TPC(TransactionProcessing PerformanceCouncilίԱ)10һԱ˾ķӯ ֯ܲ֯ȫ翪ţΪֹԱ աŷĴ˾TPCijԱҪǼӲңǼûĹ ƶӦû׼(Benchmark)ı׼淶ܺͼ۸ Խķ

TPCijǿ ģͨȡ(http://www.tpc.org)TPC׼Ĵ룬ֻ ׼ı׼淶(StandardSpecification)κγһ߶ Ըݹ淶ŵعԼϵͳ(ƽ̨ͲԳ)Ϊ֤Խ Ŀ͹ԣ(ͨdz)ύTPCһı(FullDisclosure Report)ϵͳϸá۸Ͱάڵܼ 񡣸ñTPCȨԱʵ(TPC)ȫֻм Աȫ

2tpmC

TPCѾƳ ׼򣬱ΪTPCATPCBTPCCTPCDABѾʱʹ ˡTPCC(OLTP)Ļ׼TPCDǾ֧(DecisionSupport) Ļ׼TPCƳTPCEΪҵ(Enterprise)ϢĻ׼

TPCCģһ ̵Ļ˾Nֿ⣬ÿֿ⹩Ӧ10ÿ Ϊ3000˿ͷÿֿ10նˣÿһնһ ʱ10Nն˲Ա˾ݿⷢ5һֿв 洢˾еĻһЩ뷢ֿ⣬ˣݿ߼ ֲġNһɱ߿ıNԻѲЧ

TPCCʹ ͼ۸TPCCʺλtpmCtpmtransactionsper minuteļƣCָTPCеC׼Ķÿϵͳ¶ Ҫעǣڴ¶ͬʱϵͳҪ1Ҫ4 󡣴ӱ1Կ¶󲻿ܳȫ45ˣһ ϵͳΪ1000tpmCʱÿʵʴ2000۸ָϵ ͳܼ۸񣬵λԪ۸ܱΪܼ۸ܣλǡ/tpmC

κϵͳ
ܺͼ۸

ϵͳѡʱһ ҪΪضûеضӦѡϵͳмΪˡʽ 족äĿáͨáĶԽͨõĶԽDz ׼ȷġ֪һЩûӲκΡͨáĶǻ Ԥ5ʹԼӦϵͳѡ͡ʹκһ ܺͼ۸ʱһҪŪ׸öĶ壬Լʲôϵͳú лµõģνȡɺõַʽ

1ʵ ʵӦ

ķʽǸһ Ե㣬Ҫ̻ϵͳϽϵͳ(ƽ̨Ͳ)һ ʵûһʱ䡣ûܿʵܣҲܹ۲쵽ϵ ͳǷȶɿʹǷ񷽱㡢ǷܵǷ㹻ȫ۸Ƿ һҪһͬϵͳַʽӦΪѡΪ ȷףҲЧʣûһϵͳΪԵ㡣ַʽõ Ķֵкȷʵʵĺ塣

2ʹûĻ ׼

ijԭ һַʽУûԶһ麬ԼʵӦûӦû׼ ҾӣR/3ӦòSAP˾Ļ׼Խ ԽҵϿɣй˰ܾҲԼĻ׼԰˰ ϵͳмѡַ͡ʽйҪΪйϢϵͳ ԡ

3ʹͨû׼

1ֺ͵2ַ ʽУʹTPCC֮ͨû׼DzѵһֽƷ ˣtpmCֵֻοӦע¼㣺

(1)ʵӦǷ׼

׼ ƶģйҵλʽһ(Ҳ Ӧû򲻿һ)ʹTPCCʱӦ֪ҵӦǷ ģʽ?Ƿ1?ӦʱҪǷ1? ǣtpmCֵIJοֵͲ̫ˡ

(2)TPCĽ

TPC׼ ϵͳDzģҿ϶ҪŻǵıϵͳ˴ġϵͳ (Ӳ̻RAID)˲ϵͳݿͻ˼ ϵͳݿӵȡںܶ೧ҵTPCϵͳУļ۸ ֻϵͳܼ۸1/4СӲ̵ļ۸пռܼ۸1/3ϣΪTPC CҪ󱻲ϵͳ뱣180¼ͬõûĻ УұtpmCֵ岻Ϊûʵϵͳ볧ԭTPC ϵͳһͬڲͬϵͳʱtpmCֵ൱ı ںܶûûʶһ㡣

Ҿһӡ ϣһͬϵͳÿһϵͳҪ1GBڴ50GBӲ̡ABC ۸൱ϵͳtpmCֱֵΪ300028002600ûǷӦѡ AIJƷ?ǣһڲtpmCֵϵͳʵṩû ϵͳôһtpmC͵ijCṩûϵͳпã ʵϵͳtpmCֵûʵӦ

(3)TPCԵijɱ

TPCCTPCD ܸӵĻ׼һϸIJǺԴģҵȻ˵ ˶Ǯʱ䡣ݹ֪ʿ͸¶һһTPCC ҪʮϰԪʽͰҵʱͶ롣ˣܶTPCĶֵ ǹƵġڼϵͳƵûһҪͨ˵Ķֵͱ ȴʱ䣬˶Ƚϵͳйijͨ˵ʱ

Ƕй û(Ǵû)ڼϵͳѡͷ½飺

ýһʵԵ㣬ΪʵӦûǼϵͳñ׼

йҵӦýԼʵӦõĻ׼ͲԱ׼й˰ֵֵܾᳫйزӦýIJģƶҵйҵģʽܲԱ׼

ͨáĶΪοֵӦΪҪһҪŪЩжʲô壬ʲôϵͳвõģԼ׼Ƿҵʵҵ̺ģʽ


2jliu :2009.07.10 13:27 ::: ( OS&Storage ) ::Ķ:(2174) :: (0) :: (0)
===========================================================
huge pagesize
===========================================================

64bit

linuxas

 鿴ȫ
2jliu :2009.07.03 15:22 ::: ( OS&Storage ) ::Ķ:(176) :: (0) :: (0)
===========================================================
ȫԸˣƺе;
===========================================================
http://www.cp-lab.com/index.html
2jliu :2009.06.17 17:48 ::: ( OS&Storage ) ::Ķ:(2273) :: (0) :: (0)
===========================================================
N8000ʧЧ
===========================================================
SFS LOCK ERROR V-288-522 Unable to find the console node
2jliu :2009.06.16 14:33 ::: ( OS&Storage ) ::Ķ:(144) :: (0) :: (0)
===========================================================
NAS/Storage IOܲ
===========================================================

¸ôϤʵ

 鿴ȫ

2jliu :2009.06.15 15:15 ::: ( OS&Storage ) ::Ķ:(177) :: (0) :: (0)
===========================================================
ظɾ
===========================================================

ִظɾķ

̲ɵִظɾĻ֡һǻɢУhashķData DomainɿڵDXiϵ豸DzSHA-1, MD-5 Ƶ㷨Щбݵϳɿ鲢ΪÿݿһɢУhashݿɢУhash뱸豸ɢеһɢƥ䣬Ѿݣ豸ֻı˵λҲڸݡ

ɢУhashķõĿչ⡣Ϊ˿ʶһݿǷѾݣֻɢУhashķڴӵɢУhashݵݿʱҲ֮һ豸ڴбֵ֧ܻἱ½ͬʱڴˣĿǰ󲿷ֻɢУhashϵͳǶģԱִ洢ڴ̿ռƽ⣬ɢУhashԶ̫

ڶַǻʶظɾַҪʶ¼ݸʽǶڱеļϵͳԪʶļȻݴ洢е汾ֽڵرȽϣҵð汾һѴ洢İ汾IJ֮ͬΪЩͬݴһļַԱɢУhashͻġҪ³ͻҪʹֵ֧ıӦ豸Ա豸ȡԪݡ

ExaGrid SystemsInfiniteFilerһʶظɾ豸ʱCommVault Galaxy Symantec Backup ExecͨõıӦüԴϵͳʶļɱݺҳѾαݵļļdeltas InfiniteFilersϳһָ֧ߴ30 TBıݡظɾExaGridڴ洢һ1GB .PSTļϢʱ죬Ϊͬļظݣĸ.PSTļͬĸ¡

Sepaton VTL DeltaStorҲʶ𷽷ļͬλϵǰļ汾бȽϣͬʱҲλϱݵļ汾бȽϣܹλϵظݡ

ַDiligent TechnologiesProtecTier VTLļɢУhashIJƷݷֳɿ飬Ҳе㷨ݿǷơȻƿеݽֽڵıȽϣжϸݿǷѾݡ


2jliu :2009.06.02 13:14 ::: ( OS&Storage ) ::Ķ:(69804) :: (0) :: (0)
===========================================================
ռԭ
===========================================================

ȿտ:едӦһӲϣԱļϵͳĸ߶ȵһԡṩóӲ̴ȱģʽĹߣͨREDO־ļӲϵͳϸƿտ

һREDO־ưļϵͳLUNĿǰȫġڿղɺ󣬿ԷһREDO־ύӲļύʱе־ӦãREDOļɾִУִٶȵ΢½еIJִСǣڶ£ս̼˲ɵģREDOĴύ֮ʱdz̡

ȿղ̴ӱϿϲٶ½£ӵصCPUɵһٶ½£ֿɲӰ졣

 鿴ȫ
2jliu :2009.06.02 13:13 ::: ( OS&Storage ) ::Ķ:(221) :: (0) :: (0)
===========================================================
Linux Quick Reference
===========================================================

Linux Kernel - Version:
Linux x86-64
Linux x86

Give index of Metalink Notes for the Linux Operating System and Oracle on Linux

 鿴ȫ
2jliu :2009.05.03 19:34 ::: ( OS&Storage ) ::Ķ:(326) :: (0) :: (0)
===========================================================
Linux Quick Reference
===========================================================

Linux Kernel - Version:
Linux x86-64
Linux x86

Give index of Metalink Notes for the Linux Operating System and Oracle on Linux

 鿴ȫ
2jliu :2009.05.03 19:34 ::: ( OS&Storage ) ::Ķ:(580) :: (0) :: (0)
===========================================================
Linuxϵͳ
===========================================================

linuxװϣῴкܶбôЩʲôأЩӦЩܣˡ
1....6.....

7crond
7.1crond ļ/etc/crontab
7.2˵ִػ
7.3ǷҪ

cups (PORT 631)
8.1 ˵Common UNIX Printing SystemUNIXӡ֧֣ΪLinuxṩӡܡ
8.2 ǷҪװӡͲҪ
...........
11irqbatance
11.1 irqbalance Զϵͳµϵͳжиƽػ
11.2 ǷҪֻװһCPUͲҪػ

..........
16microcode_ctl
161˵microcode_ctl ԱԼµ΢뵽kernelԸIntel IA32ϵдPentium ProPIIPIIIPentium 4Celeron, Xeon ȵ - ȫ P6 Լ, pentium classics
16.2

...................
24smartd
24.1 ˵ҼӲǷ
24.2

 鿴ȫ
2jliu :2009.04.24 13:32 ::: ( OS&Storage ) ::Ķ:(160) :: (0) :: (0)
===========================================================
AIX RAW LVM 4k Offset
===========================================================

Fri Jan 16 09:59:39 2009
WARNING: You are creating/reusing datafile /oradata/bldb/sysaux01.dbf.
WARNING: Oracle recommends creating new datafiles on devices with zero offset. The command "/usr/sbin/mklv -y LVname
-T O -w n -s n -r n VGname NumPPs" can be used. Please contact Oracle customer support for more details.
WARNING: You are creating/reusing datafile /oradata/bldb/sysaux01.dbf.
WARNING: Oracle recommends creating new datafiles on devices with zero offset. The command "/usr/sbin/mklv -y LVname
-T O -w n -s n -r n VGname NumPPs" can be used. Please contact Oracle customer support for more details.
WARNING: You are creating/reusing datafile /oradata/bldb/sysaux01.dbf.
WARNING: Oracle recommends creating new datafiles on devices with zero offset. The command "/usr/sbin/mklv -y LVname
-T O -w n -s n -r n VGname NumPPs" can be used. Please contact Oracle customer support for more details.
WARNING: You are creating/reusing datafile /oradata/bldb/sysaux01.dbf.
WARNING: Oracle recommends creating new datafiles on devices with zero offset. The command "/usr/sbin/mklv -y LVname
-T O -w n -s n -r n VGname NumPPs" can be used. Please contact Oracle customer support for more details.
Sat Jan 17 16:59:32 2009

 鿴ȫ
2jliu :2009.01.19 11:56 ::: ( OS&Storage ) ::Ķ:(711) :: (0) :: (0)
===========================================================
cf compress
===========================================================
-rw-r----- 1 root system 536879104 Jan 12 11:50 appddts02.dbfcp
-rw-r----- 1 root system 92653064 Jan 12 11:50 appddts02.dbfcp.gz
-rw-r----- 1 root system 134575069 Jan 12 11:51 appddts02.dbfcp.init.Z
2jliu :2009.01.14 12:25 ::: ( OS&Storage ) ::Ķ:(117) :: (0) :: (0)
===========================================================
nfs
===========================================================

linux Ϊ

aix :smitty nfs

 鿴ȫ
2jliu :2008.11.18 15:41 ::: ( OS&Storage ) ::Ķ:(2906) :: (0) :: (0)
===========================================================
洢һЩ
===========================================================

ЩڸʽĸȥҾͰҵһЩд,ο:

1:HBAĸ
HBAȫΪHost Bus Adapter

2:Lunĸ
lunȫlogical unit numberҲ߼Ԫš֪scsiϿɹҽӵ豸޵ģһΪ615ǿtarget ID(ҲгΪscsi id)Щ豸豸ֻҪһϵͳһţ豸ʱ,ֻҪ˵żžokˡ

ʵҪĶԶԶֵģlunĸҲ˵lun idþtarget idÿtarget¶жlun deviceͨlun deviceΪlunͿ˵ÿ豸ԭtarget xtarget x lun y,ôԶ׼,豸ǿ


2jliu :2008.11.11 14:58 ::: ( OS&Storage ) ::Ķ:(103) :: (0) :: (0)
===========================================================
Install ssh @ AIX
===========================================================
AIX5.3
1. AIX Toolbox for Linux® Applications CD л OpenSSL RPM , smit installpװOpenSSL;
2. ʹAIX Version 5.3 Expansion Pack CD иOpenSSH, ҲԴ(https://sourceforge.net/projects/openssh-aix/)ȡ.
3. smit installpװOpenSSH:
1). װlicense;
2). װopenssh.base,ע ACCEPT new license agreements?ѡY,Ĭ.
4. ssh
# startsrc -g ssh
5. رssh
# stopsrc -g ssh
6. Զssh
1) ༭һű
# vi /etc/rc.local
:
#!/bin/sh
startsrc -g ssh
2) ༭/etc/inittab
# vi /etc/inittab
:
rc.local:2:wait:/etc/rc.local > /dev/console 2>&1ɡ

2jliu :2008.11.11 13:23 ::: ( OS&Storage ) ::Ķ:(235) :: (0) :: (0)
===========================================================
AIXһ (豸)
===========================================================

һ豸

1.1AIXϵͳ豸ķֲ㼰

aixϵͳ豸ΪΣ㣺ܷ࣬ǰ豸Ļܷ飬ʾ豸ʲôadapter࣬дӡprinterܷ࣬е߶busܷ࣬еĴŴtapeܷڶ㣺࣬ǰijһ֣ʾ豸ʲôʽӵϵͳϣISAisa_sioࣩ׼/ PCIpciࣩadapterܷĹ࣬ӡַΪУrs232Ͳнӿ(parallel) 㣺豸ͣǰͺź ϵͳе豸豸߼豸֣Ӳ豸Щ豸ϵͳеƾ߼豸Ӧóͨ߼豸豸ģ߼豸Ϊ豸ļ/devĿ¼£ûͨ豸ļ豸ʵ豸Ķд豸ɵ unixϵͳе豸дʽࣺ豸block deviceһ־һṹȡ豸豸Ķдǰеģʹûʱݣ󣬴ӻһд豸豸һԶ뵽̺ļϵͳ ַ豸Character deviceһ˳豸豸ĶдǰַеģЩַγһ߱Զ豸ĶдʵʱģնˡŴȡĿ豸Ӧһȼ۵ַ豸/dev/fd0豸Ӧַ豸Ϊ/dev/rfd0 ls -l /dev ļȨʾУһַbıʾǿ豸ļcıʾַ豸ļе5豸ı־豸źʹ豸ɣ豸ű־豸,

 鿴ȫ
2jliu :2008.11.05 10:57 ::: ( OS&Storage ) ::Ķ:(667) :: (0) :: (0)
===========================================================
̵߳ȲԷ
===========================================================
̵߳Ȳģͽܼ

̵߳Ȳ
AIXУȡû߳ӳ䵽̵߳ķʽֲͬĵȷʽ
- 1:1 ʽ
- M:1 ʽ
- M:N ʽ
̡̼߳߳û߳ӳ䵽̵߳Ĵͨ⴦VPɵģ仰˵û̵߳ĵӳ䵽VP, VPȣVPһ̣߳ǰ󶨵̵߳Ľṹ潫ַʽϸܡ
1 1:1ȷʽ
ַʽУÿһṵ̂߳󶨵һVPϣһ̣߳VPһ󶨵
CPUִа󶨵CPUIJûÿһVPһſû
ϵͳõCPU󶨵VPֱ̣߳ӱĵȣϵͳķΧ

 鿴ȫ
2jliu :2008.11.04 17:26 ::: ( OS&Storage ) ::Ķ:(736) :: (0) :: (0)
===========================================================
smitty
===========================================================

smitty etherchannel;

inet and so on


2jliu :2008.11.04 17:17 ::: ( OS&Storage ) ::Ķ:(1275) :: (0) :: (0)
===========================================================
banner
===========================================================

banner njuigug

# # # # # # #### # # ####
## # # # # # # # # # # #
# # # # # # # # # # #
# # # # # # # # ### # # # ###
# ## # # # # # # # # # # #
# # #### #### # #### #### ####


2jliu :2008.10.16 15:36 ::: ( OS&Storage ) ::Ķ:(104) :: (0) :: (0)
===========================================================
topas
===========================================================

have a look at

 鿴ȫ
2jliu :2008.09.10 09:13 ::: ( OS&Storage ) ::Ķ:(206) :: (0) :: (0)
===========================================================
===========================================================

1:chdev -l hdisk31 -a pv=yes

2:mknod /dev/ocr_disk c 25 5

from {

ls -lL /dev/zero /dev/null /dev/random

crw-rw-rw-1 root root 1, 3 2003-09-15/dev/null
crw-r--r--1 root root 1, 8 2003-09-15/dev/random
crw-rw-rw-1 root root 1, 5 2003-09-15/dev/zero

mknod dev/null c 1 3
mknod dev/zero c 1 5
mknod dev/random c 1 8
}

3:ļ

mknod /dev/o9_sysaux c 25 7


2jliu :2008.09.04 10:55 ::: ( OS&Storage ) ::Ķ:(134) :: (0) :: (0)
===========================================================
vmo/no
===========================================================

2Ǻ;ģֵüס


2jliu :2008.09.03 16:26 ::: ( OS&Storage ) ::Ķ:(2221) :: (0) :: (0)
===========================================================
dd if=/dev/zero
===========================================================

/dev/zeroļһԶ 0豸ļʹԵõȫΪյļ

dd if=/dev/zero of=/dev/rdsk/V1064_vote_01_20m.dbf bs=8192 count=2560
dd if=/dev/zero of=/dev/rdsk/ocrV1064_100m.ora bs=8192 count=12800


2jliu :2008.08.28 13:56 ::: ( OS&Storage ) ::Ķ:(1083) :: (0) :: (0)
===========================================================
aix issue: (RAC process....)
===========================================================
When SSH is not available, the Installer uses the rsh and rcp commands
instead of ssh and scp. .
2jliu :2008.08.27 16:02 ::: ( OS&Storage ) ::Ķ:(140) :: (0) :: (0)
===========================================================
ʲôflashcopy
===========================================================
FlashCopyһֿٵݸϵͳ

Դijһʱ̵״̬ѴڶʱڸƵĿϵͳС

νָֻ߼ݸƹͨڼɣʹԴݵϵͳֻܵ΢Ӱ졣

ƹں̨Уƹ̽ڼԴݺ͸ĿݶܱӦóʹãǰ̨ϵͳͺ̨ϵͳͬʱУʹòͬݡ
2jliu :2008.08.22 14:41 ::: ( OS&Storage ) ::Ķ:(154) :: (0) :: (0)
===========================================================
FlashCopy
===========================================================

IBMվУ

һ. FlashCopy

FlashCopyFAStTһ߼ܣǼʱһʱϵݾPoint-in-Time CopyݿݺԭʼݾȫһģƬһֱա

 鿴ȫ
2jliu :2008.08.22 14:26 ::: ( OS&Storage ) ::Ķ:(374) :: (0) :: (0)
===========================================================
AIX Dump Deivce ʹ
===========================================================

1. dump豸ҪĴС
# sysdumpdev -e
0453-041 Estimated dump size in bytes: 981467136

2. ϵͳᶨʱdump deviceĴС,rootcron:
0 15 * * * /usr/lib/ras/dumpcheck >/dev/null 2>&1
dump deviceռ䲻,ᱨerrpt,:
837E0DE7 1112202205 P O dumpcheck The largest dump device is too small.
ĴϢһ㶼dump豸Ŀռ̫С

3. ޸dump deviceСķ:
3.1 鿴ǰϵͳdump device
# sysdumpdev -l
primary /dev/lg_dumplv
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON
AIX 52ϣdump豸ǽrootvgϵһlg_dumplv߼ϡ

3.2 ޸dump豸λ
Խdump豸ʱָ/dev/hd6(swap)/dev/sysdumpnull(dump豸,Ҳû)
-P primary dump device
-p Makes permanent the dump device specified by -p or -s flags.
#sysdumpdev -P -p /dev/hd6
primary /dev/hd6
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON
3.3 չlg_dumplvĴСԴijߴ紴lv
# extendlv lg_dumplv xxx

3.4 ıdump豸lg_dumplv
# sysdumpdev -P -p /dev/lg_dumplv
primary /dev/lg_dumplv
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON

3.5 м򣬿Ƿ񻹱
#/usr/lib/ras/dumpcheck

4. ڸ̾ϵͳ
paging swapdump deviceͬ,ϵͳmirror(The system dump devices (primary /dev/hd6 and secondary /dev/sysdumpnull)
should not be mirrored.)
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 244 488 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 8 16 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 40 80 2 open/syncd /var
hd3 jfs2 16 32 2 open/syncd /tmp
hd1 jfs2 40 80 2 open/syncd /home
hd10opt jfs2 80 160 2 open/syncd /opt
lg_dumplv sysdump 16 16 1 open/syncd N/A
:hdisk0hdisk1Ϸֱ𴴽dump device,:
rootvgÿһӲһdump device
mklv -t sysdump -Y sysdumplv00 rootvg 50 hdisk0
mklv -t sysdump -Y sysdumplv01 rootvg 50 hdisk1
sysdumpdev -P -p /dev/sysdumplv00
sysdumpdev -P -s /dev/sysdumplv01
Ӧ
sysdumpdev -P -p /dev/sysdumplv0000
sysdumpdev -P -s /dev/sysdumplv0100

2jliu :2008.08.21 09:43 ::: ( OS&Storage ) ::Ķ:(414) :: (0) :: (0)
===========================================================
AIX ܵ ڴƪ֮һ
===========================================================

½ܺAIXڴصһЩ.

ڴ

ڵڴ,鿴:

# prtconf |grep Memory

Memory Size: 15936 MB

Good Memory Size: 15936 MB

ڴķ

(1) persistentͣworkͣڴ

Persistentָ뵽ڴݱļϵͳǴڵģݵļִļ; ָеStack, ڴε(working segments, as are the kernel text segment, the kernel-extension text segments, as well as the shared-library text and data segments. )ǽ;ġPersistentڴ汻page outʱдļϵͳУworkڴ汻page outʱдpaging space.

ͨsvmonԿڴ.

# svmon -G

size inuse free pin virtual

memory 4079616 3477314 602302 535874 894316

pg space 7995392 2915

work pers clnt

pin 535874 0 0

in use 894316 0 2582998

(2) ComputationalͣFileļͣ

Computationalڴworking-storage segments or program text (executable files) segments. ҲǰworkͣټpersistentͣеĿִļIJ. Fileļͣdzȥ͵ڴ. ComputationalͿΪִļĵطļͿΪļеdata.

ͨtopasڴ.

MEMORY

Real,MB 15936

% Comp 22.8

% Noncomp 63.3

% Client 63.8

(3) Client

Persistent͵ڴһ,client͵ڴ汻map remote files(ͨNFSʵļ). Enhanced JFS file systemʹclients pagecache,svmonĽпʵûpersistentֵ,clntֵ, ΪõĶEnhanced JFS ļϵͳ.

work pers clnt

pin 535874 0 0

in use 894316 0 2582998

ڴ

ڴڴPaging Spaceγɵڴռ,ͨĵַռӳ䵽ڴPaging Space.

Paging space

Paging spaceϵͳһ洢ռ, ռһĴ̿ռ, logical volumeļʽ. AIXںҪ Paging Space ڴ档ڴҳһAIX Paging SpaceҲ4KBΪλʵڴĿֵһԺϵͳҪʵڴеijЩҳ棨Computation PageдصPaging SpaceУpage outԱͷųʵڴҳ򡣲鿴ǰpaging space:

# lsps -a

Page Space Physical Volume Volume Group Size %Used Active Auto Type

hd6 hdisk1 rootvg 31232MB 1 yes yes lv

Page Fault

If the access is going to a page of virtual memory that is stored over to disk, or has not been brought in yet, a page fault occurs, and the execution of the program is suspended until the page has been read from disk. 鿴page fault:

# sar -r 5

System configuration: lcpu=8 mem=15936MB

10:28:12 slots cycle/s fault/s odio/s

10:28:17 7992467 0.00 3.39 0.20

pi(Page In)

The number of pages paged in from paging space. paging space pageڴеpageĿ, Щҳضǰpage outpage spaceе. ͨvmstat鿴

# vmstat

System configuration: lcpu=8 mem=15936MB

kthr memory page faults cpu

----- ----------- ------------------------ ------------ -----------

r b avm fre re pi po fr sr cy in sy cs us sy id wa

1 1 894750 601858 0 0 0 2 3 0 15 861 286 0 0 99 1

po(Page Out)

The number (rate) of pages paged out to paging space. poûпpi,һThrashing, ϵͳڶȡpersistent pagesᵼ¿page out, ʱҪ鿴һӦõ. page outȥ,нҪٴreferenceʱ,page fault,Ȼͨpage inٴд뵽ڴ. ͨvmstat鿴

Thrashing

ʾϵͳpaging inout, ϵͳȱڴ.

Repage

Page faultһµpage fault,Ҳһrepage fault. A new page fault occurs when there is no record of the page having been referenced recently. A repage fault occurs when a page that is known to have been referenced recently is referenced again, and is not found in memory because the page has been replaced (and perhaps written to disk) since it was last accessed. һpage faultƣӦñⷢεpage faultAIXһͳƣֱͳƼͺͷǼڴ淢repagecountǿvmtuneȥڴ pageĻƣvmtune -p -P
2jliu :2008.08.21 09:30 ::: ( OS&Storage ) ::Ķ:(682) :: (0) :: (0)
===========================================================
aixθݹҽӵ֪Ӳ
===========================================================
aixθݹҽӵ֪Ӳ 鿴ȫ
2jliu :2008.08.18 14:08 ::: ( OS&Storage ) ::Ķ:(286) :: (0) :: (0)
===========================================================
minperm maxperm
===========================================================

minperm maxperm ķҳ滻ɵɵָ AIX ںӦʹöڴǼԵķҳmaxperm ɵָӦڻǼԷҳڴ

ȱʡ£maxperm һϸġƣζijЩ¿Գơ maxperm 趨Ϊϸƣھпÿڴʱ򣬿ڴлķǼļͨ strict_maxperm ɵΪ 1Ϳʹ maxperm ƳΪϸ񡱵ơ maxperm ϸƵʱ򣬼ʹпɹʹõĿڴ棬ںҲǼԷҳĿ maxperm ơˣ maxperm ΪϸƵȱǣǼԷҳĿܳ maxperm ƣϵͳопڴʱҲʹøڴ档

minperm ָӦڷǼԷҳڴ

ǼԷҳĿΪ numpermvmstat Cv ʾϵͳ numperm ֵռϵͳʵڴİٷֱȡ

ͼ 1 йЩɵڲͬϵͳνйĸſ


ͼ 1. minperm maxperm

ǼԷҳĿnumpermڻߵ maxperm ʱAIX ҳ滻ػϸѡǼԷҳ磬ķǿִļв

ǼԷҳĿnumpermСڻߵ minperm ʱAIX ҳ滻ػ̽ѡԷҳͷǼԷҳв£AIX ɨҳһսʹõķҳ

ǼԷҳĿnumperm minperm maxperm ֮ʱlru_file_repage ɵ AIX ҳ滻ػ滻ķҳͣμͼ 2

lru_file_repage


ͼ 2. lru_file_repage ɵ

numperm minperm maxperm ֮ʱ lru_file_repage ɵΪ 1ô AIX ҳ滻ػ̽ڲ·ҳȷѡ͵ķҳв

AIX ںάһ·ҳԱȷЩҳڻ󽫺ܿػ롣ں˽һҳȻٽ任ʱͨʾҳᱻʹãҸ÷ҳӦñڴСں˼¼˶ԼԷҳ·ҳĴԼԷǼԷҳ·ҳĴȻAIX ں˿ʹϢȷһҳ·ҳƵʾһҳƵʹã lru_file_repage ɵΪ 1 ʱAIX ںʹ·ҳϢȷǷѡǼԵķҳвѡԵĺͷǼԵķҳвԷҳ·ҳٶȱȷǼԷҳ·ҳٶȸߣô AIX ں˽ѡǼԵķҳвΪԷҳʹøΪƵǼԷҳ·ҳٶȱȼԷҳ·ҳٶȸߣô AIX ں˽ѡԵķҳͷǼԵķҳв

ڴĿͻУķʽʼںֻѡǼԵķҳвΪԷǼԵķҳļ棩зҳȣԼԵķҳ磬̵ĶջݵȵȣзҳͨԽ̲ܿˣԽ lru_file_repage ɵΪ 0£ numperm minperm maxperm ֮ʱAIX ںʼѡǼԵķҳв

maxclient

minperm maxperm ɵ֮⣬һ maxclient ɵmaxclient ɵָӦڻǼԿͻ˷ҳڴơΪзǼԿͻ˷ҳǷǼô洢ҳӼ maxclient ƱʼСڻߵ maxperm ơ

ǼԿͻ˷ҳĿΪ numclientvmstat Cv ʾϵͳ numclient ֵռϵͳʵڴİٷֱȡ

ȱʡ£maxclient ϸơζţAIX ں˲ǼԵĿͻļ泬 maxclient ƵķΧҲ˵AIX ں˲ numclient maxclient numclientmaxclient ʱAIX ں˽ġͻ˵ģʽʼҳ滻ֽͻ˵ģʽУAIX ҳ滻ػ̽ϸѡͻ˷ҳв

ϵͳڴʹ

AIX ṩ˼ֹߣṩϵͳвͬҳļϢ

vmstat

vmstat ԱϵͳڴʹϢԼҳ滻 VMM ͳϢ

ʹô -v ѡ vmstat ʾͬҳʹõʵڴٷֱȣμ嵥 1


嵥 1. vmstat -v
# vmstat -v
       4980736 memory pages
        739175 lruable pages
        432957 free pages
             1 memory pools
         84650 pinned pages
          80.0 maxpin percentage
          20.0 minperm percentage  <<- systems minperm% setting
          80.0 maxperm percentage  <<- systems maxperm%
setting
           2.2 numperm percentage  << % of memory containing
non-comp. pages
         16529 file pages          <<- # of non-comp. pages
           0.0 compressed percentage
             0 compressed pages
           2.2 numclient percentage <<- % of memory containing
non-comp. client pages
          80.0 maxclient percentage <<- systems maxclient%
setting
         16503 client pages         <<- # of client pages
             0 remote pageouts scheduled
             0 pending disk I/Os blocked with no pbuf
             0 paging space I/Os blocked with no psbuf
          2484 filesystem I/Os blocked with no fsbuf
             0 client filesystem I/Os blocked with no fsbuf
             0 external pager filesystem I/Os blocked with no fsbuf
             0 Virtualized Partition Memory Page Faults
          0.00 Time resolving virtualized partition memory page faults

        

ˣʾУһ 16529 ǼԵļҳӳ䵽ڴСЩǼԵķҳʹ 2.2% ڴ档 16529 ǼԵļҳУ 16503 ǿͻ˷ҳ

vmstat ûṩڼļҳϢڼļҳϢʹ svmon Ѽõ

svmon

һʾϵͳڴʹõϢ svmonsvmon ִ֧ͬѡЩѡṩйϵͳڴʹõϸϢ

svmon -G ѡʾͬͷҳʹõڴϢμ嵥 2


嵥 2. svmon -G ѡ
# svmon -G
               size      inuse       free        pin    virtual
memory       786432     209710     576722     133537     188426
pg space     131072       1121

               work       pers       clnt
pin          133537          0          0
in use       188426          0      21284

PageSize   PoolSize      inuse       pgsp        pin    virtual
s    4 KB         -     103966       1121      68929      82682
m   64 KB         -       6609          0       4038       6609
        

Ҫ˽ϵͳʵڴʹsvmon ʾУ

  • work
  • pers־Դ洢־Դ洢ҳǷǿͻ˷ҳ JFS ҳ
  • clntͻ˴洢

ÿַҳͣsvmon ʾУ

  • inuseӳ䵽ڴе 4K ҳĿ
  • pin ӳ䵽ڴеġҹ̶ 4K ҳĿpin inuse Ӽ

ˣʾУһ 188426 洢ҳӳ䵽ڴС 188426 洢ҳУ 133537 ǹ̶ģҲ˵ܻģ

ʾʾûг־õĴ洢ҳΪϵͳûʹ JFS ļϵͳһ 21284 ͻ˴洢ҳûһǹ̶ġ

svmon ûʾô洢ҳĿĿ svmon õǰô洢ҳĿdz־Դ洢ҳĿͿͻ˴洢ҳĿܺ͡ˣʾУϵͳһ 21284 ô洢ҳ

0 persistent storage pages + 21284 client storage pages = 21284 permanent storage pages

svmon Ϣ vmstat һ㲻ͬsvmon 治ͬڴҳĿϢġ־õģǿͻ˵ģͿͻ˵ġsvmon ûṩԷҳͷǼԷҳĶԱϢsvmon ֻÿַҳڴзҳ

vmstat ṩǼԷҳͼԷҳĶԱϢ

Ϊ˵𣬿Կ svmon ʾ 21284 ͻ˷ҳеijЩҳǼԵģ 21284 ͻ˷ҳʣµЩҳǷǼԵġҪȷЩͻ˷ҳڼԺͷǼ֮Ļ֣ʹ vmstat ȷ 21284 ͻ˷ҳжٷҳǷǼԵġ

ʾÿɵ

vmo VMM ɵнvmo ʾڿɵϢԼÿɵֵ

Ҫʾ VMM ɵĵǰֵд CL ѡ vmo

# vmo -L

Ҫʾѡ VMM ɵĵǰֵʹ CL ѡгɵơ磬ʾг minperm%maxperm%maxclient% lru_file_repage ɵǰֵʱμ嵥 3


嵥 3. ɵ
# vmo -L minperm% -L maxperm% -L maxclient% -L lru_file_repage

NAME                      CUR    DEF    BOOT   MIN    MAX    UNIT           TYPE
     DEPENDENCIES
--------------------------------------------------------------------------------
lru_file_repage           1      1      1      0      1      boolean           D
--------------------------------------------------------------------------------
maxclient%                80     80     80     1      100    % memory          D
     maxperm%
     minperm%
--------------------------------------------------------------------------------
maxperm%                  80     80     80     1      100    % memory          D
     minperm%
     maxclient%
--------------------------------------------------------------------------------
minperm%                  20     20     20     1      100    % memory          D
     maxperm%
     maxclient%
        


1. ɵ
CURгɵĵǰֵ
DEFгȱʡֵ
BOOTгɵϵͳʱֵ
MINгɵСֵ
MAXгɵֵ
UNIT˵ɵĵλ

vmo ּ֧ʱĿɵֵ߽ĿɵֵIJӳٵϵͳ֮СҪĿɵʹЩЧԺʱܹЧָ -p ѡṩһʾμ嵥 4


嵥 4. -p ѡ
# vmo -p -o lru_file_repage=0 -o maxclient%=90 -o maxperm%=90 -o minperm%=3

Setting minperm% to 3 in nextboot file
Setting maxperm% to 90 in nextboot file
Setting maxclient% to 90 in nextboot file
Setting lru_file_repage to 0 in nextboot file
Setting minperm% to 3
Setting maxperm% to 90
Setting maxclient% to 90
Setting lru_file_repage to 0

Ŀɵ

VMM ҳ滻ػ̽ѡǼԷҳвôضл档ˣƼĿɵΪṩѵܣμ嵥 5


嵥 5. ܵĿɵ
lru_file_repage = 0
maxperm = 90%
maxclient = 90%
minperm = 3%
strict_maxclient = 1 (default)
strict_maxperm = 0 (default)

ʹ vmo Щɵμ嵥 6


嵥 6. ʹ vmo õĿɵ
# vmo Cp Co lru_file_repage=0 Co maxclient%=90 Co maxperm%=90 Co minperm%=3
# vmo Cp Co strict_maxclient=1 Co strict_maxclient=0

ʹ vmo CL 鿴Щá

Щɵ AIX Version 5.2 AIX Version 5.3Ҫ AIX Version 5.2 ЩɵҪʹ AIX Version 5.2 TL6 ߸߰汾Ҫ AIX Version 5.3 ĿɵҪʹ AIX Version 5.3 TL1 ߸߰汾

ɵ AIX Version 6.1 ȱʡá

AIX VMM ʹԷҳзࡣʹøϵͳɵ AIX ҳ滻ػ̵Ϊ AIX ͬͷҳķҳ滻ķʽ AIX VMM ŻʹøֹػԵܸơ

 鿴ȫ
2jliu :2008.08.14 13:50 ::: ( OS&Storage ) ::Ķ:(1140) :: (0) :: (0)
===========================================================
minperm%, maxperm%maxclient%
===========================================================
(1) minperm%
ļҳռеʵڴİٷֱȵҳ滻㷨滻ļҳҲ滻ҳ棬repage rate
# vmo -a |grep minperm%
minperm% = 20
 鿴ȫ
2jliu :2008.08.14 13:46 ::: ( OS&Storage ) ::Ķ:(1655) :: (0) :: (0)
===========================================================
aixڴ
===========================================================
ڴҪڼؼ,⼸ؼܴܺϵͳڴʹ. ⼸minperm%, maxperm%, maxclient%lru_file_repage.
ԭ:˽Ӧ,ļдͻݿ. ֤ӦҪݳֵڴ. ĹTipsμڴŵĹ̾ƪ.

2jliu :2008.08.14 13:38 ::: ( OS&Storage ) ::Ķ:(255) :: (0) :: (0)
===========================================================
߼
===========================================================
LVM ʹõĻ顢߼߼ļϵͳԭʼ豸ǵһЩ
  • ÿĴһ (PV) hdisk0 hdisk1 ơ
  • һ PV Թһ (VG)һֻһ VG
  • ܽij PV һַ䵽һ VGһط䵽ij顣
  • ʹڲͬͣ SCSI SSAҲԽǷ䵽ͬһ顣
  • еĴ洢ռ仮Ϊ (PP)ͬһ VG дϣĴСȫͬ
  • ÿУԶһ߼ (LV)ûĽǶȿ߼ϴ洢ƺģǿԷɢͬһеIJͬϡ
  • ߼һ߼ (LP) ɡÿ߼һӦһ߼һʼվͬĴСԽݵλڲͬϡͨΪʵ࣬洢ͬݵλڲͬϡ
  • ߼еݿ԰֯ķʽд洢λĿ¼еļʽֽṹͲԵ֯ʽΪļϵͳ
  • Խ߼еΪһֽڴ߼Ϊԭʼ߼ʹøȷطʺͽӦóΡ
  • (VGDA) ǴϵһайظڵľϢйڸþ߼Ժ״̬ϢVGDA еϢ LVM ʹú͸¡ÿһ VGDAͬһд̵ VGDA еϢȫͬVGDA ڲϵṹڴϵλȡھͣԭʼչ
  • ״̬ (VGSA) е״̬VGSA ָʾijǰ׼ȷǹʱϢVGSA ڼӺάݸͬVGSA һλͼϵṹڴϵλȡھ͡
  • ߼ƿ (LVCB) й߼ҪϢ߼̷ԡϵṹڴϵλȡڵľ͡ڱ׼飬LVCB פ LV еĵһûݿϡڴ飬ϵ VGDA дڶ LVCB Ϣڿչ飬е߼ϢΪ LVCB Ϣ LV һֱ VGDA С

  • 2jliu :2008.08.12 17:02 ::: ( OS&Storage ) ::Ķ:(325) :: (0) :: (0)
    ===========================================================
    ѭ򽥽 Ϥaix5.3
    ===========================================================
    1AIX 5L Version 5.3 еÿļϵͳλij߼ļϵͳʱûָһǰ߼ôϵͳʹϵͳɵƴһ߼ʹȱʡֵΪ߼ļϵͳĴСdzӽ߼СıļϵͳĴСܳ߼ı׼߼ 鿴ȫ
    2jliu :2008.08.12 13:49 ::: ( OS&Storage ) ::Ķ:(196) :: (0) :: (0)
    ===========================================================
    swap
    ===========================================================


    SwapռÿɼΪϵͳڴ治õʱ򣬾ҪڴеһֿռͷųԹǰеijʹáЩͷŵĿռһЩܳʱûʲôijЩͷŵĿռ䱻ʱ浽SwapռУȵЩҪʱٴSwapлָݵڴСϵͳڴ治ʱŽSwapڼʹǾġ

    һҪǣдڴнݶᱻŵSwapУĻSwap᲻ظ൱һֱֵӽļϵͳ磬еijһЩļļжд(ʵÿٴһļǾг)ЩڴռҪȥʱļֵݾûбҪŵSwapռˣǶļôڴֱӾͷˣҪΪ´ҪʱֱӴļϵͳָܻ;дļֻҪ仯ݱ浽ļУԱָЩmalloc(3C)newɵĶͬҪSwapռ䣬ΪļϵͳûӦġļ˱Ϊ(Anonymous)ڴݣݻջеһЩ״̬ͱݵȣ˵SwapռǡݵĽռ䡣

    SwapöܵӰ

    ̫Swapռ˷Ѵ̵Ŀռ䣬̫ٵSwapռ䣬ϵͳᷢ

    ϵͳڴùˣϵͳͻܵУSwapռùˣôϵͳͻᷢ磬Webܸݲͬ(߳)Swapռ꣬޷ͨ"application is out of memory"Ĵʱɷ̵SwapռķǺҪġ

    ͨ£SwapռӦڻڴĴССӦС64MͨSwapռĴСӦڴ22.5(Solaris 2ϵİ汾仯)ݲͬӦãӦвͬãСϵͳֻҪСSwapռ䣬ķϵͳͬҪͬСSwapռ䡣رݿWebŷӣSwap ռҪҲӣòμԷƷ˵

    ⣬SwapҲкܴӰ졣ΪSwapIJǴI/OIJжSwapSwapռķķʽеSwapI/OĸأӿSwapٶȡֻһеĽʹúæʹϵͳʱλڵȴ״̬Чʺܼܵͣӹ߾ͻ֣ᷢʱCPUæϵͳȴ˵ƿI/OϣCPUٶǽġ
     鿴ȫ
    2jliu :2008.06.30 12:45 ::: ( OS&Storage ) ::Ķ:(376) :: (0) :: (0)
    ===========================================================
    solaris10swapռ
    ===========================================================
    swapļ
    1һļϵͳǷ㹻Ŀռswapռ䣻
    2һswapļĿ¼
    # mkdir -p /usr/local/swap
    3 /usr/local/swapĿ¼ﴴһԼ20MBswapļΪ swapfile
    # mkfile 20m /usr/local/swap/swapfile
    4ϵͳswapռswapļ
    # swap -a /usr/local/swap/swapfile
    5г޸ĺswapռϢ
    # swap -l
    swapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 136,9 16 1048304 1048304 /usr/local/swap/swapfile - 16 40944 40944
    6г޸ĺswapռϢ
    # swap -s total: 41672k bytes allocated + 5416k reserved = 47088k used, 901200k available
    7ϵͳԶswapռϢ # vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options ... /usr/local/swap/swapfile - - swap - no -
    ɾswapƬ
    # swap -d /dev/dsk/c1t3d0s1ߴ/etc/vfstab ļɾ
    ɾswapļ
    1ӵǰswapļɾswapļ
    # swap -d /usr/local/swap/swapfile
    2ɾswapļռõĴ̿ռ䣺
    # rm /usr/local/swap/swapfile
    3༭/etc/vfstabļɾϵͳʱԶswapռ䡣
     鿴ȫ
    2jliu :2008.06.30 10:31 ::: ( OS&Storage ) ::Ķ:(262) :: (0) :: (0)
    ===========================================================
    SAN vs NAS
    ===========================================================

    ,֪ȴҲô;

    SANStorage Area Storage洢һٵе豸ԴжͨSANRAIDӹͨFibre ChannelɣSANͿͻͨͨSCSITCP/IPݴǡ鼶block level
    NASNetwork Attached Storage總Ӵ洢ĵʹTCP/IPЭ̫ļݴǡļfile level԰NAS洢豸Ѿڵ̫ϡ

     鿴ȫ
    2jliu :2007.11.27 11:10 ::: ( OS&Storage ) ::Ķ:(202) :: (0) :: (0)
    ===========================================================
    ƻҳ˽Ӳraid
    ===========================================================
    Sun Fire V440 ϣʹðUltra-4 SCSI Ӳܱ̾ʹþijܸߡRAID 1 ṩ߼ݱǣеݶҪ洢飬˴洢ɱңRAID 0 RAID 5 ȣд͡ Sun Fire V440 ϣ Ultra-4 SCSI ֧ʹSolaris raidctlʵóڲӲ̾ʹraidctl ʵó򴴽Ӳ̾񣬹#*|K0RʹþӲ̾вͬʹľУÿ豸жԼĿҶ豸ִж / дӲ̾У豸ֻһ豸豸豸豸ԲϵͳDzɼģֻͨUltra-4 SCSI зʡ һ.δӲ̾ ִд˹̿ϵͳϴڲӲ̾á 1.ʼ֮ǰ֤߼豸Ƽ豸֮ĶӦϵ ̲ۺ ߼豸* 豸 0Ų c1t0d0 /devices/pci@1f,700000/scsi@2/sd@0,0 3Ų c1t1d0 /devices/pci@1f,700000/scsi@2/sd@1,0 2Ų c1t2d0 /devices/pci@1f,700000/scsi@2/sd@2,0 3Ų c1t3d0 /devices/pci@1f,700000/scsi@2/sd@3,0 ע߼豸ϵͳϵʾʽͬȡװĸӴ̿͡ 2.Ҫ֤Ӳ̾δڣ룺 # raidctl No RAID volumes found. 3.ڲӲ̾ # raidctl -c c1t0d0 c1t1d0 RAID ֮󣬴ڱΪc1t1d0Solaris 豸ʧ 4.RAID ״̬ # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 RESYNCING c1t0d0 OK c1t1d0 OK ʾʾRAID Ȼ뱸ͬ ʾʾRAID ȫָ # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 OK c1t0d0 OK c1t1d0 OK .ɾӲ̾ ִд˹̿ɴϵͳɾӲ̾á 1. ȷƣ # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 OK c1t0d0 OK c1t1d0 OK ڱУ 8SS$s2J$zhkl rDDag}e*D8Whc+ Ϊc1t0d0 2. ɾ # raidctl -d c1t0d0 RAID Volume c0t0d0 deleted 3. ȷѾɾRAID У # raidctl No RAID volumes found. .λָӲ̾ ִд˹̿ɴϵͳлָӲ̾á 1.ȷϷϵĴ̣ # raidctl RAID RAID RAID Disk Volume Status Disk Status ---------------------------------------------------------- c1t1d0 DEGRADED c1t0d0 OK c1t1d0 DEGRADED ʾڴc1t1d0 ϳֹ϶´̾ʧЧ 2.ִоȲβ # cfgadm -x unconfigure /dev/rdsk/c0t0d0 ע C ȷԲж LED r9v2K=p-P9St +,`AB6繩-w 'xfi13nUSuq.ʾôѻ״̬Դ״̬ڶ / дʱж̾ʹŶʧݵΣա 3.Ӳִ̺У # cfgadm -x configure /dev/rdsk/c0t0d0 4.RAID״̬ # raidctl RAID RAID RAID Disk Volume Status Disk Status -------------------------------------------------------- c1t0d0 RESYNCING c1t0d0 OK c1t1d0 OK ʾʾRAID Ȼ뱸ͬ ʾʾRAID ȫָ
    2jliu :2007.11.23 16:40 ::: ( OS&Storage ) ::Ķ:(217) :: (0) :: (0)
    ===========================================================
    The system is coming down.
    ===========================================================
    # svc.startd: The system is coming down. Please wait.
    svc.startd: 77 system services are now being stopped.
    Nov 16 15:28:22 oracleapp rpcbind: rpcbind terminating on signal.
    Nov 16 15:28:22 oracleapp syslogd: going down on signal 15
    Nov 16 15:28:25 rpc.metad: Terminated
    umount: /u04 æ
    umount: /s01 æ
    umount: /d01 æ
    umount: /u05 æ
    umount: /d02 æ
    umount: /u03 æ
    umount: /u01 æ
    umount: /u02 æ
    svc.startd: The system is down.
    syncing file systems... done 鿴ȫ
    2jliu :2007.11.16 15:21 ::: ( OS&Storage ) ::Ķ:(169) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -10
    ===========================================================
    vmstat/mpstat
    vmstat <
    Ƶ>гϵͳϸ. гȤ:
    free:
    ڴ(ֱsolaris 7ֵӽ, Ϊô̻. solaris8ʼӳ˵ȷֵ.)
    page pi/po:
    ҳΪ. ϵͳֱڽ豸i/o!
    Cpu us: user-time.
    Ӧóĵİٷֱ.
    Cpu sy: system-time.
    solarisϵͳĵİٷֱ.
    Cpu id: idle-time.
    Vmstat
    ͣԭûУRACEע
    procs
    ״̬Ľ
    r--
    жеȺ
    b--
    ԴI/0ҳȣȵ.)
    w--
    еDZ
    memory
    ڴʵϢ
    swap--
    ǧֽΪλĵǰýռ
    free--
    ǧֽΪλҳɱС
    page
    ÿҳȻϢ:
    re-
    ɱҳ
    mf--
    ҪĴ;ַռӲַת
    pi--
    ҳǧֽ
    po -
    ҳǧֽ
    fr-
    ͷŵǧֽ
    de--
    ǧֽΪλĿɽܵĶڴ治
    sr--
    ҳʱ㷨ɨ
    disk
    Ϊĸ̱ÿI/O
    faults
    ÿϵͳжϺӲжϵ
    in-
    豸жϣϵͳʱж
    sy-
    ϵͳ
    cs-CPU
    ģ
    cpu-- CPU
    ʱİٷֱȣڶദϵͳϣȫƽֵ:
    us-
    ûʱ
    sy--
    ϵͳʱ
    id--
    ʱ

    2jliu :2007.11.15 13:34 ::: ( OS&Storage ) ::Ķ:(174) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -11
    ===========================================================

    12 زο鼮վ
    12.1
    ο
    A valuable collection of Hints&Tricks for UNIX:
    Jerry Peek, Tim O'Reilly, Mike Loukides "UNIX Power Tools"
    ISBN 1565922603
    A detailed view on all UNIX-variants incl. Solaris software and Linux
    Evi Nemeth, Garth Snyder, Scott Seebass, Trent R. Hein "UNIX System
    Administration Handbook"
    ISBN 0130206016
    12.2
    վ
    http://www.sun.com Homepage of Sun Microsystems
    http://www.sun.com/bigadmin Everything a sys admin needs
    http://www.sun.com/blueprints Blueprints on various topics, monthly additions
    http://docs.sun.com All documentation for Sun products online
    http://sunsolve.sun.com Technical faq's, infodocs, symptom/resulution database,
    patch download etc.
    http://www.sunfreeware.com All Freeware-Tools for Solaris, precompiled
    http://www.sunhelp.org FAQ portal, other information
    http://bhami.com/rosetta.html A Sysadmin's Unixersal Translator (ROSETTA STONE)
    OR What do they call that (command) in this world (Unix)?


    2jliu :2007.11.15 13:34 ::: ( OS&Storage ) ::Ķ:(167) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -9
    ===========================================================
    9.ļϵͳ
    9.1 NFS

    Solaris
    Ŀ¼Ϣ洢/etc/dfs/dfstab УԱϵϵͳװļһshareʹõĽű ļûаκshareSolaris OE(OEϵͳ??)ʱԶʼļϵͳ ʹȷĵִ/etc/init.d/nfs.server startdfstabҲǿյġ /export/home
    1
    share /export/home /etc/dfs/dfstab
    2
    ǵһӸļеݣִ/etc/init.d/nfs.server start
    3
    shareall
    4
    /export/homeȷĻʹshare

    2jliu :2007.11.15 13:33 ::: ( OS&Storage ) ::Ķ:(185) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -8
    ===========================================================
    8
    8.1 /etc
    Ŀ¼µļ
    Solaris
    /etcĿ¼´ļеݱipַصȿԱв޸ģֻЩ/etcĿ¼ļеĶϵͳԱЧ Щļҵhostname
    /etc/nodename
    /etc/hostname.<interface-name>
    /etc/inet/hosts
    /etc/net/{ticlts,ticots,ticotsord}/hosts
    /etc/nodename
    ļϵͳĹ۵㿴һжͶipַϵͳж֡ÿ/etc/inet/hostsж塣 Щеκһȼϵͳ nodenameDzDZ Щļipַӿ֮ӡ/etc/hostname.<interface-name><number> interface nameǣ
    le
    ʽsparcϵͳϵ̫
    hme Ultra sparc
    ϵͳϵĿ̫
    eri UltraSPARC-III
    ϵͳϵĿ̫
    qfe
    Ŀչ̫ϵĿ̫

    2jliu :2007.11.15 13:33 ::: ( OS&Storage ) ::Ķ:(171) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -7
    ===========================================================
    7
    7.1
    admintoolsmcбļhostsֱӱ༭/etc/inet/hostsļ򵥡ʾ/etc/hostsļ/etc/inet/hostsļӡ ʹøcp /etc/host.old /etc/hostsḲȷļSolarisĬϰװʽsendmailػ̡ţ.Ļsendmailػ̻ϢΪƴϢ/etc/inet/hostsļӦϢ 192.168.0.2 myhost myhost.domain.com loghost
    7.2
    ͬõѹadmintoolSolaris 9µġSolaris ̨Solaris Management Consolesmc
    7.3
    ӡ ͬõѹadmintoolSolaris 9£ϵͳԴġӡ򵼡/usr/sadm/admin/bin/printmgr
    2jliu :2007.11.15 13:32 ::: ( OS&Storage ) ::Ķ:(206) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -5
    ===========================================================
    İװ
    ͨtar/compress/zipȹѹһЩĿ¼ļ£ǰĸдĸиð˾USƱ룬Сдĸ书ܡSUNWspci2SUN-pciǰSUNWSUNĹƱ룬spci2书ܣPCI װ£Ŀ¼
    pkgadd -d /cdrom/cdrom0
    pkginfo
    ӡðϢpkgrm <Package-Name>ɾжأѾװİ 磺ĻԭװʾCreator3DffbElite3D(afb)ʱʾ"no console framebuffer"ûʾ˵ûװElite3Dʹ
    pkginfo | grep -i afb
    飬û˵װϵͳʱûаװElite3DʾElite3Dڰװ̵s0/Solaris/Product. Ŀ¼ʹװɣ
    pkgadd -d . *afb*
    °װʾͿʾˡ
    4.3
    װ
    ִ֣6λֵIJţλֵİ汾ţԱ123456-78
    Solaris8
    ʹõ*.zipʽIJѹǰʹõ*.tar.Zĸʽİװʱȿ/tmp棬Ȼѹװ֮ҪɾЩʱļѹ취
    zcat 123456-78.tar.Z | tar xvf -
    unzip 123456-78.zip
    Ȼʹpatchadd 123456-78װʹpatchadd 123456-78װIJʹpkgrmɾжأ/var/sadm/patch¼Щװ¼Ŀ¼ûеĻpkgrmͲɾˡ
    showrev -p | grep <patch number>
    ԲҵѾװIJ

    2jliu :2007.11.15 13:31 ::: ( OS&Storage ) ::Ķ:(155) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -6
    ===========================================================

    Ҫע

    X-ServerCDEǰ˳ļ
    1. $HOME/.dt/...
    2. /etc/dt/...
    3. /usr/dt/...
    ע⣬ԶҪĶϵͳΧڶЧ/usr/dt/еݡϵͳX-ServerCDE ⣬ʹ/etc/dt/µļȥάָáûԼչťĸıȣDZ$HOME/.dt/Ŀ¼¡ڱµУ<DT>ЩĿ¼$HOME/.dt, /etc/dt,/usr/dt
    5.2
    Ƶ½ ļ<DT>/config/$LANG/Xresources
    Logo(
    ͼλͼ24λɫ£㷺װʱ)
    Dtlogin*logo*bitmapFile: /usr/local/lib/X11/dt/bitmaps/Mylogo.bm
    ͨûӭ½:
    Dtlogin*greeting*labelString: Here's %LcoalHost%!
    ûĻӭ
    Dtlogin*greeting*persLabelString: Hello %s
    5.3
    ӶϽXinerama,24λɫ Ȳ鿴 /dev/fbsҳмʾã. ȷ /dev/fbs/ifb0/dev/fbs/ifb1, Expert 3Dʾ Ȼ󣬰X-Serverļ/usr/dt/configƵ/etc/dt/config༭ļȷһͬ
    :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
    5.3.1
    Ļ ĻָCDEÿĻһû塣ĻƶĻϵĴڲĻƶifb0ĵʾĻΪ :0.0, ifb1ʾĻΪ :0.1
    :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ifb0 -dev /dev/fbs/ifb1 -nobanner
    5.3.2 Xinerama
    Xinerama
    Solaris 7 11/99 OEԺİ汾ЧһǶʾĻĵʾĻͳ򴰿ڿڶʾĻ֮ƶ CDEֻһûǰ塣ֻһʾ룺 0:0. Xinerama ֻʹͬʾʱſá
    :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 +xinerama -dev /dev/fbs/ifb0 -dev/fbs/ifb1 -nobanner
    Xinerama
    һXYصʹʾչʾϣʹʾʾһͼδڣXoverlap=<ˮƽ>һ1280صĵˮƽֱʣ20%Եصʾӣ
    :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 = xinerama -xoverlap 256 -dev /dev/fbs/ifb0 -dev /dev/fbs/ifb1 -nobaaner


    2jliu :2007.11.15 13:31 ::: ( OS&Storage ) ::Ķ:(177) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -4
    ===========================================================
    3 SWAPռ
    3.1
    ̶ļ /etc/vfstab
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    #
    #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes
    C
    /dev/dsk/c0t0d0s1 - - swap - no
    C
    /usr/local/swapfile.1 - - swap - no
    C
    ...
    swap - /tmp tmpfs - yes
    C ļϵͳʹ/dev/dsk/c0t0d0s1/usr/local/swapfil.1Ŀļ ԶļϵͳЩ߼ϰ󶨲ҽӵ/tmpҽӵ㡣ζֻҪڴǿõģ/tmpдļдڴ沢ľڴ棨not very sure
    /dev/dsk/c0t0d0s1 - - swap - no
    C
    /dev/dsk/c0t1d0s1 - - swap - no
    C
    /dev/dsk/c0t2d0s1 - - swap - no
    C
    ...
    swap - /tmp tmpfs - yes
    C 6GBڴ棨еķСΪ2G.SolarisʶеĴ̡
    3.2 "
    ͿļıȽ ٵĽDzнɱ⣬ʹڶɴķʵҪڴûпõķ̣ʹÿļϵͳ
    3.3
    ʱ ڱ׼SOLARISУļԼ뵽ռ䡣
    # mkfile 100m /usr/local/swapfile.1
    # swap -a /usr/local/swapfile.1
    # swap -l
    ϵͳ֮ǰЩĿռʱġʹswap -d /usr/local/swapfile.1ȥЩĽռ
     鿴ȫ
    2jliu :2007.11.15 13:30 ::: ( OS&Storage ) ::Ķ:(215) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -3
    ===========================================================
    2 Ӳ
    2.1
    ߼豸 еӲ̶һͬ÷һĸ֣
    c

    t
    ĿţSCSU豸ǶӦSCSIַ
    d
    ŻRAIDLUN ţһַӲ̣
    S
    ţһΣ Щ߼豸ӷʽ/dev/dsk/dev/rdskĿ¼棬ָ豸Щ豸ڸı豸ʱõһ߼豸Ϊ
    c0t0d0s0
    ͨǹվĵ1Ӳ̣c0t1d0s0 ǵ2 c0t6d0s0 ڲSCSIַ6 OKʾ boot CrԸ/dev/dsk and /dev/rdskĿ¼ݣdevfsadmҲԡ
    Solaris8
    ǰҪdrvconfig;disks;devlinks3ɣˢ֮probe-scsi-all豸߼Ҳܿˡ
    2.2
    һӲ̵Ĺվformat  鿴ȫ
    2jliu :2007.11.15 13:28 ::: ( OS&Storage ) ::Ķ:(311) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -2
    ===========================================================
    1.4.1 Bannerʶ
    Banner
    ʾϢ
    . CPU
    ͺƵ
    .
    ڴ
    . MAC
    ַַţ
    .
    ̨ʾ
    . Sun-Globe: Creator 3D
    . Sun with face: Elite 3D
    . Self-describing Logo: PGX, Raptor GFX (=PGX32), Expert3D(lite) XVR-500, XVR-1000 etc.
    1.4.2

    probe-scsi-all
    гúõSCSIIDEӲ̣ʹãprobe-ide-all.
    1.4.3

    test-all.
    еԼ죬ԼǷ
    1.4.4 printenv and devalias
    devalias
    гбprintenvгбboot-device˼·һdiskdiskһָض豸ı
    1.4.5
    ֹϢ ûʱ"Interface: No link"ֶΣOK
    setenv tpe_link test false
    ֹϢ

    2jliu :2007.11.15 13:27 ::: ( OS&Storage ) ::Ķ:(182) :: (0) :: (0)
    ===========================================================
    20%SOLARIS֪ʶ80% -1
    ===========================================================
    1 ϵͳͲ
    1.1 OK
    ʾ ÿSUNһBoot-PROMģʽϵͳ֮ǰʣҲеʱʣSTOP+A룬ûSTOPPCctrl+break.һBoot-PROMģʽOKʾϵͳʱ֣go
    1.2
    ̨
    Boot-PROM
    ģʽֱӵļ̺ʾҲնˡ ϵͳʱûм⵽̣Զת1ڣ/dev/ttya,Aһն˻һͨ洮ߣ˿ڡ ļSUNվʹtip hardwire鿴̨Tip֮еϢӦն˴棬۲ĻSTOP+AʹStrg-]tipijtelnetģʽȻһBREAKtelnet>send brk
    1.3
    SUNվ ֮ǰվҪһʵ״̬ʹ漰˳
    # init 5
    # init 6
    # init 0
    SUN
    վ֮ǰһķʽرϵͳǼֿѡķ áɾķ
    - # init 5
    رн̣ȻϵͳԶصԴ
    - #init 6
    رн̣ȻϵͳԶ
    - #init 0
    رн̣ȻϵͳԶصOK״̬ 3£ϵͳر֮ǰִ/etc/rc0.dK*űڹرݿ⣬߹رWEBĽIDļȡ ûкʵshellڣʹԶ̵¼ִԶҲԣʹķ
    - STOP-A
    - OK sync
    ͬļϵͳжOSȻ ע⣺Ҫ쿴֮ı/var/crash/<hostname>ںתļ STOP-AҲʹõرռԴڴ򿪵Դ
    1.4
    ϵͳIJ
    ϵͳִеڴԵʱ򣬰STOP-A
    ĶֻҪ
    ϸСHardware Diagnostics for Sun TM Systems: A Toolkit for System Adminis-trators(Infodoc Number 23476 on http://sunsolve.sun.com)

    2jliu :2007.11.15 13:26 ::: ( OS&Storage ) ::Ķ:(227) :: (0) :: (0)
    ===========================================================
    show vfstab
    ===========================================================

    below

     鿴ȫ
    2jliu :2007.11.14 15:38 ::: ( OS&Storage ) ::Ķ:(252) :: (0) :: (0)
    ===========================================================
    һraid
    ===========================================================

    linux,metadb;

    Ϲ.Ǻ,blogܻӭ


    2jliu :2007.11.14 11:42 ::: ( OS&Storage ) ::Ķ:(187) :: (0) :: (0)
    ===========================================================
    úõdba,ͻȻٴϤsolarisformat/mirrorʹ÷
    ===========================================================

    Ҫhaڵ.˳ڲԻϰװos&patch

    format disk

    meta raid(0+1)

    3û,ĿǰϵͳѾʹ1,ϵͳ.


    2jliu :2007.11.14 11:28 ::: ( OS&Storage ) ::Ķ:(205) :: (0) :: (0)
    ===========================================================
    format
    ===========================================================
    ƻԼʹʱһҪС! ;ʽӲ̺¶Ӳ̷. 1)ʽӲ ý뵥ûģʽ #format ϵͳʾеӲ̲ѡҪӲ̣ Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0 1. c0t1d0 /pci@1f,4000/scsi@3/sd@1,0 2. c0t2d0 /pci@1f,4000/scsi@3/sd@2,0 3. c0t3d0 u03 /pci@1f,4000/scsi@3/sd@3,0 Specify disk (enter its number): 2 selecting c0t2d0 [disk formatted] Warning: Current Disk has mounted partitions. FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name ! - execute , then return quit format> partition PARTITION MENU: 0 - change `0' partition 1 - change `1' partition 2 - change `2' partition 3 - change `3' partition 4 - change `4' partition 5 - change `5' partition 6 - change `6' partition 7 - change `7' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk ! - execute , then return quit partition> modify partition>label partition>quit format>save ʹnewfsΪÿһļϵͳ: newfs /dev/rdsk/c?t?d?s? Ӳ̰()Ҫֶװģ #reboot cdrom -s (ӹ뵥ûģʽ) #mount /dev/dsk/c0t1d0s0 /mnt (ϵͳҽӵmntĿ¼) #cp /ufsboot /mnt #installboot /lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0 (װģ) #umount /mnt (ж¹ҽ) #reboot () 2) · formatҲԶӲ̽··Ӱϵļ ҪԸ÷SAVE˳format ҪnewfsΪıķļϵͳ
    2jliu :2007.11.13 17:39 ::: ( OS&Storage ) ::Ķ:(169) :: (0) :: (0)
    ===========================================================
    ZFSϵ֮---͹ZFSļϵͳ
    ===========================================================

    ƻװsolaris10ʹzfs

     鿴ȫ
    2jliu :2007.11.13 12:51 ::: ( OS&Storage ) ::Ķ:(265) :: (1) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-6
    ===========================================================


    RAID5RAID5һִУλRAIDʽRAID5ĹҪ3Ӳ̡ڰӲstripingʽмУλRAID5УУλZε˳еġеĺôǣһκһӲ𻵣RAID5ռ2ģһУģһܿԸѾڵҲ˵RAID5ĿռӵûRAID5֮ǰX1ͬʱֿκһӲ̹϶ʧݣXΪRAID5еӲ̸RAID5ľṹԲͼ

    metainitRAID 5һRAID 5ʵ
    # metainit /dev/md/dsk/d12 Cr /dev/dsk/c0t0d0s3 /dev/dsk/c0t0d0s4 /dev/dsk/c0t0d0s5 Ci 8k
    -rRAID5-r߼ҪRAID5Ӵ̣ Ci ָRAID5ÿĴСԽΪ/dev/dsk/c0t0d0s3/dev/dsk/c0t0d0s4/dev/dsk/c0t0d0s5һΪd12RAID5ÿĴСΪ8kͬmetastatRAID5ĸϢRAID5źܺõݴƽԣʵĿʵʩУRAID5Ӧʮձ顣ͨRAID5洢ݣϵͳԱҪ۲RAID5Ľ״Ӷȷݰȫ


    2jliu :2007.11.13 12:50 ::: ( OS&Storage ) ::Ķ:(257) :: (0) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-5
    ===========================================================
    壮 RAID 1ͨ˵RAID 1ҲǶԴ̽вӲ̻һ߼豸ʹã𵽾áRAID 1ṩ޶ȵİȫԣݰȫûRAID 1ʱXXΪӾĿΪݰȫRAID 1˷X1Ŀռ䣬ûRAID 1ʱ1/XIOҲ½ṹͼ

    RAID 1УӾʵʱͬġҲ˵ӾͬһʱͬĶдRAID 1ķʽ㷺Ӧõϵͳ̵Ĵ̹֮СҸ˵ľ飬ĿͻҪԱ߹ʦϵͳ̽оԱڵһӲ֮󣬿Դһ龵ϵͳ һϵͳRAID 1ʵ1.ȹ滮ҪӲd0 d10 d20 / s0d1 d11 d21 /var s1d2 d12 d22 swap s3d3 d13 d23 /export/home s6
    d0d1d2d3ΪӦmetadevice֣d10ÿmetadeviceӦӾһϵͳ̾ǰù滮һ¸metadeviceĶӦϵӾңͬʱҲںڵά
    2.Ӳ̷ͬ# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
    ϵͳ̾Ҫ̷ȫһ£Ӳ̷СҲͬӲ̴Сһ£ڱзС˳ȫһºĿռ佫˷ѵprtvtocʹӲc0t1d0ķӲc0t0d0ķͬc0t0d0ϵݲᱻƻc0t1d0ϵݽᱻȫ𡣳֮⣬Ҳϵͳеformatֶ޸Ĵ̷ȫһ¡
    3metadb# metadb -a -f -c 3 c0t0d0s7 c1t0d0s7
    c0t0d0s7c0t1d0s7Ӳ̷ϽʼmetadbÿӲ̷ϵıĿΪ3

    4.·Ӿ# metainit -f d10 1 1 c0t0d0s0
    c0t0d0s0ƳΪd10ӾʵӾһֻһRAID 0c0t0d0s0Dzϵͳĸ̣дļϵͳʹò-fļϵͳķǿִmetainit
    # metainit d20 1 1 c0t1d0s0
    c0t1d0s0Ϊd20Ӿ
    5ľ# metainit d0 -m d10
    Ϊd0ḷ̌һ·ӾΪd10ʹmetainit-f̣Ƶḻ̌һ·Ӿ·Ӳ̱ǾԴӦķҲ˵·Ӿбļϵͳ
    6vfstab# cp /etc/vfstab /etc/vfstab.backup
    Ҫ޸vfstabļҪvfstabļԱ޸ʧʱͨû߹̵ûʽָ

    7޸vfstabļйڸĿ# metaroot d0# lockfs# reboot
    ϵͳ߼豸metadeviceҪ޸/etc/vfstabļӶʹ´֮ϵͳmetadevice·ҽļϵͳͨҪ/dev/dsk/c0t0d0s0/dev/rdsk/c0t0d0s0иΪ/dev/md/dsk/c0t0d0s0/dev/md/rdsk/c0t0d0s0metarootԶ޸vfstabļйظݣ vfstabļзǸҪֶ޸ġ޸ʱעĿ֮Ҫtab񿪣ÿոϵͳɹdf CkԿϵͳĹҽĿ¼Ѿԭc0t0d0s0Ϊڵ·Ӿmetadevicemetadeviced0

    8ľ
    ̵ڸ
    # metainit -f d11 1 1 c0t0d0s1c0t0d0Ӳϵ1ŷmetadeviceΪd11
    # metainit d21 1 1 c0t1d0s1c0t1d0Ӳϵ1ŷmetadeviceΪd21
    # metainit d1 -m d11/varmetadeviceΪd1У·Ӿd11d11ǰļϵͳԴ̶Ӧķ
    # metainit -f d12 1 1 c0t0d0s3c0t0d0Ӳϵ3ŷmetadeviceΪd12
    # metainit d22 1 1 c0t1d0s3c0t1d0Ӳϵ3ŷmetadeviceΪd22
    # metainit d2 -m d12swapmetadeviceΪd2а·Ӿd12d12ǰļϵͳԴ̶Ӧķ
    # metainit -f d13 1 1 c0t0d0s6c0t0d0Ӳϵ6ŷmetadeviceΪd13
    # metainit d23 1 1 c0t1d0s6c0t1d0Ӳϵ1ŷmetadeviceΪd23
    # metainit d3 -m d13/export/homemetadevice Ϊd3а·Ӿd13d13ҲǰļϵͳԴ̶Ӧķ
    ǿʹmetastatSUN Solstice DiskSuiteʹõ״̬metastatԲ鿴metadeviceҲǵRAID𣬸metadevice֮ϵmetadeviceϵͳ߼Ӳ̷ĹϵmetadeviceĽ״ԼͬʱʾͬٷֱȡʵӦУmetastatһdzõϵͳԱ͹ʦԺ׵شmetastatй۲쵽metadeviceĽṹͽ״ ǻʹmetaclearӲ̵metadeviceΪmetainitķ磺# metaclear d0
    9һ·Ӿ̼뵽
    # metattach d0 d20# metattach d1 d21# metattach d2 d22# metattach d3 d23
    ֱӾd20d21d22d23Ӧľ̡ʹmetattachһ·ӾӵСmetattachĸʽǣmetattach Ӿֱ붼metadeviceơͬģǻʹmetadetachһ·Ӿ̴Ӿзȥmetadetachmetattach෴ġʹmetattachһ·Ӿӵ֮·ӾͬͬḺ́Ƚ
    #metastat | grep %
    鿴ͬٷֱȡʹô鿴зͬİٷֱȡ
    10޸/etc/vfstabļйĿmetarootֻ޸vfstabļйڸĿǸĿҪֶ޸ġ޸vfstabļͬȫ֮󣬿ϵͳˣϵͳ̾ϡ


    2jliu :2007.11.13 12:49 ::: ( OS&Storage ) ::Ķ:(469) :: (0) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-4
    ===========================================================
    ģ RAID 0ͨ˵RAID 0ǶӲ̽дӲ̻һ߼豸ʹáRAID 0Xݿռ䣨XΪ̸ݵΣҲͬʱӵX磬һ3Ӳ̵RAID 0ôݿռԭ3ΣҲԭ33κһӲ̣RAIDݽȫʧSUN Solstice DiskSuiteͨӲϵ߼豸תDiskSuite豸ͨǽDiskSuite豸Ϊmetadeviceͨmetainitһϵͳ߼һmetadevicemetadevice豸·ϵͳԭ豸·ͬ豸·/dev/md/dsk£豸·/dev/md/rdsk¡SUN Solstice DiskSuiteµRAID 0ַʽconcatenationʽ stripingʽΪRAID 0ṩֲͬĽṹҸиšȱ㡣1. concatenationʽconcatenationʽѶ߼Ӳ̻βһmetadeviceṹͼ

    Ǵӵһblock˳дģˣconcatenationʽõĿչԡҲ˵ԱԸļϵͳʵʱʹʱmetadeviceĴСȻΪ˳дĽṹʹconcatenationʽиȱ㣬IOܽ͡ΪдʱֻҪһӲûдӲϣκεд붯Ҳ˺ӲIO˷ѣӶʹconcatenationʽRAID 0 IOܽ͡һConcatenationʽRAID 0ʵ# metainit d1 2 1 /dev/dsk/c0t0d0s1 1 /dev/dsk/c0t1d0s5metainitΪmetadeviced1Ϊmetadevice֣metadevicedNʾNԴ01272 ΪRAID 0̸ʵstripingķʽɵģ1 ΪÿstripingķʽɵеķֻеΪ1ʱɵmetadeviceconcatenationʽ/dev/dsk/c0t0d0s1 ΪҪmetadevice ԽΪmetainitһconcatenationʽİΪd1RAID 0̷ֱΪ/dev/dsk/c0t0d0s1/dev/dsk/c0t1d0s5
    2. stripingʽstripingʽѶ߼Ӳķʽӳһmetadevice巽ʽͼ

    stripingʽǰӲ̷ָдʱconcatenationʽͬstripingʽдݵʱķָеĴ̶дstripingʽconcatenationʽõIOǣҲṹstripingʽļϵͳһstripingʽRAID 0ʵ# metainit d2 1 2 /dev/dsk/c0t0d0s4 /dev/dsk/c0t0d0s5 Ci 32kmetainitΪmetadeviced2Ϊmetadevice֣1 ΪRAID 0̸ֻеΪ1ʱɵRAID 0stripingʽ2 Ϊstripingʽɵеķ/dev/dsk/c0t0d0s4 ΪҪmetadevice-i ΪÿĴС-i 32k˼ÿΪ32kֽڡ ԽΪmetainitһstripingʽİΪd2RAID 0̷ֱΪ/dev/dsk/ c0t0d0s4/dev/dsk/ c0t0d0s4ÿСΪ32kstripingʽconcatenationʽǻͨmetainitϷʽRAID 0пͻҪRAID 0ɻϷʽ һRAID 0ʵ#metainit d12 3 2 c0t1d0s1 c1t1d0s1 1 c0t2d0s3 3 c0t3d0s4 c1t3d0s4 c2t3d0s4ԽΪmetainitһ3Ϊd12RAID 0һ̷ֱΪc0t1d0s1c1t1d0s1ɵstripingڶ̷ֱΪc0t2d0s3̷ֱΪc0t3d0s4 c1t3d0s4 c2t3d0s4ɵstriping


    2jliu :2007.11.13 12:48 ::: ( OS&Storage ) ::Ķ:(274) :: (0) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-3
    ===========================================================
    Metadevice State DatabaseSUN Solstice DiskSuiteʹõʱҪһеMetadevice State DatabaseСݿ⡣Metadevice State DatabaseͨΪMetadbMetadbSUN Solstice DiskSuiteԷӲ̵Ϣ仰˵д̡RAIDĽṹ洢MetadbСÿSUN Solstice DiskSuiteͻԶMetadbеϢӶЩϢ̣ҽUFSļϵͳӶʹϵͳ෴Metadbƻˣϵͳп޷뵥û״̬ܶʧӲݡMetadbSUN Solstice DiskSuite쳣ҪġǻڽMetadbʱܶ౸ݡһMetadbƻSUN Solstice DiskSuiteԶָMetadbأҲֶָMetadbMetadb䱸֮ʵʱݵġУMetadbͨǴ̵һרзҲ˵ڰװϵͳʱҪԤһMetadbܴļϵͳһMetadbҲͲӦáͨѴ̵7ŷԤMetadbСͨΪ10׵50סȻҲñķ7ŷԤMetadbʵӦУͨSUN Solstice DiskSuiteµӲ̶һMetadbÿӲϵMetadbֿԴڶݣЩ֮䶼ʵʱͬġǾͻԱ֤MetadbᱻƻMetadbSUN Solstice DiskSuiteʹ֮ǰSUN Solstice DiskSuiteЧʹmetadbMetadevice State DatabaseһMetadevice State Databaseʵ# metadb -a -f -c 3 cxtxdxsx cytydysymetadbΪ-aΪmetadb-fΪһʼmetadb-cҪӸ֣ʾһmetadbݵĿΪÿ3ݣcxtxdxsx cytydysy Ҫmetadbĸע⣬һmetadbִгɹԤϵݽᱻƻԴԽΪcxtxdxsx cytydysyӲ̷ϽʼMetadbÿӲ̷ϵıĿΪ3
    һɾMetadbʵ# metadb Cd cxtxdxsx-dΪɾmetadbԽΪcxtxdxsxɾԭеMetadbҪ鿴ѾڵMetadb# metadb CIܽһmetadbIJ-a Ϊһmetadb-f ΪһʼMetadb-c n nΪ֣˲ΪÿһнnMetadbݣָ˲ĬֻһMetadb-d ΪɾһMetadb-IΪѯеMetadbϢݸֲMetadbĽ״SUN Solstice DiskSuiteʹýӿ֣ͼνϵͳGUI淽ʽзʽ޸/etc/opt/SUNWmd/md.tabļʽУзʽӦù㷺ؽзʽ

    2jliu :2007.11.13 12:47 ::: ( OS&Storage ) ::Ķ:(527) :: (0) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-2
    ===========================================================

    SUN Solstice DiskSuiteװSUN Solstice DiskSuiteSolaris 2.6Solaris 7Solaris 8Solaris 9·Solaris 10СSolaris 9Solaris 10УSUN Solstice DiskSuiteѾڲϵͳУҪװͿֱʹáSolaris 2.6Solaris 7 Solaris 8IJϵͳ£ҪSUN Solstice DiskSuiteаװ½ܾ尲װ̣Solaris 8ΪSUN Solstice DiskSuiteSolaris8ϵͳװ̵software 2of2УҲƽ˵Solaris 8װ̵ĵ3ţͨ˵Solaris 8װ4ţinstall software 1of 2software 2 of 2languageĿ¼£ /sol_8_401_sparc_2/Solaris_8/EA/products/DiskSuite_4.2.1 Уsol_8_401Ϊϵͳ汾ţеIJϵͳ汾ΪSolaris 8 0401DiskSuite_4.2.1ΪSUN Solstice DiskSuite汾ţ˰汾Ϊ4.2.1ûаװʣԵSUNվSUN Solstice DiskSuiteİװ·/usr/opt£/usrҪ30׿ռװSUN Solstice DiskSuiteװ֣ͼν滷¿ֱִ·еinstallerűͼν棬һʾɰװinstallerűͨͨװװSUN Solstice DiskSuiteSUN Solstice DiskSuiteĿ¼Ϊsol_8_401_sparc_2/Solaris_8/EA/products/DiskSuite_4.2.1/sparc/packages/
    Ϊװʵ1PackagesڵĿ¼#cd /cdrom/cdrom0/Solaris_8/EA#cd /products/DiskSuite_4.2.1/sparc/Packages2# lsSUNWlvma SUNWlvmg SUNWlvmr SUNWmdg SUNWmdja SUNWmdnr SUNWmdnu SUNWmdr SUNWmdu SUNWmdx
    3# pkgadd -d . ע.Ϊװ·ΪǰĿ¼ʡԣhe following packages are available:1 SUNWlvma Solaris Volume Management API's(sparc) 1.0,REV=2001.11.02.03.172 SUNWlvmg Solaris Volume Management Application(sparc) 1.0,REV=2001.11.14.03.193 SUNWlvmr Solaris Volume Management (root)(sparc) 1.0,REV=2001.11.14.03.194 SUNWmdg Solstice DiskSuite Tool(sparc) 4.2.1,REV=1999.11.04.18.295 SUNWmdja Solstice DiskSuite Japanese localization(sparc) 4.2.1,REV=1999.12.09.15.376 SUNWmdnr Solstice DiskSuite Log Daemon Configuration Files(sparc) 4.2.1,REV=1999.11.04.18.297 SUNWmdnu Solstice DiskSuite Log Daemon(sparc) 4.2.1,REV=1999.11.04.18.298 SUNWmdr Solstice DiskSuite Drivers(sparc) 4.2.1,REV=1999.12.03.10.009 SUNWmdu Solstice DiskSuite Commands(sparc) 4.2.1,REV=1999.11.04.18.2910 SUNWmdx Solstice DiskSuite Drivers(64-bit)(sparc) 4.2.1,REV=1999.11.04.18.29Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
    allװʵʰװУڽIJϵͳװɹԭSUN Solstice DiskSuite8SUNWmdrṩȰװ8ٰװҲ8ȴ8װɹٶаװ


    2jliu :2007.11.13 12:46 ::: ( OS&Storage ) ::Ķ:(364) :: (0) :: (0)
    ===========================================================
    Sun Solstice DiskSuite ̹ijʹ-1
    ===========================================================

    һ SUN Solstice DiskSuiteSUN˾зĴ̹ûṩ֧Solaris 2.6 Solaris 7 Solaris 8ȻSolaris 9иΪSun Volume Managerԭûκθı䡣SUN Solstice DiskSuiteõ;Ǵ̾RAID 1RAID 0stripingconcatenationRAID 5RAID 01RAID 10ȱhotspareDisksetϵͳݣgrowfsļϵͳ־UFS logging


    2jliu :2007.11.13 12:44 ::: ( OS&Storage ) ::Ķ:(314) :: (3) :: (0)
    ===========================================================
    Solaris10ʹZFS
    ===========================================================

    ZFSΪSolaris 10һļ洢ZFSZettabyte File SystemҲж̬ļϵͳDynamic File System, ǵһ128λļϵͳŻԶһ¡򵥣

    - ֧POSIXļϵͳӦֲ

    - 32/64λļϵͳ16 billion billion

    - Ӧ˵ZFSһ׼POSIXļϵͳֲ

    - ϵͳԱ˵ZFSṩ洢صģͣ˾ĸӲ̷⣬ʹļϵͳô洢ص豸ķʴ100ά

    - вcopy-on-writeʽӲ״̬ԶЧ fsck

    - ݿ鱻64λУ飬 ֹ̱, ݿRaidһ𻵿һ޸

    - ṩ޷ݵĿգṩ޶

    1. ԤװOS ZFS谲װ

    # pkginfo |grep SUNWzfs

    # pkgadd -d .

    The following packages are available:

    1 SUNWzfs Zettabyte File System (ZFS)

    (sparc) 11.10.0,REV=2004.12.26.02.38

    Select package(s) you wish to process (or ''all'' to process

    all packages). (default: all) [?,??,q]:1

    ...

    Installation of <SUNWzfs> was successful.

    2. storage pool

    # zpool create -f testpool mirror /dev/dsk/c0t1d0s0 /dev/dsk/c0t1d0s1

    # zpool df testpool

    Pool size used avail capacity

    -------------------- ------ ------ ------ --------

    testpool 500M 56.0K 500M 1%

    # zpool vdevs -v testpool

    mirror1

    c0t1d0s0

    c0t1d0s1

    3. ļϵͳ

    # zfs create testpool/user1

    # zfs create testpool/user2

    # mkdir -p /disk/user1 /disk/user2

    # zfs mount testpool/user1 /disk/user1

    # zfs mount testpool/user2 /disk/user2

    # df -h -F zfs

    ļϵͳ С ҽ

    testpool/user1 484M 27K 484M 1% /disk/user1

    testpool/user2 484M 27K 484M 1% /disk/user2

    4. ZFSĶд仯

    # cp /etc/n* /disk/user1; cp /etc/m* /disk/user2

    # df -h -F zfs

    ļϵͳ С ҽ

    testpool/user1 484M 60K 484M 1% /disk/user1

    testpool/user2 484M 123K 484M 1% /disk/user2

    5. µĴ洢storage poolչZFS

    # zpool add -f testpool mirror c0t1d0s3 c0t1d0s4

    # zpool df testpool

    Pool size used avail capacity

    -------------------- ------ ------ ------ --------

    testpool 1000M 303K 1000M 1%

    s6a# zpool vdevs -v testpool

    mmirror1

    c0t1d0s0

    c0t1d0s1

    mirror2

    c0t1d0s3

    c0t1d0s4

    # df -h -F zfs

    ļϵͳ С ҽ

    testpool/user1 982M 60K 982M 1% /disk/user1

    testpool/user2 982M 123K 982M 1% /disk/user2

    6. ƻstorage poolӲ̵ݣ۲ZFSݲӰ죺

    # dd if=/dev/urandom of=/dev/rdsk/c0t1d0s1 count=10000

    10000+0 ¼

    10000+0 ¼

    # df -h -F zfs

    ļϵͳ С ҽ

    testpool/user1 982M 60K 982M 1% /disk/user1

    testpool/user2 982M 123K 982M 1% /disk/user2

    # diff /etc/nsswitch.conf /disk/user1/nsswitch.conf

    ܽ᣺

    ļϵͳZFSṩһµʹõԶģͣ͸ԣٴʵʩʱ䡣

    ݰȫԣ ZFSκʱ䶼һµġ

    ԴãZFS洢ؿΪļϵͳ

    ԣ ZFSչСǶ̬ģϵͳԱ

    ͷãľɷá


    2jliu :2007.11.13 12:43 ::: ( OS&Storage ) ::Ķ:(185) :: (0) :: (0)
    ===========================================================
    ʹdisksuitmirror,mirrorɹ.
    ===========================================================
    С
    2jliu :2007.11.12 13:36 ::: ( OS&Storage ) ::Ķ:(231) :: (0) :: (0)
    ===========================================================
    remove the mirror metadevice ---DiskSuite
    ===========================================================
    1. To remove the mirror metadevice and submirrors, use the metadetach and metaclear commands as follows:
    2. # metadetach d20 d22
      d20: submirror d22 is detached

      # metadetach d20 d21
      metadetach: alex: d20: attempt to detach last running submirror

      # metaclear d22
      d22: Concat/Stripe is cleared

      # metaclear d20
      d20: Mirror is cleared

      # metaclear d21
      d21: Concat/Stripe is cleared


  • 2jliu :2007.11.12 13:04 ::: ( OS&Storage ) ::Ķ:(196) :: (0) :: (0)
    ===========================================================
    ɹ raid
    ===========================================================
    #/dev/md/dsk/d2 /dev/md/rdsk/d2 /u01 ufs 2 yes -
    2jliu :2007.11.09 15:30 ::: ( OS&Storage ) ::Ķ:(168) :: (0) :: (0)
    ===========================================================
    IP һйܶ SSL վ
    ===========================================================

    IP

    öĽ IP IP aliasingѰʱҪɵIJ־ȷȷʱӿڣvirtual interface IPvirtual IP ǼѵѰŹЩϢʶѰҵĶͨΪ IP ܵĸҵ˹ڸĸסIP ʱҲΪӿڱnetwork interface aliasing ߼ӿڣlogical interface

    Linux ϵͳϵ IP

    ģʽһ
    ˶ IP ַʱijЩ̫νģʽpromiscuous modeڻģʽ£׽ϵͨܵ·תĹ̽ʹ̫ģʽԱ㲶׽ͨŰ

    IP ĸܼ򵥣һӿö IP ַܹʹõһӿڵͬһж Web IP Ҳdzסֻϵͳϵӿڣ IP ַ Linux™ ϵͳϣʹñ׼ùߣ ifconfig route  IP Ҳͼλߡ

    һ£Ϊÿ̫һԪšҪѾõ̫Ӷ IP ӦΪһӿͬԪţҪһ߼Ԫ޶磬ԪΪ eth0 ̫Ѿһе IP ַôͨһ߼Ԫ :1 IP 嵥 1 ʾͨ߼ԪӸ IP ַע⣬ҪΪ root û¼


    嵥 1. еӿӶ IP ַ
    				
    ifconfig eth0:1 192.168.0.2 netmask 255.255.255.0
        

    õϵͳϣLinux ں˱֧ IP ʹּںûṩ֧֣Ҫ¹ںˡҪ˽ںǷ֧ IP ɼ /proc/net/alias* ļǷڡ

    µ IP ַ֮ҪΪµĽӿ·ɣ嵥 2 ʾ


    嵥 2. Ϊµ IP ַ·
    				
    route add -host 192.168.0.2 dev eth0:1
        

    ڴµ IP ַ֮󣬻Ҫ /etc/hosts ļиµַ嵥 3 ʾ


    嵥 3. Ϊµ IP ַ
    				
    192.168.0.1 primaryserver
    192.168.0.2 secondaryserver
        

    Solaris ϵͳϵ IP

    Ҫ Solaris™ IP ʹõвͬӿڵ嵥 4 ʾҪΪ root û¼


    嵥 4. Solaris IP
    				
    ifconfig eth0:1 plumb
    ifconfig eth0:1 192.168.0.2 netmask 255.255.255.0
    ifconfig eth0:1 up
        

    Ϊ IP ֮ȻЧԽ /etc/hosts е IP ַӵ /etc/hostname.eth0:1 ļС

    Linux Solaris ϵͳϣһ̫ϴӿڣӵͬϵ IP ַǣͨӦñôΪΪ֮ƿϵ豸ܶ


    2jliu :2007.11.09 14:00 ::: ( OS&Storage ) ::Ķ:(271) :: (0) :: (0)
    ===========================================================
    RHEL5ʵָ߿HAȺ+GFS+EnterpriseDB
    ===========================================================

    copy from

     鿴ȫ
    2jliu :2007.11.09 10:36 ::: ( OS&Storage ) ::Ķ:(491) :: (0) :: (0)
    ===========================================================
    ipַ
    ===========================================================
    Solaris󶨶IP
    ===========================================================

    ¼һSolarisһ󶨶IPķõʱҲ

    plumbȻip͹㲥ַͿˡ

    # ifconfig hme0 plumb
    # ifconfig hme0 192.168.107.200 netmask 255.255.255.0 broadcast 192.168.107.253 up

    ϣipϵͳʱԶӣԽ༭ɽűӵ/etc/rcN.dĿ¼¡


    2jliu :2007.11.09 09:56 ::: ( OS&Storage ) ::Ķ:(226) :: (0) :: (0)
    ===========================================================
    Solaris root telnet
    ===========================================================

    ոսõSolarisϵͳ󣬴ԶTELNET½ϵͳʹrootû½޸/etc/default/loginļCONSOLE=/dev/consolegicǰ#עͣͿͨrootûTELNET½


    2jliu :2007.11.08 16:35 ::: ( OS&Storage ) ::Ķ:(269) :: (0) :: (0)
    ===========================================================
    LinuxҪTelnet
    ===========================================================
    LinuxҪTelnetʱDZ޸ļļλ/etc/xinetd.dУļһΪtelnetеredhat 汾ļΪkrb5-telnet*-telnet֮ҺСtelnetַļҵʹıߴ,ݣ service Telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.Telnetd disable = yes } ҪľǽһУdisable=yesΪdisable=noͿˡҪעuser=rootһУDZʾûrootͨTelnet½LinuxDZʾrootͨLinux½LinuxûҪ½LinuxĻʹʺ,лrootû ȻͿTelnetLinuxȻǿҵTelnet񣬵ҪҪxinetdеϱΪtcp/ipƳ򡱣򵥵˵ǿtcp/ipصij򣬶TelnetDZxinetdƵġֻҪxinetdҲTelnetˡservice xinetd restartǾͿͨնLinuxˡ telnetķʽͿݡΪӰȫԣԶԷΧơIPַ219.166.236.11԰·ʽã service Telnet ִ1 { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.Telnetd disable = yes only_from = 219.166.236.0/255.255.255.0 (ֻ219.166.236.0η) only_from = .test.cn (ֻ.test.cn) no_access = 219.166.236.{11,21} (1121IPܷ) }
    2jliu :2007.10.31 14:35 ::: ( OS&Storage ) ::Ķ:(211) :: (0) :: (0)
    ===========================================================
    nbu&
    ===========================================================

    Proposed Change(s) to Update the Volume Configuration

    Volume configuration is up-to-date with robot contents.

     鿴ȫ

    2jliu :2007.10.10 10:33 ::: ( OS&Storage ) ::Ķ:(314) :: (0) :: (0)
    ===========================================================
    linuxԶ̷Ȩ޿(hosts.allowhosts.deny)
    ===========================================================

    /etc/hosts.allow/etc/hosts.denyļǿԶ̷õģͨ߾ܾijipipεĿͻlinuxij񡣱SSHֻͨԹԱţǾͿԽòҪIPֻŹԱʹõIPΡ

    ʹã

    ޸/etc/hosts.allowļ

    #
    # hosts.allow This file describes the names of the hosts which are
    # allowed to use the local INET services, as decided
    # by the /usr/sbin/tcpd server.
    #
    sshd:210.13.218.*:allow
    sshd:222.77.15.*:allow
    дʾ210222ipsshdȻҪhosts.denyļʹãȻ:allowȫʡԵġ

    ȻԱһIPôдDZȽʡµ

    all:218.24.129.110//ʾ110ip

    /etc/hosts.denyļļǾܾбļ£

    #
    # hosts.deny This file describes the names of the hosts which are
    # *not* allowed to use the local INET services, as decided
    # by the /usr/sbin/tcpd server.
    #
    # The portmap line is redundant, but it is left to remind you that
    # the new secure portmap uses hosts.deny and hosts.allow. In particular
    # you should know that NFS uses portmap!
    sshd:all:deny

    ע⿴sshd:all:denyʾܾsshdԶӡ:denyʡԡ

    ԣhosts.allow host.denyͻʱhosts.allowΪ׼

    ע޸ʱҪִУ

    service xinetd restart

    øղŵĸЧ

    ܽ᣺ַͨԿƲַȨʣһݵķڿ־ʱῴܶɨ¼ǻֱrootûģʱķбͷdzˣ


    2jliu :2007.09.11 10:37 ::: ( OS&Storage ) ::Ķ:(395) :: (0) :: (0)
    ===========================================================
    LinuxϵͳֹSwap
    ===========================================================

    1.鿴ϵͳSwapռʹ

    [root@oracle root]# free
    total used free shared buffers cached
    Mem: 513980 493640 20340 0 143808 271780
    -/+ buffers/cache: 78052 435928
    Swap: 1052248 21256 1030992

    2.ڿռʴswapļ

    [root@oracle root]# mkdir swap
    [root@oracle root]# cd swap
    [root@oracle swap]# dd if=/dev/zero of=swapfile bs=1024 count=10000
    10000+0 records in
    10000+0 records out
    [root@oracle swap]# ls -al
    total 10024
    drwxr-xr-x 2 root root 4096 8 15 10:18 .
    drwxr-xr-x 19 root root 4096 8 15 10:17 ..
    -rw-r--r-- 1 root root 10240000 8 15 10:18 swapfile


    [root@oracle swap]# mkswap swapfile
    Setting up swapspace version 1, size = 9996 KiB


    3