5.9.3. 낮은 수준의 포맷을 사용하여 새 DASD 준비

디스크가 온라인 상태가 되면 /root 디렉토리로 다시 변경하고 장치를 하위 수준 형식으로 변경합니다. 이는 전체 수명 동안 DASD에 한 번만 필요합니다.

# cd /root
# dasdfmt -b 4096 -d cdl -p /dev/disk/by-path/ccw-0.0.4b2e
Drive Geometry: 10017 Cylinders * 15 Heads =  150255 Tracks

I am going to format the device /dev/disk/by-path/ccw-0.0.4b2e in the following way:
Device number of device : 0x4b2e
Labelling device        : yes
Disk label              : VOL1
Disk identifier         : 0X4B2E
Extent start (trk no)   : 0
Extent end (trk no)     : 150254
Compatible Disk Layout  : yes
Blocksize               : 4096

--->> ATTENTION! <<---
All data of that device will be lost.
Type "yes" to continue, no will leave the disk untouched: yes
cyl    97 of  3338 |#----------------------------------------------|   2%

진행률 표시줄이 끝에 도달하면 dasdfmt 는 다음 출력을 출력합니다.

Rereading the partition table...
Exiting...

이제 fdasd 를 사용하여 DASD를 분할합니다. DASD에 최대 3개의 파티션을 생성할 수 있습니다. 이 예제에서는 전체 디스크에 걸쳐 하나의 파티션을 만듭니다.

# fdasd -a /dev/disk/by-path/ccw-0.0.4b2e
reading volume label ..: VOL1
reading vtoc ..........: ok

auto-creating one partition for the whole disk...
writing volume label...
writing VTOC...
rereading partition table...

(낮은 수준의 형식) DASD가 온라인 상태가 되면 Linux에서 다른 디스크처럼 사용할 수 있습니다. 예를 들어 /dev/disk/by-path/ccw-0.0.4b2e-part1 과 같이 파티션에서 파일 시스템, LVM 물리 볼륨 또는 스왑 공간을 생성할 수 있습니다. dasdfmtfdasd 명령만 전체 DASD 장치(dev/dasdb)를 사용하지 마십시오. 전체 DASD를 사용하려면 위의 fdasd 예제와 같이 전체 드라이브를 통해 하나의 파티션을 만듭니다.

/etc/fstab 의 기존 디스크 항목을 손상시키지 않고 나중에 디스크를 추가하려면 /dev/disk/by-path/ 에서 영구 장치 심볼릭 링크를 사용합니다.