1 / 8

디스크 추가 설치

디스크 추가 설치. root 로 로그인한 후 아래와 같은 명령어를 사용하여 시스템을 다운 # init 0 또는 # halt 2. 시스템의 전원을 끄고 새 디스크를 연결한다 . 3. 시스템의 전원을 켜고 "stop" key 와 "a" key 를 동시에 늘러 ok 상태로 시스템을 내린 후 ( ok boot – r) 명령을 사용하여 리부팅 4. 시스템이 부팅된후 root 로 로그인 하여 아래와 같이 format 명령을 실행한다 . # format

Télécharger la présentation

디스크 추가 설치

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 디스크 추가 설치 • root로 로그인한 후 아래와 같은 명령어를 사용하여 시스템을 다운 • # init 0 또는 # halt • 2. 시스템의 전원을 끄고 새 디스크를 연결한다. • 3. 시스템의 전원을 켜고 "stop" key와 "a" key를 동시에 늘러 ok 상태로 시스템을 내린 후 (ok boot –r)명령을 사용하여 리부팅 • 4. 시스템이 부팅된후 root로 로그인 하여 아래와 같이 format 명령을 실행한다. • # format • format명령어를 실행하면 시스템에 연결된 하드디스크가 0번 부터 선택할수 있도록 나열된다. 새로연결한 디스크 번호를 선택한후 enter키를 친다 • 5. 아래와 같이 format> prompt가 보여지면 "partition"이라고 친후 enter키를 친다. format> partition

  2. 디스크 추가 설치 • 6. prompt가 partition>으로 변경되면, print를 실행하여 현재 디스크의 용량을 확인 한다. • 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 wu 0 0 (0/0/0) 0 • 2 backup wm 0 - 2035 1002.09MB (2036/0/0) 2052288 • 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가 전체 • 디스크의 용량을 보여 주며, 위의 결과에서 보면 전체 디스크 용량은 1002.09MB이고 2036개의 cylinder를 가지고 있음을 알수 있다

  3. 디스크 추가 설치 • 7. 사용할 slice(part)와 각 slice에 할당할 디스크 사이즈를 결정하고 아래와 같이 • 선택을 한다. • 전체 디스크 용량을 2개의 slice로 나누고 4과 5번 slice를 사용하고자 하는 경우 • partition> 4 Part Tag Flag Cylinders Size Blocks • 4 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]: 1018c

  4. 디스크 추가 설치 • 7-1 • 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 - 2035 1002.09MB (2036/0/0) 2052288 • 3 unassigned wm 0 0 (0/0/0) 0 • 4 unassigned wm 0 - 1017 501.04MB (1018/0/0) 1026144 • 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

  5. 디스크 추가 설치 • 7-2 • partition> 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]: 1018 • Enter partition size[0b, 0c, 0.00mb]: 1018c

  6. 디스크 추가 설치 • 7-3 • 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 - 2035 1002.09MB (2036/0/0) 2052288 • 3 unassigned wm 0 0 (0/0/0) 0 • 4 unassigned wm 0 - 1017 501.04MB (1018/0/0) 1026144 • 5 unassigned wm 1018 - 2035 501.04MB (1018/0/0) 1026144 • 6 unassigned wm 0 0 (0/0/0) 0 • 7 unassigned wm 0 0 (0/0/0) 0

  7. 디스크 추가 설치 • 8. partition 이 끝나면 label을 실행 한다. • partition> label • label 작업을 계속 할 것인지를 물어 보면 "yes" 라고 치고 • label 작업이 다 끝나면 "quit" 을 2번 쳐서 format 상태에서 빠져 나온다. • 9. 아래와 같이 newfs를 실행하여 UNIX filesystem을 새 디스크의 각 slice에 만든다 • # newfs /dev/rdsk/c#t#d#s# • "c#t#d#s#" 은 새 디스크의 각 slice에 해당하는 디바이스 이름을 쓴다. • 새 디스크가 coltroller 0에 연결되어 있고 targer 번호 0을 사용하고 있다면 • 위의 format에 의해 생성된 디스크 device는 c0t0d0s4와 c0t0d0s5가 된다.

  8. 디스크 추가 설치 • 10. newfs 작업이 끝나면 새 filesystem을 mount하여 사용한다. • ** 명령어를 이용하여 filesystem을 mount할때 : • # mount -F ufs /dev/dsk/c#t#d#s# • ** /etc/vfstab을 사용하여 mount 할때에는 아래와 같이 vfstab에 정의 • /dev/dsk/c#t#d#s# /dev/rdsk/c#t#d#s# ufs 2 yes –(vi 편집기 사용하여 추가) • # mount 시스템이 rebooting된 후에 자동 mount되게 하려면 /etc/vfstab에 정의해야 한다. • 11. 위의 모든 작업이 끝나면 아래 명령어를 사용하여 새 filesystem이 mount되에 있는지 확인한다. • # df -k

More Related