Itanium服务器
1758351 成员
2390 在线
108868 解答
新建帖子

vpar中查看虚拟HBA卡的两种方法

 
GoldenFaith
见习顾问

vpar中查看虚拟HBA卡的两种方法

有两种方法:1,cprop可以看,2,gvsd可以看。 # ioscan -fnd gvsd Class I H/W Path Driver S/W State H/W Type Description ================================================================== ext_bus 6 0/0/0/0/0 gvsd CLAIMED INTERFACE HPVM AVIO Stor Adapter /dev/gvsd6 ext_bus 0 0/0/0/1/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter /dev/gvsd0 ext_bus 1 0/0/0/2/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter /dev/gvsd1 ext_bus 2 0/0/0/4/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter /dev/gvsd2 ext_bus 3 0/0/0/5/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter /dev/gvsd3 # man gvsdmgr gvsdmgr(1M) gvsdmgr(1M) NAME gvsdmgr - utility to manage HP-UX Mass Storage Virtual HBAs claimed by HPVM Guest AVIO Storage driver (gvsd) SYNOPSIS Path: /opt/gvsd/bin gvsdmgr [-h] clear_stat -D device_file gvsdmgr [-h] clear_stat -D device_file -q all gvsdmgr [-h] clear_stat -D device_file -q tgt={all|tgt_id} gvsdmgr [-h] get_info -D device_file gvsdmgr [-h][-N] get_info -D device_file -q tgt={all|tgt_id} gvsdmgr [-h] get_stat -D device_file gvsdmgr [-h] get_stat -D device_file -q tgt={all|tgt_id} DESCRIPTION gvsdmgr is a diagnostic utility to be used for managing virtual HBAs claimed by the GVSD driver. This command provides the ability to retrieve various configuration information, read and clear accumulated statistics of the virtual HBA and connected devices. gvsdmgr requires the use of a device file to indicate the interface over which the requested command needs to be performed. Options and Arguments gvsdmgr recognizes the following command-line options and arguments: -D device_file This required argument specifies the device file. -h This option provides a brief description of the command. # gvsdmgr get_info -D /dev/gvsd0 PCI Vendor ID : 0x103c PCI Device ID : 0x1403 State of HBA : OFFLINE Hardware Path : 0/0/0/1/0 Max. IO size : 0 Virtual Port WWN : 0x0000000000000000 Virtual Node WWN : 0x0000000000000000 # gvsdmgr get_info -D /dev/gvsd1 PCI Vendor ID : 0x103c PCI Device ID : 0x1403 State of HBA : ONLINE Hardware Path : 0/0/0/2/0 Max. IO size : 1048576 Virtual Port WWN : 0x50014c2000020701 Virtual Node WWN : 0x50014c2800020701 #