로그인
Sign in
시스템의 전원을 끈후 새 디스크를 연결한다.

시스템의 전원을 킨후 화면이 올라올때 "stop" key와 "a" key를 동시에 늘러 ok 상태로 시스템을  내린 후 아래의 명령을 사용하여 리부팅 한다.

           ok probe -scsi-all   : 명령후 디스크가 제대로 인식돼는지 확인
                                       : 제대로 인식 됐으면.
           ok boot -r              : 명령으로 시스템 재설정 부팅

시스템이 부팅된후 root로 로그인 한후 fotmat 명령 실행 후 새로연결한 디스크 번호 선택 여기서는 c0t1d0 디스크를 붙이는 것으로 하여 설명하겠습니다.

#format

Searching for disks...done

AVAILABLE DISK SELECTIONS:
      0. c0t0d0
         /pci@1f,0/pci@1,1/ide@3/dad@0,0
      1. c0t1d0
         /pci@1f,0/pci@1,1/ide@3/dad@0,0
** Specify disk (enter its number): 1           ------->  1번 선택
selecting c0t1d0    
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
       disk       - select a disk
       type       - select (define) a disk type
       partition  - select (define) a partition table
       current    - describe the current disk
       format     - format and analyze the disk
       repair     - repair a defective sector
       show       - translate a disk address
       label      - write label to the disk
       analyze    - surface analysis
       defect     - defect list management
       backup     - search for backup labels
       verify     - read and display labels
       save       - save new disk/partition definitions
       volname    - set 8-character volume name
       !     - execute , then return
       quit
** format> partition              ------>  "partition" 친후 enter
PARTITION MENU:
       0      - change `0' partition
       1      - change `1' partition
       2      - change `2' partition
       3      - change `3' partition
       4      - change `4' partition
       5      - change `5' partition
       6      - change `6' partition
       7      - change `7' partition
       select - select a predefined table
       modify - modify a predefined partition table
       name   - name the current table
       print  - display the current table
       label  - write partition map and label to the disk
       ! - execute , then return
       quit
** partition> print               ------->   "print" 친후 enter
Current partition table (original):
Total disk cylinders available: 59301 + 2 (reserved cylinders)

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    wm       0 - 59300       28.50GB    (59301/0/0) 59775408
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 unassigned    wm       0                0         (0/0/0)            0
7 unassigned    wm       0                0         (0/0/0)            0

print결과에서 2번 part가 전체 디스크의 용량을 보여 주며, 위의 결과에서 보면 전체 디스크 용량은 28.50GB이고 59300개의 cylinder를 가지고 있음을 알수 있다
  
사용할 slice(part)와 각 slice에 할당할 디스크 사이즈를 결정하고 아래와 같이 선택을 한다.
  
전체 디스크 용량을 2개의 slice로 나누고 5과 6번 slice를 사용하고자 할때;

** partition> 5                ------------->  5번 선택
Part      Tag    Flag     Cylinders        Size            Blocks
5 unassigned    wm       0               0         (0/0/0)          0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[0b, 0c, 0.00mb]: 3000mb

** partition> print                 ----------> "print" 침  
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
0 unassigned    wm       0               0         (0/0/0)          0
1 unassigned    wm       0               0         (0/0/0)          0
2     backup    wm       0 - 59300       28.50GB    (59301/0/0) 59775408
3 unassigned    wm       0               0         (0/0/0)          0
4 unassigned    wm       0               0         (0/0/0)           0
** 5 unassigned    wm       0 -  6095     2.93GB     (6096/0/0)   6144768
6 unassigned    wm       0               0         (0/0/0)          0
7 unassigned    wm       0               0         (0/0/0)          0

partition> 6
Part      Tag    Flag     Cylinders        Size            Blocks
6 unassigned    wm       0               0         (0/0/0)          0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1018
Enter partition size[0b, 0c, 0.00mb]: 1018c

partition> print
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
0 unassigned    wm       0               0         (0/0/0)          0
1 unassigned    wm       0               0         (0/0/0)          0
2     backup    wm       0 - 59300       28.50GB    (59301/0/0) 59775408
3 unassigned    wm       0               0         (0/0/0)          0
4 unassigned    wm       0              0          (0/0/0)          0
** 5 unassigned    wm       0 -  6095     2.93GB     (6096/0/0)   6144768
6 unassigned    wm       6096  - 59299    24.50GB    (52188/0/0)          0
7 unassigned    wm       0               0         (0/0/0)          0

partition 작업이 끝나면 label을 실행 한다.

** partition> label          ------>  "label" 이라고 친다.
** Ready to label disk, continue? y       ----->  " y " 치고 엔터            

이후 q 를 두번 쳐서 format 명령을 빠져 나온다.

다음으로 newfs를 실행하여 UNIX filesystem을 새 디스크의 각 slice에 만든다  

# newfs /dev/rdsk/c0t1d0s5

"c#t#d#s#" 은 새 디스크의 각 slice에 해당하는 디바이스 이름을 쓴다.

newfs 작업이 끝나면 새 filesystem을 mount하여 사용한다.  

/home로 mount 한다면
      
명령어를 이용하여 filesystem을 mount할때 :
      
# mount  -F ufs /dev/dsk/c0t1d0s5 /home
      
/etc/vfstab을 사용하여  mount 할때에는 아래와 같이 vfstab에 정의한 후,  
              
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5   /home    ufs 2 yes -
    
아래의 명령을 사용한다.
    
# mountall
    
시스템이 rebooting된 후에 자동 mount되게 하려면 /etc/vfstab에 정의해야 한다.

위의 모든 작업이 끝나면 아래 명령어를 사용하여 새 filesystem이 mount되에
있는지 확인한다.

# df -k    
조회 수 :
483
추천 수 :
23 / 0
등록일 :
2003.12.13
16:45:26 (*.193.52.140)
엮인글 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2936&act=trackback&key=043
게시글 주소 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2936
List of Articles
번호 제목 글쓴이 날짜 조회 수
71 키보드의 Power 버튼 기능 막기 하록 2003-12-13 452
70 웹서버를 위한 솔라리스 튜닝 하록 2003-12-13 718
69 FTP 자동 다운로드 하록 2003-12-13 567
68 Automount 설정하기 하록 2003-12-13 424
67 Solaris x86 install 하록 2003-12-13 483
66 Login 사용자 수를 늘리려면... 하록 2003-12-13 456
65 Solaris 7 에서 sendmail setup 방법 하록 2003-12-13 556
64 시스템 성능 측정 하록 2003-12-13 695
63 Multiple Monitor 설정 하록 2003-12-13 484
62 Volume Manager에서 rootdg 복구 (2) 하록 2003-12-13 476
61 Volume Manager에서 rootdg 복구 (1) 하록 2003-12-13 802
60 Time zone을 바꾸려면... 하록 2003-12-13 455
59 rsh를 이용해서 다른 시스템으로 디렉토리를 복사하려면.. 하록 2003-12-13 931
» HDD 추가하는 방법 하록 2003-12-13 483
57 On-board PGX graphic resolution change 하록 2003-12-13 411
56 backup 명령어 정리 (2) 하록 2003-12-13 1253
55 backup 명령어 정리 (1) 하록 2003-12-13 473
54 Disk Quotas 하록 2003-12-13 608
53 Boot Block이 손상되었을 때 하록 2003-12-13 715
52 O/S Backup & Restore 하록 2003-12-13 434