[AIX 운영 체제와 장치 관리 1] 개요 — 관리 인터페이스, SWVPD, 운영 체제 갱신, 시스템 시작과 부트 이미지

핵심 정리

  • 관리 도구는 명령행 말고도 SMIT(메뉴로 명령을 만들어 실행)와 Web-based System Manager(그래픽, 독립·클라이언트-서버·애플릿·원격 클라이언트 모드)가 있습니다.
  • 설치된 소프트웨어 정보는 ODM의 SWVPD에 들어 있고 lslpp(조회), lppchk(검증)로 봅니다. 파일 세트는 VRMF(버전·릴리스·수정·픽스) 수준으로 관리하며 oslevel, oslevel -r, oslevel -rl 6100-02, lslpp -L bos.mp로 수준과 부족한 파일 세트를 확인합니다.
  • 여러 사용자가 로그인해 있으면 reboot 대신 shutdown -r을 씁니다. 응답 없는 시스템은 시스템 포트의 원격 재부팅(chdev -l tty1 -a remreboot=dump -a reboot_string=…)으로 되살릴 수 있습니다.
  • root 비밀번호를 잊으면 설치 매체로 부팅해 유지 보수 모드에서 루트 볼륨 그룹에 접근해 passwd 뒤 sync;sync;sync;reboot. inittab은 mkitab, chitab, lsitab, rmitab으로 고치고, 실행 수준 스크립트는 /etc/rc.d/rcN.d(K는 정지, S는 시작)에 둡니다.
  • 멈춘 시스템은 전원·운영자 패널·화면 확인 → Ctrl-Q, Ctrl-D, Ctrl-C → 원격 로그인 뒤 ps -ef와 kill -9 → 재시작 순서로 살핍니다. 부트 이미지는 bosboot -a(또는 -ad /dev/ipldevice)로 만들며 /tmp에 20 MB가 필요하고, 실패하면 재부팅하지 않습니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 SWVPD, 원격 재부팅, planar 그래픽 절 등이 더해짐)
원문 Operating system and device management — 5.3판 122쪽, 6.1판 113쪽
파일 /etc/inittab, /etc/rc.d/rc2.d~rc9.d, /tmp(부트 이미지 작업 공간)
관련 명령어 smit, oslevel, lslpp, lppchk, installp, shutdown, reboot, chdev, mkitab, chitab, lsitab, rmitab, ps, kill, bosboot, lsvg, sysdumpdev

시스템 관리자와 사용자는 이 문서에서 명령 실행, 프로세스 다루기, 파일과 디렉터리 다루기, 시스템 백업과 복원, 물리·논리 저장소 관리, 기본 인쇄 같은 작업을 하는 방법을 배울 수 있습니다.

시스템 관리자와 사용자에게 쓸모 있는 다른 주제로는 페이징 공간 만들기와 크기 바꾸기, 가상 메모리 관리, 시스템 백업과 복원, 하드웨어와 의사 장치 관리, SRC(System Resource Controller) 사용, 파일 보안, 저장 매체 사용, 환경 파일 사용자 정의, 셸 스크립트 작성이 있습니다. 이 주제는 운영 체제와 함께 오는 문서 CD에도 있습니다.

영어 원문

Operating system and device management

System administrators and users can learn how to perform such tasks as running commands, handling processes, handling files and directories, backing up and restoring the system, managing physical and logical storage, and basic printing.

Other topics useful to users and system administrators include creating and re-sizing paging space, managing virtual memory, backing up and restoring the system, managing hardware and pseudo devices, using the System Resource Controller (SRC), securing files, using storage media, customizing environment files, and writing shell scripts. This topic is also available on the documentation CD that is shipped with the operating system.

Operating system and device management의 새 내용

Operating system and device management 주제 모음에서 새로 생기거나 크게 바뀐 정보입니다.

영어 원문

What's new in Operating system and device management

Read about new or significantly changed information for the Operating system and device management topic collection.

새로 생기거나 바뀐 내용 보는 법

이 PDF 파일에서는 새 정보와 바뀐 정보를 나타내는 고침 표시 막대(세로선)가 왼쪽 여백에 보일 수 있습니다.

영어 원문

How to see what's new or changed

In this PDF file, you might see revision bars (|) in the left margin that identify new and changed information.

2018년 2월

이 주제 모음에 대한 갱신 요약입니다.

  • iSCSI offload 어댑터 설정 주제에서 iSCSI offload 어댑터 설정 설명을 갱신했습니다.
영어 원문

February 2018

The following information is a summary of the updates made to this topic collection:

  • Updated the description for setting up an iSCSI offload adapter in the Setting up an iSCSI offload adapter topic.

2017년 6월

이 주제 모음에 대한 갱신 요약입니다.

  • MPIO 지원 장치 관리 주제에 lsmpio 명령 정보를 더했습니다.
영어 원문

June 2017

The following information is a summary of the updates made to this topic collection:

  • Added information about the lsmpio command in the MPIO-capable device management topic.

운영 체제 관리

명령으로 시스템 시작과 백업, 시스템 종료, 시스템 셸과 환경, 시스템 자원, 그 밖의 AIX 여러 부분을 관리할 수 있습니다.

운영 체제 관리는 UNIX 문헌에서 보통 시스템 관리자라고 부르는 사람의 일입니다. 아쉽게도 시스템 관리자의 활동 가운데 관리라고 부를 만큼 단순한 것은 몇 안 됩니다. 이 안내서와 관련 안내서는 시스템 관리자가 수많은 일을 하는 데 도움을 주려는 것입니다.

이 운영 체제는 사용 편의를 높이고 보안과 무결성을 높이려고 자기만의 시스템 관리 지원을 제공합니다.

영어 원문

Operating system management

You can use commands to manage system starup and backup, shutting down the system, system shells and environments, system resources, and other different parts of AIX.

Operating system management is the task of an individual who is usually referred to, in UNIX literature, as the system administrator. Unfortunately, only a few system administrator activities are straightforward enough to be correctly called administration. This and related guides are intended to help system administrators with their numerous duties.

This operating system provides its own particular version of system-management support in order to promote ease of use and to improve security and integrity.

쓸 수 있는 시스템 관리 인터페이스

이 운영 체제는 전통적인 명령행 시스템 관리 말고도 SMIT와 Web-based System Manager 인터페이스를 제공합니다.

SMIT와 Web-based System Manager 인터페이스는 다음과 같습니다.

  • SMIT(System Management Interface Tool): 고른 옵션으로 명령을 만들어 실행하는 메뉴 기반 사용자 인터페이스입니다. SMIT로 다음을 할 수 있습니다.

    • 소프트웨어 설치, 갱신, 유지 보수
    • 장치 구성
    • 디스크 저장 장치를 볼륨 그룹과 논리 볼륨으로 구성
    • 파일 시스템과 페이징 공간 만들기와 늘리기
    • 사용자와 그룹 관리
    • 네트워크와 통신 응용 프로그램 구성
    • 인쇄
    • 문제 판단
    • 작업 예약
    • 시스템 자원과 작업 부하 관리
    • 시스템 환경 관리
    • 클러스터 시스템 데이터 관리
  • Web-based System Manager: SMIT와 같은 시스템 관리 작업을 지원하는 객체 지향 그래픽 사용자 인터페이스이며, 다음으로 시스템 관리 작업을 쉽게 합니다.

    • 오류 검사와 대화 상자 설계로 사용자 실수를 줄입니다.
    • 새롭거나 복잡한 작업에 단계별 절차를 제공합니다.
    • 숙련된 관리자에게 고급 옵션을 제공합니다.
    • 복잡한 데이터나 시스템 객체 사이의 관계를 눈으로 보기 쉽게 합니다.
    • 시스템 활동을 감시하고 미리 정한 이벤트가 일어나면 관리자에게 알립니다.
    • 상황에 맞는 도움말, 개요, 요령, 온라인 문서 링크를 제공합니다.

    Web-based System Manager는 여러 동작 모드로 실행하도록 구성할 수 있습니다. 시작할 수 있는 동작 환경은 독립 응용 프로그램, 클라이언트-서버, 애플릿, 원격 클라이언트입니다.

영어 원문

Available system management interfaces

In addition to conventional command line system administration, this operating system provides the SMIT and Web-based System Manager interfaces.

The following are the SMIT and Web-based System Manager interfaces:

  • System Management Interface Tool (SMIT), a menu-based user interface that constructs commands from the options you choose and executes them. With SMIT, you can: – Install, update, and maintain software – Configure devices – Configure disk storage units into volume groups and logical volumes – Make and extend file systems and paging space – Manage users and groups – Configure networks and communication applications – Print – Perform problem determination – Schedule jobs – Manage system resources and workload – Manage system environments – Manage cluster system data

  • Web-based System Manager, an object-oriented graphical user interface that supports the same system management tasks as SMIT, but eases system management tasks by: – Reducing user errors through error checking and dialog design – Offering step-by-step procedures for new or complex tasks – Offering advanced options for more experienced administrators – Making it easier to visualize complex data or relationships among system objects – Monitoring system activity and alerting the administrator when predefined events occur – Providing context-sensitive helps, overviews, tips, and links to online documentation Web-based System Manager can be configured to run in a variety of operating modes. The operating environments in which it can be started are standalone application, client-server, applet, and remote client.

소프트웨어 VPD(vital product data)

소프트웨어 제품과 설치할 수 있는 옵션에 관한 일부 정보는 SWVPD(Software Vital Product Data) 데이터베이스에 유지됩니다.

SWVPD는 소프트웨어 제품 정보를 유지하는 명령 묶음과 ODM(Object Data Manager) 객체 클래스로 이루어집니다. SWVPD 명령은 사용자가 설치된 소프트웨어 제품을 조회(lslpp)하고 검증(lppchk)하도록 제공됩니다. ODM 객체 클래스는 유지하는 소프트웨어 제품 정보의 범위와 형식을 정의합니다.

installp 명령은 ODM으로 SWVPD 데이터베이스에 다음 정보를 유지합니다.

  • 설치된 소프트웨어 제품의 이름
  • 소프트웨어 제품의 버전
  • 소프트웨어 제품의 릴리스 수준(소프트웨어 제품의 외부 프로그래밍 인터페이스가 바뀌었음을 나타냄)
  • 소프트웨어 제품의 수정 수준(소프트웨어 제품의 외부 프로그래밍 인터페이스에 영향을 주지 않는 변경을 나타냄)
  • 소프트웨어 제품의 픽스 수준(나중에 정규 수정 수준에 넣을 작은 갱신을 나타냄)
  • 픽스 식별 필드
  • 소프트웨어 제품이나 옵션을 이루는 파일의 이름, 체크섬, 크기
  • 소프트웨어 제품의 설치 상태: applying, applied, committing, committed, rejecting, broken
영어 원문

Software vital product data

Certain information about software products and their installable options is maintained in the Software Vital Product Data (SWVPD) database.

The SWVPD consists of a set of commands and Object Data Manager (ODM) object classes for the maintenance of software product information. The SWVPD commands are provided for the user to query (lslpp) and verify (lppchk) installed software products. The ODM object classes define the scope and format of the software product information that is maintained.

The installp command uses the ODM to maintain the following information in the SWVPD database:

  • Name of the installed software product

  • Version of the software product

  • Release level of the software product, which indicates changes to the external programming interface of the software product

  • Modification level of the software product, which indicates changes that do not affect the external programming interface of the software product

  • Fix level of the software product, which indicates small updates that are to be built into a regular modification level at a later time

  • Fix identification field

  • Names, checksums, and sizes of the files that make up the software product or option

  • Installation state of the software product: applying, applied, committing, committed, rejecting, or broken.

운영 체제 갱신

운영 체제 패키지는 파일 세트로 나뉘며, 각 파일 세트에는 논리적으로 관련된 고객 제공 파일 묶음이 들어 있습니다. 각 파일 세트는 따로 설치하고 갱신할 수 있습니다.

파일 세트의 개정은 버전, 릴리스, 유지 보수, 픽스(VRMF) 수준으로 추적합니다. 관례상 AIX 파일 세트 갱신을 적용할 때마다 픽스 수준이 바뀝니다. AIX 유지 보수 패키지나 기술 수준(technology level)을 적용할 때마다 수정 수준이 바뀌고 픽스 수준은 0으로 돌아갑니다. AIX 버전(예: AIX 6.1)의 처음 설치를 기본 설치(base installation)라고 합니다. 운영 체제는 기능 갱신을 제공하며, 이는 유지 보수 패키지, 기술 수준, PTF(program temporary fix), 서비스 팩(PTF 묶음)으로 포장될 수 있습니다.

유지 보수 패키지와 기술 수준

유지 보수 패키지와 기술 수준은 릴리스를 업그레이드하려는 새 기능을 제공합니다. 유지 보수 패키지에서는 VRMF의 유지 보수 부분이 바뀝니다. 예를 들어 AIX 6.1의 첫 유지 보수 패키지는 6.1.1.0, 둘째는 6.1.2.0 하는 식입니다. 유지 보수 패키지를 나열하려면 oslevel -r 명령을 씁니다.

특정 시스템에 설치된 유지 보수 패키지나 기술 수준을 알아보려면 다음을 입력합니다.

text
oslevel

시스템이 특정 유지 보수 패키지나 기술 수준(이 예에서는 6.1.1.0)에 이르려면 어떤 파일 세트를 갱신해야 하는지 알아보려면 다음 명령을 씁니다.

text
oslevel -l 6.1.1.0

권장 유지 보수 패키지나 기술 수준(이 예에서는 6100-02)이 설치되어 있는지 알아보려면 다음 명령을 씁니다.

text
oslevel -r 6100-02

시스템이 6100-02 유지 보수 패키지나 기술 수준에 이르려면 어떤 파일 세트를 갱신해야 하는지 알아보려면 다음 명령을 씁니다.

text
oslevel -rl 6100-02

특정 파일 세트(이 예에서는 bos.mp)의 유지 보수 패키지나 기술 수준을 알아보려면 다음 명령을 씁니다.

text
lslpp -L bos.mp

PTF

릴리스 사이에 특정 문제를 고치거나 막으려고 PTF를 받을 수 있습니다. 특정 설치에는 쓸 수 있는 PTF 가운데 일부, 전부, 또는 하나도 필요하지 않을 수 있습니다.

권장 유지 보수 패키지

권장 유지 보수 패키지는 기술 수준 사이의 PTF 묶음으로, 함께 폭넓게 시험되었으며 예방 정비용으로 권합니다.

임시 픽스

임시 픽스(interim fix)는 PTF와 비슷하지만 보통 PTF가 없을 때 제공됩니다. PTF가 시스템을 다음 유지 보수 수준으로 올리게 되는데 사용자가 시스템을 지금 수준에 두고 싶어 할 수 있을 때도 임시 픽스를 냅니다.

버전과 릴리스 수준, 유지 보수 패키지, 기술 수준, 서비스 팩 수준, 그리고 특정 수준에 이르려면 갱신해야 할 파일 세트를 알아보려면 Commands Reference의 oslevel과 lslpp 명령을 봅니다.

영어 원문

Operating system updates

The operating system package is divided into filesets, where each fileset contains a group of logically related customer deliverable files. Each fileset can be individually installed and updated.

Revisions to filesets are tracked using the version, release, maintenance, and fix (VRMF) levels. By convention, each time an AIX fileset update is applied, the fix level is adjusted. Each time an AIX maintenance package or technology level is applied, the modification level is adjusted, and the fix level is reset to zero. The initial installation of an AIX version, for example, AIX 6.1, is called a base installation. The operating system provides updates to its features and functionality, which might be packaged as a maintenance package, a technology level, a program temporary fix (PTF), or a service pack (a group of PTFs).

Maintenance Packages and Technology Levels

Maintenance packages and technology levels provide new functionality that is intended to upgrade the release. The maintenance part of the VRMF is updated in a maintenance package. For example, the first maintenance package for AIX 6.1 is 6.1.1.0; the second is 6.1.2.0, and so on. To list the maintenance package, use the oslevel -r command.

To determine the maintenance package or technology level installed on a particular system, type:

text
oslevel

To determine which filesets need an update for the system to reach a specific maintenance package or technology level (in this example, 6.1.1.0), use the following command:

text
oslevel -l 6.1.1.0

To determine if a recommended maintenance package or technology level is installed (in this example, 6100-02), use the following command:

text
oslevel -r 6100-02

To determine which filesets need an update for the system to reach the 6100-02 maintenance package or technology level, use the following command:

text
oslevel -rl 6100-02

To determine the maintenance package or technology level of a particular fileset (in this example, bos.mp), use the following command:

text
lslpp -L bos.mp

PTFs Between releases, you might receive PTFs to correct or prevent a particular problem. A particular installation might need some, all, or even none of the available PTFs.

Recommended Maintenance Packages

A recommended maintenance package is a set of PTFs between technology levels that have been extensively tested together and are recommended for preventive maintenance.

Interim Fixes

An interim fix is similar to a PTF, but it is usually offered when a PTF is not available. Interim fixes are also released when the PTF would upgrade a system to the next maintenance level and users might want their systems to remain at the current level.

To determine the version and release level, maintenance package, technology level, and service pack level, as well as which filesets need to be updated to reach a particular level, see the oslevel and the lslpp commands in Commands Reference.

시스템 시작

기본 운영 체제가 시작하면 시스템은 복잡한 작업 묶음을 시작합니다. 보통 상황에서는 이 작업들이 자동으로 수행됩니다.

시스템을 다시 부팅하도록 지시하고 싶은 상황이 있습니다. 예를 들어 새로 설치한 소프트웨어를 시스템이 알아보게 하거나, 주변 장치를 재설정하거나, 파일 시스템 검사 같은 일상 정비를 하거나, 시스템 멈춤이나 충돌에서 복구하려는 경우입니다. 이 절차에 관한 정보는 다음을 봅니다.

관련 작업:

  • 손상된 부트 이미지 다시 만들기: 손상된 부트 이미지를 알아보고 다시 만드는 절차를 설명합니다.
영어 원문

System startup

When the base operating system starts, the system initiates a complex set of tasks. Under normal conditions, these tasks are performed automatically.

There are some situations when you want to instruct the system to reboot; for example, to cause the system to recognize newly installed software, to reset peripheral devices, to perform routine maintenance tasks like checking file systems, or to recover from a system hang or crash. For information on these procedures, see:

Related tasks

Recreating a corrupted boot image The following procedure describes how to identify a corrupted boot image and re-create it.

시스템 시작 관리

시스템을 부팅하거나 다시 부팅하려 할 때 만날 수 있는 상황은 여러 가지입니다. 시스템을 종료하거나 다시 부팅하려면 shutdown이나 reboot 명령을 씁니다. 여러 사용자가 시스템에 로그인해 있으면 shutdown 명령을 써야 합니다.

실행 중인 시스템 다시 부팅

reboot이 허용하는 것보다 더 정상적으로 끝내야 할 프로세스가 실행 중일 수 있으므로 모든 시스템에서 shutdown이 권하는 방법입니다.

시스템을 종료하고 다시 부팅하는 방법은 shutdown과 reboot 두 가지입니다. 여러 사용자가 시스템에 로그인해 있으면 언제나 shutdown 방법을 씁니다.

실행 중인 시스템 다시 부팅 작업을 하려면 Web-based System Manager에서 wsm을 입력하고 System을 고릅니다.

작업 SMIT 빠른 경로 명령이나 파일
다중 사용자 시스템 다시 부팅 smit shutdown shutdown -r
단일 사용자 시스템 다시 부팅 smit shutdown shutdown -r 또는 reboot

응답 없는 시스템을 원격으로 다시 부팅

원격 재부팅 기능은 내장(통합) 시스템 포트로 시스템을 다시 부팅하게 합니다.

POWER5 통합 시스템 포트는 직렬 포트와 비슷하지만, 시스템 포트는 특별히 지원되는 기능에만 쓸 수 있습니다.

포트에서 reboot_string을 받으면 시스템이 다시 부팅됩니다. 이 기능은 시스템이 다른 방법으로는 응답하지 않지만 시스템 포트 인터럽트는 처리할 수 있을 때 유용합니다. 원격 재부팅은 한 번에 내장 시스템 포트 하나에서만 켤 수 있습니다. 포트의 외부 보안은 사용자가 직접 마련해야 합니다. 이 기능은 가장 높은 장치 인터럽트 등급에서 실행되며, UART(Universal Asynchronous Receive/Transmit)가 전송 버퍼를 빨리 비우지 못하면 그 동안 다른 장치의 버퍼가 넘쳐 데이터를 잃을 수 있습니다. 이 기능은 다른 방법으로는 멈춰 있고 원격 로그인도 할 수 없는 기계를 다시 부팅하는 데만 쓰기를 권합니다. 파일 시스템은 동기화되지 않으며, 디스크에 쓰지 않은 데이터를 일부 잃을 가능성이 있습니다. 원격 재부팅을 켰으면 실수로 다시 부팅되지 않도록 그 포트를 다른 용도, 특히 파일 전송에 쓰지 않기를 강력히 권합니다.

내장 시스템 포트의 두 속성이 원격 재부팅 동작을 제어합니다.

reboot_enable

이 포트가 원격 reboot_string을 받으면 기계를 다시 부팅하도록 켜져 있는지, 그렇다면 다시 부팅하기 전에 시스템 덤프를 할지 나타냅니다.

text
no        - Indicates remote reboot is disabled
reboot    - Indicates remote reboot is enabled
dump      - Indicates remote reboot is enabled, and prior to rebooting a system dump
            will be taken on the primary dump device

reboot_string

원격 재부팅 기능이 켜져 있을 때 직렬 포트가 살펴볼 원격 reboot_string을 지정합니다. 원격 재부팅 기능이 켜져 있고 포트에서 reboot_string을 받으면 > 문자가 전송되고 시스템이 다시 부팅할 준비가 됩니다. 이어서 1 문자를 받으면 시스템이 다시 부팅되고, 1이 아닌 문자를 받으면 재부팅 과정을 그만둡니다. reboot_string은 최대 16자이며 공백, 콜론, 등호, null, 새 줄, Ctrl과 역슬래시 조합 문자를 포함하면 안 됩니다.

원격 재부팅은 SMIT나 명령행으로 켤 수 있습니다. SMIT에서는 구성된 TTY에 대해 System Environments → Manage Remote Reboot Facility 경로를 쓸 수 있습니다. 또는 새 TTY를 구성할 때 Add a TTY나 Change/Show Characteristics of a TTY 메뉴에서 원격 재부팅을 켤 수 있습니다. 이 메뉴는 Devices → TTY 경로로 들어갑니다.

명령행에서는 mkdev나 chdev 명령으로 원격 재부팅을 켭니다. 예를 들어 다음 명령은 tty1에서 (덤프 옵션으로) 원격 재부팅을 켜고 재부팅 문자열을 ReBoOtMe로 설정합니다.

text
chdev -l tty1 -a remreboot=dump -a reboot_string=ReBoOtMe

다음 예는 tty0에서 현재 reboot_string으로 원격 재부팅을 데이터베이스에만 켭니다(다음 재부팅 때 적용됩니다).

text
chdev -P -l tty0 -a remreboot=reboot

tty를 보통 포트로 쓰고 있다면 원격 재부팅을 켜기 전에 pdisable 명령을 써야 합니다. 나중에 penable로 포트를 다시 켤 수 있습니다.

관련 정보:

  • Function differences between system ports and serial ports

유지 보수용으로 하드 디스크에서 부팅

하드 디스크에서 기계를 유지 보수 모드로 부팅할 수 있습니다.

전제 조건

부팅할 수 있는 이동식 매체(테이프나 CD-ROM)가 드라이브에 있으면 안 됩니다. 또 특정 모델에서 유지 보수 모드 부팅을 켜는 구체적인 지시는 하드웨어 문서를 봅니다.

절차

하드 디스크에서 기계를 유지 보수 모드로 부팅하려면 다음과 같이 합니다.

  1. 다시 부팅하려면 기계를 껐다 다시 켜거나 재설정 버튼을 누릅니다.

  2. 하드웨어 문서에 나온 유지 보수 모드 재부팅 키 조합을 누릅니다.

  3. 기계가 콘솔 장치를 구성하는 지점까지 부팅됩니다. 가져와야 할 시스템 덤프가 있으면 콘솔에 시스템 덤프 메뉴가 나옵니다.

    주:

    1. 가져올 덤프가 있는데 콘솔이 구성되지 않으면 시스템이 멈춥니다. 덤프를 가져오려면 이동식 매체로 시스템을 부팅해야 합니다.

    2. 재설정 버튼을 누르면 시스템이 지정한 덤프 장치로 자동으로 덤프합니다. 실행 중인 시스템에서 주·보조 덤프 장치 지정을 바꾸려면 sysdumpdev 명령을 봅니다.

  4. 시스템 덤프가 없거나 덤프를 복사했으면 진단 운영 지시가 나옵니다. Enter를 눌러 Function Selection 메뉴로 갑니다.

  5. Function Selection 메뉴에서 진단이나 단일 사용자 모드를 고를 수 있습니다. 단일 사용자 모드(Single-User Mode): 단일 사용자 환경에서 유지 보수를 하려면 이 옵션(옵션 5)을 고릅니다. 시스템이 계속 부팅해 단일 사용자 모드로 들어갑니다. 시스템이 독립 모드여야 하는 유지 보수를 이 모드에서 할 수 있으며, 필요하면 bosboot 명령을 실행할 수 있습니다.

관련 정보:

  • Starting a System Dump

충돌한 시스템 부팅

제대로 종료되지 않고 멈춘(충돌한) 시스템을 부팅해야 할 때가 있습니다.

이 절차의 전제 조건은 다음과 같습니다.

  • 시스템이 비정상 상황 때문에 충돌해 제대로 종료되지 않았습니다.
  • 시스템이 꺼져 있습니다.

이 절차는 시스템이 충돌에서 복구하지 못했을 때 부팅하는 기본 방법을 다룹니다. 다음 단계를 따릅니다.

  1. 모든 하드웨어와 주변 장치가 올바르게 연결되어 있는지 확인합니다.

  2. 모든 주변 장치를 켭니다.

  3. 화면에서 자동 하드웨어 진단 정보를 지켜봅니다.

    1. 하드웨어 진단 시험이 하나라도 실패하면 하드웨어 문서를 봅니다.

    2. 하드웨어 진단 시험이 모두 성공하면 시스템 장치를 켭니다.

모르는 root 비밀번호 재설정

시스템의 root 비밀번호를 쓸 수 없거나 모를 때 root 권한 접근을 되찾는 절차입니다.

다음 절차에는 시스템 중단 시간이 필요합니다. 데이터나 기능을 잃을 가능성에 대비해, 되도록 작업 부하에 영향이 가장 적은 때로 중단 시간을 잡습니다.

이 시나리오의 정보는 특정 AIX 버전으로 시험했습니다. 얻는 결과는 AIX 버전과 수준에 따라 크게 다를 수 있습니다.

  1. 현재 설치와 같은 버전·수준의 제품 매체를 알맞은 드라이브에 넣습니다.
  2. 기계를 켭니다.
  3. 아이콘 화면이 나오거나 두 번 삑 소리가 나면 System Management Services 메뉴가 나올 때까지 F1 키를 계속 누릅니다.
  4. Multiboot를 고릅니다.
  5. Install From을 고릅니다.
  6. 제품 매체가 든 장치를 고르고 Install을 고릅니다.
  7. AIX 버전 아이콘을 고릅니다.
  8. F1 키를 눌러 지금 시스템을 시스템 콘솔로 정하고 Enter를 누릅니다.
  9. 원하는 언어의 번호를 고르고 Enter를 누릅니다.
  10. 3을 입력해 Start Maintenance Mode for System Recovery를 고르고 Enter를 누릅니다.
  11. Access a Root Volume Group을 고릅니다. 이 시점에서 루트 볼륨 그룹을 바꾸면 다시 부팅하지 않고는 설치 메뉴로 돌아갈 수 없다는 메시지가 나옵니다.
  12. 0을 입력하고 Enter를 누릅니다.
  13. 목록에서 알맞은 볼륨 그룹 번호를 입력하고 Enter를 누릅니다.
  14. 1을 입력해 Access this Volume Group and start a shell을 고르고 Enter를 누릅니다.
  15. (숫자 기호) 프롬프트에서 passwd 명령을 입력해 root 비밀번호를 재설정합니다. 예:

text
# passwd
Changing password for "root"
root’s New password:
Enter the new password again:
  1. 버퍼의 모든 내용을 하드 디스크에 쓰고 시스템을 다시 부팅하려면 다음을 입력합니다.
text
sync;sync;sync;reboot

로그인 화면이 나오면 15단계에서 설정한 비밀번호로 root 권한에 접근할 수 있습니다.

관련 정보:

  • passwd 명령, reboot 명령, Problem Solving and Troubleshooting

planar 그래픽이 있는 시스템 부팅

기계에 planar 그래픽 하위 시스템만 설치했다가 나중에 그래픽 어댑터를 시스템에 더하면 다음이 일어납니다.

  1. 새 그래픽 어댑터를 시스템에 더하고 관련 장치 드라이버 소프트웨어를 설치합니다.

  2. 시스템을 다시 부팅하면 다음 가운데 하나가 일어납니다.

    1. 시스템 콘솔이 /dev/lft0으로 정의되어 있으면(lscons가 이 정보를 보여 줌), 다시 부팅할 때 어느 디스플레이를 시스템 콘솔로 할지 사용자에게 묻습니다. 사용자가 그래픽 어댑터(TTY가 아닌 장치)를 고르면 그것이 새 기본 디스플레이도 됩니다. 사용자가 LFT 장치 대신 TTY 장치를 고르면 시스템 로그인이 나오지 않습니다. 다시 부팅하면 TTY 로그인 화면이 나옵니다. 사용자가 그래픽 어댑터를 더하고 시스템 콘솔이 LFT 장치라면 사용자가 TTY 장치를 시스템 콘솔로 고르지 않을 것이라고 가정합니다.

    2. 시스템 콘솔이 TTY로 정의되어 있으면, 다시 부팅할 때 새로 더한 디스플레이 어댑터가 기본 디스플레이가 됩니다.

    참고: TTY가 시스템 콘솔이므로 그대로 시스템 콘솔로 남습니다.

  3. 시스템 콘솔이 /dev/lft0(원문은 /def/lft0)이면, 다시 부팅한 뒤 시스템 콘솔 선택 글을 화면에 무기한 보여 주도록 DPMS가 꺼집니다. DPMS를 다시 켜려면 시스템을 한 번 더 다시 부팅합니다.

실행 수준 스크립트 실행 배치

실행 수준 스크립트는 실행 수준을 바꿀 때 사용자가 고른 응용 프로그램을 시작하고 멈추게 합니다.

실행 수준 스크립트는 /etc/rc.d 아래 실행 수준별 하위 디렉터리에 둡니다.

  • /etc/rc.d/rc2.d
  • /etc/rc.d/rc3.d
  • /etc/rc.d/rc4.d
  • /etc/rc.d/rc5.d
  • /etc/rc.d/rc6.d
  • /etc/rc.d/rc7.d
  • /etc/rc.d/rc8.d
  • /etc/rc.d/rc9.d

/etc/rc.d/rc는 실행 수준이 바뀔 때 지정한 디렉터리에서 찾은 스크립트를 실행합니다. 먼저 응용 프로그램 정지 스크립트를 실행한 뒤 시작 스크립트를 실행합니다.

참고: K로 시작하는 스크립트는 정지 스크립트이고, S로 시작하는 스크립트는 시작 스크립트입니다.

/etc/inittab 파일 고치기

/etc/inittab 파일의 레코드를 고치는 명령은 네 가지입니다.

레코드 더하기 — mkitab 명령

/etc/inittab 파일에 레코드를 더하려면 명령 프롬프트에서 다음을 입력합니다.

text
mkitab Identifier:Run Level:Action:Command

예를 들어 tty2의 레코드를 더하려면 명령 프롬프트에서 다음을 입력합니다.

text
mkitab tty002:2:respawn:/usr/sbin/getty /dev/tty2

위 예에서:

항목 설명
tty002 실행 수준을 정의하는 객체를 식별합니다.
2 이 프로세스가 실행되는 실행 수준을 지정합니다.
respawn init 명령이 이 프로세스에 할 동작을 지정합니다.
/usr/sbin/getty /dev/tty2 실행할 셸 명령을 지정합니다.

레코드 바꾸기 — chitab 명령

/etc/inittab 파일의 레코드를 바꾸려면 명령 프롬프트에서 다음을 입력합니다.

text
chitab Identifier:Run Level:Action:Command

예를 들어 tty2 레코드를 바꿔 이 프로세스가 실행 수준 2와 3에서 실행되게 하려면 다음을 입력합니다.

text
chitab tty002:23:respawn:/usr/sbin/getty /dev/tty2

위 예에서:

항목 설명
tty002 실행 수준을 정의하는 객체를 식별합니다.
23 이 프로세스가 실행되는 실행 수준들을 지정합니다.
respawn init 명령이 이 프로세스에 할 동작을 지정합니다.
/usr/sbin/getty /dev/tty2 실행할 셸 명령을 지정합니다.

레코드 나열 — lsitab 명령

/etc/inittab 파일의 모든 레코드를 나열하려면 명령 프롬프트에서 다음을 입력합니다.

text
lsitab -a

/etc/inittab 파일의 특정 레코드를 나열하려면 다음을 입력합니다.

text
lsitab Identifier

예를 들어 tty2의 레코드를 나열하려면 lsitab tty2를 입력합니다.

레코드 지우기 — rmitab 명령

/etc/inittab 파일에서 레코드를 지우려면 명령 프롬프트에서 다음을 입력합니다.

text
rmitab Identifier

예를 들어 tty2의 레코드를 지우려면 rmitab tty2를 입력합니다.

관련 개념:

  • 시스템 실행 수준: 시스템 실행 수준은 시스템 상태를 지정하고 어떤 프로세스를 시작할지 정의합니다.

멈춘 시스템 다시 살리기

하드웨어 문제, 소프트웨어 문제, 또는 둘 다 때문에 시스템이 멈출(inactive) 수 있습니다.

이 절차는 문제를 고치고 시스템을 다시 시작하는 단계를 안내합니다. 절차를 마친 뒤에도 시스템이 멈춰 있으면 하드웨어 문서의 문제 판단 정보를 봅니다.

멈춘 시스템을 다시 살리려면 다음 절차를 씁니다.

하드웨어 검사

하드웨어를 검사하는 데 쓸 수 있는 절차가 여럿 있습니다.

  • 전원 확인: 시스템의 Power-On 표시등이 켜져 있으면 아래 운영자 패널 디스플레이 확인으로 갑니다. Power-On 표시등이 꺼져 있으면 전원이 켜져 있고 시스템이 플러그에 꽂혀 있는지 확인합니다.
  • 운영자 패널 디스플레이 확인: 시스템에 운영자 패널 디스플레이가 있으면 메시지를 확인합니다. 운영자 패널 디스플레이가 비어 있으면 아래 디스플레이나 터미널 켜기로 갑니다. 비어 있지 않으면 해당 장치의 서비스 안내서에서 Operator Panel Display의 숫자에 관한 정보를 찾습니다.
  • 디스플레이나 터미널 켜기: 디스플레이나 터미널의 여러 부분을 다음과 같이 확인합니다.
    • 디스플레이 케이블이 디스플레이와 시스템 장치에 단단히 연결되어 있는지 확인합니다.
    • 키보드 케이블이 단단히 연결되어 있는지 확인합니다.
    • 마우스 케이블이 단단히 연결되어 있는지 확인합니다.
    • 디스플레이가 켜져 있고 Power-On 표시등이 켜져 있는지 확인합니다.
    • 디스플레이의 밝기를 조정합니다.
    • 터미널의 통신 설정이 올바른지 확인합니다.

이제 시스템이 살아났다면 하드웨어 검사로 문제가 고쳐진 것입니다.

프로세스 검사

멈췄거나 걸린 프로세스 때문에 시스템이 멈출 수 있습니다.

다음으로 시스템 프로세스를 확인합니다.

  1. 줄 스크롤 다시 시작
  2. Ctrl-D 키 조합 사용
  3. Ctrl-C 키 조합 사용
  4. 원격 터미널이나 호스트에서 로그인
  5. 걸린 프로세스를 원격으로 끝내기

줄 스크롤 다시 시작

Ctrl-S 키 조합으로 멈춘 줄 스크롤을 다음과 같이 다시 시작합니다.

  1. 문제 프로세스가 있는 창이나 셸을 활성화합니다.
  2. Ctrl-Q 키 조합을 눌러 스크롤을 다시 시작합니다. Ctrl-S 키 조합은 줄 스크롤을 멈추고, Ctrl-Q 키 조합은 줄 스크롤을 다시 시작합니다.

스크롤 확인으로 멈춘 시스템의 문제가 고쳐지지 않으면 다음 절, Ctrl-D 키 조합 사용으로 갑니다.

Ctrl-D 키 조합 사용

  1. 문제 프로세스가 있는 창이나 셸을 활성화합니다.
  2. Ctrl-D 키 조합을 누릅니다. Ctrl-D 키 조합은 프로세스에 파일 끝(EOF) 신호를 보냅니다. Ctrl-D 키 조합은 창이나 셸을 닫고 로그아웃시킬 수 있습니다.

Ctrl-D 키 조합으로 문제가 고쳐지지 않으면 다음 절, Ctrl-C 키 조합 사용으로 갑니다.

Ctrl-C 키 조합 사용

멈춘 프로세스를 다음과 같이 끝냅니다.

  1. 문제 프로세스가 있는 창이나 셸을 활성화합니다.
  2. Ctrl-C 키 조합을 누릅니다. Ctrl-C 키 조합은 지금 하는 검색이나 필터를 멈춥니다.

Ctrl-C 키 조합으로 문제가 고쳐지지 않으면 다음 절, 원격 터미널이나 호스트에서 로그인으로 갑니다.

원격 터미널이나 호스트에서 로그인

다음 두 방법 가운데 하나로 원격 로그인합니다.

  • 시스템에 터미널이 둘 이상 붙어 있으면 다른 터미널에서 시스템에 로그인합니다.
  • (시스템이 네트워크에 연결되어 있으면) 다음과 같이 tn 명령을 입력해 네트워크의 다른 호스트에서 로그인합니다.
text
tn YourSystemName

tn 명령을 쓰면 시스템이 보통의 로그인 이름과 비밀번호를 묻습니다.

원격 터미널이나 호스트에서 시스템에 로그인할 수 있었으면 다음 절, 걸린 프로세스를 원격으로 끝내기로 갑니다.

원격 터미널이나 호스트에서 시스템에 로그인할 수 없었으면 시스템을 다시 시작해야 합니다.

시스템 덤프를 시작해 시스템이 왜 멈췄는지 알아볼 수도 있습니다.

걸린 프로세스를 원격으로 끝내기

원격 터미널에서 걸린 프로세스를 다음과 같이 끝냅니다.

  1. 다음 ps 명령을 입력해 활성 프로세스를 나열합니다.
text
ps -ef

-e와 -f 플래그는 모든 활성·비활성 프로세스를 식별합니다. 2. 걸린 프로세스의 프로세스 ID를 알아냅니다. 프로세스를 알아보는 데는 검색 문자열과 함께 grep 명령을 씁니다. 예를 들어 xlock 프로세스를 끝내려면 다음을 입력해 프로세스 ID를 찾습니다.

text
ps -ef | grep xlock

grep 명령은 ps 명령의 출력에서 검색해 특정 프로세스의 프로세스 ID를 알아내게 합니다. 3. 다음 kill 명령을 입력해 프로세스를 끝냅니다.

참고: 자기가 시작하지 않은 프로세스에 kill 명령을 쓰려면 root 사용자 권한이 있어야 합니다.

text
kill -9 ProcessID

문제 프로세스를 알아낼 수 없으면 가장 최근에 시작한 프로세스가 원인일 수 있습니다. 그것이 문제라고 생각되면 가장 최근 프로세스를 끝냅니다.

프로세스 검사로 문제가 고쳐지지 않으면 시스템을 다시 시작해야 합니다.

관련 정보:

  • System Dump Facility

시스템 다시 시작

하드웨어 검사와 프로세스 검사 말고도, 시스템을 다시 시작해 멈춘 시스템을 살릴 수 있습니다.

하드웨어 검사와 프로세스 검사 절차로 시스템을 멈추게 한 문제가 고쳐지지 않으면 시스템을 다시 시작해야 합니다.

참고: 시스템을 다시 시작하기 전에 시스템 덤프를 마칩니다.

  1. 부트 장치 상태를 확인합니다.

    시스템은 이동식 매체, 외부 장치, SCSI(small computer system interface) 장치, IDE(integrated device electronics) 장치, LAN(local area network) 가운데 하나로 부팅합니다. 시스템에 해당하는 방법을 정하고 다음 지시에 따라 부트 장치를 확인합니다.

    • 테이프 같은 이동식 매체는 매체가 올바르게 들어가 있는지 확인합니다.
    • IDE 장치는 IDE 장치 ID 설정이 어댑터마다 고유한지 확인합니다. 어댑터에 장치가 하나만 붙어 있으면 IDE 장치 ID를 master 장치로 설정해야 합니다.
    • 테이프 드라이브 같은 외부 장치는 다음을 확인합니다.
      • 장치 전원이 켜져 있습니다.
      • 장치 케이블이 장치와 시스템 장치에 올바르게 연결되어 있습니다.
      • (장치에 있다면) ready 표시등이 켜져 있습니다.
    • 외부 SCSI 장치는 SCSI 주소 설정이 고유한지 확인합니다.
    • LAN은 네트워크가 올라와 동작하는지 확인합니다. 부트 장치가 올바르게 동작하면 다음 단계로 갑니다.
  2. 다음과 같이 운영 체제를 올립니다.

    1. 시스템 전원을 끕니다.

    2. 1분 기다립니다.

    3. 시스템 전원을 켭니다.

    4. 시스템이 부팅할 때까지 기다립니다.

운영 체제를 올리지 못하면 유지 보수 모드나 하드웨어 진단으로 하드 디스크를 부팅합니다.

그래도 시스템을 다시 시작할 수 없으면 SRN으로 멈춘 시스템의 문제를 서비스 담당자에게 보고합니다.

영어 원문

Administering system startup

There are multiple scenarios that you might encounter when you want to boot or reboot your system. To shut down or reboot your system you can use either the shutdown or reboot command. You should use the shutdown command when multiple users are logged on to the system.

Rebooting a running system

Because processes might be running that should be terminated more gracefully than a reboot permits, shutdown is the preferred method for all systems.

There are two methods for shutting down and rebooting your system, shutdown and reboot. Always use the shutdown method when multiple users are logged on to the system.

To reboot a running system tasks, enter wsm in the Web-based System Manager and then select System.

Task SMIT Fast Path Command or File
Rebooting a Multiuser System smit shutdown shutdown -r
Rebooting a Single-User System smit shutdown shutdown -r or reboot

Rebooting a unresponsive system remotely

The remote reboot facility allows the system to be rebooted through a native (integrated) system port.

The POWER5 integrated system ports are similar to serial ports except that system ports are available only for specifically supported functions.

The system is rebooted when the reboot_string is received at the port. This facility is useful when the system does not otherwise respond but is capable of servicing system port interrupts. Remote reboot can be enabled on only one native system port at a time. Users are expected to provide their own external security for the port. This facility runs at the highest device interrupt class and a failure of the UART (Universal Asynchronous Receive/Transmit) to clear the transmit buffer quickly may have the effect of causing other devices to lose data if their buffers overflow during this time. It is suggested that this facility only be used to reboot a machine that is otherwise hung and cannot be remotely logged into. File systems will not be synchronized, and a potential for some loss of data which has not been flushed exists. It is strongly suggested that when remote reboot is enabled that the port not be used for any other purpose, especially file transfer, to prevent an inadvertent reboot.

Two native system port attributes control the operation of remote reboot.

reboot_enable

Indicates whether this port is enabled to reboot the machine on receipt of the remote reboot_string, and if so, whether to take a system dump prior to rebooting.

text
no        - Indicates remote reboot is disabled
reboot    - Indicates remote reboot is enabled
dump      - Indicates remote reboot is enabled, and prior to rebooting a system dump
            will be taken on the primary dump device

reboot_string

Specifies the remote reboot_string that the serial port will scan for when the remote reboot feature is enabled. When the remote reboot feature is enabled and the reboot_string is received on the port, a > character is transmitted and the system is ready to reboot. If a 1 character is received, the system is rebooted; any character other than 1 aborts the reboot process. The reboot_string has a maximum length of 16 characters and must not contain a space, colon, equal sign, null, new line, or Ctrl-\ character.

Remote reboot can be enabled through SMIT or the command line. For SMIT the path System Environments -> Manage Remote Reboot Facility may be used for a configured TTY. Alternatively, when configuring a new TTY, remote reboot may be enabled from the Add a TTY or Change/Show Characteristics of a TTY menus. These menus are accessed through the path Devices -> TTY.

From the command line, the mkdev or chdev commands are used to enable remote reboot. For example, the following command enables remote reboot (with the dump option) and sets the reboot string to ReBoOtMe on tty1.

text
chdev -l tty1 -a remreboot=dump -a reboot_string=ReBoOtMe

This example enables remote reboot on tty0 with the current reboot_string in the database only (will take effect on the next reboot).

text
chdev -P -l tty0 -a remreboot=reboot

If the tty is being used as a normal port, then you will have to use the pdisable command before enabling remote reboot. You may use penable to reenable the port afterwards.

Related information

Function differences between system ports and serial ports

Booting from hard disk for maintenance

You can boot a machine in maintenance mode from a hard disk.

Prerequisites

A bootable removable media (tape or CD-ROM) must not be in the drive. Also, refer to the hardware documentation for the specific instructions to enable maintenance mode boot on your particular model.

Procedure

To boot a machine in maintenance mode from a hard disk:

  1. To reboot, either turn the machine off and then power it back on, or press the reset button.

  2. Press the key sequence for rebooting in maintenance mode that is specified in your hardware documentation.

  3. The machine will boot to a point where it has a console device configured. If there is a system dump that needs to be retrieved, the system dump menu will be displayed on the console.

Note

  1. If the console fails to configure when there is a dump to be retrieved, the system will hang. The system must be booted from a removable medium to retrieve the dump. b. The system automatically dumps to the specified dump device when the reset button is pressed. To change the primary or secondary dump device designation in a running system, see the sysdumpdev command.
  1. If there is no system dump, or if it has been copied, the diagnostic operating instructions will be displayed. Press Enter to continue to the Function Selection menu.

  2. From the Function Selection menu, you can select diagnostic or single-user mode: Single-User Mode: To perform maintenance in a single-user environment, choose this option (option 5). The system continues to boot and enters single-user mode. Maintenance that requires the system to be in a standalone mode can be performed in this mode, and the bosboot command can be run, if required.

Related information

Starting a System Dump

Booting a system that has crashed

In some instances, you might have to boot a system that has stopped (crashed) without being properly shut down.

The prerequisites for this procedure are:

  • Your system crashed and was not properly shut down due to unusual conditions.

  • Your system is turned off.

This procedure covers the basics of how to boot if your system was unable to recover from a crash. Perform the following steps:

  1. Ensure that all hardware and peripheral devices are correctly connected.

  2. Turn on all of the peripheral devices.

  3. Watch the screen for information about automatic hardware diagnostics. a. If any hardware diagnostics tests are unsuccessful, refer to the hardware documentation. b. If all hardware diagnostics tests are successful, turn the system unit on.

Resetting an unknown root password

The following procedure describes how to recover access to root privileges when the system's root password is unavailable or unknown.

The following procedure requires some system downtime. If possible, schedule your downtime when it least impacts your workload to protect yourself from a possible loss of data or functionality.

The information in this how-to scenario was tested using specific versions of AIX. The results you obtain might vary significantly depending on your version and level of AIX.

  1. Insert the product media for the same version and level as the current installation into the appropriate drive.

  2. Power on the machine.

  3. When the screen of icons appears, or when you hear a double beep, press the F1 key repeatedly until the System Management Services menu appears.

  4. Select Multiboot.

  5. Select Install From.

  6. Select the device that holds the product media and then select Install.

  7. Select the AIX version icon.

  8. Define your current system as the system console by pressing the F1 key and then press Enter.

  9. Select the number of your preferred language and press Enter.

  10. Choose Start Maintenance Mode for System Recovery by typing 3 and press Enter.

  11. Select Access a Root Volume Group. A message displays explaining that you will not be able to return to the Installation menus without rebooting if you change the root volume group at this point.

  12. Type 0 and press Enter.

  13. Type the number of the appropriate volume group from the list and press Enter.

  14. Select Access this Volume Group and start a shell by typing 1 and press Enter.

  15. At the # (number sign) prompt, type the passwd command at the command line prompt to reset the root password. For example:

text
# passwd
Changing password for "root"
root’s New password:
Enter the new password again:
  1. To write everything from the buffer to the hard disk and reboot the system, type the following:
text
sync;sync;sync;reboot

When the login screen appears, the password you set in step 15 should now permit access to root privileges.

Related information

passwd command reboot command Problem Solving and Troubleshooting

Booting systems with planar graphics

If the machine has been installed with the planar graphics susbsystem only, and later an additional graphics adapter is added to the system, the following occurs:

  1. A new graphics adapter is added to the system, and its associated device driver software is installed.

  2. The system is rebooted, and one of the following occurs: a. If the system console is defined to be /dev/lft0 (lscons displays this information), the user is asked to select which display is the system console at reboot time. If the user selects a graphics adapter (non-TTY device), it also becomes the new default display. If the user selects a TTY device instead of an LFT device, no system login appears. Reboot again, and the TTY login screen is displayed. It is assumed that if the user adds an additional graphics adapter into the system and the system console is an LFT device, the user will not select the TTY device as the system console. b. If the system console is defined to be a TTY, then at reboot time the newly added display adapter becomes the default display.

Note: Since the TTY is the system console, it remains the system console.

  1. If the system console is /def/lft0, then after reboot, DPMS is disabled in order to show the system console selection text on the screen for an indefinite period of time. To re-enable DPMS, reboot the system again.

Deploying level script execution

Run level scripts allow users to start and stop selected applications while changing the run level.

Put run level scripts in the subdirectory of /etc/rc.d that is specific to the run level:

  • /etc/rc.d/rc2.d

  • /etc/rc.d/rc3.d

  • /etc/rc.d/rc4.d

  • /etc/rc.d/rc5.d

  • /etc/rc.d/rc6.d

  • /etc/rc.d/rc7.d

  • /etc/rc.d/rc8.d

  • /etc/rc.d/rc9.d

The /etc/rc.d/rc will run the scripts it finds in the specified directory when the run level changes - first running the stop application scripts then running the start application scripts.

Note: Scripts beginning with K are stop scripts, while scripts beginning with S are start scripts.

Modifying the /etc/inittab file

Four commands are available to modify the records in the etc/inittab file.

Adding records - mkitab command

To add a record to the /etc/inittab file, type the following at a command prompt:

text
mkitab Identifier:Run Level:Action:Command

For example, to add a record for tty2, type the following at a command prompt:

text
mkitab tty002:2:respawn:/usr/sbin/getty /dev/tty2

In the above example:

  • tty002 — Identifies the object whose run level you are defining.
  • 2 — Specifies the run level at which this process runs.
  • respawn — Specifies the action that the init command should take for this process.
  • /usr/sbin/getty /dev/tty2 — Specifies the shell command to be executed.

Changing records - chitab command

To change a record to the /etc/inittab file, type the following at a command prompt:

text
chitab Identifier:Run Level:Action:Command

For example, to change a record for tty2 so that this process runs at run levels 2 and 3, type:

text
chitab tty002:23:respawn:/usr/sbin/getty /dev/tty2

In the above example:

  • tty002 — Identifies the object whose run level you are defining.
  • 23 — Specifies the run levels at which this process runs.
  • respawn — Specifies the action that the init command should take for this process.
  • /usr/sbin/getty /dev/tty2 — Specifies the shell command to be executed.

Listing records - lsitab command

To list all records in the /etc/inittab file, type the following at a command prompt:

text
lsitab -a

To list a specific record in the /etc/inittab file, type:

text
lsitab Identifier

For example, to list the record for tty2, type: lsitab tty2.

Removing records - rmitab command

To remove a record from the /etc/inittab file, type the following at a command prompt:

text
rmitab Identifier

For example, to remove the record for tty2, type: rmitab tty2.

Related concepts

System run level The system run level specifies the system state and defines which processes are started.

Reactivation of an inactive system

Your system can become inactive because of a hardware problem, a software problem, or a combination of both.

This procedure guides you through steps to correct the problem and restart your system. If your system is still inactive after completing the procedure, refer to the problem-determination information in your hardware documentation.

Use the following procedures to reactivate an inactive system:

Hardware check:

There are several procedures you can use to check your hardware.

Check your hardware by:

Checking the power

If the Power-On light on your system is active, go to Checking the operator panel display, below.

If the Power-On light on your system is not active, check that the power is on and the system is plugged in.

Checking the operator panel display

If your system has an operator panel display, check it for any messages.

If the operator panel display on your system is blank, go to Activating your display or terminal, below.

If the operator panel display on your system is not blank, go to the service guide for your unit to find information concerning digits in the Operator Panel Display.

Activating your display or terminal

Check several parts of your display or terminal, as follows:

  • Make sure the display cable is securely attached to the display and to the system unit.

  • Make sure the keyboard cable is securely attached.

  • Make sure the mouse cable is securely attached.

  • Make sure the display is turned on and that its Power-On light is lit.

  • Adjust the brightness control on the display.

  • Make sure the terminal's communication settings are correct.

If your system is now active, your hardware checks have corrected the problem.

Related tasks

Restarting the system In addition to checking the hardware and checking the processes, you can restart you system to reactivate

an inactive system. “Checking the processes” A stopped or stalled process might make your system inactive.

Checking the processes:

A stopped or stalled process might make your system inactive.

Check your system processes by:

  1. Restarting line scrolling

  2. Using the Ctrl+D key sequence

  3. Using the Ctrl+C key sequence

  4. Logging in from a remote terminal or host

  5. Ending stalled processes remotely

Restarting line scrolling

Restart line scrolling halted by the Ctrl-S key sequence by doing the following:

  1. Activate the window or shell with the problem process.

  2. Press the Ctrl-Q key sequence to restart scrolling. The Ctrl-S key sequence stops line scrolling, and the Ctrl-Q key sequence restarts line scrolling.

If your scroll check did not correct the problem with your inactive system, go to the next section, Using the Ctrl-D key sequence.

Using the Ctrl-D key sequence

  1. Activate the window or shell with the problem process.

  2. Press the Ctrl-D key sequence. The Ctrl-D key sequence sends an end of file (EOF) signal to the process. The Ctrl-D key sequence may close the window or shell and log you out.

If the Ctrl-D key sequence did not correct the problem with your inactive system, go to the next section, Using the Ctrl-C key sequence.

Using the Ctrl-C key sequence

End a stopped process by doing the following:

  1. Activate the window or shell with the problem process.

  2. Press the Ctrl-C key sequence. The Ctrl-C key sequence stops the current search or filter.

If the Ctrl-C key sequence did not correct the problem with your inactive system, go to the next section, Logging in from a remote terminal or host:.

Logging in from a remote terminal or host

Log in remotely in either of two ways:

  • Log in to the system from another terminal if more than one terminal is attached to your system.

  • Log in from another host on the network (if your system is connected to a network) by typing the tn command as follows:

text
tn YourSystemName

The system asks for your regular login name and password when you use the tn command.

If you were able to log in to the system from a remote terminal or host, go to the next section, Ending stalled processes remotely.

If you were not able to log in to the system from a remote terminal or host you need to restart the system.

You can also start a system dump to determine why your system became inactive.

Ending stalled processes remotely

End a stalled process from a remote terminal by doing the following:

  1. List active processes by typing the following ps command:
text
ps -ef

The -e and -f flags identify all active and inactive processes.

  1. Identify the process ID of the stalled process. For help in identifying processes, use the grep command with a search string. For example, to end the

xlock process, type the following to find the process ID

text
ps -ef | grep xlock

The grep command allows you to search on the output from the ps command to identify the process ID of a specific process.

  1. End the process by typing the following kill command:

Note: You must have root user authority to use the kill command on processes you did not initiate.

text
kill -9 ProcessID

If you cannot identify the problem process, the most recently activated process might be the cause of your inactive system. End the most recent process if you think that is the problem.

If your process checks have not corrected the problem with your inactive system you need to restart the system.

Related concepts

Hardware check There are several procedures you can use to check your hardware.

Related tasks

“Restarting the system” In addition to checking the hardware and checking the processes, you can restart you system to reactivate an inactive system.

Related information

System Dump Facility

Restarting the system:

In addition to checking the hardware and checking the processes, you can restart you system to reactivate an inactive system.

If the procedures for Hardware check and Checking the processes fail to correct the problem that makes your system inactive, you need to restart your system.

Note: Before restarting your system, complete a system dump.

  1. Check the state of the boot device.

Your system boots with either a removable medium, an external device, a small computer system interface (SCSI) device, an integrated device electronics (IDE) device, or a local area network (LAN). Decide which method applies to your system, and use the following instructions to check the boot device:

  • For a removable medium, such as tape, make sure the medium is inserted correctly.

  • For IDE devices, verify that the IDE device ID settings are unique per adapter. If only one device is attached to the adapter, the IDE device ID must be set to the master device.

  • For an externally attached device, such as a tape drive, make sure: – The power to the device is turned on. – The device cables are correctly attached to the device and to the system unit. – The ready indicator is on (if the device has one).

  • For external SCSI devices, verify that the SCSI address settings are unique.

  • For a LAN, verify that the network is up and operable. If the boot device is working correctly, continue to the next step.

  1. Load your operating system by doing the following: a. Turn off your system's power. b. Wait one minute. c. Turn on your system's power. d. Wait for the system to boot.

If the operating system failed to load, boot the hard disk from maintenance mode or hardware diagnostics.

If you are still unable to restart the system, use an SRN to report the problem with your inactive system to your service representative.

Related concepts

Hardware check There are several procedures you can use to check your hardware.

Related tasks

Checking the processes A stopped or stalled process might make your system inactive.

Related information

System Dump Facility

부트 이미지 만들기

기본 운영 체제를 설치하거나 시스템 하드 드라이브에서 부팅하지 않는 시스템에 접근하려면 부트 이미지가 필요합니다. 이 절차는 부트 이미지를 만드는 방법을 설명합니다. 부트 이미지는 장치 종류마다 다릅니다.

시스템을 처음 설치하면 bosboot 명령이 RAM(random access memory) 디스크 파일 시스템 이미지와 운영 체제 커널로 부트 이미지를 만듭니다. 부트 이미지는 하드 디스크 같은 특정 매체로 옮겨집니다. 기계를 다시 부팅하면 부트 이미지가 매체에서 메모리로 올라옵니다. bosboot 명령에 관한 자세한 정보는 bosboot를 봅니다.

연결된 RAM 디스크 파일 시스템에는 다음 장치의 장치 구성 루틴이 들어 있습니다.

  • 디스크
  • 테이프
  • CD-ROM
  • 네트워크 토큰링, 이더넷, FDDI 장치

전제 조건(원문은 앞 목록에 이어 적음):

  • bosboot 명령을 쓰려면 root 사용자 권한이 있어야 합니다.
  • /tmp 파일 시스템에 적어도 20 MB의 빈 공간이 있어야 합니다.
  • 물리 디스크에 부트 논리 볼륨이 있어야 합니다. 어떤 디스크 장치를 지정할지 알아보려면 명령 프롬프트에서 다음을 입력합니다.
text
lsvg -l rootvg

lsvg -l 명령은 루트 볼륨 그룹(rootvg)의 논리 볼륨을 나열합니다. 이 목록에서 부트 논리 볼륨의 이름을 찾을 수 있습니다. 그런 다음 명령 프롬프트에서 다음을 입력합니다.

text
lsvg -M rootvg

lsvg -M 명령은 여러 논리 볼륨이 들어 있는 물리 디스크를 나열합니다.

부트 논리 볼륨에 부트 이미지 만들기

기본 운영 체제를 설치하면(새 설치든 갱신이든) bosboot 명령이 불려 부트 이미지를 부트 논리 볼륨에 둡니다. 부트 논리 볼륨은 설치 중 LVM(Logical Volume Manager)으로 만든, 디스크에서 물리적으로 이어진 영역입니다.

이 절차의 전제 조건 목록은 부트 이미지 만들기를 봅니다.

bosboot 명령은 다음을 합니다.

  1. 부트 이미지를 만들 공간이 충분한지 파일 시스템을 확인합니다.
  2. mkfs 명령과 원형(prototype) 파일로 RAM 파일 시스템을 만듭니다.
  3. 커널과 RAM 파일 시스템을 부트 이미지로 합치는 mkboot 명령을 부릅니다.
  4. 부트 이미지를 부트 논리 볼륨에 씁니다.

고정 디스크의 기본 부트 논리 볼륨에 부트 이미지를 만들려면 명령 프롬프트에서 다음을 입력합니다.

text
bosboot -a

또는:

text
bosboot -ad /dev/ipldevice

참고: bosboot 명령이 부트 이미지를 만들다 실패하면 기계를 다시 부팅하지 않습니다. 문제를 고치고 bosboot 명령을 성공할 때까지 실행합니다.

새 부트 이미지를 쓰려면 시스템을 다시 부팅해야 합니다.

네트워크 장치용 부트 이미지 만들기

이더넷 부팅이나 토큰링 부팅용 부트 이미지를 만들 수 있습니다.

이 절차의 전제 조건 목록은 부트 이미지 만들기를 봅니다.

이더넷 부팅용 부트 이미지를 만들려면 명령 프롬프트에서 다음을 입력합니다.

text
bosboot -ad /dev/ent

토큰링 부팅용:

text
bosboot -ad /dev/tok
영어 원문

Creating boot images

To install the base operating system or to access a system that will not boot from the system hard drive, you need a boot image. This procedure describes how to create boot images. The boot image varies for each type of device.

When the system is first installed, the bosboot command creates a boot image from a RAM (random access memory) disk file system image and the operating system kernel. The boot image is transferred to a particular media such as the hard disk. When the machine is rebooted, the boot image is loaded from the media into memory. For more information about the bosboot command, see bosboot.

The associated RAM disk file system contains device configuration routines for the following devices:

  • Disk

  • Tape

  • CD-ROM

  • Network Token-Ring, Ethernet, or FDDI device

  • You must have root user authority to use the bosboot command.

  • The /tmp file system must have at least 20 MB of free space.

  • The physical disk must contain the boot logical volume. To determine which disk device to specify, type the following at a command prompt:

text
lsvg -l rootvg

The lsvg -l command lists the logical volumes on the root volume group (rootvg). From this list you can find the name of the boot logical volume. Then type the following at a command prompt:

text
lsvg -M rootvg

The lsvg -M command lists the physical disks that contain the various logical volumes.

Creating a boot image on a boot logical volume

If the base operating system is being installed (either a new installation or an update), the bosboot command is called to place the boot image on the boot logical volume. The boot logical volume is a physically contiguous area on the disk created through the Logical Volume Manager (LVM) during installation.

For a list of prerequisites for this procedure, see Creating boot images.

The bosboot command does the following:

  1. Checks the file system to see if there is enough room to create the boot image.

  2. Creates a RAM file system using the mkfs command and a prototype file.

  3. Calls the mkboot command, which merges the kernel and the RAM file system into a boot image.

  4. Writes the boot image to the boot logical volume.

To create a boot image on the default boot logical volume on the fixed disk, type the following at a command prompt:

text
bosboot -a

OR:

text
bosboot -ad /dev/ipldevice

Note: Do not reboot the machine if the bosboot command fails while creating a boot image. Resolve the problem and run the bosboot command to successful completion.

You must reboot the system for the new boot image to be available for use.

Creating boot images for network devices

You can create boot images for an Ethernet boot or Token-Ring boot.

For a list of prerequisites for this procedure, see Creating boot images.

To create a boot image for an Ethernet boot, type the following at a command prompt:

text
bosboot -ad /dev/ent

For a Token-Ring boot:

text
bosboot -ad /dev/tok

연재 목차

IBM AIX Version 6.1 Operating system and device management(2018년 판) 전체를 58편으로 나눠 옮깁니다. 각 글은 5.3판(SC23-5204-03, 2009년 판)과 비교한 내용을 끝에 붙입니다.

번호 글
1 개요와 시스템 시작(이 글)
2 System run level (준비 중)
3 Administering system backups (준비 중)
4 System image and user-defined volume groups backup (준비 중)
5 Shutting down the system (준비 중)
6 AIX Runtime Expert (준비 중)
7 Writing AIX Runtime Expert profiles (준비 중)
8 Writing AIX Runtime Expert catalogs (준비 중)
9 ConstraintDef element (준비 중)
10 Command element (준비 중)
11 Command-line generation (준비 중)
12 Commands (준비 중)
13 Processes (준비 중)
14 Managing system hang (준비 중)
15 System accounting (준비 중)
16 Administering system accounting (준비 중)
17 Troubleshooting system accounting (준비 중)
18 Operating system files (준비 중)
19 File and directory links (준비 중)
20 Korn shell (준비 중)
21 Restricted Korn shell (준비 중)
22 File name substitution in the Korn shell or POSIX shell (준비 중)
23 Job control in the Korn shell or POSIX shell (준비 중)
24 Bourne shell (준비 중)
25 C shell (준비 중)
26 C shell commands (준비 중)
27 Operating system security (준비 중)
28 User environment (준비 중)
29 BSD systems reference (준비 중)
30 Printers for BSD 4.3 system managers (준비 중)
31 AIX kernel recovery (준비 중)
32 Configuring Logical Volume Manager (준비 중)
33 Configuring a disk (준비 중)
34 Troubleshooting LVM (준비 중)
35 Logical volume storage (준비 중)
36 Configuring Logical Volume Storage (준비 중)
37 Logical volume strategy (준비 중)
38 Paging space and virtual memory (준비 중)
39 File systems (준비 중)
40 Maintaining file systems (준비 중)
41 Disk overflows (준비 중)
42 File system types (준비 중)
43 Directories (준비 중)
44 Workload manager (준비 중)
45 Administering Workload Manager (준비 중)
46 Classes (준비 중)
47 Resource management with Workload Manager (준비 중)
48 Workload Manager API (준비 중)
49 Device nodes (준비 중)
50 PCI hot plug management (준비 중)
51 SAN replication attributes (준비 중)
52 Targeted device configuration (준비 중)
53 USB device support (준비 중)
54 Common Desktop Environment (준비 중)
55 Checking the status of a print job (qchk command) (준비 중)
56 AIX Event Infrastructure for AIX and AIX clusters-AHAFS (준비 중)
57 Example Event Data (준비 중)
58 vmo (준비 중)

관련 글: oslevel 명령어, shutdown 명령어, reboot 명령어, bosboot 명령어, mkitab 명령어, lsitab 명령어