Oracle® Solaris 11.2의 장치 관리

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

슬라이스 또는 분할 영역 수정

대부분의 경우 디스크는 제조업체에서 포맷하고 분할합니다. 따라서 분할 영역 구성을 수정하려는 경우에는 슬라이스 또는 분할 영역 크기를 변경하거나 분할 영역 유형을 변경하여 디스크 분할 영역 또는 슬라이스를 구성합니다.

SPARC: partition 옵션 사용

Format 유틸리티의 partition 옵션은 SPARC 기반 시스템의 디스크 슬라이스를 구성합니다. 이 절에서는 partition 옵션을 사용하는 방법에 대한 예를 제공합니다.

예 6-15  SPARC: 디스크 슬라이스 크기 조정

이 예에서는 루트 풀의 디스크 크기가 부족합니다. 최적의 크기가 되려면 대량 디스크 공간이 슬라이스 0에 있어야 합니다. 현재 분할 영역을 수정하여 분할 영역 크기를 변경할 수 있습니다.

...Format Menu
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> modifyChange partition size.
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> q
format> q

x86: fdisk 옵션 사용

Format 유틸리티의 fdisk 옵션을 사용하면 x86 기반 시스템의 fdisk 분할 영역을 관리할 수 있습니다.

다음 요구 사항이 충족되는 경우 ZFS 저장소 풀에 x86 유형 디스크를 사용할 수 있습니다.

  • 디스크에 분할 영역이 여러 개 있는 경우 분할 영역 중 하나가 Solaris 분할 영역이어야 합니다.

    fdisk 옵션을 사용하여 Solaris 분할 영역이 있는지 확인할 수 있습니다. Solaris 분할 영역이 없는 경우 Example 6–16과 같이 하나 만듭니다.

  • 디스크에서 Solaris 분할 영역이 활성 분할 영역이어야 합니다.

    활성 분할 영역은 시스템 시작 시 운영 체제가 기본적으로 부트되는 분할 영역입니다.

  • Solaris fdisk 분할 영역은 실린더 경계에서 시작해야 합니다.

    Solaris fdisk 분할 영역은 첫번째 디스크의 실린더 0에서 시작하지 않아야 합니다. 첫번째 디스크의 실린더 0은 마스터 부트 레코드를 비롯한 추가 부트 정보를 저장할 공간으로 예약됩니다.

  • Solaris fdisk 분할 영역은 전체 디스크일 수도 있고 다른 분할 영역에 사용할 공간을 남겨 두기 위해 디스크의 일부일 수도 있습니다.

    디스크에 공간이 충분한 경우 디스크의 기존 분할 영역을 재구성하지 않아도 새 분할 영역을 만들 수 있습니다.

모든 fdisk 분할 영역에는 식별자가 있습니다. Solaris 분할 영역에는 다음 2개의 식별자가 있습니다.

  • Solaris에는 0x82 식별자가 사용됩니다.

  • Solaris2에는 0xbf 식별자가 사용됩니다.

모든 Oracle Solaris 명령, 유틸리티 및 드라이버가 fdisk 기능에 영향을 주지 않고 두 식별자에서 모두 작동하도록 업데이트되었습니다. 따라서 다음과 같이 fdisk 메뉴에서 적절한 옵션을 선택하여 두 식별자 간을 전환할 수 있습니다.

format > fdisk
...
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 IDsToggle between identifiers
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)

주 -  분할 영역에 포함된 파일 시스템이 마운트된 경우에도 fdisk 식별자를 변경할 수 있습니다.
예 6-16  x86: 전체 드라이브에 걸쳐 있는 Solaris fdisk 분할 영역 만들기

다음 예에서는 전체 c8t3d0 드라이브에 걸쳐 있는 Solaris fdisk 분할 영역을 만드는 방법을 보여 줍니다.

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c8t0d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@0,0
/dev/chassis/SYS/HD0/disk
1. c8t1d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@1,0
/dev/chassis/SYS/HD1/disk
2. c8t2d0 <SEAGATE-ST973401LSUN72G-0556-68.37GB>
/pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@2,0
/dev/chassis/SYS/HD2/disk
3. c8t3d0 <SEAGATE-ST973401LSUN72G-0556 cyl 14087 alt 2 hd 24 sec 424>
/pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@3,0
/dev/chassis/SYS/HD3/disk
Specify disk (enter its number): 3
selecting c8t3d0
[disk formatted]
No Solaris fdisk partition found.
format> fdisk
No fdisk table exists. The default partitioning for your disk is:

a 100% "SOLARIS System" partition.

Type "y" to accept the default partition, otherwise type "n" to edit the
partition table. y

format> label
Ready to label disk, continue? yes
format> quit
예 6-17  x86: x86 분할 영역을 Solaris 분할 영역으로 변환

이 예에서는 기존 분할 영역을 Solaris 분할 영역으로 변환하는 방법을 보여 줍니다. 기본적으로 대부분의 x86 기반 시스템에서는 디스크에 EFI 레이블이 있습니다. 분할 영역 유형을 변경하려면 먼저 기본 분할 영역을 삭제합니다. 분할 영역 유형을 변경하면 해당 레이블도 자동으로 변경됩니다. 디스크가 원래는 EFI 디스크이므로 format –e 명령을 사용하여 Format 유틸리티를 실행합니다.

# format -e
...
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.