[AIX 운영 체제와 장치 관리 55] 인쇄 상태 확인과 그 밖의 장치 — qchk와 큐 상태, pr 서식, PostScript 인쇄, HEA를 쓰는 LPM, NIM 클라이언트 이전, DLPAR 그래픽 어댑터, 루프백 장치

핵심 정리

  • qchk로 인쇄 큐, 작업, 사용자 상태를 봅니다(qchk -q 기본 큐, qchk -A 모든 큐, -L -w 5 5초마다 긴 상태). 큐 상태는 DEV_BUSY, DEV_WAIT, DOWN, HELD, QUEUED, READY, RUNNING이며 DOWN 큐는 원인을 고친 뒤 직접 올려야 합니다.
  • pr 명령으로 머리글, 여러 열, 파일 나란히 놓기 같은 간단한 서식을 만들어 qprt로 보냅니다. PostScript 큐에는 qprt -da가 enscript 필터로 ASCII를 변환하며, smit chpq에서 자동 형식 감지를 켜면 %!로 시작하지 않는 파일을 자동 변환합니다.
  • HEA를 쓰는 LPM은 HEA를 EtherChannel의 주 어댑터로, 가상 이더넷 어댑터를 백업으로 구성해야 하며(EtherChannel 최대 넷) 이전 중 HEA는 빠지고 복원되지 않지만 네트워크 연결은 유지됩니다. smitty migration으로 실행하고 HMC가 다르면 먼저 mkauthkeys를 실행합니다.
  • LPM으로 옮긴 NIM 클라이언트는 NIM 마스터에서 nim -o change -a cpuid=로 cpuid를 갱신합니다.
  • 루프백 장치는 ISO 이미지, 디스크 이미지, 파일 시스템, 논리 볼륨 이미지 파일을 블록 장치로 쓰게 하며 loopmount로 만들고 마운트, loopumount로 해제합니다. 블록 크기는 늘 512바이트이고 WPAR에서는 지원하지 않습니다.
항목 내용
버전 AIX 6.1 (LPM·DLPAR·루프백 장치 절이 새로 실림)
원문 Operating system and device management — 5.3판 368373쪽, 6.1판 582590쪽
관련 명령어 qchk, lpq, lpstat, enq, pr, qprt -da, qprt -ds, smit chpq, smitty migration, mkauthkeys, nim -o change -a cpuid=, pdisable, odmget, loopmount, loopumount, mkdev, chdev, rmdev
관련 용어 HEA(Host Ethernet Adapter), LPM(Live Partition Mobility), DLPAR, EtherChannel, 루프백 장치

qchk 명령으로 인쇄 작업 상태를 확인할 수 있습니다.

  • 로컬 인쇄 작업은 프린터가 시스템에 물리적으로 붙어 있거나, 네트워크 프린터이면 네트워크에 붙어 구성돼 있어야 합니다.
  • 원격 인쇄 작업은 시스템이 원격 인쇄 서버와 통신하도록 구성돼 있어야 합니다.

qchk 명령으로 지정한 인쇄 작업, 인쇄 큐, 사용자의 현재 상태 정보를 표시합니다.

qchk 명령의 기본 형식은 다음과 같습니다.

text
qchk -P QueueName -# JobNumber -u OwnerName

참고: 기본 운영 체제는 BSD UNIX 인쇄 큐 확인 명령(lpq)과 System V UNIX 인쇄 큐 확인 명령(lpstat)도 지원합니다. 전체 구문은 Commands Reference의 lpq와 lpstat 명령을 봅니다.

다음은 qchk 명령 사용 예입니다.

  • 기본 인쇄 큐를 표시하려면 다음을 입력합니다.
text
qchk -q
  • 모든 큐가 빌 때까지 5초마다 화면을 갱신하며 모든 큐의 긴 상태를 표시하려면 다음을 입력합니다.
text
qchk -A -L -w 5
  • 인쇄 큐 lp0의 상태를 표시하려면 다음을 입력합니다.
text
qchk -P lp0
  • 작업 번호 123의 상태를 표시하려면 다음을 입력합니다.
text
qchk -# 123
  • 모든 큐의 모든 작업 상태를 확인하려면 다음을 입력합니다.
text
qchk -A

인쇄 큐 상태 조건

인쇄 큐가 가질 수 있는 상태 조건 가운데 일부는 다음과 같습니다.

상태 뜻
DEV_BUSY 둘 이상의 큐가 한 프린터 장치(lp0)에 정의돼 있고 다른 큐가 지금 그 프린터 장치를 쓰고 있거나, qdaemon이 프린터 포트 장치(lp0)를 쓰려 했지만 다른 응용 프로그램이 지금 그 장치를 쓰고 있다는 뜻입니다. DEV_BUSY에서 복구하려면 큐나 응용 프로그램이 프린터 장치를 놓을 때까지 기다리거나, 프린터 포트를 쓰는 작업이나 프로세스를 취소합니다.
DEV_WAIT 프린터가 오프라인이거나, 용지가 없거나, 걸렸거나, 케이블이 헐겁거나 불량이거나 잘못 연결돼 큐가 프린터를 기다리고 있다는 뜻입니다. DEV_WAIT에서 복구하려면 기다리게 만든 문제를 고칩니다. 진단 시험을 하려면 enq 명령으로 DEV_WAIT 큐에 든 작업을 모두 인쇄 중이거나 DOWN인 다른 큐로 옮기는 편이 쉬울 수 있습니다. 문제를 고친 뒤 인쇄되지 않은 작업을 원래 큐로 다시 옮길 수 있습니다.
DOWN 큐는 보통 DEV_WAIT 상태에 있다가 DOWN 상태가 됩니다. 프린터 장치 드라이버가 올바른 신호가 없어 프린터가 있는지 알 수 없을 때 생깁니다. 그러나 일부 프린터는 오프라인이라는 신호를 큐잉 시스템에 보내지 못하고 대신 꺼졌다는 신호를 보냅니다. 프린터 장치가 꺼졌다는 신호를 보내거나 꺼진 것처럼 보이면 큐는 DOWN 상태가 됩니다. DOWN 상태에서 복구하려면 큐를 내려가게 한 문제를 고치고 시스템 관리자가 큐를 다시 올리게 합니다. 큐를 다시 쓰려면 직접 올려야 합니다.
HELD 인쇄 작업이 보류돼 있다는 뜻입니다. 해제할 때까지 스풀러가 인쇄 작업을 처리할 수 없습니다.
QUEUED 인쇄 파일이 큐에 들어 인쇄를 기다리고 있다는 뜻입니다.
READY 큐에 관련된 모든 것이 작업을 큐에 넣고 인쇄할 준비가 됐다는 뜻입니다.
RUNNING 인쇄 파일이 인쇄 중이라는 뜻입니다.
영어 원문

Checking the status of a print job (qchk command)

You can use the qchk command to check the status of a print job.

  • For local print jobs, the printer must be physically attached to your system or, in the case of a network printer, attached and configured on the network.

  • For remote print jobs, your system must be configured to communicate with the remote print server.

Use the qchk command to display the current status information regarding specified print jobs, print queues, or users.

The basic format of the qchk command is:

text
qchk -P QueueName -# JobNumber -u OwnerName

Note: The base operating system also supports the BSD UNIX check print queue command (lpq) and the System V UNIX check print queue command (lpstat). For the complete syntaxes, see the lpq and lpstat commands in Commands Reference.

The following list contains examples of how to use the qchk command:

  • To display the default print queue, type:
text
qchk -q
  • To display the long status of all queues until empty, while updating the screen every 5 seconds, type:
text
qchk -A -L -w 5
  • To display the status for print queue lp0, type:
text
qchk -P lp0
  • To display the status for job number 123, type:
text
qchk -# 123
  • To check the status of all jobs in all queues, type:
text
qchk -A

Print queue status conditions

Some of the status conditions that a print queue can have are:

  • DEV_BUSY — Indicates that: • More than one queue is defined to a printer device (lp0) and another queue is currently using the printer device. • qdaemon attempted to use the printer port device (lp0), but another application is currently using that printer device To recover from a DEV_BUSY, wait until the queue or application has released the printer device, or cancel the job or process that is using the printer port.
  • DEV_WAIT — Indicates that the queue is waiting on the printer because the printer is offline, out of paper, jammed, or the cable is loose, bad, or wired incorrectly. To recover from a DEV_WAIT, correct the problem that caused it to wait. It might be easier for diagnostic testing to use the enq command to move all queued jobs from the DEV_WAIT queue to another queue that is either printing or is DOWN. After the problem is corrected, you can move any unprinted job back to the original queue.
  • DOWN — A queue usually goes into a DOWN state after it has been in the DEV_WAIT state. This situation occurs when the printer device driver cannot tell if the printer is there because of absence of correct signaling. However, some printers might not have the capability to signal the queuing system that they are offline, and they instead send signals that they are off. If the printer device signals or appears to be off, the queue will go into the DOWN state. To recover from a DOWN state, correct the problem that brought the queue down and have the system administrator bring the queue back up. The queue must be manually brought up before it can be used again.
  • HELD — Specifies that a print job is held. The print job cannot be processed by the spooler until it is released.
  • QUEUED — Specifies that a print file is queued and is waiting in line to be printed.
  • READY — Specifies that everything involved with the queue is ready to queue and print a job.
  • RUNNING — Specifies that a print file is printing.

인쇄 작업 상태 확인(SMIT)

smit 명령으로 인쇄 작업 상태를 확인할 수 있습니다.

  • 로컬 인쇄 작업은 프린터가 시스템에 물리적으로 붙어 있거나, 네트워크 프린터이면 네트워크에 붙어 구성돼 있어야 합니다.
  • 원격 인쇄 작업은 시스템이 원격 인쇄 서버와 통신하도록 구성돼 있어야 합니다.

지정한 작업 번호, 큐, 프린터, 사용자의 현재 상태 정보를 표시할 수 있습니다. SMIT로 인쇄 작업 상태를 확인하려면 다음을 입력합니다.

text
smit qchk

인쇄 큐 상태 조건

인쇄 큐 상태 조건(DEV_BUSY, DEV_WAIT, DOWN, HELD, QUEUED, READY, RUNNING)은 위 "인쇄 작업 상태 확인(qchk 명령)" 절의 표와 같습니다.

영어 원문

Checking the status of a print job (SMIT)

You can use the smit command to check the status of a print job.

  • For local print jobs, the printer must be physically attached to your system or, in the case of a network printer, attached and configured on the network.

  • For remote print jobs, your system must be configured to communicate with the remote print server.

You can display the current status information for specified job numbers, queues, printers, or users. To check a print job's status using SMIT, type:

text
smit qchk

Print queue status conditions

Some of the status conditions that a print queue can have are:

  • DEV_BUSY — Indicates that: • More than one queue is defined to a printer device (lp0) and another queue is currently using the printer device. • qdaemon attempted to use the printer port device (lp0), but another application is currently using that printer device To recover from a DEV_BUSY, wait until the queue or application has released the printer device, or cancel the job or process that is using the printer port.
  • DEV_WAIT — Indicates that the queue is waiting on the printer because the printer is offline, out of paper, jammed, or the cable is loose, bad, or wired incorrectly. To recover from a DEV_WAIT, correct the problem that caused it to wait. It might be easier for diagnostic testing to use the enq command to move all queued jobs from the DEV_WAIT queue to another queue that is either printing or is DOWN. After the problem is corrected, you can move any unprinted job back to the original queue.
  • DOWN — A queue usually goes into a DOWN state after it has been in the DEV_WAIT state. This situation occurs when the printer device driver cannot tell if the printer is there because of absence of correct signaling. However, some printers might not have the capability to signal the queuing system that they are offline, and they instead send signals that they are off. If the printer device signals or appears to be off, the queue will go into the DOWN state. To recover from a DOWN state, correct the problem that brought the queue down and have the system administrator bring the queue back up. The queue must be manually brought up before it can be used again.
  • HELD — Specifies that a print job is held. The print job cannot be processed by the spooler until it is released.
  • QUEUED — Specifies that a print file is queued and is waiting in line to be printed.
  • READY — Specifies that everything involved with the queue is ready to queue and print a job.
  • RUNNING — Specifies that a print file is printing.

인쇄 작업 상태 확인(Web-based System Manager)

Web-based System Manager로 인쇄 작업 상태를 확인할 수 있습니다.

  • 로컬 인쇄 작업은 프린터가 시스템에 물리적으로 붙어 있거나, 네트워크 프린터이면 네트워크에 붙어 구성돼 있어야 합니다.
  • 원격 인쇄 작업은 시스템이 원격 인쇄 서버와 통신하도록 구성돼 있어야 합니다.

지정한 작업 번호, 큐, 프린터, 사용자의 현재 상태 정보를 표시할 수 있습니다.

  1. Web-based System Manager로 인쇄 작업 상태를 확인하려면 wsm을 입력한 뒤 Printers를 고릅니다.
  2. Printer Queues 창에서 인쇄 작업을 고른 뒤 메뉴로 인쇄 작업 상태를 확인합니다.

인쇄 큐 상태 조건

인쇄 큐 상태 조건(DEV_BUSY, DEV_WAIT, DOWN, HELD, QUEUED, READY, RUNNING)은 위 "인쇄 작업 상태 확인(qchk 명령)" 절의 표와 같습니다.

영어 원문

Checking the status of a print job (Web-based System Manager)

You can use the Web-based System Manager to check the status of a print job.

  • For local print jobs, the printer must be physically attached to your system or, in the case of a network printer, attached and configured on the network.

  • For remote print jobs, your system must be configured to communicate with the remote print server.

You can display the current status information for specified job numbers, queues, printers, or users.

  1. To check the status of a print job using the Web-based System Manager, type wsm, and then select Printers.

  2. In the Printer Queues window, select the print job, and then use the menus to check the print job's status.

Print queue status conditions

Some of the status conditions that a print queue can have are:

  • DEV_BUSY — Indicates that: • More than one queue is defined to a printer device (lp0) and another queue is currently using the printer device. • qdaemon attempted to use the printer port device (lp0), but another application is currently using that printer device To recover from a DEV_BUSY, wait until the queue or application has released the printer device, or cancel the job or process that is using the printer port.
  • DEV_WAIT — Indicates that the queue is waiting on the printer because the printer is offline, out of paper, jammed, or the cable is loose, bad, or wired incorrectly. To recover from a DEV_WAIT, correct the problem that caused it to wait. It might be easier for diagnostic testing to use the enq command to move all queued jobs from the DEV_WAIT queue to another queue that is either printing or is DOWN. After the problem is corrected, you can move any unprinted job back to the original queue.
  • DOWN — A queue usually goes into a DOWN state after it has been in the DEV_WAIT state. This situation occurs when the printer device driver cannot tell if the printer is there because of absence of correct signaling. However, some printers might not have the capability to signal the queuing system that they are offline, and they instead send signals that they are off. If the printer device signals or appears to be off, the queue will go into the DOWN state. To recover from a DOWN state, correct the problem that brought the queue down and have the system administrator bring the queue back up. The queue must be manually brought up before it can be used again.
  • HELD — Specifies that a print job is held. The print job cannot be processed by the spooler until it is released.
  • QUEUED — Specifies that a print file is queued and is waiting in line to be printed.
  • READY — Specifies that everything involved with the queue is ready to queue and print a job.
  • RUNNING — Specifies that a print file is printing.

인쇄용 파일 서식 지정(pr 명령)

pr 명령으로 프린터에 보낼 파일에 간단한 서식을 줄 수 있습니다.

pr 명령 출력을 qprt 명령으로 파이프해 텍스트 서식을 줄 수 있습니다.

쓸모 있는 pr 명령 플래그는 다음과 같습니다.

플래그 설명
-d 출력을 두 줄 간격으로 합니다.
-h "String" 페이지 머리글로 파일 이름 대신 따옴표(" ")로 둘러싼 지정 문자열을 표시합니다. 플래그와 문자열은 공백으로 띄웁니다.
-l Lines 기본 66줄 대신 페이지 길이를 Lines 줄로 바꿉니다. Lines 값이 머리글과 꼬리글 깊이(줄 수) 합보다 작으면 (-t 플래그를 쓴 것처럼) 머리글과 꼬리글을 생략합니다.
-m 파일을 합칩니다. pr 명령이 File 변수로 지정한 각 파일에서 한 줄씩, 열 위치 수에 따라 너비가 같은 고정 열에 나란히 쓰도록 표준 출력을 서식화합니다. -Column 플래그와 함께 쓰지 않습니다.
-n [Width][Character] Width 변수로 지정한 자릿수로 줄 번호를 붙입니다. 기본값은 5자리입니다. Character(숫자가 아닌 아무 문자)를 지정하면 줄 번호 뒤에 붙여 그 줄 내용과 구분합니다. 기본 구분 문자는 ASCII 탭입니다.
-o Offset 각 줄을 Offset 글자 위치만큼 들여씁니다. 줄당 전체 글자 위치 수는 너비와 오프셋의 합입니다. Offset 기본값은 0입니다.
-s Character 열을 알맞은 수의 공백 대신 Character로 지정한 한 글자로 구분합니다. Character 기본값은 ASCII 탭입니다.
-t 다섯 줄짜리 식별 머리글과 다섯 줄짜리 꼬리글을 표시하지 않습니다. 각 파일 마지막 줄 뒤에 페이지 끝까지 띄우지 않고 멈춥니다.
-w Width 줄당 열 위치 수를 Width 값으로 설정합니다. 너비가 같은 여러 열 출력의 기본값은 72이며 그 밖에는 제한이 없습니다. -w 없이 -s를 지정하면 기본 너비는 512열 위치입니다.
-Column 열 수를 Column 값으로 설정합니다. 기본값은 1입니다. -m 플래그와 함께 쓰지 않습니다. 여러 열 출력에서는 -e와 -i 플래그를 쓴 것으로 봅니다. 텍스트 열이 페이지 길이(-l 플래그 참조)를 넘으면 안 됩니다. -t 플래그와 함께 쓰면 출력에 최소 줄 수를 씁니다.
+Page Page 변수로 지정한 페이지 번호부터 표시합니다. 기본값은 1입니다.

전체 구문은 Commands Reference의 pr 명령을 봅니다.

다음은 pr 명령 플래그 사용 예입니다.

  • prog.c라는 파일을 머리글과 페이지 번호를 붙여 프린터로 인쇄하려면 다음을 입력합니다.
text
pr prog.c | qprt

prog.c에 페이지 머리글을 더해 qprt 명령으로 보냅니다. 머리글은 파일을 마지막으로 수정한 날짜, 파일 이름, 페이지 번호입니다.

  • prog.c라는 파일에 제목을 지정하려면 다음을 입력합니다.
text
pr -h "MAIN PROGRAM" prog.c | qprt

파일 이름 대신 MAIN PROGRAM이라는 제목으로 prog.c를 인쇄합니다. 수정 날짜와 페이지 번호는 그대로 인쇄됩니다.

  • word.lst라는 파일을 여러 열로 인쇄하려면 다음을 입력합니다.
text
pr -3 word.lst | qprt

word.lst 파일을 세로 세 열로 인쇄합니다.

  • 여러 파일을 용지에 나란히 인쇄하려면 다음을 입력합니다.
text
pr -m -h "Members and Visitors" member.lst visitor.lst | qprt

member.lst와 visitor.lst를 Members and Visitors라는 제목으로 나란히 인쇄합니다.

  • 나중에 쓰려고 prog.c라는 파일을 바꾸려면 다음을 입력합니다.
text
pr -t -e prog.c > prog.notab.c

prog.c의 탭 문자를 공백으로 바꾸고 결과를 prog.notab.c에 넣습니다. 탭 위치는 9, 17, 25, 33열 등입니다. -e 플래그는 pr 명령에 탭 문자를 바꾸라고 하고, -t 플래그는 페이지 머리글을 생략합니다.

  • myfile이라는 파일을 두 열, 가로 방향, 7포인트 텍스트로 인쇄하려면 다음을 입력합니다.
text
pr -l66 -w172 -2 myfile | qprt -z1 -p7
영어 원문

Formatting files for printing (pr command)

You can use the pr command to perform simple formatting of files that are sent to a printer.

You can pipe the output of the pr command to the qprt command to format your text.

Some useful pr command flags are:

  • -d — Double-spaces the output.
  • -h " String" — Displays the specified string, enclosed in quotes (" "), instead of the file name as the page header. Separate the flag and string by a space.
  • -l Lines — Overrides the 66-line default and resets the page length to the number of lines specified by the Lines variable. If the Lines value is smaller than the sum of both the header and trailer depths (in lines), the header and trailer are suppressed (as if the -t flag were in effect).
  • -m — Merges files. Standard output is formatted so the pr command writes one line from each file specified by a File variable, side by side into text columns of equal fixed widths, based on the number of column positions. This flag should not be used with the -Column flag.
  • -n [Width][Character] — Provides line numbering based on the number of digits specified by the Width variable. The default is 5 digits. If the Character (any nondigit character) variable is specified, it is appended to the line number to separate it from what follows on the line. The default character separator is the ASCII Tab character.
  • -o Offset — Indents each line by the number of character positions specified by the Offset variable. The total number of character positions per line is the sum of the width and offset. The default value of Offset is 0.
  • -s Character — Separates columns by the single character specified by the Character variable instead of by the appropriate number of spaces. The default value for Character is an ASCII Tab character.
  • -t — Does not display the five-line identifying header and the five-line footer. Stops after the last line of each file without spacing to the end of the page.
  • -w Width — Sets the number of column positions per line to the value specified by the Width variable. The default value is 72 for equal-width multicolumn output. There is no limit otherwise. If the -w flag is not specified and the -s flag is specified, the default width is 512 column positions.
  • -Column — Sets the number of columns to the value specified by the Column variable. The default value is 1. Do not use this option with the -m flag. The -e and -i flags are assumed for multicolumn output. A text column should never exceed the length of the page (see the -l flag). When this flag is used with the -t flag, use the minimum number of lines to write the output.
  • +Page — Begins the display with the page number specified by the Page variable. The default value is 1.

For the complete syntax, see the pr command in in Commands Reference.

The following is a list of examples of how pr command flags can be used:

  • To print a file named prog.c with headings and page numbers on the printer, type:
text
pr prog.c | qprt

This command adds page headings to prog.c and sends it to the qprt command. The heading consists of the date the file was last modified, the file name, and the page number.

  • To specify a title for a file named prog.c, type:
text
pr -h "MAIN PROGRAM" prog.c | qprt

This prints prog.c with the title MAIN PROGRAM in place of the file name. The modification date and page number are still printed.

  • To print a file named word.lst in multiple columns, type:
text
pr -3 word.lst | qprt

This prints the word.lst file in three vertical columns.

  • To print several files side by side on the paper, type:
text
pr -m -h "Members and Visitors" member.lst visitor.lst | qprt

This prints member.lst and visitor.lst side by side with the title Members and Visitors.

  • To modify a file named prog.c for later use, type:
text
pr -t -e prog.c > prog.notab.c

This command replaces tab characters in prog.c with spaces and puts the result in prog.notab.c. Tab positions are at columns 9, 17, 25, 33, and so on. The -e flag tells the pr command to replace the tab characters; the -t flag suppresses the page headings.

  • To print a file named myfile in two columns, in landscape, and in 7-point text, type:
text
pr -l66 -w172 -2 myfile | qprt -z1 -p7

PostScript 프린터에서 ASCII 파일 인쇄

Text Formatting System에는 PostScript 프린터에서 인쇄하도록 ASCII 인쇄 파일을 PostScript 파일로 바꾸는 enscript 필터가 있습니다.

  • 프린터가 시스템에 물리적으로 붙어 있어야 합니다.
  • 프린터가 구성되고 정의돼 있어야 합니다.
  • Text Formatting Services의 transcript 부분이 설치돼 있어야 합니다.

enscript 필터는 PostScript 인쇄 큐에 인쇄 작업을 제출할 때 qprt -da 명령이 부릅니다. PostScript 인쇄 큐에 ASCII 파일을 제출할 때 출력을 맞추려고 qprt 명령에 여러 플래그를 지정할 수 있습니다.

플래그 설명
-1+ 페이지 머리글을 더합니다.
-2+ 출력을 두 열로 서식화합니다.
-3+ 페이지 머리글, 날짜, 페이지 번호를 화려한 스타일로 인쇄합니다. "gaudy" 모드라고도 합니다.
-4+ 인쇄할 수 없는 문자가 있어도 파일을 인쇄합니다.
-5+ 글꼴에 없는 문자를 나열합니다.
-h string 페이지 머리글로 쓸 문자열을 지정합니다. 지정하지 않으면 머리글은 파일 이름, 수정 날짜, 페이지 번호입니다.
-l value 페이지당 인쇄할 최대 줄 수를 지정합니다. 포인트 크기에 따라 실제로는 페이지당 줄이 더 적게 나올 수 있습니다.
-L! 페이지 너비보다 긴 줄을 자릅니다.
-p 포인트 크기를 지정합니다. 지정하지 않으면 10포인트로 보되, 두 열 회전 모드(-2+ -z1)를 지정하면 7을 씁니다.
-s 글꼴 스타일을 지정합니다. 지정하지 않으면 Courier 글꼴을 씁니다. PostScript 프린터가 지정한 글꼴에 접근할 수 있어야 합니다. 쓸 수 있는 값은 Courier-Oblique, Helvetica, Helvetica-Oblique, Helvetica-Narrow, Helvetica-Narrow-Oblique, NewCenturySchlbk-Italic, Optima, Optima-Oblique, Palatino-Roman, Palatino-Italic, Times-Roman, Times-Italic입니다.
-z1 출력을 90도 회전합니다(가로 모드).

다음은 이 qprt 명령 플래그 사용 예입니다.

  • ASCII 파일 myfile.ascii를 Msps1이라는 PostScript 프린터로 보내려면 다음을 입력합니다.
text
qprt -da -PMsps1 myfile.ascii
  • ASCII 파일 myfile.ascii를 Msps1이라는 PostScript 프린터로 보내 Helvetica 글꼴로 인쇄하려면 다음을 입력합니다.
text
qprt -da -PMsps1 -sHelvetica myfile.ascii
  • ASCII 파일 myfile.ascii를 Msps1이라는 PostScript 프린터로 보내 9포인트로 인쇄하려면 다음을 입력합니다.
text
qprt -da -PMsps1 -p9 myfile.ascii

ASCII에서 PostScript로 자동 변환

PostScript 인쇄 큐에 제출된 ASCII 인쇄 파일을 시스템이 감지해 PostScript 프린터용 PostScript로 자동 변환하도록 구성할 수 있습니다.

PostScript 인쇄 파일을 만드는 많은 응용 프로그램은 PostScript 파일의 처음 두 글자를 %!로 하는 관례를 따르며, 이것이 인쇄 파일을 PostScript 인쇄 파일로 식별합니다. PostScript 인쇄 큐에 제출된 ASCII 인쇄 파일을 감지해 PostScript 프린터로 보내기 전에 PostScript 파일로 자동 변환하도록 시스템을 구성하려면 다음 단계를 따릅니다.

  1. 프롬프트에 smit chpq를 입력합니다.
  2. PostScript 큐 이름을 입력하거나 List 기능으로 큐 목록에서 고릅니다.
  3. Printer Setup 메뉴 옵션을 고릅니다.
  4. AUTOMATIC detection of print file TYPE to be done? 필드 값을 yes로 바꿉니다.

이제 다음 명령 가운데 어느 것이든 ASCII 파일을 PostScript 파일로 바꿔 PostScript 프린터에서 인쇄합니다. myfile.ascii를 변환하려면 명령행에 다음 가운데 하나를 입력합니다.

text
qprt -Pps myfile. ps myfile.ascii
lpr -Pps myfile. ps myfile.ascii
lp -dps myfile. ps myfile.acsii

ps는 PostScript 인쇄 큐입니다.

인쇄 파일 형식 자동 판별 무시

인쇄 파일 형식 자동 판별을 무시해야 할 때가 있습니다.

-d와 -s 플래그로 PostScript 인쇄의 인쇄 파일 형식 자동 판별을 무시할 수 있습니다. -d 플래그는 기본 인쇄 파일 형식을 무시하고 -s 플래그는 PostScript 인쇄를 지정합니다.

다음 상황에서는 PostScript 인쇄의 인쇄 파일 형식 자동 판별을 무시해야 할 수 있습니다.

  • %!로 시작하지 않는 myfile.ps라는 PostScript 파일을 인쇄하려면 다음 명령을 입력합니다.
text
qprt -ds -Pps myfile.ps
  • %!로 시작하는 myfile.ps라는 PostScript 파일의 소스 목록을 인쇄하려면 다음 명령을 입력합니다.
text
qprt -da -Pps myfile.ps
영어 원문

Printing ASCII files on a PostScript printer

The Text Formatting System includes the enscript filter for converting ASCII print files to PostScript files for printing on a PostScript printer.

  • The printer must be physically attached to your system.

  • The printer must be configured and defined.

  • The transcript portion of Text Formatting Services must be installed.

The enscript filter is called by the qprt -da command when submitting a print job to a PostScript print queue. Several flags may be specified with the qprt command to customize the output when submitting ASCII files to a PostScript print queue:

  • -1+ — Adds page headings.
  • -2+ — Formats the output in two columns.
  • -3+ — Prints the page headings, dates, and page numbers in a fancy style. This is sometimes referred to as "gaudy" mode.
  • -4+ — Prints the file, even if it contains unprintable characters.
  • -5+ — Lists characters that are not included in a font.
  • -h string — Specifies a string to be used for page headings. If this flag is not specified, the heading consists of the file name, modification date, and page number.
  • -l value — Specifies the maximum number of lines printed per page. Depending on the point size, fewer lines per page might actually be displayed.
  • -L! — Truncates lines longer than the page width.
  • -p — Specifies the point size. If this flag is not specified, a point size of 10 is assumed, unless two-column rotated mode (-2+ -z1) is specified, in which case a value of 7 is used.
  • -s — Specifies the font style. If this flag is not specified, the Courier font is used. The PostScript printer must have access to the specified font. Acceptable values are: Courier-Oblique Helvetica Helvetica-Oblique Helvetica-Narrow Helvetica-Narrow-Oblique NewCenturySchlbk-Italic Optima Optima-Oblique Palatino-Roman Palatino-Italic Times-Roman Times-Italic
  • -z1 — Rotates the output 90 degrees (landscape mode).

The following list contains examples of how these qrpt command flags can be used:

  • To send the ACSII file myfile.ascii to the PostScript printer named Msps1, type:
text
qprt -da -PMsps1 myfile.ascii
  • To send the ACSII file myfile.ascii to the PostScript printer named Msps1 and print out in the Helvetica font, type:
text
qprt -da -PMsps1 -sHelvetica myfile.ascii
  • To send the ASCII file myfile.ascii to the PostScript printer named Msps1 and print out in the point size 9, type:
text
qprt -da -PMsps1 -p9 myfile.ascii

Automating the conversion of ASCII to PostScript

You can configure the system to detect ASCII print files submitted to a PostScript print queue and automatically convert these ASCII files to PostScript for a PostScript printer.

Many applications that generate PostScript print files follow the convention of making the first two characters of the PostScript file %!, which identifies the print file as a PostScript print file. To configure the system to detect ASCII print files submitted to a PostScript print queue and automatically convert them to PostScript files before sending them to the PostScript printer, perform these steps:

  1. At the prompt, type: smit chpq

  2. Type the PostScript queue name, or use the List feature to select from a list of queues.

  3. Select the Printer Setup menu option.

  4. Change the value of AUTOMATIC detection of print file TYPE to be done? field to yes.

Any of the following commands now convert an ASCII file to a PostScript file and print it on a PostScript printer. To convert myfile.ascii, type any of the following at the command line:

text
qprt -Pps myfile. ps myfile.ascii
lpr -Pps myfile. ps myfile.ascii
lp -dps myfile. ps myfile.acsii

whereps is a PostScript print queue.

Overriding automatic determination of print file types

In some cases, you may need to override the automatic determination of print file types.

You can override the automatic determination of print file type for PostScript printing with the -d and -s flags. The -d flag overrides the default print file type and the -s flag specifies PostScript printing.

You might need to override the automatic determination of print file type for PostScript printing in the following situations:

  • To print a PostScript file named myfile.ps that does not begin with %!, type the following command:
text
qprt -ds -Pps myfile.ps
  • To print the source listing of a PostScript file named myfile.ps that begins with %!, type the following command:
text
qprt -da -Pps myfile.ps

인쇄 명령 요약

인쇄와 인쇄 큐 관리에 쓰는 명령이 여럿 있습니다.

명령 설명
cancel 라인 프린터 요청을 취소합니다.
lp 라인 프린터에 요청을 보냅니다.
lpq 스풀 큐를 살펴봅니다.
lpr 인쇄 작업을 큐에 넣습니다.
lprm 라인 프린터 스풀링 큐에서 작업을 지웁니다.
lpstat 라인 프린터 상태 정보를 표시합니다.
pr 파일을 표준 출력에 씁니다.
qcan 인쇄 작업을 취소합니다.
qchk 인쇄 큐 상태를 표시합니다.
qhld 인쇄 작업을 보류하거나 해제합니다.
qmov 인쇄 작업을 다른 인쇄 큐로 옮깁니다.
qpri 인쇄 큐 안 작업의 우선순위를 정합니다.
qprt 인쇄 작업을 시작합니다.
영어 원문

Command summary for printing

There are a number of commands used for printing and managing print queues.

  • cancel — Cancels requests to a line printer.
  • lp — Sends requests to a line printer.
  • lpq — Examines the spool queue.
  • lpr — Enqueues print jobs.
  • lprm — Removes jobs from the line printer spooling queue.
  • lpstat — Displays line printer status information.
  • pr — Writes a file to standard output.
  • qcan — Cancels a print job.
  • qchk — Displays the status of a print queue.
  • qhld — Holds or releases a print job.
  • qmov — Moves a print job to another print queue.
  • qpri — Prioritizes a job in the print queue.
  • qprt — Starts a print job.

HEA를 쓰는 라이브 파티션 이동

IBM PowerVM 소프트웨어의 HEA(Host Ethernet Adapter)를 쓰는 LPM(Live Partition Mobility) 기능으로, 이전 파티션에 HEA가 할당된 상태에서 AIX LPAR과 그 위의 응용 프로그램을 한 물리 파티션에서 다른 물리 파티션으로 옮길 수 있습니다.

이전하는 동안 HEA는 이전하는 파티션에서 빠지며, 이전이 끝나도 파티션에 HEA가 복원되지 않습니다. 그러나 네트워크 연결은 영향을 받지 않습니다.

영어 원문

Live Partition Mobility with Host Ethernet Adapters

Using the Live Partition Mobility (LPM) with Host Ethernet Adapters (HEA) feature of IBM PowerVM® software, you can migrate an AIX LPAR and hosted applications from one physical partition to another physical partition while HEA is assigned to the migration partition.

During the migration, HEA will be removed from the migrating partition, and HEA will not be restored on the partitions when migration is complete. However, your network connectivity will remain unaffected.

HEA를 쓰는 LPM 요구 사항

HEA를 쓰는 LPM을 시작하기 전에 시스템 환경이 구성과 접근 요구 사항을 갖췄는지 확인해야 합니다.

파티션 요구 사항

  • 원본 CEC와 대상 CEC가 파티션 이전을 할 수 있어야 합니다.
  • 원본 AIX LPAR의 프로필에 Required로 설정된 물리 자원이 없어야 합니다.
  • 원본 AIX LPAR에 HEA 말고 다른 물리 자원이 없어야 합니다.

접근 요구 사항

  • 이전할 파티션에 root 권한이 있어야 합니다.
  • 원본 HMC와 대상 HMC에 hscroot 권한이나 파티션 이전에 필요한 같은 수준의 권한이 있어야 합니다.

구성 요구 사항

  • 파티션 프로필에서 HEA가 Required 설정이면 안 되지만 Desired 설정은 괜찮습니다.
  • 모든 HEA는 EtherChannel 아래 주 어댑터로 구성돼야 합니다.
  • EtherChannel의 모든 주 어댑터는 HEA여야 합니다.
  • EtherChannel의 백업 어댑터는 가상 이더넷 어댑터여야 합니다.
  • HEA를 주 어댑터로, 가상 이더넷 어댑터를 백업 어댑터로 하는 EtherChannel이 적어도 하나 구성돼 있어야 합니다.
  • EtherChannel은 넷까지 지원합니다.
  • EtherChannel 장애 조치가 동작해야 합니다.
  • 원본 시스템과 대상 시스템 모두 파티션 이전용으로 설정됐는지 확인해야 합니다.
  • 두 HMC 사이에서 이전하면 원본 HMC와 원격 HMC 사이에 SSH 인증을 설정해야 합니다. 이전을 시작하기 전에 원본 HMC에서 mkauthkeys 명령을 실행해야 합니다.
영어 원문

Requirements for Live Partition Mobility with HEA

Before you can start using LPM with HEA, you must make sure that your system environment meets configuration and access requirements.

Partition requirements

  • The CEC source and CEC target must be capable for partition migration.

  • The source AIX LPAR must not have any physical resources with the setting Required in its profile.

  • The source AIX LPAR must not have any physical resources besides a HEA.

Access requirements

  • You must have root authority on the partition that you want to migrate.

  • You must have hscroot authority or equivalent authority required for partition migration on the source HMC and destination HMC.

Configuration requirements

  • HEA must not have the Required setting in the partition profile, but it can have the Desired setting in the profile.

  • All HEA must be configured under EtherChannel as primary adapters.

  • All primary adapters in EtherChannel must be HEA.

  • The backup adapter for EtherChannel must be a Virtual Ethernet adapter.

  • A minimum of one EtherChannel must be configured with HEA as a primary adapter and Virtual Ethernet adapter as a backup adapter.

  • A maximum of four EtherChannel is supported.

  • EtherChannel failover must be functional.

  • You must verify that both the source system and target system are set up for partition migration.

  • If you are migrating between two HMCs, you must set up SSH authentication between the source HMC and remote HMC. You must run the mkauthkeys command on the source HMC before you start the migration.

HEA를 쓰는 LPM 실행

SMIT 인터페이스로 HEA를 쓰는 LPM을 실행할 수 있습니다.

HEA를 쓰는 LPM을 하기 전에 "HEA를 쓰는 LPM 요구 사항" 주제를 봅니다.

HEA를 쓰는 LPM 파티션 이전을 마치려면 다음 단계를 따릅니다.

  1. 명령 프롬프트에서 SMIT 빠른 경로 smitty migration을 입력해 Live Partition Mobility with Host Ethernet Adapter (HEA) 메뉴를 표시합니다.

  2. 원본 HMC 호스트 이름이나 IP 주소를 지정합니다.

  3. 원본 HMC 사용자 이름을 지정합니다.

  4. 원본과 대상 시스템을 같은 HMC가 관리하면 no를 입력하고 5단계로 갑니다. 원본과 대상 시스템을 서로 다른 HMC가 관리하면 yes를 입력하고 다음 단계를 마칩니다.

    참고: yes를 입력하기 전에 원본 HMC에서 mkauthkeys 명령을 실행해야 합니다.

    1. 원격 HMC 호스트 이름이나 IP 주소를 지정합니다.
    2. 원본 HMC 사용자 이름을 지정합니다.
  5. 원본 시스템 이름을 지정합니다.

  6. 대상 시스템 이름을 지정합니다.

  7. 이전할 파티션 이름을 지정합니다.

  8. 검증 없이 이전하려면 no를 입력합니다. 이전 검증만 하려면 yes를 입력합니다. yes를 지정하면 이전은 하지 않고 검증만 합니다.

    참고: 파티션을 이전하기 전에 파티션 이전 검증을 해야 합니다.

  9. 모든 필드에 올바른 정보가 있는지 확인하고 Enter를 눌러 이전을 실행합니다.

    참고: 암호를 두 번 입력하라는 요청을 받습니다. 4단계의 2번째 하위 단계에서 지정한 원본 HMC 사용자 이름의 암호를 입력합니다.

이 예에서 파티션 X는 HMC A가 관리하는 CEC C에서 HMC B가 관리하는 CEC D로 이전합니다. HMC A와 HMC B 사이 인증을 위해 HMC A에서 mkauthkeys 명령을 실행합니다.

이 이전 과정에서는 SMIT에 다음 값을 지정합니다.

text
Source HMC Hostname or IP address: A
Source HMC username: hscroot
Migration between two HMCs: yes
 Remote HMC hostname or IP address: B
 Remote HMC username: hscroot
Source system: C
Destination system: D
Migrating Partition name: X
Migration validation only: no

또 다른 예로 파티션 X가 HMC A가 관리하는 CEC C에서 역시 HMC A가 관리하는 CEC D로 이전한다고 합시다.

이 이전 과정에서는 SMIT에 다음 값을 지정합니다.

text
Source HMC Hostname or IP address: A
Source HMC username: hscroot
Migration between two HMCs: no
 Remote HMC hostname or IP address:
 Remote HMC username:
Source system: C
Destination system: D
Migrating Partition name: X
Migration validation only: no

이전이 실패하면 원본 HMC에서 라이브 파티션 이동을 하는 절차를 따릅니다.

영어 원문

Running Live Partition Mobility with HEA

You can run LPM with HEA using the SMIT interface.

Review the Requirements for Live Partition Mobility with HEA topic before you attempt to use LPM with HEA.

To complete a LPM with HEA partition migration, complete the following steps:

  1. From the command prompt, enter the following SMIT fastpath: smitty migration to display the Live Partition Mobility with Host Ethernet Adapter (HEA) menu.

  2. Specify the source HMC hostname or IP address.

  3. Specify the source HMC username.

  4. Enter no if source and destination systems are managed by same HMC and go to step 5. Enter yes if the source and destination systems are managed by different HMCs and complete the following steps:

Note: You must run the mkauthkeys command on the source HMC before you enter yes. a. Specify the remote HMC hostname or IP address. b. Specify the source HMC username.

  1. Specify the name of the source system.

  2. Specify the name of the destination system.

  3. Specify the name of the partition you want to migrate.

  4. Enter no if you want to perform the migration without validation. Enter yes if you want to perform migration validation only. If you specify yes the migration is not performed, and only the validation is performed.

Note: You should perform partition migration validation before performing the partition migration.

  1. Verify that all fields have the correct information and press Enter to execute the migration.

Note: You will be prompted two times to enter the password. Enter the password for the source HMC username that you previously specified in step 4b.

In this example partition X is migrating from the CEC C that is managed by HMC A to the CEC D that is managed by HMC B. Run the mkauthkeys command on HMC A for authentication between HMC A and HMC B.

For this migration process, the following values are specified in SMIT:

text
Source HMC Hostname or IP address: A
Source HMC username: hscroot
Migration between two HMCs: yes
 Remote HMC hostname or IP address: B
 Remote HMC username: hscroot
Source system: C
Destination system: D
Migrating Partition name: X
Migration validation only: no

Another example would be if partition X is migrating from CEC C managed by HMC A to CEC D that is also managed by HMC A.

For this migration process, the following values are specified in SMIT:

text
Source HMC Hostname or IP address: A
Source HMC username: hscroot
Migration between two HMCs: no
 Remote HMC hostname or IP address:
 Remote HMC username:
Source system: C
Destination system: D
Migrating Partition name: X
Migration validation only: no

In case of migration failure, follow the procedure to perform Live Partition Mobility from the source HMC.

LPM으로 NIM 클라이언트 이전

LPM(Live Partition Mobility)으로 기계를 한 물리 서버에서 다른 서버로 옮기고 그 기계가 NIM(Network Installation Management) 클라이언트로 정의돼 있으면, LPM 이전이 끝난 뒤 NIM 관리자가 NIM 클라이언트의 cpuid 속성을 새 하드웨어 값으로 갱신해야 합니다.

cpuid 속성을 갱신하려면 다음 단계를 마칩니다.

  1. NIM 클라이언트에서 다음 명령을 실행해 새 cpuid ID를 얻습니다.
text
uname -a
  1. NIM 마스터에서 다음 명령을 실행합니다.
text
nim -o change -a cpuid= cpuid client

참고: AIX 운영 체제에서 CSM(Cluster Systems Management) 지원이 없어졌으므로 OS_install 네트워크 설치 프로그램은 더는 Linux 운영 체제 설치를 지원하지 않습니다.

영어 원문

Migrating a NIM client by using LPM

When Live Partition Mobility (LPM) is used to move a machine from one physical server to another and the machine is defined as a Network Installation Management (NIM) client, the NIM administrator must update the cpuid attribute for the NIM client to reflect the new hardware value after the LPM migration completes.

To update the cpuid attribute, complete the following steps:

  1. On the NIM client, acquire the new cpuid ID by running the following command:
text
uname -a
  1. On the NIM master, run the following command:
text
nim -o change -a cpuid= cpuid client

Note: The OS_install network installer no longer supports the installation of the Linux operating system because of the removal of Cluster Systems Management (CSM) support in the AIX operating system.

DLPAR용 어댑터 재배치

DLPAR(dynamic logical partitioning) 작업용으로 어댑터를 재배치하기 전에 그래픽 어댑터를 구성해야 합니다.

다음 지침으로 FC 5748 같은 그래픽 어댑터를 동적으로 재배치합니다.

  1. 그래픽 어댑터(예: /dev/lft0)를 쓰는 현재 프로세스(데스크톱, X 서버)가 없는지 확인합니다.
  2. 콘솔이 lft0으로 설정돼 있지 않은지 확인합니다. 정의되거나 쓸 수 있는 종속 인터페이스(lft나 rcm)를 알아보려면 다음 명령을 입력합니다.
text
lsdev -C | grep lft
lsdev -C | grep rcm

그래픽 어댑터가 정의된 뒤 부모 PCI(Peripheral Component Interconnect) 어댑터를 얻으려면 다음 명령을 입력합니다.

text
odmget -q name=<cortina adapter name. for instance cor0> CuDv

이 명령은 부모와 cortina 정보를 줍니다. 3. 종속 인터페이스를 모두 지워 어댑터를 DLPAR 작업에 준비하려면 다음 명령을 입력합니다.

text
# pdisable lft0
# rmdev -l rcm0
rcm0 Defined
# rmdev -l lft0
lft0 Defined
# rmdev -Rdl pci23
cor0 deleted
pci23 deleted

관리 콘솔 인터페이스로 그래픽 어댑터의 DLPAR 작업을 할 수 있습니다.

영어 원문

Relocating an adapter for DLPAR

You must configure the graphic adapter before relocating an adapter for dynamic logical partitioning (DLPAR) operations.

Use the following instructions to dynamically relocate a graphics adapter, such as FC 5748:

  1. Ensure that no current processes (Desktop, and Xserver) are using the graphics adapter (for example, /dev/lft0).

  2. Verify that the console is not set to the lft0. To identify the defined or available dependent interfaces (lft or rcm), enter the following command:

text
lsdev -C | grep lft
lsdev -C | grep rcm

To obtain a parent Peripheral Component Interconnect (PCI) adapter after the graphics adapter is defined, enter the following command:

text
odmget -q name=<cortina adapter name. for instance cor0> CuDv

This command provides information about the parent and cortina.

  1. To remove all dependent interfaces to make the adapter ready for DLPAR operation, enter the following command:
text
# pdisable lft0
# rmdev -l rcm0
rcm0 Defined
# rmdev -l lft0
lft0 Defined
# rmdev -Rdl pci23
cor0 deleted
pci23 deleted

The management console interface can be used for DLPAR operations on the graphics adapter.

루프백 장치

루프백 장치는 파일에 접근하는 블록 장치로 쓸 수 있는 장치입니다.

루프백 파일에는 ISO 이미지, 디스크 이미지, 파일 시스템, 논리 볼륨 이미지가 들어 있을 수 있습니다. 예를 들어 CD-ROM ISO 이미지를 루프백 장치에 붙여 마운트하면 CD-ROM 장치에 접근하는 것과 같은 방식으로 이미지에 접근할 수 있습니다.

loopmount 명령으로 루프백 장치를 만들고, 지정한 파일을 루프백 장치에 묶고, 루프백 장치를 마운트합니다. loopumount 명령으로 루프백 장치에 앞서 마운트한 이미지 파일을 마운트 해제하고 장치를 지웁니다. AIX에서 루프백 장치 수에는 제한이 없습니다. 루프백 장치는 기본으로 만들어지지 않으므로 명시적으로 만들어야 합니다. 루프백 장치의 블록 크기는 늘 512바이트입니다.

mkdev 명령으로 새 장치를 만들고, chdev 명령으로 바꾸고, rmdev 명령으로 지울 수도 있습니다. 장치를 만든 뒤에는 마운트해 기반 이미지에 접근하거나 원시 I/O용 블록 장치로 쓸 수 있습니다. 기반 이미지 정보는 ioctl(IOCINFO) 명령으로 얻을 수 있습니다.

AIX의 루프백 장치에는 다음 제한이 적용됩니다.

  • 디스크 이미지에 varyonvg 명령을 쓰는 것은 지원하지 않습니다.
  • CD ISO, DVD UDF+ISO, 그 밖의 CD/DVD 이미지는 읽기 전용 형식으로만 지원합니다.
  • 이미지 파일 하나는 루프백 장치 하나에만 연결할 수 있습니다.
  • 워크로드 파티션(WPAR)에서는 루프백 장치를 지원하지 않습니다.

관련 정보

  • loopmount 명령
  • loopumount 명령
  • ioctl 명령
영어 원문

Loopback device

A loopback device is a device that can be used as a block device to access files.

The loopback file can contain an ISO image, a disk image, a file system, or a logical volume image. For example, by attaching a CD-ROM ISO image to a loopback device and mounting it, you can access the image the same way that you can access the CD-ROM device.

Use the loopmount command to create a loopback device, to bind a specified file to the loopback device, and to mount the loopback device. Use the loopumount command to unmount a previously mounted image file on a loopback device, and to remove the device. There is no limit on the number of loopback devices in AIX. A loopback device is never created by default; you must explicitly create the device. The block size of a loopback device is always 512 bytes.

A new device can also be created with the mkdev command, changed with the chdev command, and removed with the rmdev command. After a device is created, it can be either mounted to access the underlying image or used as a block device for raw I/O. Information about the underlying image can be retrieved with the ioctl (IOCINFO) command.

The following restrictions apply to a loopback device in AIX:

  • The varyonvg command on a disk image is not supported.

  • A CD ISO, and DVD UDF+ISO, and other CD/DVD images are only supported in read-only format.

  • An image file can be associated with only one loopback device.

  • Loopback devices are not supported in workload partitions.

Related information

loopmount command loopumount command ioctl command