1. root 로 로그인한다.
[YOU HAVE NEW MAIL]
root@DMS:/ >
2. lspv 를 눌러 현재 Volume Group List 를 확인한다.
root@DMS:/ >lspv
hdisk0 00ceb31adae0d192 rootvg active hdisk1 00ceb31ad4679f47 oraclevg active |
3. 첫번째 디스크의 Volume Group 을 확인한다. (디스크 장애시 image 를 떠야하므로 free 영역을 그대로 두는게 좋다)
root@DMS:/ >lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00ceb31a00004c0000000107dae0d65d VG STATE: active PP SIZE: 128 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes) MAX LVs: 256 FREE PPs: 349 (44672 megabytes) LVs: 12 USED PPs: 197 (25216 megabytes) OPEN LVs: 11 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPTORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocatable |
4. 두번째 디스크의 Volume Group 을 확인한다. (54 GIGA 정도가 Free 상태로, File system 을 잡을 수 있음)
root@DMS:/ >lsvg oraclevg
VOLUME GROUP: oraclevg VG IDENTIFIER: 00ceb31a00004c0000000107dc4107fc VG STATE: active PP SIZE: 128 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes) MAX LVs: 256 FREE PPs: 425 (54400 megabytes) LVs: 2 USED PPs: 121 (15488 megabytes) OPEN LVs: 2 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPTORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 AUTO ON: yes MAX PPs per VG: 32512 MAX PPs per PV: 1016 MAX PVs: 32 LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no HOT SPARE: no BB POLICY: relocatable |
5. 해당 Volume Group 이 어떠한 Type 으로 설정되어 있는지 확인한다. (jfs2 로 설정되어 있음)
root@DMS:/ >lsvg -l oraclevg
oraclevg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT oraclelv jfs2 120 120 1 open/syncd /oracle loglv00 jfs2log 1 1 1 open/syncd N/A |
6. smitty 를 이용하여 jfs2 파일 시스템을 만든다.
root@DMS:/ >smitty jfs2
6.1. 아래와 같은 화면이 나오면 첫번째 행을 선택한다.
Move cursor to desired item and press Enter. Add an Enhanced Journaled File System -> 선택 Add an Enhanced Journaled File System on a Previously Defined Logical Volume Change / Show Characteristics of an Enhanced Journaled File System Remove an Enhanced Journaled File System Manage Quotas for an Enhanced Journaled File System Defragment an Enhanced Journaled File System List Snapshots for an Enhanced Journaled File System Create Snapshot for an Enhanced Journaled File System Mount Snapshot for an Enhanced Journaled File System Remove Snapshot for an Enhanced Journaled File System Unmount Snapshot for an Enhanced Journaled File System Change Snapshot for an Enhanced Journaled File System Rollback an Enhanced Journaled File System to a Snapshot
|
6.2. Unit Size 는 Free PPs 로 잡혀있는 단위와 같은 Megabytes 로 선택한다. (Tab 을 이용)
6.3. Number of units 는 Free PPs 에 잡혀있는 54400 과 같거나 작은 값을 입력한다.
6.4. MOUNT POINT 는 Mount 하고자 하는 폴더명을 /oracledata 와 같은 형식으로 입력한다.
6.5. Mount AUTOMATICALLY at system restart 는 Tab 을 이용하여 yes 로 변경한다.
6.6. Enter 를 눌러 작업을 종료한다.
Add an Enhanced Journaled File System Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] Volume group name oraclevg SIZE of file system Unit Size Megabytes + * Number of units [] # * MOUNT POINT [] Mount AUTOMATICALLY at system restart? no + PERMISSIONS read/write + Mount OPTIONS [] + Block Size (bytes) 4096 + Logical Volume for Log + Inline Log size (MBytes) [] # Extended Attribute Format Version 1 + ENABLE Quota Management? no + |
7. mount all 을 눌러 모든 폴더를 mount 시킨다.
root@DMS:/ >mount all
mount: 0506-324 Cannot mount /dev/hd1 on /home: The requested resource is busy. mount: 0506-324 Cannot mount /proc on /proc: The requested resource is busy. mount: 0506-324 Cannot mount /dev/hd10opt on /opt: The requested resource is busy. mount: 0506-324 Cannot mount /dev/cd0 on /cdrom: The device is not ready for operation. mount: 0506-324 Cannot mount /dev/fslv00 on /imsi: The requested resource is busy. mount: 0506-324 Cannot mount /dev/oraclelv on /oracle: The requested resource is busy. |
8. df -k 를 눌러 제대로 잡혔는지 확인한다.
root@DMS:/ >df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 262144 243224 8% 2202 4% / /dev/hd2 1966080 162960 92% 39089 49% /usr /dev/hd9var 131072 122260 7% 390 2% /var /dev/hd3 524288 522932 1% 56 1% /tmp /dev/fwdump 393216 392828 1% 4 1% /var/adm/ras/platform /dev/hd1 131072 130680 1% 11 1% /home /proc - - - - - /proc /dev/hd10opt 131072 3868 98% 3823 77% /opt /dev/fslv00 4194304 2520496 40% 49 1% /imsi /dev/oraclelv 15728640 679500 96% 20075 12% /oracle /dev/fslv01 55705600 55696768 1% 4 1% /oracledata |