http://hi.baidu.com/chenshengang/blog/item/a74755ac9f206c054a36d6f4.html
ͬԴвͬCPU飬ڴԴ
Global ZoneһΪpoolddaemon, ͻԴʱpooldԶͻرԴʱpooldԶʧpooladmǸرԴصʹԴصĻpooladm CeʹԴصƶȡ
bash-3.00# pooladm Ce
poolcfgԴصʹpoolcfg鿴еԴļͨ£һļԴص, һأ/etc/pooladm.confļ
Ĭ£/etc/pooladm.confļDzڵģʹápooladm Cs /etc/pooladm.conf Ժʹápooladm CcȡԴļĬϾǶȡ/etc/pooladm.confļ
bash-3.00# poolcfg -c info /etc/pooladm.conf
ʾ
system bennyluo
string system.comment
int system.version 1
boolean system.bind-default true
int system.poold.pid 341
pool db-pool
int pool.sys_id 1
boolean pool.active true
boolean pool.default false
string pool.scheduler FSS
int pool.importance 1
string pool.comment
pset pset_default
pool pool_default
int pool.sys_id 0
boolean pool.active true
boolean pool.default true
int pool.importance 1
string pool.comment
pset pset_default
ΪһЩͣĽУϵͳԴأֱdb-pool, pool-default
pool.sys_id -- ϵͳԴID
pool.active C ԴصĻ״̬
pool.default C ԴǷΪϵͳĬϵijء
pool.scheduler C Դصĵƶȡ
pool.importance C ԴصҪ
pool.comment C Դصע͡
pset_default C CPUΪĬϵCPU
ôνһCPU飬ԴأҽǰZoneأʵܼҪݻCPUCPU飬ȻCPU䵽ԴٰZone,һIJ蹩ο
4CPUͻϣһCPUĿCPU飬ʹpoolcfg
poolcfg -c 'create pset pset1 (uint pset.max=2)'
poolcfg -c 'modify pset pset1 (uint pset.min=1)'
ﶨΪpset1CPUһCPUCPUȻԴأ
poolcfg -dc 'create pool pool1'
ﶨһΪpool1Դء
Ȼpset1pool1
poolcfg -dc 'associate pool pool1 (pset pset1) '
zonecfg:test-zone> set pool= pool1
ͿCPU飬ԴأZoneķ
ȻǿSolaris 10ProjectȷԴ˵ڴκطͻӦóĽڵZone,һȤĻӦҪǿԳһƪϸⷽ
鿴ȫBash shell У¿ݼвЧʡ
鿴ȫ Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools
Server Configuration Tools
Administration Tools
Base
System Tools
X Window System 鿴ȫ
KH2J9-PC326-T44D4-39H6V-TVPBY 鿴ȫ
DNFSǡDistributed Network File SystemļơһLinuxȺ֮ϵĿչֲʽļϵͳ
ϵͳܹ
DNFSһ3ܹԪݷMDS洢豸OSDͿͻˣCLIENTԪݷϵͳļԪݹԿͻĵȣ洢豸ļݵı棻ͻûDNFSڣûDNFSһļϵͳ
MDSϵͳĺġCLIENTҪͨMDSMDSCLIENTдļԪд뱾أͬģԪļУҰѸļݵ㷨CLIENTѷֲϴָOSDϣϢҲԪļСMDSزReiserfsļϵͳԪļҪǿǵԪļСļһС1KBReiserfsСļܱȽǿġ
OSDϴ洢CLIENTϴļݷCLIENTļݶдOSDеġOSDϲExt3ļϵͳ
CLIENTI/OķߡCLIENTͨFUSEṩһVFSӿڣCLIENTϵıļϵͳDzƵġ
ĿǰDNFSֻ߱ļܣڲϵС
鿴ȫ
#1Chromium Web Browser
ۡ
װ http://apt.ubuntu.com/p/chromium-browser
#2GIMP Image EditorLinuxܻӭͼ༭ǿ
װhttp://apt.ubuntu.com/p/gimp
#3VLCý岥VLCûвܲģ̨òġ
װhttp://apt.ubuntu.com/p/vlc
#4Cheese Webcam BoothԼ࣬ЧӣԴΪ֪^_^
װhttp://apt.ubuntu.com/p/cheese
#5Audacity¼༭Ƶļ
װhttp://apt.ubuntu.com/p/audacity
#6Inkscape༭/ʸ ͼ
װhttp://apt.ubuntu.com/p/inkscape
#7Skype绰ѱͨţǣһҸˡȻι硭
װhttp://apt.ubuntu.com/p/skype
#8Thunderbirdȫʼ/ŶĿͻˡ
װhttp://apt.ubuntu.com/p/thunderbird
#97zipĽѹߣѲܽĸǸ߽ǷΡ
װhttp://apt.ubuntu.com/p/p7zip-full
#10PidginʱͨѶĬϵIMۼߣ
װhttp://apt.ubuntu.com/p/pidgin
#11RhythmboxĬϹСֲ٣࣬Ѻã˵
װhttp://apt.ubuntu.com/p/rhythmbox
#12ClementineAmarokɳ졣
װhttp://apt.ubuntu.com/p/clementine
#13Calibre飬ľ˼¡
װhttp://apt.ubuntu.com/p/calibre
#14GuakeһQuakeնʹУһѣһء֧ȼȡ
װhttp://apt.ubuntu.com/p/guake
#15Blender༭/3DģӦ
װhttp://apt.ubuntu.com/p/blender
#16OpenShot Ƶ༭˵LinuxƵ༭֮һǣBlender֧֡
װhttp://apt.ubuntu.com/p/openshot
#17SuperTuxKartܿ^_^˵
װhttp://apt.ubuntu.com/p/supertuxkart
ֲãǶֺܸߵءҰװд֣^_^
ȻЩԴרƳͬ⼸һģǶӰϴĿԴӵкܶͬص㣬͵ЩһʹáڹȥļЩļԲƣһӦαøձ顣Ϊ˸Ʋ֮ͬЭѾ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һյԴָǰķ
۲
IJ
- ֧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
鿴ȫ
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=303)ϵͳʹЧ:
/usr/sbin/reboot
˵ʱ,װ˸Ubuntu ( VM),оXPȺԻ.
SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs
SUNWxwfnt SUNWcsl
..ʵ..
̫֡Ϊ1518ֽڣJumbo Frameijȸͬ9000ֽڡ64000ֽڲȡJumbo Frameܹǧַ̫ܳӣʹݴЧ50%100%洢ӦûУJumbo FrameзͬѰ塣
̫֡Ϊ1518ֽڣһļҪΪɿ飬ŵ̫֡Сÿݿ鴫ʱ֡ͷβĿܹһ֡ļĴ䣬ٺܶ֡ĿʺʹʡͨΪһӦƿûб
ʹþ֡ļȱ㡣ȣ֡Խζʧһ֡ݣһθΪص¼´ͶʧݰΪΪķʱĹΣеÿֳֶ֧֡֡ʹáInternetӲֳ֧֡һȳInternetֳ֧ȵ֡ڷǰֶΣӶInternetӵܺͿɿԡҪÿһվ֪ĸݰ͵磬ĸݰ͵InternetΪ˼·ϵݰȣIPִMTU·ɷ㷨ǣⲻDZңھܾǽ㷨йصICMPݰͨˣ֡Internetӵʹá
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ķ
Now get more about these,many knowledge there...
A10,,ϧ...
ҵ,Ȼ;
Oracle10gR2RAC/postgreSQL/MySQL/MSSQL->Oracle/EMC/ESX/NetApp/BNT CX4 etc.... ã˽Ϥ,ô;
Ӧ/洢///˼·...
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ʱǶǴӴ濪ʼڴȡݵĴôǰ벿ֵ棬죬뻮ش顣
install rpm Ĵ rpmReadSignature failed
鿴ȫ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)
鿴ȫ⻯洢⻯ϣʵһһڶЧĵ⻯ͬʱҪּ
δչ
Ӳ豸ʣ
ЧĸӦ֮Ӱ죬
ͰѶӦϵһϵͳijɱ
עĻ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ֵ֧оƬΪx584ںˣƻڽļСڷͱʼDZԵNehalemܹҲڽ½С
ӢضƷĿ
ϤӢض˾˴Ŷ֪ÿӢضIJƷ߾дԵļڿʱһƷĿ롣Щ벻ʽIJƷУֻڿεĹͨ
ӢضƷʱʹõʽƷƺͲƷȷҪԶԶڲƷͿΣƷƷƺͲƷ漰ķ̫࣬編ɷģ̱עᣬʹ÷Χķģûܶȵȵȡ
ˣΪ˹ͨ棬ʹô빵ͨӢض˾ѴѡȨĿĿĸˣǿԸԼϲ²Ʒ¼ȡ롣ҲпգиǰᣬΪ˱ⷨDZڵķգֵѡӦǵͼϿҵġ
ӢضܶƷĿŶڼ(California)ɽɽĹԼո(Oregon)ܱߣطӢضĿ鶼ԹΧĵֵɽȵΪƷĿĴ룬ڵͼ϶ҵ
ȻѡòݣĿĸҲԴԼĵͼطͼϿҵΪ롣ӡУйŶӸһЩĿùPearl River(齭)Yellow River(ƺ), O'River(걽)ȵȣΪĿԵģҲֻڲͨʹãڶ벢Ϊ֪
һ£NehalemʵոݲеһССdzǡ
鿴ȫvi wu-ftpdChange the disable field from "yes" to "no" and save changes.
vi telnetChange the disable field from "yes" to "no" and save changes.
OS | patchlevel | memory | I/O Info | CPU Info | CPU / Memory |
Sun Solaris | showrev -p | sysinfo | sar -d | /opt/RICHPse/bin/se | /opt/RICHPse/bin/se |
| Linux | grep MemTotal /proc/meminfo free | vmstat 3 5 | grep "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 |
|
File and Directory Navigation
The "pwd" command displays the current directory: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> pwd
/u01/app/oracle/product/9.2.0.1.0
More Examples:root> ls
root> ls /u01
root> ls -al
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:
The "touch" command is used to create a new empty file with the default permissions:root> cd /u01/app/oracle
The "rm" command is used to delete files and directories. The "-R" flag tells the command to recurse through subdirectories.root> touch my.log
The "mv" command is used to move or rename files and directories. The "." represents the current directoryroot> rm my.log
root> rm -R /archive
The "cp" command is used to copy files and directories:root> mv [from] [to]
root> mv my.log my1.log
root> mv * /archive
root> mv /archive/* .
The "mkdir" command is used to create new directories:root> cp [from] [to]
root> cp my.log my1.log
root> cp * /archive
root> cp /archive/* .
The "rmdir" command is used to delete directories:root> mkdir archive
The "grep" command performs a search for a specified string or pattern.root> rmdir archive
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.
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> 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 !
root> grep -v '^#' /etc/oratab
























choose vsphere enterprise õһsn,һֱʾcdrom;ѵsnԲ choose vsphere enterprise plus -sn -> install successfully
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
...................
鿴ȫ-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
Ҫwin7ļ룬Ҫи Windows Live ID (MSN ˺)˵ֻҪhotmail msn˺żɡ
ȻѾɵWindows 7ЧCD-KEYҾӦһרԼģѾṩ Windows 7 к룬ҪЩƽⲹͿԳɹ Windows 7 Beta ʹõ 20098
鿴ȫ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
̸ʹܶʱα
ûѡƽ̨ʱԵһͷӵ硣ûϣһ ֶ,ܹϵͳܣԴΪѡ͵ݡ ¹۹ᵽܺһֶ ۣңκζȱ㣬ǵʹ߶ܶ˽ⲻʱ ױһЩݳĽۡ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ģƶҵйҵģʽܲԱ
ͨáĶΪοֵӦΪҪһҪŪЩжʲô壬ʲôϵͳвõģԼǷҵʵҵ̺ģʽ
¸ôϤʵ
鿴ȫִظɾķ
̲ɵִظɾĻ֡һǻɢУ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Ʒݷֳɿ飬Ҳе㷨ݿǷơȻƿеݽֽڵıȽϣжϸݿǷѾݡ
Linux Kernel - Version:
Linux x86-64
Linux x86
Give index of Metalink Notes for the Linux Operating System and Oracle on Linux
鿴ȫLinux Kernel - Version:
Linux x86-64
Linux x86
Give index of Metalink Notes for the Linux Operating System and Oracle on 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
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
-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
ЩڸʽĸȥҾͰҵһЩд,ο:
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,ôԶ,豸ǿ
startsrc -g ssh
һ豸
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豸ı־豸źʹ豸ɣ豸ű־豸,
鿴ȫ| ̵߳Ȳģͽܼ |
̵߳Ȳ |
smitty etherchannel;
inet and so on
banner njuigug
# # # # # # #### # # ####
## # # # # # # # # # # #
# # # # # # # # # # #
# # # # # # # # ### # # # ###
# ## # # # # # # # # # # #
# # #### #### # #### #### ####
have a look at
鿴ȫ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
2Ǻ;ģֵüס
/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
instead of ssh and scp. .
Դijһʱ̵״̬ѴڶʱڸƵĿϵͳС
νָֻݸƹͨڼɣʹԴݵϵͳֻܵӰ졣
ƹں̨Уƹ̽ڼԴݺĿݶܱӦóʹãǰ̨ϵͳͺ̨ϵͳͬʱУʹòͬݡ
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
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
½ܺ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 -Pminperm 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
ͼ 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 ںʼѡǼԵķҳв
minperm maxperm ɵ֮⣬һ maxclient ɵmaxclient ɵָӦڻǼԿͻ˷ҳڴơΪзǼԿͻ˷ҳǷǼô洢ҳӼ maxclient ƱʼСڻߵ maxperm ơ
ǼԿͻ˷ҳĿΪ numclientvmstat Cv ʾϵͳ numclient ֵռϵͳʵڴİٷֱȡ
ȱʡ£maxclient ϸơζţAIX ں˲ǼԵĿͻļ泬 maxclient ƵķΧҲ˵AIX ں˲ numclient maxclient numclient ﵽ maxclient ʱAIX ں˽ġͻ˵ģʽʼҳ滻ֽͻ˵ģʽУAIX ҳ滻ػ̽ϸѡͻ˷ҳв
AIX ṩ˼ֹߣṩϵͳвͬҳļϢ
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 svmon ִ֧ͬѡЩѡṩйϵͳڴʹõϸϢ
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 ҳĿpininuseӼ
ˣʾУһ 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 ŻʹøֹػԵܸơ
鿴ȫԭ:˽Ӧ,ļдͻݿ. ֤ӦҪݳֵڴ. ĹTipsμڴŵĹ̾ƪ.
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ٶǽġ
鿴ȫ
,֪ȴҲô;
SANStorage Area Storage洢һٵе豸ԴжͨSANRAIDӹͨFibre ChannelɣSAN
NASNetwork Attached Storage總Ӵ洢ĵʹTCP/IPЭ̫ļ
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 鿴ȫ
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-- ʱ
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)?
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
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 Ŀչ̫ϵĿ̫
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
ͨ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
Ҫע
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
XineramaSolaris 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
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ȥЩĽռ
鿴ȫ
2.1 豸 еӲ̶һͬ÷һĸ֣
c
t ĿţSCSU豸ǶӦSCSIַ
d ŻRAID豸LUN ţһַӲ̣
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 鿴ȫ
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гúõSCSI豸IDEӲ̣ʹã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 ֹϢ
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)
below
鿴ȫlinux,metadb;
Ϲ.Ǻ,blogܻӭ
Ҫhaڵ.˳ڲԻϰװos&patch
format disk
meta raid(0+1)
3û,ĿǰϵͳѾʹ1,ϵͳ.
ƻװsolaris10ʹzfs
鿴ȫ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ͬmetastat鿴RAID5ĸϢRAID5źܺõݴƽԣʵĿʵʩУRAID5Ӧʮձ顣ͨRAID5洢ݣϵͳԱҪ۲RAID5Ľ״Ӷȷݰȫ
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ļԱʧʱͨû߹̵ûʽָ
7vfstabļйڸĿ# 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ҲǰļϵͳԴ̶Ӧķ
ǿʹmetastat鿴SUN 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ļͬȫ֮ϵͳˣϵͳ̾ϡ
Ǵӵһ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
һɾ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ļʽУзʽӦù㷺ؽзʽ
SUN Solstice DiskSuiteװSUN Solstice DiskSuiteṩSolaris 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װɹٶаװ
һ 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






