1. hdisk id 생성
lv를 만들 hdisk가 id가 안잡혀 있을 경우
chdev -l 디스크이름 -a pv=yes 를 통해 자동할당
myhostname:/#lspv |more
hdisk0 00c474b7819b189b rootvg active
hdisk1 00c474a77e869516 rootvg active
hdisk2 None
#chdev -l hdisk2 -a pv=yes
myhostname:/#lspv |more
hdisk0 00c474b7819b189b rootvg active
hdisk1 00c474a77e869516 rootvg active
hdisk2 00c474a7c5cb0f11 None
2. vg 상태 확인
myhostname:/#lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00c474b700004c000000014281aa31cc
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1116 (571392 megabytes)
MAX LVs: 256 FREE PPs: 872 (446464 megabytes)
LVs: 11 USED PPs: 244 (124928 megabytes)
OPEN LVs: 10 QUORUM: 1 (Disabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: no
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
myhostname:/#lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 50 100 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 6 12 2 open/syncd /
hd2 jfs2 20 40 2 open/syncd /usr
hd9var jfs2 6 12 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
lv_fxdata jfs2 100 100 1 closed/syncd N/A
hd10opt jfs2 6 12 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 20 20 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
3. lv 생성하기(hdisk0, hdisk1 두 개의 pv 사용)
myhostname:/#smit mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [lv_fxdata] //생성할 lv 이름
* VOLUME GROUP name rootvg //할당할 vg 이름
* Number of LOGICAL PARTITIONS [100] //용량 할당(용량: lsvg -l rootvg의 pp * [이 값])
PHYSICAL VOLUME names [hdisk0 hdisk1] //사용할 pv 나열 +
Logical volume TYPE [jfs2] //lv 타입 지정 +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
Mirror Pool for First Copy +
Mirror Pool for Second Copy +
Mirror Pool for Third Copy +
Infinite Retry Option no
4. 마운트 포인트 설정
myhostname:/#smit jfs2
Enhanced Journaled File Systems
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 [v]
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
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name lv_fxdata +
* MOUNT POINT [/FX_DATA] //마운트 포인트 입력
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format +
ENABLE Quota Management? no +
Enable EFS? no +
Allow internal snapshots? no +
Mount GROUP []
5. 마운트하기
myhostname:/etc#cat filesystems
/FX_DATA:
dev = /dev/lv_fxdata
vfs = jfs2
log = /dev/hd8
mount = true
options = rw
account = false
myhostname:/#mount /FX_DATA
myhostname:/#df -gP
Filesystem GB blocks Used Available Capacity Mounted on
/dev/hd4 3.00 0.72 2.28 25% /
/dev/hd2 10.00 2.77 7.23 28% /usr
/dev/hd9var 3.00 0.66 2.34 23% /var
/dev/hd3 10.00 1.27 8.73 13% /tmp
/dev/hd11admin 0.50 0.00 0.50 1% /admin
/proc - - - - /proc
/dev/hd10opt 3.00 0.55 2.45 19% /opt
/dev/livedump 0.50 0.00 0.50 1% /var/adm/ras/livedump
/dev/APS_ora2lv 50.00 12.95 37.05 26% /oracle
/dev/lv_fxdata 50.00 0.01 49.99 1% /FX_DATA
6. FileSystem 권한 설정
myhostname:/#chown -R fxuser:cs /FX_DATA //소유권 설정
myhostname:/#chmod -R 775 /FX_DATA //권한 설정
'IT | OS > AIX' 카테고리의 다른 글
[AIX] tar 특정 폴더 제외 | 특정 파일 제외 (0) | 2019.11.09 |
---|---|
[AIX] Ethernet Channel 구성 (2) | 2019.11.07 |
[AIX] 부트 이미지 생성 (0) | 2019.11.05 |
[AIX] FileSystem 용량 늘리는 명령어(예시) (0) | 2019.11.03 |
[AIX] 소프트웨어 업데이트 하는 방법 (0) | 2019.11.02 |