본문 바로가기

AIX

(40)
[AIX] PVID 생성 chdev -l hdisk# -a pv=yes (PVID주기)
AIX File Systems FS-File system A file system is a hierarchical tree structure of files and directories. Some tasks are performed more efficiently on a file system than on each directory within the file system. For example, you can back up, move, or secure an entire file system. File systems are associated with devices (logical volumes) represented by special files in /dev. When a file system is mounted, the log..
AIX 5.3 JFS2 Superblock 깨졌을때. JFS2 has two superblocks, one in logical block 1 and another in 31. If fsck cannot recover the problem, filesystem can be rescured by copying one superblock to the corrupted location by dd command: # dd count=1 bs=4k skip=31 seek=1 if=/dev/thelv of=/dev/thelv To my knowledge, there is no way other than restoring from last backup to revive a filesystem when the two superblocks are corrupted.
[AIX] 주요 용어들 DASD : Direct Access Storage Device SPCN : System Power Control Network Drawer HMC : Hardware Management Console IO Drawer : IO에 해당하는 장치들만 모여있는 Unit PBCC : Process Bus Card Conector ECC : Error Checking Correct RAS : 시스템 중단 없이 서비스 가능 한 것 CRU( Customer Replaceable Unit ) : 고객이 직접 교체 가능한 Unit FRU( Vital Product Data ) Card : CUoD 등의 키가 저장 되는 Card Processor Card = Processor Book WebSM(Web System Ma..
[AIX] CDE접속 이번 기술정보는 CDE의 수동 설치 및 초기 구성에 대해 알아보겠습니다. p5 로 가면서 HMC의 구성이 일반화됨에 따라 그래픽 카드가 서버의 기본구성에서 제외되고 있습니다. AIX의 초기 설치는 그래픽 카드가 있어야 CDE를 자동으로 설치하게 되며, 이 CDE가 있어야 오라클 등을 설치하기 위한 그래픽 화면(X-manager 등의 소프트웨어를 통한 인스톨 화면)이 지원됩니다. 그래서 간혹 최초 설치 이후에 CDE를 설치해야 하는 경우가 생기는데, 간단한 설치 명령 설명하겠습니다. AIX용 기본 설치 매체의 경우는 필요로 하는 파일세트가 1번 CD에 들어 있습니다. 파일세트중 어느 하나 혹은 모두를 설치하려면, 다음의 SMIT 패스트패쓰를 실행합니다.: smit install_all 다음을 선택합니다.:..
[AIX] NFS설정 1. 데몬확인 # lssrc -g nfs Subsystem Group PID Status biod nfs 131276 active rpc.statd nfs 315578 active rpc.lockd nfs 213110 active nfsd nfs 217268 active rpc.mountd nfs 118790 active 데몬이 없다면 # startsrc -s 2. NFS 시작 # smitty nfs Network File System (NFS) -> Configure NFS on This System -> Start NFS 3. 호스트를 공유시킬 디렉토리 지정 /home/nfstest라는 디렉토리로 test # smitty nfs Network File System (NFS) -> Add a Direc..
[AIX] RAMDISK Create The AIX mkramdisk command allows system administrators to create memory-resident file systems. The performance benefits of using RAM disk can be astonishing. The unload of a large TSM database was reduced from 40 hours on SAN disks down to 10 minutes using RAM disk. The configuration of a RAM disk file system is very simple and takes just a few minutes. Once the file system is mounted, it can be..
[AIX] SAN switch 시리얼 접속 http://a2alpha.webnode.com/news/configure-ibm-24982e-fibre-switch-with-ip-and-zones/
[AIX] 미러디스크 교체 VG미러링된 디스크 교체방법 1. 덤프디바이스 생성 # mklv -y hd7 -t dump rootvg PP갯수 hdisk_name 2. 덤프파일 생성 # snap -ac 3. 미러링 구성 해제 # unmirrorvg rootvg 4. 볼륨그룹에서 제거 # reducevg rootvg hdisk1 5. Hotspare 디스크교체 # diag Task Selection (Diagnostics, Advanced Diagnostincs, Service Aids, etc.) Hot Plug Task SCSI Hot Swap Manager Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device slot 2 xx-xx-xx-xx,0 hdisk1 ..
[AIX] 디스크 교체 방법1 디스크를 교체 하려면 #extendvg VolumeGroupName hdisk_new #migratepv hdisk_bad hdisk_new #reducevg -d VolumeGroupName hdisk_bad 예시) hdisk0 00cce33d0002f76b rootvg active hdisk1 00cce33d1336ddfd rootvg active hdisk2 00cce33d27f6178b appvg active hdisk3 00cce33de2a7d1fc appvg active hdisk4 00cce33d042d44b0 datavg active hdisk5 00cce33d4a020d65 kmsvg active hdisk6 00cce33d6344a014 datavg active hdisk7 none N..
[AIX] logform의 사용 log초기화 logform JFS로그로 사용할 Volume을 초기화. logform [-V vfstype] LogName 바라보는 log볼륨의 데이터가 손실된경우 마운트가 불가능하다. # lsvg -l jrvg jrvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT test1 jfs2 1 1 1 closed/syncd /jr/test1 test1_log jfs2log 1 1 1 closed/syncd N/A 현재 VG의 정보이다. 마운트를 실행해서 df 정보를 확인해보면 # mount /jr/test1 # df -k Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 2097152 1845188 13% 10356..
[AIX] 장치삭제가 안되는 경우 (rmdev -dl 불가) 기존에 LPAR를 나눠놨던 테스트 장비에 DLPAR를 테스트 해보려고 lpar를 지운다음 다시 올리는 과정에서 장치가 엇갈리게 되었다. # lsdev -Cc adapter ent2 Available EtherChannel / IEEE 802.3ad Link Aggregation ent3 Available 07-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent4 Available 07-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) fcs0 Defined 01-08 FC Adapter fcs1 Available 06-08 FC Adapter fcs2 Available 06-09 F..
특정 Volume Group 에 File System 만들기 [To make File system on AIX 5.3] 1. root 로 로그인한다. [YOU HAVE NEW MAIL] root@DMS:/ > 2. lspv 를 눌러 현재 Volume Group List 를 확인한다. root@DMS:/ >lspv hdisk0 00ceb31adae0d192 rootvg active hdisk1 00ceb31ad4679f47 oraclevg active 3. 첫번째 디스크의 Volume Group 을 확인한다. (디스크 장애시 image 를 떠야하므로 free 영역을 그대로 두는게 좋다) root@DMS:/ >lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00ceb31a00004c0000000107dae0d65d VG STATE: active PP SIZE: 128 megabyte(s)..
[AIX] 자주쓰이는 명령어 ****************** IBM bundles install. **************************** #vi /usr/sys/inst.data/user_bundles/MyBundle.bnd I:sysmgt.websm.security. // write the file which you want to install. #smitty easy_install // select Mybundle which you've made and Enter. lslpp -Lb Mybundle // verify whethere bundle was installed successfully. smitty list_installed // verify what is installed in server. *******..
[AIX] 관련정보 확인 * 일반적 정보 prtconf = list system configuration lscfg [-v] = devices (-v = verbose for microcode levels, etc) lscfg -v = devices verbose (microcode level, firmware, etc) lsdev -Cc adapter = adapter cards lsdev -Cc disk = disks lsdev -Cc processor = CPU s lsattr -El sys0 = serial number, model number, memory * AIX 관련 정보 oslevel = AIX OS level instfix -i |grep ML = AIX maintenance level lslpp -l = in..
nmon 등록방법 시스템 분석에 사용되는 nmon 등록방법 # vi /home/nmon/nmon.sh #!/bin/ksh cd /home/nmon/ /usr/bin/nmon -f -d -t -s 300 -c 288 # crontab -e 0 0 * * * /nmon/nmon.sh > /dev/null 2>&1 # ls -al /home/nmon hostname_140517_0000.nmon 파일 생성 nmon analyzer 다운로드는... http://www.ibm.com/developerworks/aix/library/au-nmon_analyser/