IBM-Aix 查看pv/vg/lv

Last unsuccessful login: Thu Nov 28 14:15:17 BEIST 2013
Last login: Tue Jan 14 15:19:22 BEIST 2014 on /dev/pts/0  from....
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************







lspv
hdisk0          00c82bf06199aab1                    rootvg          active
hdisk1          00c82bf06599b56a                    rootvg          active
hdisk2          none                                None            
hdisk3          none                                None            
hdisk4          none                                None            
hdisk5          none                                None




[root][/]>lsvg
rootvg



[app1][root][/]>lsvg rootvg
VOLUME GROUP:       rootvg       VG IDENTIFIER:  00c82bf000004c0000000123eac5ac9a
VG STATE:               active              PP SIZE:        256 megabyte(s)
VG PERMISSION:         read/write         TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:               256               FREE PPs:       498 (127488 megabytes)
LVs:                    10                USED PPs:       594 (152064 megabytes)
OPEN LVs:                9                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
[app1][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     41      82      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       16      32      2    open/syncd    /
hd2                 jfs2       32      64      2    open/syncd    /usr
hd9var              jfs2       32      64      2    open/syncd    /var
hd3                 jfs2       32      64      2    open/syncd    /tmp
hd1                 jfs2       16      32      2    open/syncd    /home
hd10opt             jfs2       120     240     2    open/syncd    /opt
lg_dumplv           sysdump    12      12      1    open/syncd    N/A




lsdev -c disk
hdisk0 Available 08-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 0F-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 0F-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk3 Available 0M-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk4 Available 0U-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk5 Available 0U-08-00-5,0 16 Bit LVD SCSI Disk Drive
[app1][root][/]>lsvg
rootvg
[app1][root][/]>lspv
hdisk0          00c82bf06199aab1                    rootvg          active
hdisk1          00c82bf06599b56a                    rootvg          active
hdisk2          none                                None            
hdisk3          none                                None            
hdisk4          none                                None            
hdisk5          none                                None   






lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         243         109..00..00..25..109
hdisk1            active            546         255         109..00..00..37..10



none                                None            
[app1][root][/]>lspv hdisk0
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      00c82bf06199aab1 VG IDENTIFIER     00c82bf000004c0000000123eac5ac9a
PV STATE:           active                                     
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            256 megabyte(s)          LOGICAL VOLUMES:  10
TOTAL PPs:          546 (139776 megabytes)   VG DESCRIPTORS:   2
FREE PPs:           243 (62208 megabytes)    HOT SPARE:        no
USED PPs:           303 (77568 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  109..00..00..25..109                       
USED DISTRIBUTION:  01..109..109..84..00                       
[app1][root][/]>








[app1][root][/]>smit fs

                                  File Systems

Move cursor to desired item and press Enter.

  List All File Systems
  List All Mounted File Systems
  Add / Change / Show / Delete File Systems
  Mount a File System
  Mount a Group of File Systems
  Unmount a File System
  Unmount a Group of File Systems
  Verify a File System
  Backup a File System
  Restore a File System
  List Contents of a Backup
  Create and back up a snapshot





            +------------------------------------------------------+
F1=Help     | Running command...                                   |age
Esc+9=Shell +------------------------------------------------------+
                                 COMMAND STATUS

Command: running       stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Name            Nodename   Mount Pt               VFS   Size    Options    Auto
Accounting
/dev/hd4        --         /                      jfs2  8388608 --         yes
no
/dev/hd1        --         /home                  jfs2  8388608 --         yes
no
/dev/hd2        --         /usr                   jfs2  16777216 --         yes
 no
/dev/hd9var     --         /var                   jfs2  16777216 --         yes
 no
/dev/hd3        --         /tmp                   jfs2  16777216 --         yes
 no
/proc           --         /proc                  procfs --      --         yes
 no
/dev/hd10opt    --         /opt                   jfs2  62914560 --         yes
 no


                                 COMMAND STATUS

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Name            Nodename   Mount Pt               VFS   Size    Options    Auto
Accounting
/dev/hd4        --         /                      jfs2  8388608 --         yes
no
/dev/hd1        --         /home                  jfs2  8388608 --         yes
no
/dev/hd2        --         /usr                   jfs2  16777216 --         yes
 no
/dev/hd9var     --         /var                   jfs2  16777216 --         yes
 no
/dev/hd3        --         /tmp                   jfs2  16777216 --         yes
 no
[MORE...5]

F1=Help             F2=Refresh          F3=Cancel           Esc+6=Command
Esc+8=Image         Esc+9=Shell         Esc+0=Exit          /=Find
n=Find Next                                                  



注意:几个相关概念:

PV:物理卷,指的是一块独立的磁盘或者Raid里的逻辑卷,在AIX中由PVID唯一确定

VG:卷组,由一个或者多个PV组成;PV是组成卷组的最小单位,每个PV只能属于一个VG;不同类型的PV(如sata、sas、fc等)可以属于同一个VG;组成VG的多个PV可以不用连续排列

PP:物理分区,每个PV被分成容量一样大小的若干个PP;同一个VG里所有PV上的PP大小是相同的

LV:逻辑卷,每个VG划分成若干个LV在系统中使用,每个LV对应一个文件系统;LV可以建在一个PV上也可以建在同一个VG的多个PV上

LP:逻辑分区,每个LV有多个LP组成,每个LP对应至少一个PP,如果LV有镜像,则一个LP可能对应多个PP       

你可能感兴趣的:(IBM,Aix)