1.aix下rhdisk和hdisk的區別是什么?
rhdisk為字符設備,hdisk為塊設備。塊設備可以隨機存取,而字符設備不能隨機存取。
2.如何查看磁盤的屬性?(查看磁盤的屬性信息,其中reserve_policy對於集群來說比較重要。)
root@itgs1:/dev$ lsattr -El hdisk4 PCM PCM/friend/NetAppDefaultPCM Path Control Module False PR_key_value none Persistant Reserve Key Value True algorithm round_robin Algorithm True clr_q no Device CLEARS its Queue on error True dist_err_pcnt 0 Distributed Error Sample Time True dist_tw_width 50 Distributed Error Sample Time True hcheck_cmd inquiry Health Check Command True hcheck_interval 30 Health Check Interval True hcheck_mode nonactive Health Check Mode True location Location Label True lun_id 0x1000000000000 Logical Unit Number ID False lun_reset_spt yes LUN Level Reset True max_transfer 0x40000 Maximum TRANSFER Size True node_name 0x500a09808f40d1d2 FC Node Name False pvid none Physical volume identifier False q_err yes Use QERR bit True q_type simple Queuing TYPE True queue_depth 8 Queue DEPTH True reassign_to 120 REASSIGN time out value True reserve_policy no_reserve Reserve Policy True rw_timeout 30 READ/WRITE time out value True scsi_id 0x92e00 SCSI ID False start_timeout 60 START unit time out value True ww_name 0x500a09859f40d1d2 FC World Wide Name False root@itgs1:/dev$
3.如何查看磁盤頭信息
root@itgs1:/$ lquerypv -h hdisk7
============= B: HEADER /dev/rhdisk7 =============
00000000 00820101 00000000 80000003 AB36078C |.............6..|
00000010 00000000 00000000 00000000 00000000 |................|
00000020 4F52434C 4449534B 00000000 00000000 |ORCLDISK........|
00000030 00000000 00000000 00000000 00000000 |................|
00000040 0B200000 00030103 44415441 5F303030 |. ......DATA_000|
00000050 33000000 00000000 00000000 00000000 |3...............|
00000060 00000000 00000000 44415441 00000000 |........DATA....|
00000070 00000000 00000000 00000000 00000000 |................|
00000080 00000000 00000000 44415441 5F303030 |........DATA_000|
00000090 33000000 00000000 00000000 00000000 |3...............|
000000A0 00000000 00000000 00000000 00000000 |................|
000000B0 00000000 00000000 00000000 00000000 |................|
000000C0 00000000 00000000 01F720EF 36E71C00 |.......... .6...|
000000D0 01F82F4A 66327000 02001000 00100000 |../Jf2p.........|
000000E0 0001BC80 00019000 00000002 00000001 |................|
000000F0 00000002 00000000 00000000 00000000 |................|
============= E: HEADER =============
4.如何在兩個節點確認兩塊盤為同一塊磁盤?
可通過對比 dfY3KZlXzMTL來比較兩個節點的磁盤是否為同一塊磁盤
oracle@itgs1:/dev$ lscfg -vpl hdisk4
hdisk4 U9179.MHC.1010B0T-V7-C11-T1-W500A09859F40D1D2-L1000000000000 MPIO NetApp FCP Default PCM Disk
Manufacturer................NETAPP
Machine Type and Model......LUN
ROS Level and ID............811a
Serial Number...............dfY3KZlXzMTL
Device Specific.(Z0)........FAS6240
PLATFORM SPECIFIC
Name: disk
Node: disk
Device Type: block
