탐색 링크 건너뛰기 | |
인쇄 보기 종료 | |
Oracle Solaris 11.1 관리: 장치 및 파일 시스템 Oracle Solaris 11.1 Information Library (한국어) |
디스크 레이블은 일반적으로 시스템을 설치하거나 새 디스크를 사용할 때 지정됩니다. 디스크 레이블이 손상된 경우 디스크 레이블을 재지정해야 할 수도 있습니다. 예를 들어, 정전이 발생한 경우입니다.
format 유틸리티는 레이블이 없는 SCSI 디스크를 자동으로 구성하려고 시도합니다. format 유틸리티가 레이블이 없는 디스크를 자동으로 구성할 수 있는 경우 다음과 유사한 메시지를 표시합니다.
c2t3d0: configured with capacity of 136.73GB
2TB보다 작은 디스크에 EFI 레이블을 지정하려는 경우 예 9-5를 참조하십시오.
자세한 내용은 Oracle Solaris 11.1 관리: 보안 서비스의 지정된 관리 권한을 사용하는 방법을 참조하십시오.
# format
디스크의 번호 매기기 목록이 표시됩니다.
Specify disk (enter its number):1
format 유틸리티가 디스크 유형을 인식하는 경우 다음 단계는 백업 레이블을 검색하여 디스크에 레이블을 지정하는 것입니다. 백업 레이블로 디스크 레이블을 지정하면 올바른 분할 정보, 디스크 유형 및 디스크 구조로 디스크에 레이블이 지정됩니다.
디스크에 레이블이 없고 성공적으로 구성된 경우 5단계로 이동하여 디스크에 레이블을 지정합니다.
format 유틸리티가 디스크에 레이블을 지정할 것인지 확인합니다.
디스크에 레이블이 있지만 디스크 유형을 변경하려는 경우 또는 format 유틸리티가 디스크를 자동으로 구성할 수 없는 경우 6단계로 이동하여 디스크 유형을 설정하고 디스크에 레이블을 지정합니다.
Disk not labeled. Label it now? y
이제 디스크에 레이블이 지정되었습니다. 10단계로 이동하여 format 유틸리티를 종료합니다.
format> type
Available Drive Types(사용 가능한 드라이브 유형) 메뉴가 표시됩니다.
Specify disk type (enter its number)[12]: 12
또는 0을 선택하여 SCSI-2 디스크를 자동으로 구성합니다.
Disk not labeled. Label it now? y
그렇지 않으면 다음 메시지가 표시됩니다.
Ready to label disk, continue? y
format> verify
format> q #
예 9-4 디스크에 레이블 지정
다음 예에서는 36GB 디스크를 자동으로 구성하고 레이블을 지정하는 방법을 보여 줍니다.
# format AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@1c,600000/scsi@2/sd@0,0 1. c0t1d0 <SEAGATE-ST336607LSUN36G-0307-33.92GB> /pci@1c,600000/scsi@2/sd@1,0 2. c0t2d0 <SEAGATE-ST336607LSUN36G-0507-33.92GB> /pci@1c,600000/scsi@2/sd@2,0 3. c0t3d0 <SEAGATE-ST336607LSUN36G-0507-33.92GB> /pci@1c,600000/scsi@2/sd@3,0 Specify disk (enter its number): 3 c0t3d0: configured with capacity of 33.92GB Disk not labeled. Label it now? yes format> verify format> q
예 9-5 디스크에 EFI 레이블 지정
다음 예에서는 format - e 명령을 사용하여 EFI 레이블 또는 SMI(VTOC) 레이블로 디스크 레이블을 지정하는 방법을 보여 줍니다. 계층형 소프트웨어 제품이 EFI 레이블 디스크를 포함하는 시스템에서 계속 작동하는지 확인해야 합니다. EFI 레이블 제한 사항에 대한 일반적인 내용은 EFI 디스크 레이블의 제한 사항을 참조하십시오.
# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c2t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@0,0 1. c2t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@1,0 2. c2t2d0 <FUJITSU-MAP3147N SUN146G-0501-136.73GB> /pci@1c,600000/scsi@2/sd@2,0 3. c2t3d0 <FUJITSU-MAP3147N SUN146G-0501-136.73GB> /pci@1c,600000/scsi@2/sd@3,0 Specify disk (enter its number): 3 selecting c2t3d0 [disk formatted] format> label [0] SMI Label [1] EFI Label Specify Label type[0]: 1 Ready to label disk, continue? yes format> quit
예 9-6 EFI 레이블 디스크를 SMI 레이블 디스크로 변경
다음 예에서는 format -e 명령을 사용하여 EFI 레이블 디스크를 ZFS 루트 풀에 사용할 수 있는 SMI 레이블 디스크로 변경하는 방법을 보여 줍니다.
x86 기반 시스템에서는 먼저 EFI fdisk 분할 영역을 Solaris 분할 영역으로 변경해야 합니다. 예를 들면 다음과 같습니다.
# format -e select disk ... format> fdisk FORMAT MENU: disk - select a disk type - select (define) a disk type Total disk size is 17833 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 EFI 0 17833 17834 100 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection: 3 Specify the partition number to delete (or enter 0 to exit): 1 This will make all files and programs in this partition inaccessible (type "y" or "n"). y Enter Selection: 1 Select the partition type to create: 1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective) G=EFI_SYS 0=Exit? 1 Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders). 100 Should this become the active partition? If yes, it will be activated each time the computer is reset or turned on. Please type "y" or "n". y Enter Selection: 6 Partition 1 is now the active partition.
SPARC 기반 시스템에서는 아래 단계를 수행합니다.
# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c2t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@0,0 1. c2t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@1c,600000/scsi@2/sd@1,0 2. c2t2d0 <FUJITSU-MAP3147N SUN146G-0501-136.73GB> /pci@1c,600000/scsi@2/sd@2,0 3. c2t3d0 <FUJITSU-MAP3147N SUN146G-0501-136.73GB> /pci@1c,600000/scsi@2/sd@3,0 Specify disk (enter its number): 3 selecting c2t0d0 [disk formatted] format> label [0] SMI Label [1] EFI Label Specify Label type[1]: 0 Ready to label disk, continue? yes
또한 기본 분할 영역 테이블을 검사하여 루트 풀 슬라이스에 최적화되었는지 확인해야 합니다. 즉, 디스크 공간의 대부분이 슬라이스 0에 있는지 확인합니다. 슬라이스 0의 디스크를 늘리려면 아래 단계를 참조하십시오.
format> partition partition> print Current partition table (default): Total disk cylinders available: 14085 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 13 129.19MB (13/0/0) 264576 1 swap wu 14 - 26 129.19MB (13/0/0) 264576 2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 27 - 14084 136.43GB (14058/0/0) 286108416 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 9.94MB (1/0/0) 20352 9 alternates wm 0 0 (0/0/0) 0 partition> modify Select partitioning base: 0. Current partition table (default) 1. All Free Hog Choose base (enter number) [0]? 1 Part Tag Flag Cylinders Size Blocks 0 root wm 0 0 (0/0/0) 0 1 swap wu 0 0 (0/0/0) 0 2 backup wu 0 - 14084 136.69GB (14085/0/0) 286657920 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 9.94MB (1/0/0) 20352 9 alternates wm 0 0 (0/0/0) 0 Do you wish to continue creating a new partition table based on above table[yes]? yes Free Hog partition[6]? 0 Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 14084 136.68GB (14084/0/0) 286637568 1 swap wu 0 0 (0/0/0) 0 2 backup wu 0 - 14084 136.69GB (14085/0/0) 286657920 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 9.94MB (1/0/0) 20352 9 alternates wm 0 0 (0/0/0) 0 Okay to make this the current partition table[yes]? yes Enter table name (remember quotes): "c2t0d0" Ready to label disk, continue? yes partition> quit format> quit
prtvtoc 명령을 사용하여 디스크 레이블 정보를 검사합니다. 디스크 레이블 및 prtvtoc 명령에 의해 표시되는 정보에 대한 자세한 설명은 7 장디스크 관리(개요)를 참조하십시오.
자세한 내용은 Oracle Solaris 11.1 관리: 보안 서비스의 지정된 관리 권한을 사용하는 방법을 참조하십시오.
# prtvtoc /dev/rdsk/device-name
여기서 device-name은 검사하려는 원시 디스크 장치입니다.
예 9-7 디스크 레이블 검사
다음 예에서는 VTOC 레이블 디스크에 대한 디스크 레이블 정보를 보여 줍니다.
# prtvtoc /dev/rdsk/c2t3d0s0 * /dev/rdsk/c2t3d0s0 partition map * * Dimensions: * 512 bytes/sector * 848 sectors/track * 24 tracks/cylinder * 20352 sectors/cylinder * 14089 cylinders * 14087 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 286698624 286698623 2 5 01 0 286698624 286698623
다음 예에서는 EFI 레이블이 있는 루트 풀 디스크에 대한 디스크 레이블 정보를 보여 줍니다.
# prtvtoc /dev/dsk/c7t0d0s1 * /dev/dsk/c7t0d0s1 partition map * * Dimensions: * 512 bytes/sector * 156301488 sectors * 156301421 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 34 222 255 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 24 00 256 524288 524543 1 4 00 524544 155760527 156285070 8 11 00 156285071 16384 156301454 ~#
다음 예에서는 EFI 레이블이 있는 비루트 풀 디스크에 대한 디스크 레이블 정보를 보여 줍니다.
# prtvtoc /dev/dsk/c8t3d0 * /dev/dsk/c8t3d0 partition map * * Dimensions: * 512 bytes/sector * 143374738 sectors * 143374671 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 34 222 255 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 4 00 256 143358065 143358320 8 11 00 143358321 16384 143374704