[AIX 운영 체제와 장치 관리 52] 대상 장치 구성과 테이프 드라이브 — cfgmgr -c로 FC·FCoE 장치 골라 구성, 테이프 드라이브 속성(블록 크기·밀도·압축), 드라이브 형식별 속성, rmt 특수 파일

핵심 정리

  • cfgmgr -l fscsiX -c "매개변수=값,..."로 ww_name, node_name, scsi_id, lun_id(16진수)를 지정해 FC·FCoE 장치 발견 범위를 줄일 수 있습니다. 스위치 연결 환경에서만 되고 -l과 함께 써야 하며, 중복 매개변수나 SAN 값과 충돌하는 값은 오류가 됩니다.
  • 테이프 드라이브 속성(블록 크기, Device Buffers의 mode, extfm, ret, density_set_1과 density_set_2, res_support, var_block_size, compress, autoload 등)은 lsattr로 보고 chdev로 바꿉니다. 블록 크기 0은 가변 길이 블록입니다.
  • 밀도 설정 #1은 /dev/rmt*.3, #2는 .4.7 특수 파일에 쓰이며 읽을 때는 무시됩니다. 보통 #1을 가장 높은 밀도, #2를 그다음 밀도로 둡니다.
  • 35GB DLT나 12000MB 4mm처럼 처리량이 블록 크기에 민감한 드라이브는 32KB 이상 블록을 권장합니다(tar -N64, dd bs=32K, cpio -C64).
  • 특수 파일 끝 번호로 닫을 때 되감기, 열 때 재장력, 밀도 #1·#2를 고릅니다. 예를 들어 /dev/rmt2.3, /dev/rmt2.1, /dev/rmt2 순서로 써서 파일 세 개를 이어 쓸 수 있습니다.
항목 내용
버전 AIX 6.1 (대상 장치 구성 절이 새로 실림)
원문 Operating system and device management — 5.3판 289299쪽, 6.1판 548559쪽
관련 명령어 cfgmgr -l fscsi0 -c, lsattr, chdev, tctl, backup, tar -N, dd bs=, cpio -C, mksysb
관련 특수 파일 /dev/rmt*, /dev/rmt*.1 ~ /dev/rmt*.7

cfgmgr 명령에 -c 플래그를 연결 옵션으로 써서 I/O 장치를 제한된 범위로 골라 구성할 수 있습니다.

관련 정보

  • cfgmgr 명령
영어 원문

Targeted device configuration

The cfgmgr command can be used with the -c flag as a connection option for a limited scope of targeted configuration of I/O devices.

Related information

cfgmgr command

FC와 FCoE 장치의 대상 구성

cfgmgr -c 옵션은 FC(파이버 채널)와 FCoE(Fibre Channel over Ethernet) 어댑터에서 대상 구성에 씁니다.

cfgmgr 명령에 -c 플래그를 연결 옵션으로 써서 장치 구성 범위를 제한할 수 있습니다. FC와 FCoE 어댑터의 구문은 다음과 같습니다.

text
cfgmgr -l fscsi0 -c " parameter = val [, parameter = val ,...]"

연결 필터 문자열에 다음 매개변수 하나 이상을 써서 장치 발견 범위를 제한할 수 있습니다.

표 70. cfgmgr -c 플래그의 매개변수

매개변수 설명
ww_name 대상 장치의 WWPN(world wide port name)
node_name 대상 장치의 WWNN(world wide node name)
scsi_id FCP(Fibre Channel Protocol) 저장 장치의 SCSI(Small Computer System Interface) ID에 대응하는 대상 장치 N_Port ID
lun_id LUN(논리 장치 번호)

예를 들어 다음 명령은 WWPN이 0x5001738000330191인 저장 대상 포트에서 lun_id 0x1000000000000인 LUN 하나를 구성합니다.

text
# cfgmgr -l fscsi0 -c "ww_name=0x5001738000330191,lun_id=0x1000000000000"

이 검색은 fscsi0 호스트 어댑터 포트에서만 일어납니다.

참고

  • 매개변수 값 앞의 0x는 생략할 수 있습니다.
  • 모든 매개변수는 16진수로 나타내야 합니다.

다음 예에서는 매개변수를 하나만 지정합니다.

text
# cfgmgr -l fscsi0 -c "lun_id=0x1000000000000"

이 명령은 SAN(storage area network)의 모든 저장 장치 포트를 검색해, 이 LUN이 있는 모든 SAN 대상 포트에서 이 논리 장치 하나를 구성합니다.

연결 필터 매개변수 지침과 규칙

연결 필터 매개변수를 쓸 때는 다음을 고려합니다.

  • FC와 FCoE 장치의 대상 구성은 스위치 연결 환경에만 적용됩니다. 대상 포트에 직접 연결된 연결 문자열을 지정하면 자식 장치를 찾을 수 없다는 메시지와 함께 연결이 실패합니다.
  • -c 플래그는 명령 범위를 한 번에 fscsiX 장치 하나로 제한하는 cfgmgr 명령의 -l 플래그와 함께 쓸 때만 지원합니다.
  • cfgmgr 명령의 -c 플래그 연결 문자열로 -?를 -v 플래그와 함께 지정하면 사용법 정보가 표시됩니다.
  • 매개변수를 중복 지정하면(예: lun_id를 두 번 나열) 오류가 납니다. 장치가 하나도 발견되지 않습니다.
  • 중복만 아니면 lun_id, scsi_id, ww_name, node_name 매개변수는 어떻게 조합해도 됩니다. 구성할 LUN, 대상, 저장 노드를 고유하게 식별하려면 매개변수를 하나, 되도록 둘 지정해야 하며 더 지정해도 됩니다. 다음은 LUN, 대상, 저장 노드를 고유하게 식별하는 데 필요한 매개변수나 조합입니다.
    • ww_name과 lun_id 매개변수는 구성할 대상 포트의 LUN을 고유하게 식별합니다.
    • scsi_id와 lun_id 매개변수는 구성할 대상 포트의 LUN을 고유하게 식별합니다.
    • node_name과 lun_id 매개변수는 특정 저장 노드의 모든 대상 포트에 대해 LUN을 구성합니다. 모든 대상 포트의 node_name 매개변수가 같을 때만 대상 포트를 구성할 수 있으며, 일부 저장 장치에서는 그럴 수 있습니다.
    • ww_name 매개변수는 특정 대상의 모든 LUN을 구성합니다.
    • node_name 매개변수는 특정 저장 노드의 모든 대상 포트를 구성합니다(모든 대상 포트의 node_name 매개변수가 같을 때만이며, 일부 저장 장치에서는 그럴 수 있습니다).
    • lun_id 매개변수는 그 fscsi 장치에서 보이는 모든 대상 포트의 LUN을 구성합니다.
  • 매개변수를 둘보다 많이 지정하면 장치 구성 코드는 이 추가 정보로 장치 위치를 검증합니다. 지정한 매개변수 값 가운데 하나라도 SAN에서 보고된 값과 충돌하면 명령은 실패하고 장치가 하나도 구성되지 않습니다.

관련 정보

  • cfgmgr 명령
영어 원문

Targeted configuration of FC and FCoE devices

The cfgmgr -c option is used with Fibre Channel (FC) and Fibre Channel over Ethernet (FCoE) adapters for targeted configuration.

The cfgmgr command can be used with the -c flag as a connection option for a limited scope of device configuration. For FC and FCoE adapters, the syntax is as follows:

text
cfgmgr -l fscsi0 -c " parameter = val [, parameter = val ,...]"

By using the connection filter string, you can limit the scope of device discovery by using one or more of the following parameters:

Table 70. Parameters for the cfgmgr -c flag

  • ww_name — Target device world wide port name
  • node_name — Target device world wide node name
  • scsi_id — Target device N_Port ID that maps to the Small Computer System Interface (SCSI) ID for Fibre Channel Protocol (FCP) storage devices
  • lun_id — Logical unit number (LUN)

For example, the following command configures a single LUN of lun_id 0x1000000000000 at the storage target port that has the world wide port name 0x5001738000330191:

text
# cfgmgr -l fscsi0 -c "ww_name=0x5001738000330191,lun_id=0x1000000000000"

This scan occurs only for the fscsi0 host adapter port.

Notes

  • The leading characters 0x in the parameter value are optional.

  • All of the parameters must be represented as a hexadecimal number.

In the following example, only one parameter is specified:

text
# cfgmgr -l fscsi0 -c "lun_id=0x1000000000000"

This command scans all of the storage device ports on the storage area network (SAN) and configures this single logical unit for every SAN target port where this LUN exists.

Guidelines and rules for connection filter parameters

Consider the following points when you use the connection filter parameters:

  • Targeted configuration for FC and FCoE devices applies to switch-attach environments only. If you specify a connection string that is directly attached to a target port, the connection fails with a message indicating that the child devices cannot be found.

  • The -c flag is supported only when accompanied by the -l flag of the cfgmgr command that limits the scope of the command to a single fscsiX device at a time.

  • If you specify -? as the connection string for the -c flag of the cfgmgr command, along with -v flag, the usage information is displayed.

  • If you specify duplicate parameters (for example, lun_id listed twice), it results an error. No devices are detected.

  • Any combination of lun_id, scsi_id, ww_name, and node_name parameters are allowed, except for duplicates. To uniquely identify a LUN, target, or storage node to be configured, you must specify one or preferably two parameters, although more are allowed. The following list specifies the parameter or combination of parameters that is required to uniquely identify a LUN, target, or storage node: – The ww_name and lun_id parameters uniquely identify a LUN on a target port to be configured. – The scsi_id and lun_id parameters uniquely identify a LUN on a target port to be configured. – The node_name and lun_id parameters configure a LUN for all target ports for a specific storage node. These parameters can configure the target ports only if all the target ports have the same node_name parameter, which might be true for some storage devices. – The ww_name parameter configures all LUNs for a specific target. – The node_name parameter configures all target ports for a specific storage node (only if all target ports have the same node_name parameter, which might be true for some storage devices). – The lun_id parameter configures a LUN on all target ports that are visible from that fscsi device.

  • If more than two parameters are specified, the device configuration code uses this extra information to validate the device location. If any of the specified parameter values are in conflict with the reported values on the SAN, the command fails and no devices are configured.

Related information

cfgmgr command

테이프 드라이브

여기서 설명하는 시스템 관리 기능은 테이프 드라이브에 관한 것입니다.

이 기능 가운데 많은 것이 시스템 장치 정보를 담은 장치 구성 데이터베이스를 바꾸거나 그 정보를 가져옵니다. 장치 구성 데이터베이스는 시스템이 지원하는 모든 가능한 장치 형식 정보를 담은 사전 정의 구성 데이터베이스와, 지금 시스템에 있는 특정 장치 정보를 담은 사용자 정의 구성 데이터베이스로 이루어집니다. 운영 체제가 테이프 드라이브나 다른 장치를 쓰려면 장치가 사용자 정의 구성 데이터베이스에 정의돼 있어야 하고, 사전 정의 구성 데이터베이스에 장치 형식이 정의돼 있어야 합니다.

영어 원문

Tape drives

The system management functions described here relate to tape drives.

Many of these functions alter or get information from the device configuration database, which contains information about the devices on your system. The device configuration database consists of the predefined configuration database, which contains information about all possible types of devices supported on the system, and the customized configuration database, which contains information about the particular devices currently on the system. For the operating system to make use of a tape drive, or any other device, the device must be defined in the customized configuration database and must have a device type defined in the predefined configuration database.

테이프 드라이브 속성

시스템 요구에 맞게 이 테이프 드라이브 속성을 조정할 수 있습니다.

속성은 Web-based System Manager Devices 응용 프로그램, SMIT, 명령(특히 lsattr과 chdev 명령)으로 표시하거나 바꿀 수 있습니다.

테이프 드라이브 형식마다 전체 속성 가운데 일부만 씁니다.

각 속성의 일반 정보

블록 크기(Block size)

테이프를 읽거나 쓸 때 쓸 블록 크기를 나타냅니다. 데이터는 블록 단위로 테이프에 쓰이며 블록 사이에 레코드 간 간격이 있습니다. 포맷하지 않은 테이프에 쓸 때 레코드가 크면 테이프 전체에서 레코드 간 간격 수가 줄어 더 많은 데이터를 쓸 수 있어 쓸모 있습니다. 값 0은 가변 길이 블록을 뜻합니다. 허용 값과 기본값은 테이프 드라이브에 따라 다릅니다.

장치 버퍼(Device Buffers)

(chdev 명령으로) Device Buffers 속성을 mode=yes로 설정하면 데이터가 테이프 드라이브의 데이터 버퍼로 전송된 뒤, 실제로 테이프에 쓰이기 전이라도 응용 프로그램에 쓰기 완료를 알립니다. mode=no를 지정하면 데이터가 실제로 테이프에 쓰인 뒤에만 쓰기 완료를 알립니다. 이 속성이 mode=no이면 읽기나 쓰기에서 스트리밍 모드를 유지할 수 없습니다. 기본값은 mode=yes입니다.

mode=no 값에서는 테이프 드라이브가 느려지지만 정전이나 시스템 실패 때 데이터가 더 온전하고 매체 끝 상황을 더 잘 처리합니다.

확장 파일 표시(Extended File Marks)

Extended File Marks 속성(chdev 명령에서는 extfm 속성)을 no로 설정하면 파일 표시를 쓸 때마다 일반 파일 표시를 씁니다. yes로 설정하면 확장 파일 표시를 씁니다. 테이프 드라이브에서 이 속성을 켤 수 있습니다. 기본값은 no입니다. 예를 들어 8mm 테이프 드라이브의 확장 파일 표시는 테이프 2.2MB를 쓰고 쓰는 데 8.5초까지 걸릴 수 있습니다. 일반 파일 표시는 184KB를 쓰고 쓰는 데 약 1.5초 걸립니다.

8mm 테이프를 덧붙이기 모드로 쓸 때 오류를 줄이려면, 파일 표시에서 역방향 작업 뒤 위치를 더 잘 잡도록 확장 파일 표시를 씁니다.

재장력(Retension)

Retension 속성(chdev 명령에서는 ret 속성)을 ret=yes로 설정하면 테이프를 넣거나 드라이브를 재설정할 때마다 테이프 드라이브가 자동으로 테이프 장력을 다시 맞춥니다. 재장력은 테이프 끝까지 감았다가 처음까지 되감아 테이프 전체의 장력을 고르게 하는 것입니다. 재장력은 오류를 줄일 수 있지만 몇 분 걸릴 수 있습니다. ret=no를 지정하면 테이프 드라이브가 자동으로 재장력하지 않습니다. 기본값은 yes입니다.

밀도 설정 #1과 밀도 설정 #2(Density Setting)

밀도 설정 #1(chdev 명령에서는 density_set_1 속성)은 특수 파일 /dev/rmt*, /dev/rmt*.1, /dev/rmt*.2, /dev/rmt*.3을 쓸 때 테이프 드라이브가 쓰는 밀도 값을 설정합니다. 밀도 설정 #2(chdev에서는 density_set_2 속성)는 특수 파일 /dev/rmt*.4, /dev/rmt*.5, /dev/rmt*.6, /dev/rmt*.7을 쓸 때의 밀도 값을 설정합니다. 자세한 내용은 테이프 드라이브 특수 파일을 봅니다.

밀도 설정은 0~255 범위의 십진수로 나타냅니다. 0은 테이프 드라이브의 기본 밀도를 고르며, 보통 드라이브의 고밀도 설정입니다. 허용 값과 뜻은 테이프 드라이브 형식마다 다릅니다. 이 속성은 테이프 드라이브가 지원하는 모든 밀도로 쓴 테이프를 읽는 능력에는 영향을 주지 않습니다. 보통 밀도 설정 #1을 테이프 드라이브에서 가능한 가장 높은 밀도로, 밀도 설정 #2를 그다음으로 높은 밀도로 설정합니다.

예약 지원(Reserve support)

Reserve 속성(chdev 명령에서는 res_support 속성)을 쓰는 테이프 드라이브에서 res_support=yes를 지정하면 테이프 드라이브가 열려 있는 동안 SCSI 버스에서 예약됩니다. 둘 이상의 SCSI 어댑터가 테이프 장치를 공유하면 장치가 열려 있는 동안 어댑터 하나만 접근하게 합니다. 일부 SCSI 테이프 드라이브는 reserve나 release 명령을 지원하지 않습니다. 일부 SCSI 테이프 드라이브는 이 속성에 사전 정의 값이 있어 reserve나 release 명령을 늘 지원합니다.

가변 길이 블록 크기(Variable Length Block Size)

Variable Length Block Size 속성(chdev 명령에서는 var_block_size 속성)은 가변 길이 레코드를 쓸 때 테이프 드라이브가 요구하는 블록 크기를 지정합니다. 일부 SCSI 테이프 드라이브는 가변 길이 레코드를 쓸 때도 Mode Select 데이터에 0이 아닌 블록 크기를 지정해야 합니다. 가변 길이 레코드를 나타내려면 Block Size 속성을 0으로 설정합니다. 필요한지는 해당 테이프 드라이브의 SCSI 사양을 봅니다.

데이터 압축(Data Compression)

Data Compression 속성(chdev 명령에서는 compress 속성)을 compress=yes로 설정하면 드라이브가 데이터를 압축할 수 있을 때 압축 모드가 됩니다. 그러면 드라이브는 데이터를 압축 형식으로 테이프에 써서 테이프 하나에 더 많은 데이터를 담습니다. no로 설정하면 테이프 드라이브가 기본 모드(압축 안 함)로 쓰게 합니다. 읽기 작업은 이 속성 설정의 영향을 받지 않습니다. 기본값은 yes입니다.

자동 로더(Autoloader)

Autoloader 속성(chdev 명령에서는 autoload 속성)을 autoload=yes로 설정하면 드라이브에 자동 로더가 있을 때 자동 로더가 켜집니다. 그러면 로더에 다른 테이프가 있을 때 테이프를 끝까지 진행시키는 읽기나 쓰기 작업이 다음 테이프에서 자동으로 이어집니다. 테이프 카트리지 하나로 제한된 테이프 드라이브 명령은 영향을 받지 않습니다. 기본값은 yes입니다.

재시도 지연(Retry Delay)

명령이 실패한 뒤 다시 내기 전에 시스템이 기다리는 초를 설정합니다. 시스템은 실패한 명령을 네 번까지 다시 낼 수 있습니다. 이 속성은 OST 형식 테이프 드라이브에만 적용됩니다. 기본값은 45입니다.

읽기·쓰기 시간 제한(Read/Write Timeout)

Read/Write Timeout, 곧 READ/WRITE 최대 지연 속성은 읽기나 쓰기 명령이 끝나기까지 시스템이 허용하는 최대 초를 설정합니다. 이 속성은 OST 형식 테이프 드라이브에만 적용됩니다. 기본값은 144입니다.

테이프 교체 시 오류 반환(Return Error on Tape Change)

Return Error on Tape Change or Reset 속성을 설정하면 테이프 드라이브가 재설정됐거나 테이프가 바뀌었을 때 open에서 오류를 돌려줍니다. 앞서 테이프 드라이브에 작업이 있어 닫을 때 테이프가 테이프 시작 너머에 위치해 있었어야 합니다. 돌려주는 오류는 -1이고 errno는 EIO로 설정됩니다. 응용 프로그램에 한 번 알리면 오류 상태가 지워집니다. 테이프 드라이브 자체를 다시 구성해도 오류 상태가 지워집니다.

2.0GB 4mm 테이프 드라이브 속성(형식 4mm2gb)

다음은 2.0GB 4mm 테이프 드라이브(형식 4mm2gb)의 속성입니다.

속성 설명
블록 크기 기본값은 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
고정 값 속성 2.0GB 4mm 테이프 드라이브로 구성하면 Retension, Reserve Support, Variable Length Block Size, Density Setting #1, Density Setting #2 속성에 바꿀 수 없는 사전 정의 값이 있습니다. 테이프 드라이브가 늘 2.0GB 모드로 쓰므로 밀도 설정이 사전 정의돼 있습니다.

4.0GB 4mm 테이프 드라이브 속성(형식 4mm4gb)

다음은 4.0GB 4mm 테이프 드라이브(형식 4mm4gb)의 속성입니다.

속성 설명
블록 크기 기본값은 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 사용자가 이 드라이브의 밀도 설정을 바꿀 수 없습니다. 장치는 넣은 DDS(Digital Data Storage) 매체 형식에 따라 다음과 같이 자동으로 다시 구성됩니다. DDS — 읽기 전용. DDS(로고에 세로줄 넷이 있는 매체) — 2.0GB 모드로만 읽기·쓰기. DDS2 — 두 밀도 모두 읽기, 4.0GB 모드로만 쓰기. DDS가 아닌 매체 — 지원하지 않음, 카트리지를 꺼냄.
데이터 압축 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
고정 값 속성 4.0GB 4mm 테이프 드라이브로 구성하면 Retension, Reserve Support, Variable Length Block Size, Density Setting #1, Density Setting #2 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

2.3GB 8mm 테이프 드라이브 속성(형식 8mm)

다음은 2.3GB 8mm 테이프 드라이브(형식 8mm)의 속성입니다.

속성 설명
블록 크기 기본값은 1024입니다. 더 작은 값은 테이프에 저장되는 데이터 양을 줄입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
고정 값 속성 2.3GB 8mm 테이프 드라이브로 구성하면 Retension, Reserve Support, Variable Length Block Size, Data Compression, Density Setting #1, Density Setting #2 속성에 바꿀 수 없는 사전 정의 값이 있습니다. 테이프 드라이브가 늘 2.3GB 모드로 쓰므로 밀도 설정이 사전 정의돼 있습니다.

5.0GB 8mm 테이프 드라이브 속성(형식 8mm5gb)

다음은 5.0GB 8mm 테이프 드라이브(형식 8mm5gb)의 속성입니다.

속성 설명
블록 크기 기본값은 1024입니다. 테이프를 2.3GB 모드로 쓰면 더 작은 값은 테이프에 저장되는 데이터 양을 줄입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 140 — 5GB 모드(압축 가능), 21 — 5GB 모드 비압축 테이프, 20 — 2.3GB 모드, 0 — 기본값(5.0GB 모드). 기본값은 밀도 설정 #1이 140, #2가 20입니다. 밀도 설정 #1이나 #2를 21로 하면 5GB 모드에서 비압축 테이프를 읽거나 쓸 수 있습니다.
데이터 압축 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
고정 값 속성 5.0GB 8mm 테이프 드라이브로 구성하면 Retension, Reserve Support, Variable Length Block Size 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

20000MB 8mm 테이프 드라이브 속성(자체 구성)

다음은 20000MB 8mm 테이프 드라이브(자체 구성)의 속성입니다.

속성 설명
블록 크기 기본값은 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 드라이브는 20.0GB 형식 데이터 카트리지를 읽고 쓸 수 있습니다. Read 명령 중에는 드라이브가 테이프에 쓰인 형식을 자동으로 알아냅니다. Write 중에는 밀도 설정이 테이프에 쓸 데이터 형식을 정합니다. 39 — 20GB 모드(압축 가능), 0 — 기본값(20.0GB 모드). 기본값은 밀도 설정 #1과 #2 모두 39입니다.
데이터 압축 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
고정 값 속성 20.0GB 8mm 테이프 드라이브로 구성하면 Retension, Reserve Support, Variable Length Block Size 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

35GB 테이프 드라이브 속성(형식 35gb)

다음은 35GB 테이프 드라이브(형식 35gb)의 속성입니다.

블록 크기

IBM 7205 Model 311의 처리량은 블록 크기에 민감합니다. 이 드라이브의 최소 권장 블록 크기는 32K바이트입니다. 32K바이트보다 작은 블록 크기는 데이터 속도(백업·복원 시간)를 제한합니다. 다음 표는 명령별 권장 블록 크기입니다.

지원 명령 기본 블록 크기(바이트) 권장
BACKUP 32K 또는 51.2K(기본값) "Backup"이 이름에 의한 것인지에 따라 32K나 51.2K를 씁니다. 바꿀 필요 없습니다.
TAR 10K 설명서에 512K바이트 블록 크기라고 잘못 적혀 있습니다. Blocking 매개변수를 -N64로 설정합니다.
MKSYSB BACKUP 참조 MKSYSB는 BACKUP 명령을 씁니다. 바꿀 필요 없습니다.
DD 해당 없음 Blocking 매개변수를 bs=32K로 설정합니다.
CPIO 해당 없음 Blocking 매개변수를 -C64로 설정합니다.

참고: 블록 크기를 고를 때 용량과 처리량을 알아 둬야 합니다. 작은 블록 크기는 성능에 큰 영향을, 용량에 작은 영향을 줍니다. 권장보다 작은 블록 크기를 쓰면 2.6GB 형식(밀도)과 6.0GB 형식(밀도)의 용량이 크게 영향을 받습니다. 예를 들어 블록 크기 1024바이트로 데이터 32GB를 백업하면 약 22시간 걸립니다. 같은 32GB를 블록 크기 32K바이트로 백업하면 약 2시간 걸립니다.

장치 버퍼, 확장 파일 표시

이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.

밀도 설정 #1과 #2

다음 표는 IBM 7205-311 테이프 드라이브의 지원 데이터 카트리지 형식과 밀도 설정(십진과 16진)입니다. 복원(읽기) 작업을 하면 테이프 드라이브가 쓰인 밀도에 맞게 밀도를 자동으로 설정합니다. 백업(쓰기) 작업을 할 때는 쓰는 데이터 카트리지에 맞게 밀도 설정을 해야 합니다.

지원 데이터 카트리지 기본 용량 / 압축 데이터 용량 Web-based System Manager·SMIT 밀도 설정 16진 밀도 설정
DLTtape III 2.6GB / 2.6GB(압축 없음) 23 17h
DLTtape III 6.0GB / 6.0GB(압축 없음) 24 18h
DLTtape III 10.0GB / 20.0GB(드라이브 기본값) 25 19h
DLTtapeIIIxt 15.0GB / 30.6GB(드라이브 기본값) 25 19h
DLTtapeIV 20.0GB / 40.0GB 26 1Ah
DLTtapeIV 35.0GB / 70.0GB(드라이브 기본값) 27 1Bh

참고: 데이터 카트리지가 지원하지 않는 기본 용량을 요청하면 드라이브는 드라이브에 넣은 데이터 카트리지가 지원하는 가장 높은 용량을 기본으로 씁니다.

데이터 압축

실제 압축은 쓰는 데이터 형식에 달려 있습니다(위 표 참조). 이 압축 데이터 용량에는 압축 비율 2:1을 가정합니다.

고정 값 속성

이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.

150MB 1/4인치 테이프 드라이브 속성(형식 150mb)

다음은 150MB 1/4인치 테이프 드라이브(형식 150mb)의 속성입니다.

속성 설명
블록 크기 기본 블록 크기는 512입니다. 다른 유효한 블록 크기는 가변 길이 블록용 0뿐입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 1/4인치 테이프에는 테이프 시작(BOT)이나 빈 테이프를 감지한 뒤에만 쓸 수 있습니다. 테이프에 데이터가 있으면 BOT가 아닌 곳에서는 덮어쓸 수 없습니다. 쓴 뒤 되감은 테이프에 데이터를 더하려면 다음 파일 표시를 감지할 때까지 앞으로 이동해야 하며, 이때 시스템은 오류를 돌려줍니다. 그다음에야 다시 쓸 수 있습니다.
재장력 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 16 — QIC-150, 15 — QIC-120, 0 — 기본값(QIC-150)이나 사용하던 시스템의 마지막 밀도 설정. 기본값은 밀도 설정 #1이 16, #2가 15입니다.
고정 값 속성 150MB 1/4인치 테이프 드라이브로 구성하면 Extended File Marks, Reserve Support, Variable Length Block Size, Data Compression 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

525MB 1/4인치 테이프 드라이브 속성(형식 525mb)

다음은 525MB 1/4인치 테이프 드라이브(형식 525mb)의 속성입니다.

속성 설명
블록 크기 기본 블록 크기는 512입니다. 다른 유효한 블록 크기는 가변 길이 블록용 0과 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 1/4인치 테이프에는 테이프 시작(BOT)이나 빈 테이프를 감지한 뒤에만 쓸 수 있습니다. 테이프에 데이터가 있으면 BOT가 아닌 곳에서는 덮어쓸 수 없습니다. 쓴 뒤 되감은 테이프에 데이터를 더하려면 다음 파일 표시를 감지할 때까지 앞으로 이동해야 하며, 이때 시스템은 오류를 돌려줍니다. 그다음에야 다시 쓸 수 있습니다.
재장력 1/4인치 테이프에는 테이프 시작(BOT)이나 빈 테이프를 감지한 뒤에만 쓸 수 있습니다. 테이프에 데이터가 있으면 BOT가 아닌 곳에서는 덮어쓸 수 없습니다. 쓴 뒤 되감은 테이프에 데이터를 더하려면 다음 파일 표시를 감지할 때까지 앞으로 이동해야 하며, 이때 시스템은 오류를 돌려줍니다. 그다음에야 다시 쓸 수 있습니다.
밀도 설정 #1과 #2 17 — QIC-525(주), 16 — QIC-150, 15 — QIC-120, 0 — 기본값(QIC-525)이나 사용하던 시스템의 마지막 밀도 설정. (주) 1024 블록 크기를 지원하는 모드는 QIC-525뿐입니다. 기본값은 밀도 설정 #1이 17, #2가 16입니다.
고정 값 속성 525MB 1/4인치 테이프 드라이브로 구성하면 Extended File Marks, Reserve Support, Variable Length Block Size, Data Compression 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

1200MB 1/4인치 테이프 드라이브 속성(형식 1200mb-c)

다음은 1200MB 1/4인치 테이프 드라이브(형식 1200mb-c)의 속성입니다.

속성 설명
블록 크기 기본 블록 크기는 512입니다. 다른 유효한 블록 크기는 가변 길이 블록용 0과 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 1/4인치 테이프에는 테이프 시작(BOT)이나 빈 테이프를 감지한 뒤에만 쓸 수 있습니다. 테이프에 데이터가 있으면 BOT가 아닌 곳에서는 덮어쓸 수 없습니다. 쓴 뒤 되감은 테이프에 데이터를 더하려면 다음 파일 표시를 감지할 때까지 앞으로 이동해야 하며, 이때 시스템은 오류를 돌려줍니다. 그다음에야 다시 쓸 수 있습니다.
재장력 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 21 — QIC-1000(주), 17 — QIC-525(주), 16 — QIC-150, 15 — QIC-120, 0 — 기본값(QIC-1000)이나 사용하던 시스템의 마지막 밀도 설정. (주) 1024 블록 크기를 지원하는 모드는 QIC-525와 QIC-1000뿐입니다. 기본값은 밀도 설정 #1이 21, #2가 17입니다.
고정 값 속성 1200MB 1/4인치 테이프 드라이브로 구성하면 Extended File Marks, Reserve Support, Variable Length Block Size, Data Compression 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

12000MB 4mm 테이프 드라이브 속성(자체 구성)

다음은 12000MB 4mm 테이프 드라이브(자체 구성)의 속성입니다.

블록 크기

IBM 12000MB 4mm 테이프 드라이브의 처리량은 블록 크기에 민감합니다. 이 드라이브의 최소 권장 블록 크기는 32K바이트입니다. 32K바이트보다 작은 블록 크기는 데이터 속도(백업·복원 시간)를 제한합니다. 다음 표는 명령별 권장 블록 크기입니다.

지원 명령 기본 블록 크기(바이트) 권장
BACKUP 32K 또는 51.2K(기본값) "Backup"이 이름에 의한 것인지에 따라 32K나 51.2K를 씁니다. 바꿀 필요 없습니다.
TAR 10K 설명서에 512K바이트 블록 크기라고 잘못 적혀 있습니다. Blocking 매개변수를 -N64로 설정합니다.
MKSYSB BACKUP 참조 MKSYSB는 BACKUP 명령을 씁니다. 바꿀 필요 없습니다.
DD 해당 없음 Blocking 매개변수를 bs=32K로 설정합니다.
CPIO 해당 없음 Blocking 매개변수를 -C64로 설정합니다.

참고: 블록 크기를 고를 때 용량과 처리량을 알아 둬야 합니다. 작은 블록 크기는 성능에 큰 영향을, 용량에 작은 영향을 줍니다.

장치 버퍼, 확장 파일 표시

이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.

밀도 설정 #1과 #2

다음 표는 IBM 12000MB 4mm 테이프 드라이브의 지원 데이터 카트리지 형식과 밀도 설정(십진과 16진)입니다. 복원(읽기) 작업을 하면 테이프 드라이브가 쓰인 밀도에 맞게 밀도를 자동으로 설정합니다. 백업(쓰기) 작업을 할 때는 쓰는 데이터 카트리지에 맞게 밀도 설정을 해야 합니다.

지원 데이터 카트리지 기본 용량 / 압축 데이터 용량 SMIT 밀도 설정 16진 밀도 설정
DDS III 2.0GB / 4.0GB 19 13h
DDS2 4.0GB / 8.0GB 36 24h
DDS3 12.0GB / 24.0GB 37 25h

참고: 데이터 카트리지가 지원하지 않는 기본 용량을 요청하면 드라이브는 드라이브에 넣은 데이터 카트리지가 지원하는 가장 높은 용량을 기본으로 씁니다.

데이터 압축

실제 압축은 쓰는 데이터 형식에 달려 있습니다(위 표 참조). 이 압축 데이터 용량에는 압축 비율 2:1을 가정합니다.

고정 값 속성

이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.

13000MB 1/4인치 테이프 드라이브 속성(자체 구성)

다음은 13000MB 1/4인치 테이프 드라이브(자체 구성)의 속성입니다.

속성 설명
블록 크기 기본 블록 크기는 512입니다. 다른 유효한 블록 크기는 가변 길이 블록용 0과 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 1/4인치 테이프에는 테이프 시작(BOT)이나 빈 테이프를 감지한 뒤에만 쓸 수 있습니다. 테이프에 데이터가 있으면 BOT가 아닌 곳에서는 덮어쓸 수 없습니다. 쓴 뒤 되감은 테이프에 데이터를 더하려면 다음 파일 표시를 감지할 때까지 앞으로 이동해야 하며, 이때 시스템은 오류를 돌려줍니다. 그다음에야 다시 쓸 수 있습니다.
재장력 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 33 — QIC-5010-DC(주), 34 — QIC-2GB(주), 21 — QIC-1000(주), 17 — QIC-525(주), 16 — QIC-150, 15 — QIC-120, 0 — 기본값(QIC-5010-DC)(주). (주) 1024 블록 크기를 지원하는 모드는 QIC-525, QIC-1000, QIC-5010-DC, QIC-2GB뿐입니다. 기본값은 밀도 설정 #1이 33, #2가 34입니다.
고정 값 속성 13000MB 1/4인치 테이프 드라이브로 구성하면 Extended File Marks, Reserve Support, Variable Length Block Size 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

1/2인치 9트랙 테이프 드라이브 속성(형식 9trk)

다음은 1/2인치 9트랙 테이프 드라이브(형식 9trk)의 속성입니다.

속성 설명
블록 크기 기본 블록 크기는 1024입니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 3 — 6250bpi(bits per inch), 2 — 1600bpi, 0 — 이전에 쓴 쓰기 밀도. 기본값은 밀도 설정 #1이 3, #2가 2입니다.
고정 값 속성 1/2인치 9트랙 테이프 드라이브로 구성하면 Extended File Marks, Retension, Reserve Support, Variable Length Block Size, Data Compression 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

3490e 1/2인치 카트리지 속성(형식 3490e)

다음은 3490e 1/2인치 카트리지(형식 3490e)의 속성입니다.

블록 크기

기본 블록 크기는 1024입니다. 이 드라이브는 데이터 전송 속도가 높아 블록 크기가 효율적 동작에 결정적일 수 있습니다. 블록 크기가 크면 동작 속도가 크게 좋아질 수 있으므로 일반적으로 가능한 가장 큰 블록 크기를 써야 합니다.

참고: 블록 값을 늘리면 시스템의 다른 프로그램과 호환되지 않을 수 있습니다. 그러면 그 프로그램을 실행할 때 다음 오류 메시지를 받습니다.

text
A system call received a parameter that is not valid.

장치 버퍼, 압축

이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.

자동 로더

이 드라이브에는 카트리지 로더에서 테이프 카트리지를 차례로 넣고 꺼내는 자동 로더인 테이프 시퀀서가 있습니다. 이 기능이 제대로 동작하려면 앞 패널 스위치를 AUTO 위치에 두고 Autoloader 속성을 yes로 설정해야 합니다.

기타 SCSI 테이프 속성(형식 ost)

다음은 기타 SCSI 테이프(형식 ost)의 속성입니다.

속성 설명
블록 크기 시스템 기본값은 512이지만 테이프 드라이브의 기본 블록 크기로 조정해야 합니다. 보통 값은 512와 1024입니다. 8mm와 4mm 테이프 드라이브는 보통 1024를 쓰며 블록 크기 속성을 512로 두면 테이프 공간을 낭비합니다. 일부 드라이브에서는 0이 가변 블록 크기를 뜻합니다.
장치 버퍼 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
확장 파일 표시 이 속성의 일반 정보가 이 테이프 드라이브 형식에 적용됩니다.
밀도 설정 #1과 #2 두 설정 모두 기본값은 0입니다. 다른 값과 그 뜻은 테이프 드라이브마다 다릅니다.
예약 지원 기본값은 no입니다. 드라이브가 reserve/release 명령을 지원하면 yes로 설정할 수 있습니다. 확실하지 않으면 no가 더 안전합니다.
가변 길이 블록 크기 기본 가변 길이 블록 크기 값은 0입니다. 0이 아닌 값은 주로 QIC(quarter inch cartridge) 드라이브에서 씁니다. 해당 테이프 드라이브의 SCSI 사양을 봅니다.
재시도 지연 이 속성은 ost 형식 테이프 드라이브에만 적용됩니다.
읽기·쓰기 시간 제한 이 속성은 ost 형식 테이프 드라이브에만 적용됩니다.
고정 값 속성 기타 SCSI 테이프 드라이브로 구성하면 Extended File Marks, Retension, Data Compression 속성에 바꿀 수 없는 사전 정의 값이 있습니다.

MPIO 테이프 속성

MPIO를 지원하는 테이프 장치에는 MPIO 장치 속성에 나열한 속성이 더 있습니다.

관련 개념

  • 다중 경로 I/O — MPIO(Multiple Path I/O)에서는 장치를 하나 이상의 물리 연결, 곧 경로로 고유하게 찾아낼 수 있습니다.
영어 원문

Tape drive attributes

You can adjust these tape drive attributes to meet the needs of your system.

The attributes can be displayed or changed using the Web-based System Manager Devices application, SMIT, or commands (in particular, the lsattr and the chdev commands).

Each type of tape drive only uses a subset of all the attributes.

General information about each attribute

Block size

The block size attribute indicates the block size to use when reading or writing the tape. Data is written to tape in blocks of data, with inter-record gaps between blocks. Larger records are useful when writing to unformatted tape, because the number of inter-record gaps is reduced across the tape, allowing more data to be written. A value of 0 indicates variable length blocks. The allowable values and default values vary depending on the tape drive.

Device Buffers

Setting the Device Buffers attribute (using the chdev command) to mode=yes indicates an application is notified of write completion after the data has been transferred to the data buffer of the tape drive, but not necessarily after the data is actually written to the tape. If you specify the mode=no, an application is notified of write completion only after the data is actually written to the tape. Streaming mode cannot be maintained for reading or writing if this attribute is set to the mode=no value. The default value is mode=yes.

With the mode=no value, the tape drive is slower but has more complete data in the event of a power outage or system failure and allows better handling of end-of-media conditions.

Extended File Marks

Setting the Extended File Marks attribute (for chdev command, the extfm attribute) to the no value writes a regular file mark to tape whenever a file mark is written. Setting this attribute to the yes value writes an extended file mark. For tape drives, this attribute can be set on. The default value is no. For example, extended filemarks on 8 mm tape drives use 2.2 MB of tape and can take up to 8.5 seconds to write. Regular file marks use 184 KB and take approximately 1.5 seconds to write.

To reduce errors when you use an 8 mm tape in append mode, use extended file marks for better positioning after reverse operations at file marks.

Retension

Setting the Retension attribute (for the chdev command, the ret attribute) to ret=yes instructs the tape drive to re-tension a tape automatically whenever a tape is inserted or the drive is reset. Retensioning a tape means to wind to the end of the tape and then rewind to the beginning of the tape to even the tension throughout the tape. Retensioning the tape can reduce errors, but this action can take several minutes. If you specify the ret=no value, the tape drive does not automatically retension the tape. The default value is yes.

Density Setting #1 and Density Setting #2

Density Setting #1 (for the chdev command, the density_set_1 attribute) sets the density value that the tape drive writes when using special files /dev/rmt*, /dev/rmt*.1, /dev/rmt*.2, and /dev/rmt*.3. Density Setting #2 (for chdev, the density_set_2 attribute) sets the density value that the tape drive writes when using special files /dev/rmt*.4, /dev/rmt*.5, /dev/rmt*.6, and /dev/rmt*.7. See Special files for tape drives for more information.

The density settings are represented as decimal numbers in the range 0 to 255. A zero (0) setting selects the default density for the tape drive, which is usually the high density setting of the drive. Specific permitted values and their meanings vary with different types of tape drives. These attributes do not affect the ability of the tape drive to read tapes written in all densities supported by the tape drive. It is customary to set Density Setting #1 to the highest density possible on the tape drive and Density Setting #2 to the second highest density possible on the tape drive.

Reserve support

For tape drives that use the Reserve attribute (for the chdev command, the res_support attribute), specifying the value res_support=yes causes the tape drive to be reserved on the SCSI bus while it is open. If more than one SCSI adapter shares the tape device, this ensures access by a single

adapter while the device is open. Some SCSI tape drives do not support the reserve or release commands. Some SCSI tape drives have a predefined value for this attribute so that reserve or release commands are always supported.

Variable Length Block Size

The Variable Length Block Size attribute (for the chdev command, the var_block_size attribute) specifies the block size required by the tape drive when writing variable length records. Some SCSI tape drives require that a nonzero block size be specified in their Mode Select data even when writing variable length records. The Block Size attribute is set to 0 to indicate variable length records. See the specific tape drive SCSI specification to determine whether or not this is required.

Data Compression

Setting the Data Compression attribute (for the chdev command, the compress attribute) to compress=yes causes the tape drive to be in compress mode, if the drive is capable of compressing data. If so, then the drive writes data to the tape in compressed format so that more data fits on a single tape. Setting this attribute to no forces the tape drive to write in native mode (noncompressed). Read operations are not affected by the setting of this attribute. The default setting is yes.

Autoloader

Setting the Autoloader attribute (for the chdev command, the autoload attribute) to autoload=yes causes Autoloader to be active, if the drive is so equipped. If so, and another tape is available in the loader, any read or write operation that advances the tape to the end is automatically continued on the next tape. Tape drive commands that are restricted to a single tape cartridge are unaffected. The default setting is yes.

Retry Delay

The Retry Delay attribute sets the number of seconds that the system waits after a command has failed before reissuing the command. The system may reissue a failed command up to four times. This attribute applies only to type OST tape drives. The default setting is 45.

Read/Write Timeout

The Read/Write Timeout or Maximum Delay for a READ/WRITE attribute sets the maximum number of seconds that the system allows for a read or write command to complete. This attribute applies only to type OST tape drives. The default setting is 144.

Return Error on Tape Change

The Return Error on Tape Change or Reset attribute, when set, causes an error to be returned on open when the tape drive has been reset or the tape has been changed. A previous operation to the tape drive must have taken place that left the tape positioned beyond beginning of tape upon closing. The error returned is a -1 and errno is set to EIO. Once presented to the application, the error condition is cleared. Also, reconfiguring the tape drive itself will clear the error condition.

Attributes for 2.0 GB 4 mm tape drives (type 4mm2gb)

The following are the attributes for 2.0 GB 4 mm tape drives (type 4mm2gb).

Block size

The default value is 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Attributes with fixed values

If a tape drive is configured as a 2.0 GB 4 mm tape drive, the attributes for Retension, Reserve Support, Variable Length Block Size, Density Setting #1, and Density Setting #2 have predefined values that cannot be changed. The density settings are predefined because the tape drive always writes in 2.0 GB mode.

Attributes for 4.0 GB 4 mm tape drives (type 4mm4gb)

The following are the attributes for 4.0 GB 4 mm tape drives (type 4mm4gb).

Block size

The default value is 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Density setting #1 and Density setting #2

The user cannot change the density setting of this drive; the device reconfigures itself automatically depending on the Digital Data Storage (DDS) media type installed, as follows:

  • DDS — Read-only.
  • DDS |||| — Read/write in 2.0 GB mode only.
  • DDS2 — Read in either density; write in 4.0 GB mode only.
  • non-DDS — Not supported; cartridge will eject.

Data compression

The general information for this attribute applies to this tape drive type.

Attributes with fixed values

If a tape drive is configured as a 4.0 GB 4 mm tape drive, the Retension, Reserve Support, Variable Length Block Size, Density Setting #1, and Density Setting #2 attributes have predefined values that cannot be changed.

Attributes for 2.3 GB 8 mm tape drives (type 8mm)

The following are attributes for 2.3 GB 8 mm tape drives (type 8mm).

Block size

The default value is 1024. A smaller value reduces the amount of data stored on a tape.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Attributes with fixed values

If a tape drive is configured as a 2.3 GB 8mm tape drive, the Retension, Reserve Support, Variable Length Block Size, Data Compression, Density Setting #1, and Density Setting #2 attributes have predefined values which cannot be changed. The density settings are predefined because the tape drive always writes in 2.3 GB mode.

Attributes for 5.0GB 8mm tape drives (type 8mm5gb)

The following are the attributes for 5.0GB 8mm tape drives (type 8mm5gb).

Block size

The default value is 1024. If a tape is being written in 2.3 GB mode, a smaller value reduces the amount of data stored on a tape.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following settings apply:

  • 140 — 5 GB mode (compression capable)
  • 21 — 5 GB mode noncompressed tape
  • 20 — 2.3 GB mode
  • 0 — Default (5.0 GB mode)

The default values are 140 for Density Setting #1, and 20 for Density Setting #2. A value of 21 for Density Setting #1 or #2 permits the user to read or write a noncompressed tape in 5 GB mode.

Data compression

The general information for this attribute applies to this tape drive type.

Attributes with fixed values

If a tape drive is configured as a 5.0 GB 8 mm tape drive, the Retension, Reserve Support, and Variable Length Block Size attributes have predefined values which cannot be changed.

Attributes for 20000 MB 8 mm tape drives (self-configuring):

The following are attributes for 20000 MB 8 mm tape drives (self-configuring).

Block size

The default value is 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The drive can read and write data cartridges in 20.0 GB format. During a Read command, the drive automatically determines which format is written on tape. During a Write, the Density Setting determines which data format is written to tape.

The following settings apply:

  • 39 — 20 GB mode (compression capable)
  • 0 — Default (20.0 GB mode)

The default value is 39 for Density Setting #1 and Density Setting #2.

Data compression

The general information for this attribute applies to this tape drive type.

Attributes with fixed values

If a tape drive is configured as a 20.0 GB 8 mm tape drive, the Retension, Reserve Support, and Variable Length Block Size attributes have predefined values which cannot be changed.

Attributes for 35 GB tape drives (type 35gb)

The following are attributes for 35 GB tape drives (type 35gb).

Block size

The IBM 7205 Model 311 throughput is sensitive to block size. The minimum recommended block size for this drive is 32 K Bytes. Any block size less than 32 K Bytes restricts the data rate (backup/restore time). The following table lists recommended block sizes by command:

Supported Command Default Block Size (Bytes) RECOMMENDATION
BACKUP 32 K or 51.2 K (default) Uses either 32 K or 51.2 K depending on if "Backup" is by name or not. No change is required.
TAR 10 K There is an error in the manual that states a 512 K byte block size. Set the Blocking Parameter to -N64.
MKSYSB See BACKUP MKSYSB uses the BACKUP command. No change is required.
DD n/a Set the Blocking Parameter to bs=32K.
CPIO n/a Set the Blocking Parameter to -C64.

Note: You should be aware of the capacity and throughput when you select a blocksize. Small blocksizes have a significant impact on performance and a minimal impact on capacity. The capacities of the 2.6 GB format (density) and 6.0 GB format (density) are significantly impacted when you use smaller than the recommended blocksizes. As an example: using a blocksize of 1024 bytes to backup 32 GB of data takes approximately 22 hours. Backing up the same 32 GB of data using a blocksize of 32 K Bytes takes approximately 2 hours.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following chart shows the Supported Data Cartridge type and Density Settings (in decimal and hex) for the IBM 7205-311 Tape Drive. When you perform a Restore (Read) Operation, the tape drive automatically sets the density to match the written density. When you perform a Backup Operation (Write), you must set the Density Setting to match the Data Cartridge that you are using.

Supported Data Cartridges Native Capacity Compressed Data Capacity Web-based System Manager or SMIT Density Setting HEX Density Setting DLTtape III 2.6 GB 2.6 GB (No Compression) 23 17h 6.0 GB 6.0 GB (No Compression) 24 18h 10.0 GB 20.0 GB (Default for drive) 25 19h DLTtapeIIIxt 15.0 GB 30.6 GB (Default for drive) 25 19h DLTtapeIV 20.0 GB 40.0 GB 26 1Ah 35.0 GB 70.0 GB (Default for drive) 27 1Bh

Note: If you request an unsupported Native Capacity for the Data Cartridge, the drive defaults to the highest supported capacity for the Data Cartridge that is loaded into the drive.

Data compression

The actual compression depends on the type of data being that is being written (see above table). A Compression Ratio of 2:1 is assumed for this Compressed Data Capacity.

Attributes with fixed values

The general information for this attribute applies to this tape drive type.

Attributes for 150 MB 1/4-inch tape drives (type 150mb)

The following are attributes for 150 MB 1/4-inch tape drives (type 150mb).

Block size

The default block size is 512. The only other valid block size is 0 for variable length blocks.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

Writing to a 1/4-inch tape can only occur at the beginning of tape (BOT) or after blank tape is detected. If data exists on the tape, you cannot overwrite the data except at BOT. If you wish to add data to a tape that has been written and then rewound, you must space forward until the next file mark is detected, which causes the system to return an error. Only then can you start writing again.

Retension

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following settings apply:

  • 16 — QIC-150
  • 15 — QIC-120
  • 0 — Default (QIC-150), or whatever was the last density setting by a using system.

The default values are 16 for Density Setting #1, and 15 for Density Setting #2.

Attributes with fixed values

If a tape drive is configured as a 150 MB 1/4-inch tape drive, attributes for Extended File Marks, Reserve Support, Variable Length Block Size, and Data Compression have predefined values which cannot be changed.

Attributes for 525 MB 1/4-inch tape drives (type 525mb)

The following are attributes for 525 MB 1/4-inch tape drives (type 525mb).

Block size

The default block size is 512. The other valid block sizes are 0 for variable length blocks, and 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

Writing to a 1/4-inch tape can only occur at the beginning of tape (BOT) or after blank tape is detected. If data exists on the tape, you cannot overwrite the data except at BOT. If you want to add data to a tape that has been written and then rewound, you must space forward until the next file mark is detected, which causes the system to return an error. Only then can you start writing again.

Retension

Writing to a 1/4-inch tape can only occur at the beginning of tape (BOT) or after blank tape is detected. If data exists on the tape, you cannot overwrite the data except at BOT. If you want to add data to a tape that has been written and then rewound, you must space forward until the next file mark is detected, which causes the system to return an error. Only then can you start writing again.

Density setting #1 and density setting #2

The following settings apply:

  • 17 — QIC-525*
  • 16 — QIC-150
  • 15 — QIC-120
  • 0 — Default (QIC-525), or whatever was the last density setting by a using system.

* QIC-525 is the only mode that supports the 1024 block size. The default values are 17 for Density Setting #1, and 16 for Density Setting #2.

Attributes with fixed values

If a tape drive is configured as a 525 MB 1/4-inch tape drive, the Extended File Marks, Reserve Support, Variable Length Block Size, and Data Compression attributes have predefined values which cannot be changed.

Attributes for 1200 MB 1/4-inch tape drives (type 1200mb-c):

The following are attributes for 1200 MB 1/4-inch tape drives (type 1200mb-c).

Block size

The default block size is 512. The other valid block sizes are 0 for variable length blocks, and 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

Writing to a 1/4-inch tape can only occur at the beginning of tape (BOT) or after blank tape is detected. If data exists on the tape, you cannot overwrite the data except at BOT. If you wish to add data to a tape that has been written and then rewound, you must space forward until the next file mark is detected, which causes the system to return an error. Only then can you start writing again.

Retension

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following settings apply:

  • 21 — QIC-1000*
  • 17 — QIC-525*
  • 16 — QIC-150
  • 15 — QIC-120
  • 0 — Default (QIC-1000), or whatever was the last density setting by a using system.

* QIC-525 and QIC-1000 are the only modes that support the 1024 block size.

The default values are 21 for Density Setting #1, and 17 for Density Setting #2.

Attributes with fixed values

If a tape drive is configured as a 1200 MB 1/4-inch tape drive, the Extended File Marks, Reserve Support, Variable Length Block Size, and Data Compression attributes have predefined values which cannot be changed.

Attributes for 12000 MB 4 mm tape drives (self-configuring):

The following are attributes for 12000 MB 4 mm tape drives (self-configuring).

Block size

The IBM 12000 MB 4 mm tape drive's throughput is sensitive to block size. The minimum recommended block size for this drive is 32 K Bytes. Any block size less than 32 K Bytes restricts the data rate (backup/restore time). The following table lists recommended block sizes by

command:

Supported Command Default Block Size (Bytes) RECOMMENDATION
BACKUP 32 K or 51.2 K (default) Will use either 32 K or 51.2 K depending on if "Backup" is by name or not. No change is required.
TAR 10 K There is an error in the manual that states a 512 K byte block size. Set the Blocking Parameter to -N64.
MKSYSB See BACKUP MKSYSB uses the BACKUP command. No change is required.
DD n/a Set the Blocking parameter to bs=32K.
CPIO n/a Set the Blocking parameter to -C64.

Note: You should be aware of the capacity and throughput when you select a block size. Small block sizes have a significant impact on performance and a minimal impact on capacity.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following chart shows the supported data cartridge type and density settings (in decimal and hex) for the IBM 12000 MB 4 mm tape drive. When you perform a restore (read) operation, the tape drive automatically sets the density to match the written density. When you perform a backup operation (write), you must set the density setting to match the data cartridge you are using.

Supported Data

Compressed Data Capacity SMIT Density Setting HEX Density Setting
DDS III 2.0 GB 4.0 GB 19 13h
DDS2 4.0 GB 8.0 GB 36 24h
DDS3 12.0 GB 24.0 GB 37 25h

Note: If you request an unsupported native capacity for the data cartridge, the drive defaults to the highest supported capacity for the data cartridge that is loaded into the drive.

Data compression

The actual compression depends on the type of data being that is being written (see above table). A compression ratio of 2:1 is assumed for this compressed data capacity.

Attributes with fixed values

The general information for this attribute applies to this tape drive type.

Attributes for 13000 MB 1/4-inch tape drives (self-configuring):

The following are the attributes for 13000 MB 1/4-inch tape drives (self-configuring).

Block size

The default block size is 512. The other valid block sizes are 0 for variable length blocks, and 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

Writing to a 1/4-inch tape can only occur at the beginning of tape (BOT) or after blank tape is detected. If data exists on the tape, you cannot overwrite the data except at BOT. If you wish to

add data to a tape that has been written and then rewound, you must space forward until the next file mark is detected, which causes the system to return an error. Only then can you start writing again.

Retension

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following settings apply:

  • 33 — QIC-5010-DC*
  • 34 — QIC-2GB*
  • 21 — QIC-1000*
  • 17 — QIC-525*
  • 16 — QIC-150
  • 15 — QIC-120
  • 0 — Default (QIC-5010-DC)*

* QIC-525, QIC-1000, QIC-5010-DC, and QIC-2GB are the only modes that support the 1024 block size.

The default values are 33 for Density Setting #1, and 34 for Density Setting #2.

Attributes with fixed values

If a tape drive is configured as a 13000 MB 1/4-inch tape drive, the Extended File Marks, Reserve Support, and Variable Length Block Size attributes have predefined values which cannot be changed.

Attributes for 1/2-inch 9-track tape drives (type 9trk)

The following are the attributes for 1/2-inch 9-track tape drives (type 9trk).

Block size

The default block size is 1024.

Device buffers

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The following settings apply:

  • 3 — 6250 bits per inch (bpi)
  • 2 — 1600 bpi
  • 0 — Whichever writing density was used previously

The default values are 3 for Density Setting #1, and 2 for Density Setting #2.

Attributes with fixed values

If a tape drive is configured as a 1/2-inch 9-track tape drive, the Extended File Marks, Retension, Reserve Support, Variable Length Block Size, and Data Compression attributes have predefined values that cannot be changed.

Attributes for 3490e 1/2-inch cartridge (type 3490e)

The following are attributes for the 3490e 1/2-inch cartridge (type 3490e).

Block size

The default block size is 1024. This drive features a high data transfer rate, and block size can be critical to efficient operation. Larger block sizes can greatly improve operational speeds, and in general, the largest possible block size should be used.

Note: Increasing the block value can cause incompatibilities with other programs on your system. If this occurs, you receive the following error message while running those programs:

text
A system call received a parameter that is not valid.

Device buffers

The general information for this attribute applies to this tape drive type.

Compression

The general information for this attribute applies to this tape drive type.

Autoloader

This drive features a tape sequencer, an autoloader that sequentially loads and ejects a series of tape cartridges from the cartridge loader. For this function to operate correctly, the front panel switch should be in the AUTO position and the Autoloader attribute must be set to yes.

Attributes for other SCSI tapes (type ost)

The following are attributes for other SCSI tapes (type ost).

Block size

The system default is 512, but this should be adjusted to the default block size for your tape drive. Typical values are 512 and 1024. 8 mm and 4 mm tape drives usually use 1024 and waste space on the tape if the block size attribute is left at 512. A value of 0 indicates variable block size on some drives.

Device buffers

The general information for this attribute applies to this tape drive type.

Extended file marks

The general information for this attribute applies to this tape drive type.

Density setting #1 and density setting #2

The default value is 0 for both of these settings. Other values and their meanings vary for different tape drives.

Reserve support

The default value is no. This can be set to yes, if the drive supports reserve/release commands. If you are unsure, no is a safer value.

Variable length block size

The default variable length block size value is 0. Nonzero values are used primarily on quarter inch cartridge (QIC) drives. See the SCSI specification for the particular tape drive for advice.

Retry delay

This attribute applies exclusively to type ost tape drives.

Read/write timeout

This attribute applies exclusively to type ost tape drives.

Attributes with fixed values

If a tape drive is configured as an Other SCSI tape drive, the attributes for Extended File Marks, Retension, and Data Compression have predefined values which cannot be changed.

MPIO tape attributes

MPIO-supported tape devices will have additional attributes listed under MPIO device attributes.

Related concepts

Multiple Path I/O With Multiple Path I/O (MPIO), a device can be uniquely detected through one or more physical connections, or paths.

테이프 드라이브 특수 파일

운영 체제가 아는 각 테이프 드라이브에는 특수 파일이 여러 개 딸려 있습니다.

테이프의 파일을 쓰고 읽는 데는 rmt 특수 파일을 씁니다. 이 특수 파일은 /dev/rmt*, /dev/rmt*.1, /dev/rmt*.2부터 /dev/rmt*.7까지입니다. rmt*는 rmt0, rmt1 같은 테이프 드라이브의 논리 이름입니다.

테이프 드라이브에 딸린 특수 파일 가운데 하나를 고르면 테이프 드라이브 관련 I/O 작업을 어떻게 할지 고르는 것입니다.

선택 설명
밀도(Density) 테이프 드라이브 밀도 설정 #1로 쓸지 #2로 쓸지 고를 수 있습니다. 이 밀도 설정 값은 테이프 드라이브 속성의 일부입니다. 보통 밀도 설정 #1을 테이프 드라이브에서 가능한 가장 높은 밀도로, #2를 그다음으로 높은 밀도로 설정하므로 #1을 쓰는 특수 파일을 고밀도, #2를 쓰는 특수 파일을 저밀도라고 부르기도 하지만 늘 맞는 것은 아닙니다. 테이프를 읽을 때 밀도 설정은 무시됩니다.
닫을 때 되감기(Rewind-on-Close) 테이프 드라이브를 가리키는 특수 파일을 닫을 때 테이프를 되감을지 고를 수 있습니다. 닫을 때 되감기를 고르면 파일을 닫을 때 테이프가 테이프 시작에 위치합니다.
열 때 재장력(Retension-on-Open) 파일을 열 때 테이프를 재장력할지 고를 수 있습니다. 재장력은 오류를 줄이려고 테이프 끝까지 감았다가 처음까지 되감는 것입니다. 열 때 재장력을 고르면 열기 과정의 일부로 테이프가 테이프 시작에 위치합니다.

다음 표는 rmt 특수 파일 이름과 특성입니다.

특수 파일 닫을 때 되감기 열 때 재장력 밀도 설정
/dev/rmt* 예 아니요 #1
/dev/rmt*.1 아니요 아니요 #1
/dev/rmt*.2 예 예 #1
/dev/rmt*.3 아니요 예 #1
/dev/rmt*.4 예 아니요 #2
/dev/rmt*.5 아니요 아니요 #2
/dev/rmt*.6 예 예 #2
/dev/rmt*.7 아니요 예 #2

테이프 드라이브 rmt2의 테이프에 파일 세 개를 쓰고 싶다고 합시다. 첫 파일은 테이프 시작에, 둘째 파일은 첫 파일 뒤에, 셋째 파일은 둘째 파일 뒤에 둡니다. 또 테이프 드라이브의 밀도 설정 #1을 쓰고 싶다고 합시다. 테이프를 쓰는 데 다음 특수 파일을 주어진 순서대로 쓸 수 있습니다.

  1. /dev/rmt2.3
  2. /dev/rmt2.1
  3. /dev/rmt2

이 특수 파일을 고른 까닭은 다음과 같습니다.

  • /dev/rmt2.3은 열 때 재장력이 있어 첫 파일이 테이프 시작에 오도록 보장하므로 첫 파일용으로 골랐습니다. 다음 I/O 작업이 이 파일이 끝나는 곳에서 시작해야 하므로 닫을 때 되감기는 고르지 않았습니다. 첫 파일을 열 때 테이프가 이미 시작에 있으면 재장력 시간이 없어지므로 /dev/rmt2.1 파일을 첫 파일로 쓰는 편이 더 빠릅니다.
  • /dev/rmt2.1은 열 때 재장력과 닫을 때 되감기를 모두 고르지 않았으므로 둘째 파일용으로 골랐습니다. 파일을 열 때나 닫을 때 테이프 시작으로 갈 까닭이 없습니다.
  • /dev/rmt2는 셋째 파일이 둘째 파일 뒤에 와야 하므로 열 때 재장력이 필요 없어 셋째이자 마지막 파일용으로 골랐습니다. 테이프에서 셋째 파일 뒤에 더 쓸 계획이 없으므로 닫을 때 되감기를 골랐습니다. 다음에 테이프를 쓸 때는 테이프 시작에서 시작합니다.

특정 rmt 특수 파일을 골라 테이프 작업을 제어하는 것 말고도 tctl 명령으로 테이프 작업을 제어할 수 있습니다.

영어 원문

Special files for tape drives

There are several special files associated with each tape drive known to the operating system.

Writing to and reading from files on tapes is done by using rmt special files. These special files are /dev/rmt*, /dev/rmt*.1, /dev/rmt*.2, through /dev/rmt*.7. The rmt* is the logical name of a tape drive, such as rmt0, rmt1, and so on.

By selecting one of the special files associated with a tape drive, you make choices about how the I/O operations related to the tape drive will be performed.

  • Density — You can select whether to write with the tape drive Density Setting #1 or with the tape drive Density Setting #2. The values for these density settings are part of the attributes of the tape drive. Because it is customary to set Density Setting #1 to the highest possible density for the tape drive and Density Setting #2 to the next highest possible density for the tape drive, special files that use Density Setting #1 are sometimes referred to as high density and special files that use Density Setting #2 sometimes are referred to as low density, but this view is not always correct. When reading from a tape, the density setting is ignored.
  • Rewind-on-Close — You can select whether the tape is rewound when the special file referring to the tape drive is closed. If rewind-on-close is selected, the tape is positioned at the beginning of the tape when the file is closed.
  • Retension-on-Open — You can select whether the tape is retensioned when the file is opened. Retensioning means winding to the end of the tape and then rewinding to the beginning of the tape to reduce errors. If retension-on-open is selected, the tape is positioned at the beginning of the tape as part of the open process.

The following table shows the names of the rmt special files and their characteristics.

Special File Rewind on Close Retension on Open Density Setting
/dev/rmt* Yes No #1
/dev/rmt*.1 No No #1
/dev/rmt*.2 Yes Yes #1
/dev/rmt*.3 No Yes #1
/dev/rmt*.4 Yes No #2
/dev/rmt*.5 No No #2
/dev/rmt*.6 Yes Yes #2
/dev/rmt*.7 No Yes #2

Suppose you want to write three files on the tape in tape drive rmt2. The first file is to be at the beginning of the tape, the second file after the first file, and the third file after the second file. Further, suppose you want Density Setting #1 for the tape drive. The following list of special files, in the order given, could be used for writing the tape.

  1. /dev/rmt2.3

  2. /dev/rmt2.1

  3. /dev/rmt2

These particular special files are chosen because:

  • /dev/rmt2.3 is chosen as the first file because this file has Retension-on-Open, which ensures that the first file is at the beginning of the tape. Rewind-on-Close is not chosen because the next I/O operation is to begin where this file ends. If the tape is already at the beginning when the first file is opened, using the /dev/rmt2.1 file as the first file would be faster since time for retensioning the tape is eliminated.

  • /dev/rmt2.1 is chosen for the second file because this file has neither Retension-on-Open nor Rewind-on-Close chosen. There is no reason to go to the beginning of the tape either when the file is opened or when it is closed.

  • /dev/rmt2 is chosen for the third and final file because Retension-on-Open is not wanted since the third file is to follow the second file. Rewind-on-Close is selected because there are no plans to do any more writing after the third file on the tape. The next use of the tape will begin at the beginning of the tape.

Besides controlling tape operations by choosing a particular rmt special file, you can use the tctl command to control tape operations.