JavaScript is required to for searching.
탐색 링크 건너뛰기
인쇄 보기 종료
Oracle Solaris 관리: 장치 및 파일 시스템     Oracle Solaris 11 Information Library (한국어)
search filter icon
search icon

문서 정보

본 문서 정보

1.  이동식 매체 관리(개요)

2.  이동식 매체 관리(작업)

3.  이동식 매체에 액세스(작업)

4.  CD 및 DVD에 쓰기(작업)

5.  장치 관리(개요/작업)

6.  동적으로 장치 구성(작업)

7.  USB 장치 사용(개요)

8.  USB 장치 사용(작업)

9.  InfiniBand 장치 사용(개요/작업)

10.  디스크 관리(개요)

11.  디스크 관리(작업)

디스크 관리(작업 맵)

시스템의 디스크 식별

시스템의 디스크 식별 방법

디스크 포맷

디스크가 포맷되었는지 확인하는 방법

디스크 포맷 방법

디스크 슬라이스 표시

디스크 슬라이스 정보 표시 방법

디스크 레이블 만들기 및 검사

디스크에 레이블을 지정하는 방법

디스크 레이블 검사 방법

손상된 디스크 레이블 복구

손상된 디스크 레이블 복구 방법

타사 디스크 추가

12.  SPARC: 디스크 설정(작업)

13.  x86: 디스크 설정(작업)

14.  COMSTAR를 사용하여 저장 장치 구성

15.  Oracle Solaris iSNS(Internet Storage Name Service) 구성 및 관리

16.  format 유틸리티(참조)

17.  파일 시스템 관리(개요)

18.  파일 시스템 만들기 및 마운트(작업)

19.  추가 스왑 공간 구성(작업)

20.  파일 및 파일 시스템 복사(작업)

21.  테이프 드라이브 관리(작업)

색인

디스크 레이블 만들기 및 검사

디스크 레이블은 일반적으로 시스템을 설치하거나 새 디스크를 사용할 때 지정됩니다. 디스크 레이블이 손상된 경우 디스크 레이블을 재지정해야 할 수도 있습니다. 예를 들어, 정전이 발생한 경우입니다.

format 유틸리티는 레이블이 없는 SCSI 디스크를 자동으로 구성하려고 시도합니다. format 유틸리티가 레이블이 없는 디스크를 자동으로 구성할 수 있는 경우 다음과 유사한 메시지를 표시합니다.

    c2t3d0: configured with capacity of 136.73GB

디스크에 레이블을 지정하는 방법

다음 절차를 사용하여 다음을 수행할 수 있습니다.

2TB보다 작은 디스크에 EFI 레이블을 지정하려는 경우 예 11-5를 참조하십시오.

  1. 관리자로 전환합니다.

    자세한 내용은 Oracle Solaris 관리: 보안 서비스의 관리 권한을 얻는 방법을 참조하십시오.

  2. format 유틸리티를 호출합니다.
    # format

    디스크의 번호 매기기 목록이 표시됩니다.

  3. 레이블을 지정하려는 디스크의 번호를 입력합니다.
    Specify disk (enter its number):1

    format 유틸리티가 디스크 유형을 인식하는 경우 다음 단계는 백업 레이블을 검색하여 디스크에 레이블을 지정하는 것입니다. 백업 레이블로 디스크 레이블을 지정하면 올바른 분할 정보, 디스크 유형 및 디스크 구조로 디스크에 레이블이 지정됩니다.

  4. 다음 중 하나를 선택하여 디스크에 레이블을 지정합니다.
    • 디스크에 레이블이 없고 성공적으로 구성된 경우 5단계로 이동하여 디스크에 레이블을 지정합니다.

      format 유틸리티가 디스크에 레이블을 지정할 것인지 확인합니다.

    • 디스크에 레이블이 있지만 디스크 유형을 변경하려는 경우 또는 format 유틸리티가 디스크를 자동으로 구성할 수 없는 경우 6단계로 이동하여 디스크 유형을 설정하고 디스크에 레이블을 지정합니다.

  5. Label it now? 프롬프트에서 y를 입력하여 디스크에 레이블을 지정합니다.
    Disk not labeled. Label it now? y

    이제 디스크에 레이블이 지정되었습니다. 10단계로 이동하여 format 유틸리티를 종료합니다.

  6. format> 프롬프트에서 type을 입력합니다.
    format> type

    Available Drive Types(사용 가능한 드라이브 유형) 메뉴가 표시됩니다.

  7. 가능한 디스크 유형 목록에서 디스크 유형을 선택합니다.
    Specify disk type (enter its number)[12]: 12

    또는 0을 선택하여 SCSI-2 디스크를 자동으로 구성합니다.

  8. 디스크에 레이블을 지정합니다. 디스크에 레이블이 지정되지 않은 경우 다음 메시지가 표시됩니다.
    Disk not labeled. Label it now? y

    그렇지 않으면 다음 메시지가 표시됩니다.

    Ready to label disk, continue? y
  9. 디스크 레이블을 확인합니다.
    format> verify 
  10. format 유틸리티를 종료합니다.
    format> q
    #

예 11-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

예 11-5 디스크에 EFI 레이블 지정

다음 예에서는 format-e 명령을 사용하여 EFI 레이블로 디스크 레이블을 지정하는 방법을 보여 줍니다. 계층형 소프트웨어 제품이 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

예 11-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 명령에 의해 표시되는 정보에 대한 자세한 설명은 10 장디스크 관리(개요)를 참조하십시오.

  1. 관리자로 전환합니다.

    자세한 내용은 Oracle Solaris 관리: 보안 서비스의 관리 권한을 얻는 방법을 참조하십시오.

  2. 디스크 레이블 정보를 표시합니다.
    # prtvtoc /dev/rdsk/device-name

    여기서 device-name은 검사하려는 원시 디스크 장치입니다.

예 11-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/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