본문 바로가기
기타

aix lsvg lspv lslv

by xfree302 2014. 3. 21.
반응형

Physical Volume

Volume Group

Logical Volume

PV - 실제 물리적 디스크

VG - 물리적 디스크를 합쳐서 VG 생성

LV - VG를 용량에 따라 나눔(윈도우 파티션 c: d: e: 등)

 

#>lsvg

rootvg

datavg

backupvg

 

#>lsvg -o => online 되었이는 vg만

 

#>lsvg rootvg => rootvg 정보

VOLUME GROUP:  rootvg                VG IDENTIFIER:  xxxxxxxxxxxx
VG STATE:           active                 PP SIZE:          128 megabyte(s)
VG PERMISSION:  read/write           TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       750 (96000 megabytes)
LVs:                    13                       USED PPs:       342 (43776 megabytes)
OPEN LVs:           12                       QUORUM:         1 (Disabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        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

PP SIZE : VG 최소단위

TOTAL PPs : 현재 가지고 있는 PP, 용량

Free PPs : 추가로 사용할 수 있는 PP, 용량

Used PPs : 현재 할당되어 사용하고 있는 PP, 용량

TOTAL PVs : rootvg가 가지고 있는 PV

STALE PVs : rootvg가 STALE난 PV

AUTO ON : 부팅시 자동으로 Varyon

 

#>lsvg -p rootvg => rootvg에 속한 PV와 상태

#>lsvg -p rootvg
rootvg:
PV_NAME       PV STATE     TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546              340              47..38..37..109..109
hdisk1            active            546              410              109..46..37..109..109

 

#>lsvg -l rootvg => rootvg에 속한 LV와 상태

#>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd4                       jfs2          2          4          2    open/syncd    /
hd2                       jfs2          48         96        2    open/syncd    /usr
hd3                       jfs2          1          2          2    open/syncd    /tmp
hd1                       jfs2          1          2          2    open/syncd    /home

TYPE : 해당 LV의 LV 타입, 변경 불가능, 만들때 결정

LPS/PPS : 해당 LV의 할당된 LP,PP갯수

PVs : 해당 LV의 copy로 2개이상이면 미러되고 있다.(최대3)

LV STATE : LV상태정보 open(사용), clolsed(미사용), stale(고장)

Mount Point : File System의 Mount Point

 

#>lspv

hdisk0          xxxxxxxxxxxxxxx         rootvg          active
hdisk1          xxxxxxxxxxxxxxx         rootvg          active
hdisk2          xxxxxxxxxxxxxxx         datavg          active
hdisk3          xxxxxxxxxxxxxxx         datavg          active

....

 

#>lspv hdisk0

PHYSICAL VOLUME:    hdisk0               VOLUME GROUP:     rootvg
PV IDENTIFIER:      xxxxx                      VG IDENTIFIER     xxxxxxxxxxx
PV STATE:           active
STALE PARTITIONS:   0                            ALLOCATABLE:      yes
PP SIZE:            128 megabyte(s)              LOGICAL VOLUMES:  13
TOTAL PPs:          546 (69888 megabytes)    VG DESCRIPTORS:   2
FREE PPs:           340 (43520 megabytes)    HOT SPARE:        no
USED PPs:           206 (26368 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  47..38..37..109..109
USED DISTRIBUTION:  63..71..72..00..00

 

#>lspv -l hdisk0 => hdisk0에 속한 LV정보

hdisk0:
LV NAME          LPs     PPs     DISTRIBUTION      MOUNT POINT
hd1                   1         1       00..00..01..00..00    /home
hd3                   1         1       00..00..01..00..00    /tmp
hd4                  16        16      00..00..16..00..00    /var
hd2                   48        48      00..00..48..00..00    /usr

 

#>lslv

#>lslv hd1

LOGICAL VOLUME:     hd1                 VOLUME GROUP:   rootvg
LV IDENTIFIER:      xxxxxxx                 PERMISSION:     read/write
VG STATE:           active/complete      LV STATE:       opened/syncd
TYPE:                 jfs2                        WRITE VERIFY:   off
MAX LPs:            512                        PP SIZE:        128 megabyte(s)
COPIES:              2                           SCHED POLICY:   parallel
LPs:                    1                           PPs:            2
STALE PPs:          0                           BB POLICY:      relocatable
INTER-POLICY:      minimum                RELOCATABLE:    yes
INTRA-POLICY:      center                   UPPER BOUND:    32
MOUNT POINT:       /home                  LABEL:          /home
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO


 #>lslv -l hd1

hd1:/home
PV                COPIES        IN BAND       DISTRIBUTION
hdisk0            001:000:000   100%          000:000:001:000:000
hdisk1            001:000:000   100%          000:000:001:000:000

#>lslv -m hd1

hd1:/home
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0225 hdisk0            0242 hdisk1

 

참고사이트

http://golbangi2002.blog.me/70082391645

 

 

반응형