1. 程式人生 > >AIX如何查看文件系統分布在哪個物理磁盤上

AIX如何查看文件系統分布在哪個物理磁盤上

查看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如何查看文件系統分布在哪個物理磁盤上