AIX中怎么看hdisk和存储中LUN的对应关系

2025-04-02 20:48:23
推荐回答(2个)
回答1:

stcsapp:ora103:/ora103 >lscfg -vpl hdisk2
hdisk2 U789D.001.DQD5P31-P1-C6-T1-W203500A0B847E174-L0 IBM MPIO DS4800 Array Disk
Manufacturer................IBM
Machine Type and Model......1815
Serial Number...............600A0B800047E174000004654B4BF27D
EC Level....................0914
Device Specific.(Z0)........50

PLATFORM SPECIFIC
Name: disk
Node: disk
Device Type: block
[@more@]
----------
DS4800
----------
Logical Drive "ARRAY2_LUN01"

Logical Drive status:
Optimal

Capacity:
200.0 GB
Logical Drive ID:
60:0a:0b:80:00:47:e1:74:00:00:04:65:4b:4b:f2:7d
Subsystem ID (SSID):
5
RAID level:
5

Secure:
No

Media type:
Hard Disk Drive
Interface type:
Fibre channel
Enclosure loss protection:
No

Preferred owner:
Controller in slot A
Current owner:
Controller in slot A

Segment size:
128 KB
Capacity reserved for future segment size changes:
Yes
Maximum future segment size:
2,048 KB
Modification priority:
High

Read cache:
Enabled
Write cache:
Enabled
Write cache without batteries:
Disabled
Write cache with mirroring:
Enabled
Flush write cache after (in seconds):
10.00
Dynamic cache read prefetch:
Enabled

Enable background media scan:
Enabled
Media scan with redundancy check:
Disabled

Pre-Read redundancy check:
Disabled
--------------------------------------------------------------
mpio_get_config -Av
fget_config -Av
-------------------------------------
stcsapp:ora103:/ora103 >lsdev -Cc adapter|grep fcs
fcs0 Available 00-00 4Gb FC PCI Express Adapter (df1000fe)
fcs1 Available 03-00 4Gb FC PCI Express Adapter (df1000fe)
stcsapp:ora103:/ora103 >lscfg -vl fcs0
fcs0 U789D.001.DQD6G67-P1-C6-T1 4Gb FC PCI Express Adapter (df1000fe)
Part Number.................10N7249
Serial Number...............1C946080CF
Manufacturer................001C
EC Level....................D76626
Customer Card ID Number.....5773
FRU Number.................. 10N7249
Device Specific.(ZM)........3
Network Address.............10000000C993ED43
ROS Level and ID............02E8277F
Device Specific.(Z0)........2057706D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFE01212
Device Specific.(Z5)........02E8277F
Device Specific.(Z6)........06E32715
Device Specific.(Z7)........07E3277F
Device Specific.(Z8)........20000000C993ED43
Device Specific.(Z9)........ZS2.71X15
Device Specific.(ZA)........Z1D2.70A5
Device Specific.(ZB)........Z2D2.71X15
Device Specific.(ZC)........00000000
Hardware Location Code......U789D.001.DQD6G67-P1-C6-T1
stcsapp:ora103:/ora103 >lscfg -vl fcs1
fcs1 U789D.001.DQD5P31-P1-C6-T1 4Gb FC PCI Express Adapter (df1000fe)
Part Number.................10N7249
Serial Number...............1C94608174
Manufacturer................001C
EC Level....................D76626
Customer Card ID Number.....5773
FRU Number.................. 10N7249
Device Specific.(ZM)........3
Network Address.............10000000C993ED46
ROS Level and ID............02E8277F
Device Specific.(Z0)........2057706D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFE01212
Device Specific.(Z5)........02E8277F
Device Specific.(Z6)........06E32715
Device Specific.(Z7)........07E3277F
Device Specific.(Z8)........20000000C993ED46
Device Specific.(Z9)........ZS2.71X15
Device Specific.(ZA)........Z1D2.70A5
Device Specific.(ZB)........Z2D2.71X15
Device Specific.(ZC)........00000000
Hardware Location Code......U789D.001.DQD5P31-P1-C6-T1

回答2:

连接的什么厂商的存储?可以使用存储的多路径命令查看。
HDS的存储的话,和存储的LUN都是按mapping顺序对应的。
分配的大小不一样的话,也可以bootinfo -s hdiskx来看大小判断
但是分配磁盘都是一样的大小的话,看不出来,还是需要看多路径。

有疑问请追问,多路径命令,自己搜索存储品牌+多路径命令就可以了。