[AIX 운영 체제와 장치 관리 48] WLM API·예제·명령과 IDE 장치 설치 — 응용 프로그램 태그, 클래스 관리 API, 할당 규칙·공유·한계 예, 마스터·슬레이브 설정과 IDE 장치 추가

핵심 정리

  • WLM API(/usr/lib/libwlm.a)로 응용 프로그램은 클래스 만들기·바꾸기·지우기, 수동 할당, 통계 조회를 하고, wlm_set_tag로 응용 프로그램 태그를 설정해 같은 응용 프로그램의 인스턴스를 서로 다른 클래스로 나눌 수 있습니다.
  • 구성 이름을 빈 문자열로 주면 API 변경이 메모리 안 클래스에만 적용되며, API로 만든 클래스는 WLM을 갱신해도 저절로 지워지지 않습니다. API 권한은 해당 명령과 같습니다.
  • 공유 예: A 3, C 1, D 1이면 60·20·20%이고 A에 소프트 최대 50%를 주면 A의 공유는 활성 공유에서 빠집니다. 메모리 예: 상위 등급 프로세스가 실행 중이면 하위 등급의 최소 한계는 무시됩니다.
  • 할당 규칙을 관리하는 명령행 인터페이스는 없어 SMIT, Web-based System Manager, 텍스트 편집기를 씁니다.
  • IDE 컨트롤러 하나에는 마스터와 슬레이브 두 장치까지 붙고, ATA(디스크)와 ATAPI(CD-ROM, 테이프)를 섞으면 ATA를 마스터, ATAPI를 슬레이브로 둡니다. 슬레이브만 단독으로, ATAPI 마스터에 ATA 슬레이브는 붙일 수 없습니다.
항목 내용
버전 AIX 6.1 (IDE 절의 작업 순서 안내가 빠짐)
원문 Operating system and device management — 5.3판 218223쪽 등, 6.1판 505514쪽
관련 명령어 mkclass, chclass, rmclass, wlmcntrl, wlmcheck, wlmstat, wlmassign, ps, svmon, topas, lscfg -l ide*, lsdev -C -s ide -H, shutdown -F, smit lsdidea, smit dev
WLM API /usr/lib/libwlm.a, wlm_set_tag, wlm_read_classes, wlm_create_class, wlm_change_class, wlm_delete_class, wlm_set, wlm_load, wlm_assign, wlm_get_bio_stats, wlm_check, wlm_classify

응용 프로그램은 /usr/lib/libwlm.a 라이브러리의 루틴 모음인 WLM API로 WLM 관리자가 WLM 명령행 인터페이스로 할 수 있는 모든 작업을 할 수 있습니다.

다음과 같은 작업입니다.

  • 클래스 만들기, 수정, 지우기
  • 클래스 속성이나 자원 공유와 한계 바꾸기
  • 클래스 제거
  • 프로세스를 클래스에 수동으로 할당
  • WLM 통계 가져오기

API로 응용 프로그램은 태그라는 응용 프로그램 정의 분류 속성을 설정할 수 있습니다. 시스템 관리자가 (응용 프로그램 사용자 문서로) 준 값 집합으로 이 태그를 설정하면 같은 응용 프로그램의 여러 인스턴스를 구분할 수 있습니다. 그래서 서로 다른 클래스를 서로 다른 자원 권리로 분류할 수 있습니다.

또 wlm_set_tag 루틴으로 응용 프로그램은 응용 프로그램 태그를 설정하고 이 태그를 fork나 exec 때 자식 프로세스가 물려받을지 지정할 수 있습니다. 스레드에도 wlm_set_thread 태그로 응용 프로그램 태그를 줄 수 있습니다. 스레드의 응용 프로그램 태그는 fork, exec, pthread_create 서브루틴을 거쳐 상속될 수 있습니다. 라이브러리는 멀티스레드 32비트나 64비트 응용 프로그램을 지원합니다.

응용 프로그램 태그

응용 프로그램 태그는 문자열이며 (rules 파일을 써서) 프로세스나 스레드를 자동 분류하는 분류 기준 가운데 하나로 쓰입니다. 이 태그는 사용자, 그룹, 응용 프로그램, 형식 같은 시스템 정의 기준에 더해 응용 프로그램이 정의하는 분류 기준을 제공합니다.

응용 프로그램 프로세스나 스레드가 태그를 설정하면 현재 활성 WLM 구성에 적용 중인 수퍼클래스와 서브클래스 규칙으로 곧바로 다시 분류됩니다. 그러면 WLM은 새 태그를 포함한 모든 프로세스 속성으로 할당 규칙을 살펴 맞는 것을 찾습니다.

효과가 있으려면 이 태그가 할당 규칙 하나 이상에 나와야 합니다. 각 응용 프로그램의 여러 태그 형식과 사용법은 응용 프로그램 관리 문서에 분명히 적고 WLM 관리자에게 잘 알려야, 관리자가 할당 규칙에서 여러 태그 값으로 같은 응용 프로그램의 서로 다른 인스턴스를 구분할 수 있습니다.

사용자마다 응용 프로그램 프로세스를 분류하는 데 쓰고 싶은 특성 집합이 다를 수 있으므로, 응용 프로그램은 태그를 만드는 데 쓸 수 있는 구성이나 실행 시 속성 집합을 제공하는 것이 좋습니다. 응용 프로그램 관리자는 이 태그 형식을 응용 프로그램에 지정할 수 있습니다. 태그에 쓸 수 있는 속성과 WLM 태그 형식을 지정하는 구문은 응용 프로그램에 따라 다르며 응용 프로그램 제공자가 책임집니다.

예를 들어 데이터베이스 서버 인스턴스는 자기가 어느 데이터베이스(db_name)에서 일하는지, 사용자가 어느 TCP 포트(port_num)로 연결됐는지 알 수 있습니다. 관리자는 다음 가운데 어느 우선순위든 가질 수 있습니다.

  • 서로 다른 데이터베이스에 접근하는 프로세스마다 다른 클래스를 만들어 클래스마다 다른 자원 권리를 줍니다.
  • 서로 다른 출처의 원격 요청을 처리하는 프로세스를 나누고 포트 번호를 분류 속성으로 씁니다.
  • 데이터베이스마다 수퍼클래스를 하나 만들고 각 수퍼클래스에 포트 번호마다 서브클래스를 만듭니다.

이런 여러 요구를 맞추는 한 방법은 태그의 내용과 형식을 지정하는 것입니다. 이 예에서는 WLM_TAG=$db_name이나 WLM_TAG=$db_name_$port_num 같은 구성 파일이나 실행 시 매개변수로 태그를 응용 프로그램에 넘길 수 있다고 가정합니다.

태그를 설정할 때 응용 프로그램은 자식이 이 태그를 물려받을지 지정해, 응용 프로그램의 특정 인스턴스가 만든 모든 프로세스를 같은 클래스로 분류할 수 있습니다. 태그 상속 설정은 응용 프로그램 태그를 가장 흔히 쓰는 방법입니다.

다음은 응용 프로그램 태그를 쓰는 예입니다. 이 예에서 데이터베이스의 태그는 데이터베이스 이름과 같습니다. 그러면 서로 다른 두 데이터베이스에서 일하는 서버 인스턴스 둘은 서로 다른 태그 둘, 예를 들어 db1과 db2를 설정합니다.

시스템 관리자는 서로 다른 클래스 dbserv1과 dbserv2를 만들고 태그로 두 데이터베이스 서버(와 태그 상속을 쓰면 그 모든 자식)를 이 클래스로 분류할 수 있습니다. 그러면 특정 업무 목표에 따라 클래스마다 다른 자원 권리를 줄 수 있습니다.

해당 할당 규칙은 다음과 비슷할 것입니다.

text
* class   resvd  user  group     application     type  tag
*
dbserv1     -    -     dbadm     /usr/sbin/dbserv  -   db1
dbserv2     -    -     dbadm     /usr/sbin/dbserv  -   db2

응용 프로그래밍 인터페이스 종류

다음은 WLM(Workload Manager) 응용 프로그래밍 인터페이스 종류입니다.

클래스 관리 API

WLM API로 응용 프로그램은 다음을 할 수 있습니다.

  • 주어진 WLM 구성의 기존 클래스 이름과 특성을 조회합니다(wlm_read_classes).
  • 주어진 WLM 구성에 새 클래스를 만들고, 클래스의 여러 속성(등급, 상속 등) 값과 WLM이 관리하는 CPU, 물리 메모리, 블록 I/O 같은 자원의 공유와 한계를 정의합니다(wlm_create_class).
  • 주어진 WLM 구성의 기존 클래스 특성을 클래스 속성과 자원 공유·한계를 포함해 바꿉니다(wlm_change_class).
  • 주어진 구성의 기존 클래스를 지웁니다(wlm_delete_class).

변경은 지정한 WLM 구성의 속성 파일에만 적용됩니다. 선택적으로 구성 이름으로 빈 문자열을 지정하면 메모리 안 클래스에만 변경을 적용해 활성 구성 상태를 곧바로 갱신할 수 있습니다.

API 호출은 호출자에게 명령행이나 SMIT, Web-based System Manager 인터페이스에 필요한 것과 같은 수준의 특권을 요구합니다.

  • 어떤 사용자든 클래스 이름과 특성을 읽을 수 있습니다.
  • root 사용자만 수퍼클래스를 만들거나 수정하거나 지울 수 있습니다.
  • root 사용자나 지정된 수퍼클래스 관리자(수퍼클래스 속성 adminuser나 admingroup)만 주어진 수퍼클래스의 서브클래스를 만들거나 수정하거나 지울 수 있습니다.

WLM 관리자가 명령행과 관리 도구로 WLM을 관리하고 응용 프로그램도 API로 관리하는 경우에는 주의해야 합니다. 두 인터페이스는 수퍼클래스와 서브클래스 이름 공간, 수퍼클래스와 서브클래스 총수를 함께 씁니다.

또 API가 메모리 안 WLM 데이터를 직접 고치면(예: 새 클래스 만들기) WLM 관리자는 자기가 만들지 않은 클래스가 wlmstat 같은 명령 출력에 나타나기 전까지 이를 알지 못합니다. 시스템 관리자가 WLM을 갱신할 때 이 API를 쓰는 응용 프로그램이 혼란스러워지는 충돌을 피하려고, API로 만들었지만 WLM 속성 파일에 정의되지 않은 클래스는 메모리 안 데이터에서 자동으로 지워지지 않습니다. 이 클래스는 wlm_delete_class 루틴이나 (시스템 관리자가 직접 또는 SMIT나 Web-based System Manager로 부르는) rmclass 명령으로 명시적으로 지울 때까지 적용됩니다.

WLM API로 응용 프로그램은 다음도 할 수 있습니다.

  • wlm_set 함수로 WLM 동작 모드를 조회하거나 바꿉니다.
  • WLM의 현재 상태를 조회합니다.
  • WLM을 멈춥니다.
  • 능동 모드와 수동 모드를 오갑니다.
  • rset 바인딩을 켜고 끕니다.
  • wlm_load 루틴으로 현재 구성이나 다른 구성으로 WLM을 시작하거나 갱신합니다.
  • wlm_assign 루틴으로 프로세스나 프로세스 그룹을 클래스에 할당합니다.

API는 해당 wlmcntrl, wlmassign 명령과 같은 수준의 특권을 요구합니다.

  • 어떤 사용자든 WLM 상태를 조회할 수 있습니다.
  • root 사용자만 WLM 동작 모드를 바꿀 수 있습니다.
  • root 사용자만 구성 전체를 갱신하거나 새로 고칠 수 있습니다.
  • root나 권한 있는 수퍼클래스 관리자(adminuser나 admingroup)는 주어진 수퍼클래스의 서브클래스에 대해 WLM을 갱신할 수 있습니다.
  • root, 권한 있는 사용자(authuser나 authgroup으로 지정), 권한 있는 수퍼클래스 관리자(adminuser나 admingroup)는 프로세스를 수퍼클래스나 서브클래스에 할당할 수 있습니다.

WLM 통계 API

WLM API 루틴과 wlm_get_bio_stats는 wlmstat 명령이 표시하는 WLM 통계에 응용 프로그램이 접근하게 합니다.

WLM 분류 API

wlm_check 루틴으로 사용자는 주어진 WLM 구성의 클래스 정의와 할당 규칙을 확인할 수 있습니다. API 루틴 wlm_classify로 응용 프로그램은 지정한 속성 집합을 가진 프로세스가 어느 클래스로 분류될지 알 수 있습니다.

관련 정보

  • wlmassign 명령

이진 호환성

나중에 데이터 구조가 바뀌어도 이진 호환성을 제공하도록 각 API 호출에는 버전 번호가 매개변수로 전달됩니다.

그래서 라이브러리는 응용 프로그램이 어느 버전의 데이터 구조로 빌드됐는지 알 수 있습니다.

영어 원문

Workload Manager API

Applications can use the WLM APIs, a set of routines in the /usr/lib/libwlm.a library, to perform all the tasks that a WLM administrator can perform using the WLM command-line interface.

These include:

  • Create, modify, or delete classes

  • Change class attributes or resource shares and limits

  • Removing classes

  • Manually assign processes to classes

  • Retrieving WLM statistics

The API allows applications to set an application-defined classification attribute called a tag. Setting this tag using a set of values provided by the system administrator (through the application user documentation) allows discrimination between several instances of the same application. The different classes can therefore be classified with different resource entitlements.

In addition, the wlm_set_tag routine allows an application to set up an application tag and specify whether this tag should be inherited by child processes at fork or exec. Threads can also be assigned application tags with the wlm_set_thread tag. A thread's application tag can be inherited across the fork, exec or pthread_create subroutines. The library provides support for multi-threaded 32-bit or 64-bit applications.

Application tag

The application tag is a string of characters and is used as one of the classification criteria for the automatic classification of processes or threads (using the rules file). This tag basically provides an application-defined classification criteria in addition to the system-defined criteria such as user, group, application and type.

When an application process or thread sets its tag, it is immediately reclassified using the superclass and subclass rules in effect for the currently active WLM configuration. WLM then reviews the assignment rules looking for a match, using all the process attributes, including the new tag.

To be effective, this tag must appear in one or more of the assignment rules. The format and the use of the various tags by each application must be clearly specified in the application's administration documentation and well-known to the WLM administrators so that they can use the various values of the tags in their assignment rules to distinguish between different instances of the same application.

Because different users might have different requirements regarding what set of characteristics of the application processes they want to use to classify those processes, it is recommended that the application provide a set of configuration or run time attributes that can be used to build the tag. The application

administrator can specify the format of this tag to the application. The attributes that can be used for the tag and the syntax to specify the format of the WLM tag are application-dependent and are the responsibility of the application provider.

For example, an instance of a database server is able to determine which database it is working on (db_name) and through which TCP port a given user is connected (port_num). Administrators might have any of the following priorities:

  • To create different classes for processes accessing different databases to give each class different resource entitlement

  • To separate the processes serving remote requests from different origins and to use the port number as a classification attribute • To create one superclass for each database and subclass per port number in each superclass.

One way to accommodate these different needs is to specify the content and format of the tag. In this example, assume that the tag can be passed to the application in a configuration file or run time parameter such as WLM_TAG=$db_name or WLM_TAG=$db_name_$port_num.

When setting its tag, an application can specify whether this tag is inherited by its children so that all the processes created by a specific instance of an application can be classified in the same class. Setting the tag inheritance is how the application tag is most commonly used.

The following is an example of how application tags could be used. In this example, the tag of the database is the same as the database name. Then two instances of the server working on two different databases would set up two different tags, for instance db1 and db2.

A system administrator could create two different classes dbserv1 and dbserv2 and classify the two database servers (and all their children if tag inheritance is used) in these classes using the tags. It would then be possible to give each class different resource entitlement according to specific business goals.

The corresponding assignment rules could look similar to the following:

text
* class   resvd  user  group     application     type  tag
*
dbserv1     -    -     dbadm     /usr/sbin/dbserv  -   db1
dbserv2     -    -     dbadm     /usr/sbin/dbserv  -   db2

Application programming interface types

The following are the Workload Manager (WLM) application programming interface types.

Class Management APIs

The WLM API provides applications with the ability to:

  • Query the names and characteristics of the existing classes of a given WLM configuration (wlm_read_classes).

  • Create a new class for a given WLM configuration, define the values of the various attributes of the class (such as tier and inheritance) and the shares and limits for the resources managed by WLM, such as CPU, physical memory, and block I/O (wlm_create_class).

  • Change the characteristics of an existing class of a given WLM configuration, including the class attributes and resource shares and limits (wlm_change_class).

  • Delete an existing class of a given configuration (wlm_delete_class).

The changes will be applied only to the property files of the specified WLM configuration. Optionally, by specifying an empty string as the configuration name, it is possible to apply the change only to the in-core classes, resulting in an immediate update of the active configuration state.

The API calls require from the caller the same level of privilege that would be required for the command line or for the SMIT or Web-based System Manager interfaces, as follows:

  • Any user can read the class names and characteristics

  • Only the root user can create, modify, or delete superclasses

  • Only the root user or designated superclass administrators (superclass attributes adminuser or admingroup) can create, modify, or delete subclasses of a given superclass.

In cases where WLM administration is accomplished, both through the command line and administration tools by WLM administrators, and by application(s) through the API, some caution must be applied. Both interfaces share the same name space for the superclass and subclass names, and the total number of superclasses and subclasses.

In addition, when the API directly modifies the in-core WLM data (create new classes, for example), WLM administrators are not aware of this until classes that they did not create appear on the output of commands such as the wlmstat command. To avoid conflicts that would confuse the applications using this API when the system administrator updates WLM, the classes created through the API that are not defined in the WLM property files are not automatically removed from the in-core data. They remain in effect until explicitly removed through the wlm_delete_class routine or through an invocation of the rmclass command (invoked directly or through SMIT or Web-based System Manager by the system administrator).

The WLM API also provides applications with the ability to:

  • Query or change the mode of operation of WLM using the wlm_set function

  • Query the current status of WLM

  • Stop WLM

  • Toggle between active to passive mode

  • Turn the rset binding on and off

  • Start or update WLM with the current or an alternate configuration by using the wlm_load routine

  • Assign a process or a group of processes to a class by using the wlm_assign routine.

The API requires the same levels of privilege as the corresponding wlmcntrl and wlmassign commands:

  • Any user can query the state of WLM

  • Only the root user can change the mode of operation of WLM

  • Only the root user can update or refresh a whole configuration

  • root or an authorized superclass administrator (adminuser or admingroup) can update WLM for the subclasses of a given superclass

  • root, an authorized user (specified by authuser or authgroup), or an authorized superclass administrator (adminuser or admingroup) can assign processes to a superclass or subclass.

WLM Statistics API

The WLM API routines and wlm_get_bio_stats provide application access to the WLM statistics displayed by the wlmstat commands.

WLM Classification API

The wlm_check routine allows the user to verify the class definitions and the assignment rules for a given WLM configuration. The API routine wlm_classify allows an application to determine to which class a process with a specified set of attributes would be classified.

Related information

wlmassign command

Binary compatibility

To provide binary compatibility if there are future changes to the data structures, each API call is passed a version number as a parameter.

This allows the library to determine with which version of the data structures the application has been built.

워크로드 관리자 분류, 규칙, 한계의 예

프로세스를 분류하는 방법은 여러 가지이며 모두 동시에 동작합니다.

구성 유연성을 최대로 하려고 위에서 아래로 가장 엄격한 것부터 처음 맞는 것을 고르는 알고리즘을 씁니다. 특정 이름의 프로그램을 특별한 경우로 두고 사용자별로 프로세스를 묶거나, 특정 사용자를 특별한 경우로 두고 경로 이름별로 묶거나, 그 밖의 어떤 방식으로든 배치할 수 있습니다.

워크로드 관리자 할당 규칙의 예

이 예는 구성 Config의 최상위 rules 파일(/etc/wlm/Config/rules 파일)을 보여 줍니다.

text
* This file contains the rules used by WLM to
* assign a process to a superclass
*
* class resvd user    group   application     type  tag
db1      -      -       -    /usr/bin/oracle*      _DB1
db2      -      -       -    /usr/bin/oracle*      _DB2
devlt    -      -      dev        -            -    -
VPs      -   bob,ted    -         -            -    -
acctg    -      -     acct*       -            -    -
System   -    root      -         -            -    -
Default  -      -       -         -            -    -

다음은 /etc/wlm/Config/devlt/rules 파일에 있는 devlt 수퍼클래스용 rules 파일의 예입니다.

text
* This file contains the rules used by WLM to
* assign a process to a subclass of the
* superclass devlt
*
* class  resvd   user    group  application         type       tag
hackers   -    jim,liz     -       -                 -          -
hogs      -       -        -       -             64bit+plock    -
editors   -     !sue       -   /bin/vi,/bin/emacs    -          -
build     -       -        -   /bin/make,/bin/cc     -          -
Default   -       -        -       -                 -          -

참고: 별표(*)는 rules 파일에서 쓰는 주석 문자입니다.

다음은 이 rules 파일을 쓰는 예입니다. 다음 예는 설명한 수퍼클래스와 서브클래스에 상속 속성이 yes로 설정되지 않았다고 가정합니다. 상속이 켜져 있으면 새 프로세스는 부모 프로세스의 수퍼클래스나 서브클래스를 물려받습니다.

  • acct3 그룹의 사용자 joe가 /bin/vi를 실행하면 프로세스는 수퍼클래스 acctg에 들어갑니다.
  • dev 그룹의 사용자 sue가 /bin/emacs를 실행하면 프로세스는 (그룹 ID가 맞아) 수퍼클래스 devlt에 들어가지만, 그 사용자가 editors 서브클래스에서 제외돼 있으므로 그 서브클래스로는 분류되지 않습니다. 프로세스는 기본으로 devlt에 갑니다.
  • 사용자 ID oracle, 그룹 ID dbm인 데이터베이스 관리자가 DB1 데이터베이스를 서비스하려고 /usr/sbin/oracle을 시작하면 프로세스는 Default 수퍼클래스로 분류됩니다. 프로세스가 태그를 _DB1로 설정해야만 수퍼클래스 db1에 할당됩니다.

공유와 한계가 있는 워크로드 관리자 클래스의 예

이 예에서는 클래스 A, B, C, D의 공유가 각각 3, 2, 1, 1이라고 가정합니다.

클래스 A, C, D가 활성이면 계산된 목표는 다음과 같습니다.

  • target(A) = 3/5 = 60%
  • target(C) = 1/5 = 20%
  • target(D) = 1/5 = 20%

시험 중 클래스 A의 응용 프로그램이 자원의 50%를 쓰게 해도 제대로 동작한다는 것을 알았다면, 나머지 50%를 다른 클래스가 쓰게 하는 것이 바람직할 수 있습니다. 클래스 A에 이 자원의 소프트 최대 50%를 주면 됩니다. 현재 계산된 목표 60%가 이 한계를 넘으므로 소프트 최대 값으로 낮춰집니다. 이렇게 되면 클래스 A의 목표와 실제 소비 가운데 낮은 쪽을 쓸 수 있는 자원량에서 뺍니다. 이제 이 클래스의 목표는 (공유가 아니라) 한계로 제약되므로 클래스의 공유도 활성 공유 수에서 뺍니다. 클래스 A의 현재 소비가 48%라고 하면 목표는 이제 다음과 같습니다.

  • target(A) = 3/5 = 60%, softmax = 50, 따라서 50%
  • target(C) = 1/2 × (100 - 48) = 26%
  • target(D) = 1/2 × (100 - 48) = 26%

얼마 뒤 모든 클래스가 활성이 되면 목표는 다시 자동으로 조정됩니다.

  • target(A) = 3/7 = 42%
  • target(B) = 2/7 = 28%
  • target(C) = 1/7 = 14%
  • target(D) = 1/7 = 14%

CPU 한계가 있는 워크로드 관리자 클래스의 예

이 예는 각 클래스가 받은 CPU를 모두 쓸 수 있다고 가정하고 CPU 할당을 살펴봅니다.

두 클래스 A와 B가 같은 등급에 있습니다. A의 CPU 한계는 [30% - 100%]입니다. B의 CPU 한계는 [20% - 100%]입니다. 두 클래스가 실행 중이고 CPU를 충분히 쓰고 있으면 WLM은 먼저 둘 다 매초 (몇 초에 걸친 평균으로) 최소 비율을 얻게 합니다. 그런 다음 남은 CPU 주기를 CPU 목표 공유 값에 따라 나눕니다.

A와 B의 CPU 목표 공유가 각각 60%와 40%이면 A와 B의 CPU 사용률은 각각 60%와 40%로 안정됩니다.

세 번째 클래스 C를 더합니다. 이 클래스는 CPU 집약 작업 묶음이며 쓸 수 있는 CPU의 절반쯤(또는 그 이상)으로 실행돼야 합니다. 클래스 C의 한계는 [20% - 100%]이고 CPU 목표 공유는 100%입니다. C가 A, B와 같은 등급에 있으면 C가 시작할 때 A와 B의 CPU 할당이 가파르게 줄고 세 클래스는 각각 30%, 20%, 50%로 안정됩니다. 이 경우 A와 B의 목표는 최소이기도 합니다.

시스템 관리자는 다른 작업, 어쩌면 우선순위가 더 높은 작업도 실행 중일 때 배치 작업이 CPU의 50%를 쓰기를 원하지 않을 수 있습니다. 앞의 예 같은 상황에서는 C를 더 낮은 우선순위 등급에 둡니다. 그러면 C는 A와 B가 필요한 만큼 받고 남은 CPU를 받습니다. 위 예에서는 A와 B가 각각 CPU를 100% 흡수할 수 있으므로 C는 CPU 시간을 받지 못합니다. 그러나 대부분의 상황에서 높은 우선순위 등급의 A와 B는 대화형이나 트랜잭션 중심 작업으로 이루어져 늘 CPU를 다 쓰지는 않습니다. 그러면 C는 CPU 몫을 일부 받으며, 같은 등급이나 더 낮은 등급의 다른 클래스와 그 몫을 다툽니다.

메모리 한계가 있는 워크로드 관리자 클래스의 예

이 예는 메모리 목표가 서로 다른 프로세스 그룹에 대한 메모리 할당을 살펴봅니다.

세 프로세스 그룹이 실행돼야 합니다. 쓸 때마다 실행돼야 하는 대화형 프로세스 그룹(PEOPLE), 늘 백그라운드에서 실행되는 배치 작업(BATCH1), 매일 밤 실행되는 더 중요한 두 번째 배치 작업(BATCH0)입니다.

PEOPLE은 메모리 최소 20%, 메모리 목표 공유 50, 클래스 등급 값 1입니다. 20% 최소 한계는 사용자가 키보드를 건드릴 때 이 클래스의 데스크톱 응용 프로그램이 꽤 빨리 재개되게 합니다.

BATCH1은 메모리 최소 50%, 메모리 목표 공유 50, 등급 값 3입니다.

BATCH0은 메모리 최소 80%, 메모리 목표 공유 50, 등급 값 2입니다.

클래스 PEOPLE과 BATCH1의 메모리 최소 한계 합은 70입니다. 정상 운영 중(BATCH0이 실행 중이 아닐 때)에는 두 클래스 모두 예약 메모리를 모두 얻을 수 있습니다. 둘은 서로 다른 등급에 있지만 기계의 나머지 메모리를 대략 반씩 나눠 씁니다. 자정에 BATCH0이 시작되면 메모리 최소 합은 150이 됩니다. WLM은 상위 등급의 프로세스가 끝날 때까지 가장 낮은 등급의 최소 요구를 무시합니다. BATCH0은 BATCH1의 50% 예약분에서 메모리를 가져가지만 PEOPLE의 20% 예약분에서는 가져가지 않습니다. BATCH0이 끝나면 등급 3 프로세스의 메모리 예약이 다시 지켜지고 시스템은 정상 메모리 균형으로 돌아갑니다.

영어 원문

Examples of Workload Manager classification, rules, and limits

Several methods exist for classifying a process, and all operate concurrently.

A top-down strictest first-matching algorithm is used to provide for maximum configuration flexibility. You can organize process groupings by user with special cases for programs with certain names, by pathname with special cases for certain users, or any other arrangement.

Example of Workload Manager assignment rules

This example shows a top-level rules file for the configuration Config (/etc/wlm/Config/rules file).

text
* This file contains the rules used by WLM to
* assign a process to a superclass
*
* class resvd user    group   application     type  tag
db1      -      -       -    /usr/bin/oracle*      _DB1
db2      -      -       -    /usr/bin/oracle*      _DB2
devlt    -      -      dev        -            -    -
VPs      -   bob,ted    -         -            -    -
acctg    -      -     acct*       -            -    -
System   -    root      -         -            -    -
Default  -      -       -         -            -    -

The following is an example of the rules file for the devlt superclass in the /etc/wlm/Config/devlt/rules file:

text
* This file contains the rules used by WLM to
* assign a process to a subclass of the
* superclass devlt
*
* class  resvd   user    group  application         type       tag
hackers   -    jim,liz     -       -                 -          -
hogs      -       -        -       -             64bit+plock    -
editors   -     !sue       -   /bin/vi,/bin/emacs    -          -
build     -       -        -   /bin/make,/bin/cc     -          -
Default   -       -        -       -                 -          -

Note: The asterisk (*) is the comment character used in the rules file.

The following are examples using this rules file. The following examples assume that the superclasses and subclasses described do not have the inheritance attribute set to yes. If inheritance were enabled, new processes would inherit the superclass or subclass from their parent processes.

  • If user joe from group acct3 executes /bin/vi, then the process will be put in superclass acctg.

  • If user sue from group dev executes /bin/emacs, then the process will be put in the superclass devlt (group ID match), but will not be classified into the editors subclass, because the user is excluded from that class. The process will go to devlt by default.

  • When a database administrator with a user ID of oracle and a group ID of dbm starts /usr/sbin/oracle to serve the DB1 database, the process will be classified in the Default superclass. Only when the process sets its tag to _DB1 will it be assigned to the superclass db1.

Example of Workload Manager classes with shares and limits

For this example, assume classes A, B, C, and D have shares of 3, 2, 1, and 1 respectively.

If classes A, C, and D are active, the calculated targets would be:

target(A) = 3/5 = 60% target(C) = 1/5 = 20% target(D) = 1/5 = 20%

If during testing it was found that the applications in class A perform adequately when allowed to use 50% of the resource, it might be desirable to make the other 50% of the resource available to the other classes. This can be accomplished by giving class A a soft maximum of 50% for this resource. Since the current calculated target of 60% is over this limit, it will be adjusted down to the soft maximum value. When this happens, the target or actual consumption (whichever is lower) of class A is subtracted from the amount of resource available. Because this class now has a target constrained by its limit (and not its shares), the shares for the class are also subtracted from the number of active shares. Assuming class A has a current consumption of 48%, the targets will now be:

target(A) = 3/5 = 60%, softmax = 50, = 50% target(C) = 1/2 * (100 - 48) = 26% target(D) = 1/2 * (100 - 48) = 26%

Some time later, all classes may become active, and the targets will again be automatically adjusted:

target(A) = 3/7 = 42% target(B) = 2/7 = 28% target(C) = 1/7 = 14% target(D) = 1/7 = 14%

Example of Workload Manager classes with CPU limits

This example examines CPU allocation, assuming that each class can consume all the CPU that it is given.

Two classes, A and B, are in the same tier. CPU limits for A are [30% - 100%]. CPU limits for B are [20% - 100%]. When both classes are running and are using sufficient CPU, WLM first makes sure that they both get their minimum percentages of each second (averaged over several seconds). Then WLM distributes the remaining CPU cycles according to any CPU target share values.

If the CPU target shares for A and B are 60% and 40% respectively, then the CPU utilization for A and B stabilize at 60% and 40% respectively.

A third class, C, is added. This class is a group of CPU-bound jobs and should run with about half (or more) of the available CPU. Class C has limits of [20% - 100%] and CPU target shares of 100%. If C is in the same tier as A and B, then when C is starting, A and B see their CPU allocation decrease steeply and the three classes stabilize at 30%, 20% and 50%, respectively. Their targets in this case are also the minimum for A and B.

A system administrator might not want batch jobs to consume 50% of the CPU when other jobs, possibly of higher priority, are also running. In a situation like the previous example, C is placed in a lower priority tier. C then receives whatever CPU remains after A and B receive their needs. In the above example, C receives no CPU time, because A and B are each capable of absorbing 100% of the CPU. In most situations, however, A and B, in a high-priority tier, are composed of interactive or transaction-oriented jobs, which do not use all of the CPU all of the time. C then receives some share of the CPU, for which it competes with other classes in the same or lower tiers.

Example of Workload Manager classes with memory limits

This example examines memory allocation to groups of processes with varying memory targets.

Three groups of processes must run: a group of interactive processes that need to run whenever they are used (PEOPLE), a batch job that always runs in the background (BATCH1), and a second, more important batch job, that runs every night (BATCH0).

PEOPLE has a specified memory minimum of 20%, a memory target of 50 shares, and a class tier value of 1. A 20% minimum limit ensures that the desktop applications in this class resume fairly quickly when users touch their keyboards.

BATCH1 has a memory minimum of 50%, a memory target of 50 shares, and a tier value of 3.

BATCH0 has a memory minimum of 80%, a memory target of 50 shares, and a tier value of 2.

Classes PEOPLE and BATCH1 have a total memory minimum limit of 70. Under normal operation (when BATCH0 is not running), both of these classes are allowed to get all of their reserved memory. They share the rest of the memory in the machine about half and half, even though they are in different tiers. At midnight when BATCH0 is started, the memory minimum total reaches 150. WLM ignores the minimum requirements for the lowest tiers until processes in the upper tiers exit. BATCH0 takes memory from the BATCH1 50% reserve, but not from the PEOPLE 20% reserve. After BATCH0 is done, memory reserves for tier 3 processes are honored again and the system returns to its normal memory balance.

워크로드 관리자 명령

WLM은 시스템 관리자가 여러 기능을 할 수 있는 명령을 제공합니다.

다음과 같습니다.

  • mkclass, chclass, rmclass 명령으로 수퍼클래스와 서브클래스를 만들고 수정하고 지웁니다. 이 명령은 classes, shares, limits 파일을 갱신합니다.
  • wlmcntrl 명령으로 WLM을 시작, 중지, 갱신합니다.
  • wlmcheck 명령으로 주어진 구성의 WLM 속성 파일을 확인하고, 주어진 속성 집합을 가진 프로세스가 어느 클래스(수퍼클래스와 서브클래스)에 할당되는지 알아냅니다.
  • wlmstat(ASCII) 명령으로 클래스별 자원 사용을 감시합니다. svmon과 topas 명령으로 시작하는 것 같은 대부분의 성능 도구에는 WLM 클래스를 고려하는 확장이 있어 새 명령행 옵션으로 클래스별, 등급별 통계를 제공합니다.
  • ps 명령의 플래그로 프로세스가 어느 클래스에 있는지와 그 응용 프로그램 태그를 표시할 수 있습니다. ps 명령으로 주어진 수퍼클래스나 서브클래스에 속한 모든 프로세스를 나열할 수도 있습니다.
  • 할당 규칙을 관리하는 명령행 인터페이스는 없습니다. SMIT나 Web-based System Manager 관리 도구, 또는 텍스트 편집기를 써야 합니다.
영어 원문

Workload Manager commands

WLM offers commands that allow system administrators to perform a variety of functions.

These include:

  • Create, modify, and delete superclasses and subclasses, using the mkclass, chclass, and rmclass commands. These commands update the file's classes, shares and limits.

  • Start, stop, and update WLM, using the wlmcntrl command.

  • Check the WLM property files for a given configuration and determine to which class (superclass and subclass) a process with a given set of attributes is assigned using the wlmcheck command.

  • Monitor the per-class resource utilization using the wlmstat (ASCII) command. Most of the performance tools, such as those started by the svmon and topas commands, have extensions to take into account the WLM classes and provide per-class and per-tier statistics using new command-line options.

  • Flags in the ps command allow the user to display which class a process and its application tag is in. The ps command also allows the user to list all the processes belonging to a given superclass or subclass.

  • There is no command line interface to manage the assignment rules. You must use the SMIT or Web-based System Manager administration tools, or a text editor.

IDE 장치 설치

시스템에 IDE 장치를 설치할 수 있습니다. IDE 장치 설치 절차는 순서대로 해야 하는 여러 작업으로 나뉩니다.

IDE 장치 설치의 전제 조건은 다음과 같습니다.

  • 시스템 장치의 운영자 안내서와 설치할 장치의 설치 안내서가 있어야 합니다. 문서에는 IDE 장치 점퍼를 마스터나 슬레이브로 설정해 장치를 구성하는 방법이 나와 있어야 합니다.

  • 시스템의 IDE 어댑터에 쓰지 않은 IDE 장치 ID가 적어도 하나 있어야 합니다.

  • 제품 토폴로지 디스켓을 갱신하려면 시스템의 중요 기록과 함께 보관하는 Product Topology System 디스켓과 장치와 함께 제공되는 Product Topology Update 디스켓이 필요합니다.

  • 장치 인터페이스가 시스템 장치의 IDE 컨트롤러 인터페이스와 호환되는지 확인합니다.

  • IDE 장치는 ATA와 ATAPI 두 가지로 분류됩니다. ATA는 디스크 장치이고 ATAPI는 CD-ROM이나 테이프 장치입니다. IDE 컨트롤러마다 장치를 둘까지, 마스터 하나와 슬레이브 하나를 연결할 수 있습니다. 보통 IDE 어댑터에는 컨트롤러가 둘 있어 IDE 장치를 넷까지 붙일 수 있습니다. 알맞은 케이블로 컨트롤러 하나에 다음 장치 조합 가운데 어느 것이든 붙일 수 있습니다.

    • ATA 장치 1개를 마스터로
    • ATAPI 장치 1개를 마스터로
    • ATA 장치 2개를 마스터와 슬레이브로
    • ATA 장치 1개를 마스터로, ATAPI 장치 1개를 슬레이브로
    • ATAPI 장치 2개를 마스터와 슬레이브로

    다음은 붙일 수 없습니다.

    • ATA 장치 1개를 슬레이브로만
    • ATAPI 장치 1개를 슬레이브로만
    • ATAPI 장치 1개를 마스터로, ATA 장치 1개를 슬레이브로

다음 작업을 마쳐 IDE 장치를 설치합니다.

영어 원문

Installing an IDE device

You can install an IDE device on your system. The procedure to install an IDE device is divided into several tasks that must be performed in order.

The prerequisites for installing an IDE device are:

  • You must have access to the operator's guide for your system unit and the installation guide for the device to be installed. The documentation must identify how to set the IDE device jumper to configure the device to either the master or slave setting.

  • There must be at least one unused IDE device ID on an IDE adapter on the system.

  • If you are updating the product topology diskettes, you need the Product Topology System diskette which is kept with important records for the system, and the Product Topology Update diskette which is shipped with the device.

  • Verify that the interface of the device is compatible with the interface of the IDE controllers on the system unit.

  • There are two classifications for IDE devices, ATA and ATAPI. ATA are disk devices and ATAPI are CD-ROM or tape devices. Up to two devices are allowed to be connected to each IDE controller, one master and one slave. Typically an IDE adapter has two controllers, which allows up to four IDE devices to be attached. With appropriate cabling, you can attach any of the following device combinations to a single controller: – 1 ATA device as master – 1 ATAPI device as master – 2 ATA devices as master and slave – 1 ATA device as master and 1 ATAPI device as slave – 2 ATAPI devices as master and slave

You cannot attach the following: – 1 ATA device as slave only – 1 ATAPI device as slave only – 1 ATAPI device as master and 1 ATA device as slave

Complete the following tasks to install an IDE device.

IDE 컨트롤러 수와 위치 확인

시스템 장치에 붙은 IDE 컨트롤러 수와 위치를 알아낼 수 있습니다. IDE 어댑터는 어댑터 슬롯에 있거나 시스템 플래너에 내장돼 있을 수 있습니다. IDE 어댑터에는 IDE 컨트롤러(IDE 버스)가 둘 있다는 점을 기억합니다. 따라서 어댑터 슬롯이나 시스템 플래너 내장에서 IDE 컨트롤러 둘이 발견됩니다.

다음 두 방법 가운데 하나로 IDE 컨트롤러 수와 위치를 알 수 있습니다.

  • 소프트웨어 구성 명령을 씁니다. 이 방법은 시스템 장치에 운영 체제가 설치돼 있을 때만 쓸 수 있습니다.
  • 시스템 장치와 함께 제공되는 About Your Machine 문서를 씁니다. 이 방법은 새 시스템 장치의 초기 설정과 설치에만 유효합니다.

소프트웨어 구성 명령 사용

이 방법은 운영 체제가 이미 설치된 시스템에 적용합니다.

시스템의 IDE I/O 컨트롤러를 나열하려면 다음 명령을 입력합니다.

text
lscfg -l ide*

표시된 IDE 컨트롤러 목록을 살펴봅니다. lscfg -l ide 명령의 다음 표시 예는 IDE I/O 컨트롤러 둘을 보여 줍니다. 컨트롤러 ide0과 ide1은 시스템 플래너에 있습니다. 플래너 표시는 위치 값의 두 번째 자리 값 1입니다.

text
DEVICE    LOCATION      DESCRIPTION
ide0      01-00-00      ATA/IDE Controller Device
ide1      01-00-01      ATA/IDE Controller Device
2nd digit is     6th digit indicates the controller number.
the adapter
slot number

초기 설정

초기 설정 중 장치를 설치한다면 About Your Machine 문서로 시스템의 IDE I/O 컨트롤러를 알아냅니다.

참고: 시스템이 공장에서 출하된 뒤 컨트롤러를 더했다면 잘못된 결과가 나옵니다.

시스템 장치의 플래너 보드에 IDE 컨트롤러가 내장돼 있는지 확인합니다. 일부 시스템 장치에는 내장 IDE I/O 컨트롤러가 표준입니다. About Your Machine 문서에 슬롯 번호가 빈 내부 매체 IDE 장치가 나오면 시스템 장치에 내장 IDE 컨트롤러가 있는 것입니다.

영어 원문

Determining the number and location of IDE controllers

You can determine how many IDE controllers are attached to your system unit and where the IDE controllers are located. An IDE adapter may be in an adapter slot or built into the system planar. Remember that IDE adapters have two IDE controllers (IDE buses). Thus, two IDE controllers are found in an adapter slot or built into the system planar.

You can obtain the number and location of IDE controllers using either of the following two methods:

  • Using a software configuration command. This method is available only when the operating system has been installed on the system unit.

  • Using the About Your Machine document shipped with your system unit. This method is valid only for initial setup and installation of a new system unit.

Using a software configuration command

This method applies to a system that already has the operating system installed.

To list the IDE I/O controllers on the system, type the following commands:

text
lscfg -l ide*

Examine the list of IDE controllers that are displayed. The following sample display from the lscfg -l ide command shows two IDE I/O controllers. Controller ide0 and ide1 are located on the system planar. The planar indicator is the second digit in the location value with a value of 1.

text
DEVICE    LOCATION      DESCRIPTION
ide0      01-00-00      ATA/IDE Controller Device
ide1      01-00-01      ATA/IDE Controller Device
2nd digit is     6th digit indicates the controller number.
the adapter
slot number

Initial setup

Use the About Your Machine document to determine the IDE I/O controllers on the system if the device is being installed during initial setup.

Note: Incorrect results are produced if controllers have been added after the system was shipped from the factory.

Determine whether the system unit has an IDE controller built into the planar board. A built-in IDE I/O controller is standard on some system units. Your system unit has a built-in IDE controller if About Your Machine document shows an internal media IDE device with a blank slot number.

IDE 컨트롤러와 컨트롤러의 IDE 주소 고르기

IDE 컨트롤러와 컨트롤러의 IDE 주소를 고를 수 있습니다.

시스템 장치에 붙은 IDE 컨트롤러를 확인한 뒤 장치를 연결할 IDE I/O 컨트롤러를 고릅니다. 이 IDE I/O 컨트롤러에는 다른 장치에 아직 할당되지 않은 IDE 설정이 적어도 하나 있어야 합니다.

IDE 장치 설정을 마스터나 슬레이브 가운데 어느 쪽으로 점퍼해야 하는지 정합니다. 지금 컨트롤러에 붙은 장치가 없으면 IDE 장치 점퍼를 마스터로 설정해야 합니다(이 경우 장치 ID 설정이 필요 없는 장치도 있습니다). IDE 장치가 이미 붙어 있으면 장치 형식을 알아내야 합니다. 디스크는 ATA 장치입니다. CD-ROM과 테이프는 ATAPI 장치입니다. 같은 IDE 컨트롤러에 ATA와 ATAPI 장치를 모두 붙이면 ATA 장치를 마스터 ID로, ATAPI 장치를 슬레이브 ID로 설정해야 합니다.

IDE 컨트롤러에 이미 연결된 장치 정보를 보고 컨트롤러에 어떤 IDE 장치가 붙어 있는지 알아냅니다.

다른 장치에 아직 할당되지 않은 IDE I/O 컨트롤러와 컨트롤러의 IDE 주소를 고르는 방법은 두 가지입니다.

  • 운영 체제가 이미 시스템 장치에 설치돼 있으면 소프트웨어 구성 명령을 씁니다.
  • 새 시스템 장치의 초기 설정과 설치에는 About Your Machine 문서를 씁니다.

소프트웨어 구성 명령 사용

이 방법은 운영 체제가 이미 설치된 시스템에 적용합니다.

  1. 다음 명령을 입력해 지금 정의된 모든 IDE 장치를 나열합니다.
text
lsdev -C -s ide -H
  1. 각 IDE 컨트롤러에 이미 할당된 장치 목록을 살펴봅니다. 이 표시의 각 행은 IDE 장치의 논리 이름, 상태, 위치, 설명을 보여 줍니다. 각 장치의 위치는 장치가 연결된 컨트롤러의 위치로 시작합니다. 아래 예에서 주소 01-00-00인 IDE I/O 컨트롤러에는 IDE 장치 둘이 붙어 있습니다. 위치 01-00-01인 IDE I/O 컨트롤러에는 IDE 장치 하나가 붙어 있습니다.
text
name     status       location       description
hdisk0   Available    01-00-00-00    720 MB IDE Disk Drive
hdisk1   Available    01-00-00-01    540 MB IDE Disk Drive
cd0      Available    01-00-01-00    IDE CD-ROM Drive
                         IDE controller address (6th digit)
  1. IDE 장치가 둘 연결돼 있지 않은 컨트롤러를 고릅니다.
  2. 컨트롤러에 장치 하나가 이미 붙어 있으면 그 장치 형식을 알아냅니다. 설치할 장치 형식도 알아냅니다. 디스크 장치는 ATA 장치로, CD-ROM과 테이프 장치는 ATAPI 장치로 분류됩니다.
  3. IDE 컨트롤러에 연결할 장치 조합에 따라 새 장치의 IDE 점퍼 설정을 정합니다.
    • 새 장치가 컨트롤러에 연결되는 유일한 장치이면 장치 점퍼를 마스터 위치로 설정해야 합니다(이 경우 설정이 필요 없는 장치도 있습니다).
    • 두 장치가 같은 형식이면 새 장치 점퍼를 슬레이브 위치로 설정할 수 있습니다.
    • 장치가 섞여 있으면(ATA와 ATAPI) ATA 장치 점퍼를 마스터 위치로, ATAPI 장치 점퍼를 슬레이브 위치로 설정해야 합니다.
    • 장치가 섞여 있고 새 장치가 ATA 장치(디스크)이면 기존 ATAPI 장치의 점퍼를 슬레이브 위치로 바꾸고 새 ATA 장치 점퍼를 마스터로 설정해야 합니다.
    • 장치가 섞여 있고 새 장치가 ATAPI 장치(CD-ROM이나 테이프)이면 새 ATAPI 장치 점퍼를 슬레이브로 설정해야 하고, ATA 장치에 지금 점퍼 설정이 없으면 마스터로 설정해야 합니다.

초기 설정

초기 설정 중 장치를 설치한다면 About Your Machine 문서로 시스템의 IDE I/O 컨트롤러에 할당된 장치를 알아냅니다.

참고: 시스템이 공장에서 출하된 뒤 컨트롤러를 더했다면 잘못된 결과가 나옵니다.

  1. IDE 컨트롤러의 주소에 할당된 IDE 장치를 알아내려면 About Your Machine의 "Internal Media Devices"를 봅니다.
  2. IDE 장치가 둘 연결돼 있지 않은 컨트롤러를 고릅니다.
  3. 컨트롤러에 장치 하나가 이미 붙어 있으면 그 장치 형식을 알아냅니다. 설치할 장치 형식도 알아냅니다. 디스크 장치는 ATA 장치로, CD-ROM과 테이프 장치는 ATAPI 장치로 분류됩니다.
  4. IDE 컨트롤러에 연결할 장치 조합에 따라 새 장치의 IDE 점퍼 설정을 정합니다. 규칙은 위 소프트웨어 구성 명령 사용의 5단계와 같습니다.
영어 원문

Selecting an IDE controller and an IDE address on the controller

You can select an IDE controller and an IDE address on the controller.

After identifying the IDE controllers attached to the system unit, select the IDE I/O controller to which you want to connect a device. This IDE I/O controller must have at least one IDE setting that is not already assigned to another device.

Determine whether IDE device setting must be jumpered as master or slave. If no device is currently attached to the controller, the IDE device jumper must be set to master (some devices require no device ID setting in this situation). If an IDE device is already attached, the type of device must be determined. Disks are ATA devices. CD-ROM and tape are ATAPI devices. If ATA and ATAPI devices are both attached to the same IDE controller, the ATA device must be set to master ID and the ATAPI device must be set to slave ID.

Determine what IDE devices are attached to a controller by viewing information about the devices already connected to the IDE controllers.

You can use two methods to select an IDE I/O controller and an IDE address on the controller that is not already assigned to another device:

  • Using a software configuration command if the operating system is already installed on the system unit.

  • Using the About Your Machine document for initial setup and installation of a new system unit.

Using a software configuration command

This method applies to a system that already has the operating system installed.

  1. Type the following command to list all the currently defined IDE devices:
text
lsdev -C -s ide -H
  1. Examine the list of devices already assigned to each IDE controller. Each row in this display shows the logical name, status, location, and description of an IDE device. The location for each device begins with the location of the controller to which the device is connected. In the sample below, the IDE I/O controller with address 01-00-00 has two IDE devices attached. The IDE I/O controller with location 01-00-01 has one IDE device attached.
text
name     status       location       description
hdisk0   Available    01-00-00-00    720 MB IDE Disk Drive
hdisk1   Available    01-00-00-01    540 MB IDE Disk Drive
cd0      Available    01-00-01-00    IDE CD-ROM Drive
                         IDE controller address (6th digit)
  1. Select a controller that does not have two IDE devices already connected.

  2. If one device is already attached to the controller, determine the type of the device. Also determine the type of device to be installed. Disk devices are classified as ATA devices. CD-ROM and tape devices are classified as ATAPI devices.

  3. Determine the IDE jumper setting for the new device depending upon the combination of devices to be connected to the IDE controller. If the new device is the only device connected to the controller, the device jumper setting must be set to the master position (some devices require no setting in this case). If both devices are the same type, the new device jumper setting can be set to the slave position. If there is a mix of devices (ATA and ATAPI), the ATA device jumper must be set to the master position and the ATAPI device jumper must be set to the slave position. If there is a mix of devices and the new device is an ATA device (disk), the device jumper for the currently existing ATAPI device must be changed to the slave position and the new ATA device jumper must be set to master. If there is a mix of devices and the new device is an ATAPI device (CD-ROM or tape), the device jumper for the new ATAPI device must be set to slave and if the ATA device does not currently have a jumper setting, it must be set to master.

Initial setup

Use the About Your Machine document to determine the devices assigned to the IDE I/O controllers on the system if the device is being installed during initial setup.

Note: Incorrect results are produced if controllers have been added after the system was shipped from the factory.

  1. To determine the IDE devices assigned to addresses on the IDE controllers, see "Internal Media Devices" in About Your Machine.

  2. Select a controller that does not have two IDE devices already connected.

  3. If one device is already attached to the controller, determine the type of the device. Also determine the type of device to be installed. Disk devices are classified as ATA devices. CD-ROM and tape devices are classified as ATAPI devices.

  4. Determine the IDE jumper setting for the new device depending upon the combination of devices to be connected to the IDE controller. If the new device will be the only device connected to the controller, the device jumper setting must be set to the master position (some devices require no setting in this case). If both devices are the same type, the new device jumper setting can be set to the slave position. If there is a mix of devices (ATA and ATAPI), the ATA device jumper must be set to the master position and the ATAPI device jumper must be set to the slave position. If there is a mix of devices and the new device is an ATA device (disk), the device jumper for the currently existing ATAPI device must be changed to the slave position and the new ATA device jumper must be set to master. If there is a mix of devices and the new device is an ATAPI device (CD-ROM or tape), the device jumper for the new ATAPI device must be set to slave and if the ATA device does not currently have a jumper setting, it must be set to master.

IDE 장치 설치를 위한 하드웨어 준비

IDE 장치를 설치하려면 하드웨어를 준비해야 합니다.

  • 다음을 고르고 기록하기 전에는 이 작업을 시작하지 않습니다.
    • 장치를 연결할 IDE I/O 컨트롤러의 위치(내장이거나 어댑터 슬롯 번호로 식별)
    • 장치의 IDE 주소
  • 시스템 장치에서 고른 IDE 컨트롤러를 연결할 물리적 위치를 정합니다. 예를 들어 내장 IDE 컨트롤러 위치를 찾습니다. 도움이 필요하면 운영자 안내서를 봅니다.
  1. 지금 실행 중인 모든 응용 프로그램을 멈춘 뒤 shutdown 명령으로 시스템 장치를 종료합니다. 다른 사용자에게 알리지 않고 시스템을 곧바로 멈추려면 shutdown -F를 입력합니다.
  2. Halt Completed 메시지나 비슷한 메시지가 표시될 때까지 기다립니다.
  3. 시스템 장치와 붙은 모든 장치의 전원을 끕니다.
  4. 시스템 장치와 붙은 모든 장치의 플러그를 뽑습니다.
  5. 설정 및 운영자 안내서에 설명된 절차에 따라 물리적으로 연결합니다.

참고: 시스템 장치의 전원을 켜지 말고 "사용자 정의 구성 데이터베이스에 IDE 장치 추가"로 넘어갑니다.

영어 원문

Setting up the hardware for IDE device installation

You must set up the hardware in order to install an IDE device.

  • Do not begin this task until you have selected and recorded the following: – Position of the IDE I/O controller where the device will be connected (either built-in or identified by an adapter slot number). – IDE address for the device.

  • Determine the physical position on the system unit to connect the selected IDE controller. For example, locate the position of the built-in IDE controller. Refer to the operator's guide for help.

  1. Shut down the system unit using the shutdown command after stopping all applications that are currently running. Type shutdown -F to stop the system immediately without notifying other users.

  2. Wait for the message Halt Completed or a similar message to be displayed.

  3. Turn off the system unit and all attached devices.

  4. Unplug the system unit and all attached devices.

  5. Make the physical connections following the procedure described in the setup and operator guide.

Note: Do not power on the system unit; proceed to “Adding an IDE device to the customized configuration database.”

사용자 정의 구성 데이터베이스에 IDE 장치 추가

이 작업은 시스템이 장치를 알게 합니다. 시스템 장치를 시작하는 동안 운영 체제는 현재 구성을 읽고 새 장치를 찾아냅니다. 새 장치마다 레코드가 사용자 정의 구성 데이터베이스에 더해지고 기본 속성이 주어집니다.

새 시스템 장치에 장치를 설치한다면 운영 체제가 설치돼 있어야 합니다. 운영 체제 설치 방법은 운영 체제 설치 안내서에 있습니다.

다음 절차로 사용자 정의 구성 데이터베이스에 장치를 더합니다.

  1. 시스템 장치와 붙은 모든 장치의 플러그를 꽂습니다.

  2. 모든 장치의 전원을 켜되 시스템 장치는 꺼 둡니다.

  3. 붙은 모든 장치가 전원 켜기 자체 시험(POST)을 마치면 시스템 장치의 전원을 켭니다.

    참고: 시작 과정이 장치를 자동으로 찾아 사용자 정의 구성 데이터베이스에 기록합니다.

  4. Web-based System Manager(wsm 입력)나 SMIT 빠른 경로 smit lsdidea로 장치가 사용자 정의 구성 데이터베이스에 더해졌는지 확인합니다. 정의된 모든 장치 목록이 표시됩니다. 방금 설치한 장치의 IDE 어댑터와 IDE 주소 값을 위치 필드에서 확인합니다.

영어 원문

Adding an IDE device to the customized configuration database

This task makes the device known to the system. During system unit startup, the operating system reads the current configuration and detects new devices. A record of each new device is added to the customized configuration database and are given default attributes.

If the device is being installed on a new system unit, the operating system must be installed. Instructions for installing the operating system are included in the installation guide for the operating system.

Follow this procedure to add a device to the customized configuration database:

  1. Plug in the system unit and all attached devices.

  2. Turn on all the devices, but leave the system unit turned off.

  3. Turn on the system unit when all the attached devices have completed power-on self-tests (POSTs).

Note: The startup process automatically detects and records the device in the customized configuration database.

  1. Confirm that the device was added to the customized configuration database using the Web-based System Manager (type wsm ), or the SMIT fast path, smit lsdidea. A list of all defined devices is displayed. Look at the location field for the IDE adapter and IDE address values of the device you just installed.

IDE 장치 속성 변경

지원되는 장치를 사용자 정의 구성 데이터베이스에 더하면 기본 속성이 할당됩니다. 이 속성은 장치의 일반적인 사용에 알맞습니다.

설치하는 장치가 지원되지 않거나 장치 동작의 일부를 맞춰야 할 때 장치 속성을 바꿉니다. 예를 들어 테이프 드라이브가 더 낮은 밀도 형식으로 테이프를 쓰도록 바꿔야 할 수 있습니다.

장치 속성을 바꾸려면 SMIT 빠른 경로 smit dev를 씁니다.

영어 원문

Customizing the attributes for an IDE device

Default attributes are assigned to a supported device when it is added to the customized configuration database. These attributes are appropriate for typical use of the device.

Change the device attributes when the device you are installing is not supported or when you need to customize some part of the device's operation. For example, you might need to change your tape drive to write tapes in a lower-density format.

To customize the attributes for a device use the SMIT fast path, smit dev.