다음 단계는 Solaris 분할 영역을 만들고 슬라이스를 수정하는 방법을 보여 줍니다.
이 작업을 수행하기 전에 데이터를 모두 백업해야 합니다.
# fdisk device
# prtvtoc device
각 슬라이스가 실린더 경계에서 시작되는지 확인합니다. 예를 들어, 슬라이스 1은 실린더 크기를 바이트 수로 나타낸 값에 1000을 곱한 822280000에서 시작합니다.
자세한 내용은 rmformat(1)의 –s 옵션 설명을 참조하십시오.
# rmformat -s slice-file device
# prtvtoc device
다음 예에서는 c5t0d0s2 장치에 슬라이스가 만들어집니다. 다음 내용으로 myslice라는 슬라이스 파일이 만들어집니다.
slices: 0 = 0, 5GB, "wm", "home" : 1 = 8225280000, 6GB : 2 = 0, 44GB, "wm", "backup" : 6 = 16450560000, 15GB
이 파일은 새 슬라이스를 만들 때 사용됩니다.
# fdisk /dev/rdsk/c5t0d0s2 No fdisk table exists. The default partition for the disk is: a 100% "SOLARIS System" partition Type "y" to accept the default partition, otherwise type "n" to edit the partition table. yThe current partition is accepted and will not be modified. # prtvtoc /dev/rdsk/c5t0d0s2 * /dev/rdsk/c5t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 63 sectors/track * 255 tracks/cylinder * 16065 sectors/cylinder * 5836 cylinders * 5836 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 0 00 0 93755340 93755339 2 0 00 0 93755340 93755339 # rmformat -s myslice /dev/rdsk/c5t0d0s2 # prtvtoc /dev/rdsk/c5t0d0s2 * /dev/rdsk/c5t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 63 sectors/track * 255 tracks/cylinder * 16065 sectors/cylinder * 5836 cylinders * 5836 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 10485760 5579240 16064999 * 28647912 3482088 32129999 * 63587280 30168060 93755339 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 8 00 0 10485760 10485759 1 3 01 16065000 12582912 28647911 2 5 00 0 92274688 92274687 6 4 00 32130000 31457280 63587279