본문 바로가기
Storage

VxVM Environment

by 레이루이 2008. 5. 7.
반응형

VxVM Environment

VxVM System Files

Changes to the /etc/system File
/etc/system에 force-load에 대한 다양한 VxVM drivers가 존재한다.

Run-Level File Additions
- /etc/rcS.d/S25vxvm-sysboot
  부팅시 /와 /usr volume을 실행한다. debugging parameters 설정 정보 포함.
- /etc/rcS.d/S35vxvm-startup1
  부팅시 /와 /usr 이외의 volume을 만들때 필요하다.
- /etc/rcS.d/S85vxvm-startup2
  Vx I/O 데몬을 start하고 /dev/vx/dsk와 /dev/vx/rdsk directory를 rebuild한다.
  모든 disk group을 import하고 부팅시 start되지 않은 모든 volumes을 start한다.
- /etc/rcS.d/S86vxvm-reconfig
  부팅시 fsck 동작시킨다.
- /etc/rc2.d/S94vxnm-host_infod
  Veritas Volume Replicator(VVR)이 인스톨 되었다면 host_infod program을 실행한다.
- /etc/rc2.d/S94vxnm-vxnetd
  VVR이 인스톨 되었다면 vxnetd program을 실행한다.
- /etc/rc2.d/S95vxvm-recover
  Volume Manager watch daemon을 실행한다.
- /etc/rc2.d/S95vmsa-server
  VMSA GUI 실행한다.
- /etc/rc0.d/K10vmsa-server or /etc/rc1.d/K10vmsa-server
  VMSA를 kill한다.
- /etc/rc0.d/K99vxvm-shutdown
  shut down vxconfigd daemon

부팅시 message 확인
VxVM starting in boot mode...      <= S25vxvm-sysboot
VxVM starting special volumes (swapvol)...      <=S35vxvm-startup1
VxVM general startup...            <= S85vxvm-startup2
Starting RMI Registry              <= S96vmsa-server

System Startup Processes
- vxconfigd daemon
  S25vxvm-sysboot에 의해 실행된다....
  rootdg가 default로 있어야 한다. 이 데몬에 의해서 rootdg가 시작되도록 구성되어야한다.
- vxrelocd and vxsparecheck Daemons
  부팅시 S95vxvm-recover 에 의해서 실행된다.
- vxnotify Daemon
  vxrelocd or vxsparecheck 에 의해서 실행된다.
  문제 발생시 통보하는 역할을 한다.
- vxrecover Daemon
  부팅시 S35vxvm-startup1, S85vxvm-startup2 or S95vxvm-recover 에 의해 실행된다.
- vmsa_server Script
  S96vmsa-server script 가 /opt/VRTSvmsa/bin/vmsa_server file을 실행시킨다.

System and User Executable Files

VxVM Software in the /opt Directory
- /opt/VRTS : VxVM man pages
- /opt/VRTSlic : VxVM license
- /opt/VRTSvxvm : VxVM technical documents, include files, and library files
- /opt/VRTSvmsa : VMSA server and client software
- /opt/VRTSvxfs : vxfs filesystem

VxVM Software in the /usr/sbin Directory
# ls /usr/sbin/vx*
여러 file이 있지만 대개,
vxassist, vxstat, vxinfo, vxprint, vxtask, vxinstall, vxdg, vxdisk, vxdiskadm 등이 주로 사용된다.

VxVM Software in the /etc/vx/bin
# ls /etc/vx/bin
여러 VxVM script와 program file이 존재하지만 대개,
vxdisksetup, vxdiskunsetup,vxevac, vxresize 등이 주로 사용된다.

VxVM Reconfiguration
      Consult Before Access      
                   
vxio Driver     Update     Kernel
Configuration
table                    
        vxconfigd        
Device
Access
Error                
        Update     Storage Array
                configdb
3번 slice
               
                Data
4번 slice
             

- vxio Driver : public region 영역 Access error시 configuration table update
- vxconfigd :  private영역 정보 update
- kernel configuration table : 부팅시 configdb를 메모리에 적재한다.
- hard-device error 발생시 vxio driver가 volume을 disable 시키고 VxVM kernel
configuration table을 update한다. 그 다음에 vxconfigd에 알려주면 vxconfigd가 디스크   정보를 update한다.

Performance Analysis

<Volume Statistics>
  # vxstat -g dg명
   AVG TIME 수치가 높고 OPERATIONS 수치가 작으면 문제가 많다. data 손실이 있다.
   AVG TIME은 클 수록 안 좋다.

<Disk Drive Statistics>
  # vxstat -g dg명 -d
   physical disk의 사용량을 확인할 수 있다. 쉬고 있는 disk에 evacuation으로 사용 분산.

<Trace Information>
  # vxtrace -o dev vol명
  40122 START write vdev vol명 block 16 len 4 concurrency 1 pid 10689
  40122 END write vdev vol명 op 40122 block 16 len 4 time 1
  .
  .
  # ps -ef | grep 10689
  Volume에 I/O 현황을 볼 수 있다. I/O가 진행중이어야 결과값이 출력된다.
  I/O를 일으키는 process ID를 확인 할 수 있다.
  #iostat -xnp 2 10
  각 disk당 I/O 확인한다. 정확한 값은 산출하기 어렵다.

반응형