顯示具有 Solaris 標籤的文章。 顯示所有文章
顯示具有 Solaris 標籤的文章。 顯示所有文章

星期五, 7月 31, 2009

Disable a CPU in Solaris



Using CPU1 as an example:

1. View /var/adm/messages to figure out which CPU is having problems.
2. Use psrinfo to view your CPU configuration
3. As root, take the CPU offline using the command ‘psradm -f 1′
3a. The syntax is ‘psradm ‘
4. Verify the CPU is offline with ‘psrinfo’
5. To bring an offline CPU back online, use ‘psradm -n 1′


來源網址:http://www.tech-recipes.com/rx/192/disable-a-cpu-in-solaris-using-psradm/

星期一, 4月 20, 2009

logadm

logadm -h

Usage: logadm [options]
(processes all entries in /etc/logadm.conf or conffile given by -f)
or: logadm [options] logname...
(processes the given lognames)

General options:
-e mailaddr mail errors to given address
-f conffile use conffile instead of /etc/logadm.conf
-h display help
-N not an error if log file nonexistent
-n show actions, don't perform them
-r remove logname entry from conffile
-V ensure conffile entries exist, correct
-v print info about actions happening
-w entryname write entry to config file

Options which control when a logfile is rotated:
(default is: -s1b -p1w if no -s or -p)
-p period only rotate if period passed since last rotate
-P timestamp used to store rotation date in conffile
-s size only rotate if given size or greater

Options which control how a logfile is rotated:
(default is: -t '$file.$n', owner/group/mode taken from log file)
-a cmd execute cmd after taking actions
-b cmd execute cmd before taking actions
-c copy & truncate logfile, don't rename
-g group new empty log file group
-m mode new empty log file mode
-o owner new empty log file owner
-R cmd run cmd on file after rotate
-t template template for naming old logs
-z count gzip old logs except most recent count

Options which control the expiration of old logfiles:
(default is: -C10 if no -A, -C, or -S)
-A age expire logs older than age
-C count expire old logs until count remain
-E cmd run cmd on file to expire
-S size expire until space used is below size
-T pattern pattern for finding old logs

星期二, 4月 01, 2008

Solaris 上查詢 HBA卡

1. prtconf -vpgrep -i wwn
2. prtpicl -vgrep -i wwn
3. cat /var/adm/messages grep -i wwn
4.modinfo grep SunFC (for Sun 出的卡)
5.luxadm qlic ---- to show sun/qlic HBA
6.luxadm fcode_download --- to all vendor HBA




show link status of card
luxadm -e port

星期五, 6月 08, 2007

Solaris EIS install

1.安裝完後放入 EIS-cd 做系統安全性升級
cd /cdrom/eis-cd/sun/install
./setup_standster.sh 在回答相關問題後(SFS =no , 區域 = APAC , code=TW,其他空白)
logout login
cd /cdrom/cdrom0/sun/patch/8
unpack-patches
cd /tmp/8
./install_all_patches (以blade100為例需要大約兩小時)

星期五, 5月 18, 2007

make flash

flarcreate -n name -R /-S -x /path ./flash_name

Terminal 進 ok mode

ctrl + pause(braek)

shell script--清除^M

shell script--清除^M

tr -d '\015' newfile

清除\r
tr -d "\r" unixfil

kernel parameter for Solaris

vi /etc/system


* Begin Oracle database info (do not edit)
set shmsys:shminfo_shmmax=21474836479
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=500
set shmsys:shminfo_shmseg=50
*
set semsys:seminfo_semmap=256
set semsys:seminfo_semmni=3000
set semsys:seminfo_semmns=3000
set semsys:seminfo_semmsl=12010
set semsys:seminfo_semmns=24020
set semsys:seminfo_semmnu=40960
set semsys:seminfo_semume=64
set semsys:seminfo_semmsl=25000
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
*
set msgsys:msginfo_msgmap=20480
set msgsys:msginfo_msgmax=81920
set msgsys:msginfo_msgmnb=16384
set msgsys:msginfo_msgmni=50
set msgsys:msginfo_msgssz=32
set msgsys:msginfo_msgtql=2048
set msgsys:msginfo_msgseg=327607
* End Oracle database info (do not edit)