본문 바로가기

Work/Solaris

(78)
solaris system parameter 설정 Add kernel parameters to /etc/system file# vi /etc/system * set zfs archive cache size 3Gset zfs:zfs_arc_max = 0xc0000000 * arc_meta_limit 512Mset zfs:zfs_arc_meta_limit = 0x20000000 * zfs_arc_min 256Mset zfs:zfs_arc_min = 0x10000000 * file descriptor parameter set rlim_fd_max=65535set rlim_fd_cur=8192 * oracle parameterset noexec_user_stack=1set semsys:seminfo_semmni=1024set semsys:seminfo_semm..
solaris echo 사용.1 # echo "## echo test IP Address ##" >> /etc/hosts# echo "xxx.xxx.xxx.xxx `hostname`_hme0_t" >> /etc/hosts# echo "xxx.xxx.xxx.xxx `hostname`_hme2_t" >> /etc/hosts# echo "`hostname`_hme0_t group `hostname`-ipmp deprecated \-failover netmask 255.255.255.0 broadcast + up" \ >> /etc/hostname.hme0# echo "addif `hostname`_hme2_t group `hostname`-ipmp deprecated \-failover standby netmask 255.255.255.0 ..
solaris 10 SVM 관련 Device driver : /kernel/drv/md, /kernel/misc/md_*Configuration files : /etc/init.d/lvm.init, lvm.sync, /etc/lvm/md.tab, /etc/lvm/mddb.cf, /etc/systemmetadb replicas : 유효 metadb 개수 System 정상 운영 System Boot Level 50% 초과 Yes Yes, Multi-user mode boot 50% Yes No, Single-user mode boot 50% 미만 No, System Panic No, Single-user mode boot SVM commnads : growfs, mdlogd, metaclear, metadb, metadetach, meta..
solaris iostat [t5120:/]iostat -tnxM [interval] tty tin tout 0 2 extended device statistics r/s w/s Mr/s Mw/s wait actv wsvc_t asvc_t %w %b device 2.0 2.0 0.1 0.1 0.0 0.0 0.0 4.5 0 2 md/d10 2.0 0.1 0.1 0.0 0.0 0.0 0.0 1.3 0 0 md/d11 0.0 2.0 0.0 0.1 0.0 0.0 0.0 8.1 0 2 md/d12 0.3 0.3 0.0 0.0 0.0 0.0 0.0 8.8 0 0 md/d20 0.3 0.0 0.0 0.0 0.0 0.0 0.0 0.8 0 0 md/d21 0.0 0.3 0.0 0.0 0.0 0.0 0.0 16.7 0 0 md/d22 0.0 0.0..
solaris < ps -ef > [sol10:/]ps -ef | more UID PID PPID C STIME TTY TIME CMD root 0 0 0 May 21 ? 0:32 sched root 4 0 0 May 21 ? 0:01 kmem_task root 1 0 0 May 21 ? 0:02 /sbin/init root 2 0 0 May 21 ? 0:00 pageout UID : 프로세스 소유자의 유효 사용자 IDPID : 프로세스 IDPPID : 상위 프로세스 IDSTIME : 프로세스의 시작 시간 TTY : 프로세스 또는 상위 프로세스가 시작된 터미널. 물음표는 제어 터미널이 없음TIME : 시작된 이후 프로세스에서 사용한 총 CPU 시간CMD : 프로세스를 생성한 명령
Solaris 10 SMF ( Service Management Facility ) # svcs -a | grep # svcadm enable ex> svcadm enable svc:/network/smtp:sendmail # svcadm disable ( 서비스 영구 중지 ) ex> svcadm disable svc:/network/smtp:sendmail svcadm disable -t svc:/network/smtp:senemadil ( 서비스 임시 중지 ) [sol10:/]svcs -aSTATE STIME FMRIlegacy_run May_21 lrc:/etc/rc2_d/S10ludegradeddisabledmaintenanceofflineonlineuninitialized degraded : 서비스 인스턴스가 사용으로 설정되어 있지만 제한된 용량으로 실행 중임을 나타냄disab..
Solaris 패키지 다운로드 사이트 http://ftp.ussg.iu.edu/solaris/freeware/sparc/
solaris name_to_major solaris 10 /etc/name_to_major 1. 커널드라이브와 관련된 장치들의 매핑 내용을 갖고 있는 파일2. 커널 드라이브는 숫자로 해당 드라이브를 인식한다. # 참고사항 # /device : 시스테에서 사용하는 이름 [ physical name ]/dev : 사용자가 사용하는 이름 [ logical name ] path_to_inst : OS 가 사용하는 Physical device 의 instance name 이 들어있는 파일name_to_major : Physical device 의 고유 번호 지정