Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

디스크 에이전트는 It is managed disk using Mantech Volume Lock(이하 MVL) 드라이버를 이용하여 공유 디스크(shared disk)를 관리하는 에이전트입니다.
공유 디스크는 복수 개의 노드에서 쓰기 접근을 시도하면 데이터가 손상됩니다.
따라서 이런 상황을 제어하기 위해 운영 노드에서만 파일 시스템을 접근허용(un-lock)하고 대기 노드에서는 쓰기 접근을 할 수 없도록 접근금지(lock)시킵니다.
이렇게 관리할 공유 디스크는 드라이브 문자로 지정합니다.
디스크 에이전트는 MVL 드라이버와의 통신으로 디스크의 잠금 상태를 관리하고 쓰기 가능한 상태인지를 모니터링합니다MVL) bundled in MCCS.
Within a cluster, the application may be store the data on shared disk when it is equipped. MVL attach the file system on shared disk to the only active server and lock to the standby server to prevent file system corruption. When managed as mentioned above, shared disk is defined as the drive letter.
A shared disk agent of the MCCS manages the lock/un-lock of the disk and monitors volume is read/writable state through communication with the MVL driver.


Column
width350px
Panel

이 페이지의 주요 내용

Table of Contents
maxLevel4

Introduction to the MVL

...

MVL은 Windows 운영체제에서 공유 디스크 관리 기능을 제공하는 커널 드라이버입니다.
MVL은 공유 디스크 리소스로 구성된 볼륨을 부팅 단계부터 잠금 상태로 설정하여 MVL을 통하지 않고서는 잠금을 해제할 수 없도록 합니다.
MVL은 MCCS가 복수의 노드에서 공유 디스크 접근이 불가능하도록 반드시 한 노드에서만 접근할 수 있도록 제어하는데 필요한 드라이버입니다.
MVL은 볼륨 단위로 관리하며 윈도우의 파티션 단위로 관리를 할 수는 있지만 이를 권하지는 않습니다.
GPT 디스크와 MBR 디스크 모두 지원하며, 파일 시스템은 NTFS만 지원합니다.

MVL 설치 및 제거

MVL은 동적으로 드라이버의 load / unload 가 가능하며 설치한 후에는 시스템의 재부팅 없이 동작시킬 수 있습니다.
MVL은 MCCS 설치 마지막 단계에서 자동으로 설치됩니다.
수동으로 MVL 드라이버를 설치/삭제를 할 때는 %MCCS_HOME%\bin\DiskAgent 디렉터리에서 install.bat / uninstall.bat을 한 뒤 반드시 재부팅을 해야 적용됩니다.
MVL은 Windows의 레거시 필터 드라이버 방식으로 만들어졌습니다.
따라서 Windows의 net command로도 시작 및 중지가 가능합니다.
Doc command를 이용해서 시작 및 중지하는 방법은 다음과 같습니다.

...

Driver

Mantech Volume Lock (MVL) is a kernel drive which provides the function of managing the shared disk for Windows OS.

MVL locks access to the shared disk resource. You cannot access the volume of shared disk before it unlocks access. Only a node allow to access to the shared disk resource.

MVL can be managed in volume unit and partition unit of Window but it is not recommended. But it is recommended to use volume unit management.

It supports both GPT disk and MBR disk, and for file system, it supports NTFS only.


MVL Installation and Removal

MVL can enable load / unload driver and activate without the need to reboot the system after installation. MVL is automatically installed in the last step of the installation of MCCS.

MVL driver can be installed/unistalled manually through the command of, 'install.bat /uninstall.bat' of the '%MCCS_HOME%\bin\DiskAgent' directory.

MVS is developed in a way of legacy filter driver of Wiindows.

Therefore, service start and stop can be done through net command of Windows.

Following is the way of service start and stop using command line interface.

Start

Code Block
title시작
net start vollock

...

Stop

Code Block
title중지
net stop vollock

이후에 MCCS를 제거 하고자 할 때에는 MCCS 제거 외에도 MVL 드라이버를 운영체제에서 따로 제거해줘야 합니다.
완전히 제거하는 방법은 설치할 때와 마찬가지로 When removing MCCS, removal is done for both MCCS and also MVL. To remove it completely. Execute 'unistall.bat of the bin' %MCCS_HOME%\bin\DiskAgent의 uninstall.bat을 실행하면 됩니다DiskAgent.

Warning

※ 설치 및 제거 시 권고사항
MVL은 레거시 커널 필터 드라이버입니다. 따라서 MCCS에서 제공하는 install.bat / uninstall.bat로 설치/제거한 후에 시스템 재부팅해야 합니다.

공유 디스크 구성 절차 예

MCCS를 설치한 후에 MVL을 사용하여 공유 디스크를 구성하기 위해서는 아래의 순서대로 설치할 것을 권합니다.
2개의 노드로 구성된 클러스터에서 S:를 공유 디스크로 가정합니다.

  1. 양쪽 노드(A와 B라고 가정)가 모두 Power off된 상태에서 A 노드를 부팅시킵니다.
  2. A 노드에서 MCCS를 설치합니다.
  3. 'vollock /a s:'로 S드라이브를 MVL에 등록시킵니다.
  4. 'vollock /l s:'로 S드라이브를 잠금 상태로 합니다.
  5. 볼륨 S:가 접근이 가능한지를 살펴봅니다.
  6. S볼륨이 잠긴 것이 확인되면 B 노드를 부팅시킵니다.
  7. B 노드에서도 2,3,4번과 같은 방법으로 실행합니다.
  8. 두 노드에서 볼륨이 모두 잠금 상태가 되었으면 디스크 리소스를 생성합니다.

이렇게 한 쪽 노드에서만 디스크 접근이 되는 상태를 계속 유지하면서 잠금을 걸어야 디스크 손상을 방지할 수 있습니다.

MVL Command 명령

...

Example of Shared Disk Configuration

Following steps are recommended to manage shared disk resource through MVL after installing MCCS.

Assume that a driver letter S: is a shared disk resource in a cluster. 

  1. While both nodes (assumed as node A and node B) are in the power off state, bring power online on node A first.
  2. Install MCCS on node A.
  3. Add driver S: to MVL though ‘vollock /a s:’ command.
  4. Lock driver S: through ‘vollock /l s:’ command.
  5. Check if the driver S: is accessible. The volume access should be denied
  6. Power online node B when it is checked driver S: is locked to node A
  7. Apply the same process on node B.
  8. If both nodes are locked, add a new disk resource. 

Maintain the shared disk state to allow one disk access from one node and keep them locked to prevent the damage of data.

MVL Command

Volume control on MVL can be done through Vollock.exe command in '%MCCS_HOME%\bin\DiskAgent'.

Code Block
title형식
vollock [/옵션option] [드라이브명Drive letter:]

 

리소스 타입에서 추가 할 경우

...

옵션Option

설명Description

L

디스크를 잠급니다Locks the disk which is added MVL lock target list.

U

디스크 잠금을 해제합니다Unlocks the disk which is added MVL lock target list.

A

윈도우 레지스트리의 MVL 잠금 대상 볼륨 목록에 등록하여 시스템 재시작 후에도 잠금 상태를 유지하도록 합니다.
또한 MVL 드라이버에 등록하여 잠금/잠금 해제 될 수 있도록 합니다.

D

윈도우 레지스트리의 MVL 잠금 대상 볼륨 목록에서 해당 드라이브를 삭제 시킵니다.

W

지정한 디스크가 쓸 수 있는 상태인지 알려줍니다.

M

디스크의 마운트/디스마운트 여부를 알려줍니다.

V설치 된 MVL 버전을 알려줍니다

status

Lock 상태 유무와 레지스트리 등록 여부를 테이블 형태로 나타냅니다.

clear

모든 볼륨을 잠금 해제 합니다.

delete

지정된 디스크를 등록 해제 합니다.

'status'는 아래와 같이 Device Name과 Lock 유무, Registry 등록 정보를 나타냅니다.

Image Removed

[그림] 볼륨 lock 정보

체크리스트

MVL 드라이버가 설치되어 있는지는 cmd 창에서 fltmc 명령어를 사용하여 Vollock 드라이버가 목록에 있는지를 확인합니다.

Image Removed

[그림] 볼륨 lock 드라이버 정보

vollock.sys는 레거시 커널 필터 드라이버이므로 <Legacy> 형태로 등록이 됩니다.

 

 

추가

리소스를 추가하는 두 가지 방법이 있습니다. 
하나는 그룹 이름에서 리소스를 추가하는 것이고, 또 하나는 리소스타입에서 리소스를 추가하는 것입니다

그룹에서 추가 할 경우

...

리소스 위자드에서 공유 디스크를 선택하고 Next 버튼을 클릭합니다.
Image Removed
[그림] 리소스 위자드 선택화면

...

나머지 과정은 아래의 '리소스 타입에서 추가 할 경우'와 같습니다.

By adding MVL lock target list of Window registry can remain the lock state even after reboot. In addition, it can lock/unlock by adding MVL driver.

D

Remove the drive letter from MVL lock target list of Window registry.

W

It shows the state of the specific disk.

M

It shows whether disk is in mount/unmount state.

VShow MVL version

status

It shows the state of lock and adding state in table form.

clear

Unlock all the volumes.

delete

Delete specific disk.


'Status' shows the Device Name and Lock information and Registry information as shown below.

Image Added

[Figure] Volume lock Information

Check list
 

To check if MVL driver is installed, it can be done through checking the list of Vollock driver is listed up by using 'fltmc' command. 

Image Added

[Figure] Volume lock Driver Information

vollock.sys is registered through <Legacy> format since it is a legacy kernel filter driver.

Adding

There are two way to add a resource which one is select this from a group name and another is select this from a resource type.

Adding in Group

  1. When add a resource from a group name, select a group -> right click -> 'Add Resource'. Or select Edit(E) from the main menu bar -> select 'Add Resource'. Or select 'Add Resource' icon from the tool bar.
     Image Added
    [Figure] Adding Resource in a group

  2. Select 'SharedDisk' from Resource Type lists and click 'Next' button. When add a resource from the shared disk resource type name, this step will be skipped.
    Image Added
    [Figure] Select Resource Wizard View


  3. Next steps are same as adding in resource type.

Adding in Resource Type

  1. ResourceType - Right Click - Click Add Resource
     Image Added
    [Figure] Adding Resource in a resource type

  2. 공유 디스크로 사용할 디스크 목록을 가져오는 작업을 진행 중입니다.
     
    [그림] 공유 디스크로 사용될 디스크 목록 가져오는 화면

    공유 디스크 리소스에 사용될 드라이브 문자를 선택하면 권장 이름을 제공해 줍니다.

    Warning공유 디스크 리소스로 사용할 디스크는 동일한 드라이브 문자를 가져야 합니다.
    동일한 드라이브 문자를 가진 로컬 디스크의 드라이브 문자도 목록에 보여지므로 정확한 드라이브 문자를 선택하시기 바랍니다

  3. Enter resource name and select driver letter.
    If you skip enter resource name, this will be given 'Shared_value' which value is selected driver letter.

    Warning

    When you select a drive letter, all of driver letters of the node owns even without the volume of external shared storage is displayed. Please note that do not select the driver letter of none shared storage.


    [그림] 공유 디스크 리소스 드라이브 문자 선택 화면 

    추가 설정을 클릭하여 디스크 검사 명령을 사용할 수 있습니다. 사용 안 함이 기본적으로 선택되어 있습니다. 
    옵션을 사용한다면 사용을 선택하고 체크 디스크 옵션을 입력합니다.(기본값은 /F입니다.) 
    설정사항 입력이 끝나면 OK 버튼을 클릭합니다. 

    Figure] Selecting driver letter View


  4. As Additional Settings, check disk option is available. 
    To use this option, select Use and enter check disk argument. (Default is /F)
    Click 'OK' button.
     
    [그림] 공유 디스크 추가 설정 위자드 화면 
    Finish 버튼을 클릭하게 되면 공유디스크 리소스가 추가됩니다. Figure] Defining check disk option

  5. Click 'Finish'button and shared disk resource is added.

    [그림] 공유 디스크 리소스 추가 된 화면Figure] Adding shared disk resource is completed

     

...


Deleting

리소스타입 - 마우스 우 클릭 - 리소스 삭제 선택합니다.

...

Select resource type - right click - delete resource

  1. Select delete resource and resource will be deleted. 
     
    [그림] 공유 디스크 리소스 삭제 메뉴Figure] Delete shared disk resource view

 

 

...

State

다음 테이블은 상태와 사용자 명령에 의해 발생되는 MCCS 리소스의 상태 이동에 대해 설명합니다.
명령은 사용자에 의해 발생되는 것을 전제로 합니다.

...

상태Agent 가능 명령설명비고

온라인

볼륨에 대한 잠금이 해제되어 쓰기가 가능한 상태입니다.

오프라인

MVL을 사용하여 디스크에 읽기 및 쓰기를 불가능하게 합니다.

 
모니터링

MVL과 임시 텍스트 파일을 생성하여 볼륨에 쓰기 접근이 가능한지를 감시합니다.

 

오프라인

볼륨이 잠긴 상태로 읽기/쓰기가 모두 불가능합니다.

온라인MVL을 사용하여 디스크에 읽기 및 쓰기를 가능하게 합니다. 
모니터링

MVL과 임시 텍스트 파일을 생성하여 볼륨에 쓰기 접근이 가능한지를 감시합니다.

 

장애

볼륨이 온라인 상태지만 외부적인 요인으로 문제가 발생하여 쓰기가 불가능한 상태입니다.
외부 명령 또는 다른 드라이버에 의해 볼륨에 대한 접근이 차단되거나
FC 연결 또는 SAN 스위치 등 스토리지와의 물리적인 연결 문제로 장애가 발생할 수 있습니다.

온라인MVL을 사용하여 디스크에 읽기 및 쓰기를 가능하게 합니다. 
오프라인MVL을 사용하여 디스크에 일기 및 쓰기를 불가능하게 합니다. 

 

 

...

Attribute

...

[그림] 공유 디스크 속성 화면

...

설명

...

FigureAttribute of Shared Disk


Attribute

Description

TypeDefaultEditNote

Chkdsk

True로 설정되면 볼륨 마운트 시에 디스크 검사 옵션(ChkdskArg)에 따라 디스크를 검사하고 오류를 수정합니다.
체크디스크 실행 전에는 미러의 복제 상태가 자동으로 중지가 되고, 완료 후에 자동으로 재동기화 됩니다.

BOOLEANfalseO 

ChkdskArg

체크디스크(Chkdsk)가 true 일 때 체크 디스크 명령 옵션을 지정합니다.

STRING/FO 

DriveLetter

볼륨의 드라이버 문자를 지정합니다.

STRING O 

속성 값은 해당 리소스를 등록할 때에 입력된 값이며, '리소스 고유 속성'에서 값을 변경하거나 확인할 수 있습니다Attribute value of ArgList arguments are the values that are added resources and the value can be changed or viewed through Specified Attribute’ list on the detailed information panel.