2012.03.26 14:28

[AIX] 서버 디스크 구성 정보 확인

1. 서버에서 사용중인 PV 보기
 > lspv
 
 [elsprd] root:/# lspv
  hdisk0          00c3fdc0cbc9f580                    rootvg          active
  hdisk1          00c3fdb0d268e133                    rootvg          active
  hdisk2          00c3fdb0d776ce8a                    prd_datavg      active
  hdisk3          00c3fdb0d776cf2d                    prd_datavg      active
  hdisk4          00c3fdb0d776cfd1                    prd_datavg      active
  hdisk5          00c3fdb0d776d06d                    prd_datavg      active
  hdisk6          00c3fdb0d776d112                    prd_datavg      active
  hdisk7          00c3fdb0d776d1b1                    prd_datavg      active
  hdisk8          00c3fdb0d776d256                    prd_datavg      active
  hdisk9          00c3fdb0d776d2fa                    prd_datavg      active
  hdisk10         00c3fdc011e14255                    None 

2. 사용중인 PV가 내장디스크인지 외장디스크인지 확인
 > lsdev -Cc disk
 
 [elsprd] root:/# lsdev -Cc disk
  hdisk0  Available 05-08-00 SAS Disk Drive
  hdisk1  Available 05-08-00 SAS Disk Drive
  hdisk2  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk3  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk4  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk5  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk6  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk7  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk8  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk9  Available 02-00-02 1815     DS4800 Disk Array Device
  hdisk10 Available 05-08-00 SAS Disk Drive
 
3. 각 PV의 사용량 확인
 > lspv hdisk0
 
 [elsprd] root:/# lspv hdisk0
  PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
  PV IDENTIFIER:      00c3fdc0cbc9f580 VG IDENTIFIER     00c3fdc000004c0000000116cc1fa5a4
  PV STATE:           active                                    
 STALE PARTITIONS:   0                        ALLOCATABLE:      yes
  PP SIZE:            256 megabyte(s)          LOGICAL VOLUMES:  13
  TOTAL PPs:          546 (139776 megabytes)   VG DESCRIPTORS:   2
  FREE PPs:           267 (68352 megabytes)    HOT SPARE:        no
  USED PPs:           279 (71424 megabytes)    MAX REQUEST:      1 megabyte
  FREE DISTRIBUTION:  57..00..00..101..109                      
 USED DISTRIBUTION:  53..109..109..08..00
                  
4. 서버에서 사용중인 vg 이름 보기
 > lsvg
 
 [elsprd] root:/# lsvg
  rootvg
  prd_datavg
 
5. 서버에서 사용중인 vg의 상세정보 보기
 > lsvg [vg명]
 
* 현 사용량 및 남아있는 공간 확인 가능
 
 [elsprd] root:/# lsvg rootvg
  VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00c3fdc000004c0000000116cc1fa5a4
  VG STATE:           active                   PP SIZE:        256 megabyte(s)
  VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
  MAX LVs:            256                      FREE PPs:       564 (144384 megabytes)
  LVs:                13                       USED PPs:       528 (135168 megabytes)
  OPEN LVs:           12                       QUORUM:         1
  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

6. 해당 vg에 mount 정보 보기
 > lsvg -l [vg명]
 
 [elsprd] root:/# 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     157   314   2    open/syncd    N/A
  hd8                 jfs2log    1     2     2    open/syncd    N/A
  hd4                 jfs2       16    32    2    open/syncd    /
  hd2                 jfs2       16    32    2    open/syncd    /usr
  hd9var              jfs2       8     16    2    open/syncd    /var
  hd3                 jfs2       16    32    2    open/syncd    /tmp
  hd1                 jfs2       4     8     2    open/syncd    /home
  hd10opt             jfs2       8     16    2    open/syncd    /opt
  lg_dumplv           sysdump    30    30    1    open/syncd    N/A
  loglv00             jfslog     1     2     2    open/syncd    N/A
  lv00                jfs        1     2     2    open/syncd    /var/adm/csd
  fslv00              jfs2       20    40    2    open/syncd    /resource

Trackback 0 Comment 0