码迷,mamicode.com
首页 > 其他好文 > 详细

AIX如何查看文件系统分布在哪个物理磁盘上

时间:2018-04-18 12:37:37      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:查看AIX文件系统分布所在的物理磁盘

我们看出某个文件夹比较满了,我们想看看究竟是在哪个PV上
$ df -g

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

/dev/hd4           1.00      0.69   31%     2111     2% /

/dev/hd2           4.00      1.66   59%    50260    12% /usr

/dev/hd9var        1.00      0.29   71%     3207     5% /var

/dev/hd3          10.00      5.94   41%   141666    10% /tmp

/dev/fwdump        0.50      0.50    1%        5     1% /var/adm/ras/platform

/dev/hd1           1.00      0.54   47%      852     1% /home

/proc                 -         -    -         -     -  /proc

/dev/hd10opt       2.00      1.53   24%     7221     2% /opt

/dev/weblogiclv     10.00      9.47    6%       47     1% /weblogic

/dev/weblogic9lv     10.00      1.85   82%    93440    18% /weblogic9

/dev/tsmdb         7.50      2.92   62%     7918     2% /tsmdb

/dev/oraclelv     10.00      3.09   70%    21567     3% /home/oracle

/dev/oradatalv    300.00    140.96   54%      407     1% /oradata

/dev/archlog_lv    100.00     99.98    1%        4     1% /archivelog


--我们来看看有哪些物理磁盘

$ lspv

hdisk0          00c3ee9e3439bc67                    rootvg          active

hdisk1          00c3ee9e5033384d                    rootvg          active

hdisk2          00c3ee9eae48cc48                    rootvg          active

hdisk3          00c3ee9eae48df75                    rootvg          active


--看看hdisk3上挂载了那些逻辑卷

$ lspv -l hdisk3

hdisk3:

LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT

archlog_lv            400   400   00..223..177..00..00  /archivelog


--看看hdisk2上挂载了那些逻辑卷

$ lspv -l hdisk2

hdisk2:

LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT

oradatalv             598   598   152..223..223..00..00 /oradata


--看看hdisk1上挂载了那些逻辑卷

$ lspv -l hdisk1

hdisk1:

LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT

hd10opt               8     8     00..00..08..00..00    /opt

hd3                   40    40    00..00..40..00..00    /tmp

hd1                   4     4     00..00..04..00..00    /home

hd2                   16    16    00..00..16..00..00    /usr

hd9var                4     4     00..00..04..00..00    /var

hd8                   1     1     00..00..01..00..00    N/A

hd4                   4     4     00..00..04..00..00    /

hd5                   1     1     01..00..00..00..00    N/A

hd6                   32    32    00..00..32..00..00    N/A

tsmdb                 30    30    20..10..00..00..00    /tsmdb

oradatalv             324   324   89..17..00..109..109  /oradata

fwdump                2     2     00..02..00..00..00    /var/adm/ras/platform

weblogiclv            40    40    00..40..00..00..00    /weblogic

weblogic9lv           40    40    00..40..00..00..00    /weblogic9


--看看hdisk0上挂载了那些逻辑卷

$ lspv -l hdisk0

hdisk0:

LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT

hd10opt               8     8     00..00..08..00..00    /opt

hd3                   40    40    00..00..40..00..00    /tmp

hd1                   4     4     00..00..04..00..00    /home

hd2                   16    16    00..00..16..00..00    /usr

hd9var                4     4     00..00..04..00..00    /var

hd8                   1     1     00..00..01..00..00    N/A

hd4                   4     4     00..00..04..00..00    /

hd5                   1     1     01..00..00..00..00    N/A

hd6                   32    32    00..00..32..00..00    N/A

tsmdb                 30    30    20..10..00..00..00    /tsmdb

oradatalv             278   278   49..11..00..109..109  /oradata

oraclelv              40    40    40..00..00..00..00    /home/oracle

weblogiclv            40    40    00..40..00..00..00    /weblogic

weblogic9lv           40    40    00..40..00..00..00    /weblogic9

lg_dumplv             8     8     00..08..00..00..00    N/A


--通过以上四个hdisk的lspv可以发现,我们的oradatalv在hdisk0、hdisk1、hdisk2上均有分布,

LPS综合为598+324+278=1200,我们再来lslv看看oradatalv的信息,发现确实有1200个LPs,

与上述结果吻合。


$ lslv oradatalv

LOGICAL VOLUME:     oradatalv              VOLUME GROUP:   rootvg

LV IDENTIFIER:      00c3ee9e00004c000000011c74979ab0.16 PERMISSION:     read/write

VG STATE:           active/complete        LV STATE:       opened/syncd

TYPE:               jfs2                   WRITE VERIFY:   off

MAX LPs:            2046                   PP SIZE:        256 megabyte(s)

COPIES:             1                      SCHED POLICY:   parallel

LPs:                1200                   PPs:            1200

STALE PPs:          0                      BB POLICY:      relocatable

INTER-POLICY:       minimum                RELOCATABLE:    yes

INTRA-POLICY:       middle                 UPPER BOUND:    4

MOUNT POINT:        /oradata               LABEL:          /oradata

MIRROR WRITE CONSISTENCY: on/ACTIVE                              

EACH LP COPY ON A SEPARATE PV ?: yes                                    

Serialize IO ?:     NO



AIX如何查看文件系统分布在哪个物理磁盘上

标签:查看AIX文件系统分布所在的物理磁盘

原文地址:http://blog.51cto.com/sf1314/2104792

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!