| 탐색 링크 건너뛰기 | |
| 인쇄 보기 종료 | |
|   | Oracle Solaris 10 1/13 설치 설명서: JumpStart 설치 Oracle Solaris 10 1/13 Information Library (한국어) | 
이 절에서는 단일 디스크 및 다중 디스크 구성 파일을 만드는 방법에 대해 설명합니다. 디스크 구성 파일을 이용하면 단일 시스템에서 pfinstall(1M)을 사용하여 여러 디스크 구성에 대해 프로파일을 테스트할 수 있습니다.
역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security Services의 Configuring RBAC (Task Map)를 참조하십시오.
# prtvtoc /dev/rdsk/device-name >disk-config-file
시스템 디스크의 장치 이름. device-name은 cwt xdys2 또는 cxdys2 형식이어야 합니다.
디스크 구성 파일 이름
예 4-9 SPARC: 디스크 구성 파일 만들기
다음 예에서는 단일 디스크 구성 파일, 104_test를 104MB 디스크를 포함하는 SPARC시스템에 만드는 방법을 보여줍니다.
prtvtoc 명령의 출력을 104_test라는 단일 디스크 구성 파일로 재지정합니다.
# prtvtoc /dev/rdsk/c0t3d0s2 >104_test
104_test 파일의 내용은 다음 예와 비슷합니다.
* /dev/rdsk/c0t3d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      72 sectors/track
*      14 tracks/cylinder
*    1008 sectors/cylinder
*    2038 cylinders*    2036 accessible cylinders
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       1      2    00          0     164304   164303   /
       2      5    00          0    2052288  2052287  
       3      0    00     164304     823536   987839   /disk2/b298
       5      0    00     987840     614880  1602719   /install/298/sparc/work
       7      0    00    1602720     449568  2052287   /space참조
프로파일 테스트는 디스크 구성 파일을 사용하여 프로파일을 테스트하는 데 대한 정보를 포함합니다.
역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security Services의 Configuring RBAC (Task Map)를 참조하십시오.
# prtvtoc /dev/rdsk/device-name >disk-config-file
시스템 디스크의 장치 이름. device-name은 cwt xdys2 또는 cxdys2 형식이어야 합니다.
디스크 구성 파일 이름
# cat disk-file1 disk-file2 >multi-disk-config-file
새 파일은 다음 예에서와 같이 다중 디스크 구성 파일이 됩니다.
# cat 104_disk2 104_disk3 104_disk5 >multi_disk_test
예를 들어, 다음과 같이 서로 다른 디스크 장치 이름에 대해 동일한 대상 번호인 t0이 파일에 포함되어 있다고 가정합니다.
* /dev/rdsk/c0t0d0s2 partition map ... * /dev/rdsk/c0t0d0s2 partition map
두번째 대상 번호를 다음과 같이 t2로 변경합니다.
* /dev/rdsk/c0t0d0s2 partition map ... * /dev/rdsk/c0t2d0s2 partition map
역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security Services의 Configuring RBAC (Task Map)를 참조하십시오.
# fdisk -R -W disk-config-file -h /dev/rdsk/device-name
디스크 구성 파일 이름
전체 디스크의 fdisk 레이아웃의 장치 이름. device-name은 cwt xdys0 또는 cxdys0 형식이어야 합니다.
# prtvtoc /dev/rdsk/device-name >>disk-config
시스템 디스크의 장치 이름. device-name은 cwt xdys2 또는 cxdys2 형식이어야 합니다.
디스크 구성 파일 이름
예 4-10 x86: 디스크 구성 파일 만들기
다음 예에서는 단일 디스크 구성 파일 500_test를 500MB 디스크를 포함하는 x86 기반 시스템에 만드는 방법을 보여줍니다.
먼저 다음과 같이 fdisk 명령의 출력을 이름이 500_test인 파일에 저장합니다.
# fdisk -R -W 500_test -h /dev/rdsk/c0t0d0p0
500_test 파일이 다음과 같습니다.
* /dev/rdsk/c0t0d0p0 default fdisk table * Dimensions: * 512 bytes/sector * 94 sectors/track * 15 tracks/cylinder * 1455 cylinders * * HBA Dimensions: * 512 bytes/sector * 94 sectors/track * 15 tracks/cylinder * 1455 cylinders * * systid: * 1: DOSOS12 * 2: PCIXOS * 4: DOSOS16 * 5: EXTDOS * 6: DOSBIG * 86: DOSDATA * 98: OTHEROS * 99: UNIXOS * 130: SUNIXOS * * Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect Numsect 130 128 44 3 0 46 30 1001 1410 2050140
prtvtoc 명령의 출력을 500_test 파일에 추가합니다.
# prtvtoc /dev/rdsk/c0t0d0s2 >>500_test
이제 500_test 파일이 완전한 디스크 구성 파일입니다.
* /dev/rdsk/c0t0d0p0 default fdisk table    
* Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
*  HBA Dimensions:
*     512 bytes/sector
*      94 sectors/track
*      15 tracks/cylinder
*    1455 cylinders
*
* systid:
*  1:    DOSOS12
*  2:    PCIXOS
*  4:    DOSOS16
*  5:    EXTDOS
*  6:    DOSBIG
*  86:   DOSDATA
*  98:   OTHEROS
*  99:   UNIXOS
*  130:  SUNIXOS
*
* Id  Act Bhead Bsect Bcyl  Ehead  Esec  Ecyl Rsect  Numsect
 130  128 44    3     0     46    30    1001 1410   2050140
* /dev/rdsk/c0t0d0s2 partition map
*
* Dimensions:
*      512 bytes/sector
*       94 sectors/track
*       15 tracks/cylinder
*     1110 sectors/cylinder
*     1454 cylinders
*     1452 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*                          First    Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01       1410   2045910   2047319
       7      6    00       4230   2043090   2047319  /space
       8      1    01          0      1410     1409
       9      9    01       1410      2820     422987참조
프로파일 테스트는 디스크 구성 파일을 사용하여 프로파일을 테스트하는 데 대한 정보를 포함합니다.
역할에는 권한 부여 및 권한이 있는 명령이 포함됩니다. 역할에 대한 자세한 내용은 System Administration Guide: Security Services의 Configuring RBAC (Task Map)를 참조하십시오.
# fdisk -R -W disk-config-file -h /dev/rdsk/device-name
디스크 구성 파일 이름
전체 디스크의 fdisk 레이아웃의 장치 이름. device-name은 cwt xdys0 또는 cxdys0 형식이어야 합니다.
# prtvtoc /dev/rdsk/device-name >>disk-config
시스템 디스크의 장치 이름. device-name은 cwt xdys2 또는 cxdys2 형식이어야 합니다.
디스크 구성 파일 이름
# cat disk-file1 disk-file2 >multi-disk-config-file
새 파일은 다음 예에서와 같이 다중 디스크 구성 파일이 됩니다.
# cat 104_disk2 104_disk3 104_disk5 >multi_disk_test
예를 들어 파일은 다음과 같이 다른 디스크 장치 이름에 대하여 동일한 대상 번호, t0을 포함할 수 있습니다.
* /dev/rdsk/c0t0d0s2 partition map ... * /dev/rdsk/c0t0d0s2 partition map
두번째 대상 번호를 다음과 같이 t2로 변경합니다.
* /dev/rdsk/c0t0d0s2 partition map ... * /dev/rdsk/c0t2d0s2 partition map