1.aix下rhdisk和hdisk的区别是什么?
rhdisk为字符设备,hdisk为块设备。块设备可以随机存取,而字符设备不能随机存取。
2.如何查看磁盘的属性?(查看磁盘的属性信息,其中reserve_policy对于集群来说比较重要。)
root@itgs1:/dev$ lsattr -El hdisk4PCM PCM/friend/NetAppDefaultPCM Path Control Module FalsePR_key_value none Persistant Reserve Key Value Truealgorithm round_robin Algorithm Trueclr_q no Device CLEARS its Queue on error Truedist_err_pcnt 0 Distributed Error Sample Time Truedist_tw_width 50 Distributed Error Sample Time Truehcheck_cmd inquiry Health Check Command Truehcheck_interval 30 Health Check Interval Truehcheck_mode nonactive Health Check Mode Truelocation Location Label Truelun_id 0x1000000000000 Logical Unit Number ID Falselun_reset_spt yes LUN Level Reset Truemax_transfer 0x40000 Maximum TRANSFER Size Truenode_name 0x500a09808f40d1d2 FC Node Name Falsepvid none Physical volume identifier Falseq_err yes Use QERR bit Trueq_type simple Queuing TYPE Truequeue_depth 8 Queue DEPTH Truereassign_to 120 REASSIGN time out value Truereserve_policy no_reserve Reserve Policy Truerw_timeout 30 READ/WRITE time out value Truescsi_id 0x92e00 SCSI ID Falsestart_timeout 60 START unit time out value Trueww_name 0x500a09859f40d1d2 FC World Wide Name Falseroot@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