HDLM命令dlnkmgr详解之四_monitor/offline/online
1. monitor
以一定的时间间隔监控hba或cha口的IO信息。
命令格式
监控hba口的IO信息:
dlnkmgr monitor -hbaid HBA_ID [-intvl Interval-Time] [-count Number-Of-Times] [-t] 监控cha口的IO信息:
dlnkmgr monitor -chaid CHA_ID [-intvl Interval-Time] [-count Number-Of-Times] [-t] Valid value
HBA_ID { 00000 - 99999 }(Decimal)
CHA_ID { 00000 - 99999 }(Decimal)
Interval-Time { 1 - 60 }(Seconds) (Default Value 3)
Number-Of-Times { 1 - 999 }(Times) (Default Value 10)
命令输出说明表
| Item | Description |
| HbaID | HBA port ID |
| Port.Bus | host port number.bus number |
| Physical Device | The names of the physical device files under the /devices directory |
| StartTime | Date and time in which the command began executing |
| ElapsedTime | Time elapsed since command execution began |
| IO-Count | Total I/O count for the displayed paths during a specified interval |
| IO-Errors | Total I/O error count for the displayed paths during a specified interval |
示例
查询hbaid信息:
-bash-3.2# dlnkmgr view -hba
HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths Physical Device
00000 0000.0000 6810613 0 2 2 /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0
00001 0001.0000 354677 0 2 2 /devices/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 13:52:21 监控hba口IO信息:
-bash-3.2# dlnkmgr monitor -hbaid 0 -intvl 30 -count 3
HbaID : 00000
Port.Bus : 0000.0000
Physical Device : /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0
StartTime : 2014/04/11 13:55:43 ElapsedTime IO-Count IO-Errors
00:00:30 2629 0
00:01:00 2387 0
00:01:30 2542 0
KAPL01001-I The HDLM command completed normally. Operation name = monitor, completion time = 2014/04/11 13:57:13 查询cha信息:
-bash-3.2# dlnkmgr view -cha
ChaID Product SerialNumber ChaPort IO-Count IO-Errors Paths OnlinePaths
00000 AMS 75040975 0A 6811010 0 1 1
00001 AMS 75040975 1A 33 0 1 1
00002 AMS 75040975 1B 0 0 1 1
00003 AMS 75040975 0B 354935 0 1 1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 13:52:26 监控cha口IO信息:
-bash-3.2# dlnkmgr monitor -chaid 3 -intvl 30 -count 3
ChaID : 00003
Product : AMS
SerialNumber : 75040975
ChaPort : 0B
StartTime : 2014/04/11 14:32:41 ElapsedTime IO-Count IO-Errors
00:00:30 2841 0
00:01:00 2724 0
00:01:30 2848 0
KAPL01001-I The HDLM command completed normally. Operation name = monitor, completion time = 2014/04/11 14:34:11
2. offline/online
将online状态的路径设置为offline状态/将offline状态的路径设置为online状态,可以指定hba口,cha口或单条路径
命令格式
指定HBA口:
dlnkmgr offline/online [-path] { -hba HBAPortNumber.BusNumber | -hbaid HBA_ID } [-s] 指定CHA口:
dlnkmgr offline/online [-path] { -cha -pathid AutoPATH_ID | -chaid CHA_ID } [-s] 指定路径:
dlnkmgr offline/online [-path] -pathid AutoPATH_ID [-s] 指定设备名:
dlnkmgr offline/online [-path] -device SCSI_Device_Name [-s] Valid value
AutoPATH_ID { 000000 - 999999 }(Decimal)
HBA_ID { 00000 - 99999 }(Decimal)
CHA_ID { 00000 - 99999 }(Decimal)
示例一:offline hba/online hba
所有通过此hba口的路径都会被offline
检查hbaid
-bash-3.2# dlnkmgr view -hba
HbaID Port.Bus IO-Count IO-Errors Paths OnlinePaths Physical Device
00000 0000.0000 7120381 0 2 2 /devices/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0
00001 0001.0000 664976 0 2 2 /devices/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:47:32 将hbaid1设置为offline状态
-bash-3.2# dlnkmgr offline -hbaid 1
KAPL01102-I All the paths which pass the specified HBA port will be changed to the Offline(C) status. Is this OK? [y/n]:y
KAPL01103-I If you are sure that there would be no problem when all the paths which pass the specified HBA port are placed in the Offline(C) status, enter y. Otherwise, enter n. [y/n]:y
KAPL01061-I 2 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline offline后状态
-bash-3.2# dlnkmgr view -path
Paths:000004 OnlinePaths:000002
PathStatus IO-Count IO-Errors
Reduced 7804514 0 PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0000.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 0A Online Own 7131315 0 - c4t50060E80102A00F0d0
000001 0001.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 1A Offline(C) Non 33 0 - c4t50060E80102A00F0d0
000002 0000.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 1B Online Non 0 0 - c4t50060E80102A00F0d0
000003 0001.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 0B Offline(C) Own 673166 0 - c4t50060E80102A00F0d0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:49:13 online hba -bash-3.2# dlnkmgr online -hbaid 1
KAPL01104-I All the paths which pass the specified HBA port will be changed to the Online status. Is this OK? [y/n]:y
KAPL01061-I 2 path(s) were successfully placed Online; 0 path(s) were not. Operation name = online
示例二:offline cha/online cha
所有通过此cha口的路径都会被offline
检查chaid
-bash-3.2# dlnkmgr view -cha
ChaID Product SerialNumber ChaPort IO-Count IO-Errors Paths OnlinePaths
00000 AMS 75040975 0A 7170011 0 1 1
00001 AMS 75040975 1A 33 0 1 1
00002 AMS 75040975 1B 0 0 1 1
00003 AMS 75040975 0B 684384 0 1 1
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:53:45 offline cha口
-bash-3.2# dlnkmgr offline -chaid 1
KAPL01102-I All the paths which pass the specified CHA port will be changed to the Offline(C) status. Is this OK? [y/n]:y
KAPL01103-I If you are sure that there would be no problem when all the paths which pass the specified CHA port are placed in the Offline(C) status, enter y. Otherwise, enter n. [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline
-bash-3.2# dlnkmgr view path
KAPL01005-W A parameter is invalid. Operation name = view, parameter = path offline cha口后的状态
-bash-3.2# dlnkmgr view -path
Paths:000004 OnlinePaths:000003
PathStatus IO-Count IO-Errors
Reduced 7865149 0 PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0000.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 0A Online Own 7175103 0 - c4t50060E80102A00F0d0
000001 0001.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 1A Offline(C) Non 33 0 - c4t50060E80102A00F0d0
000002 0000.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 1B Online Non 0 0 - c4t50060E80102A00F0d0
000003 0001.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 0B Online Own 690013 0 - c4t50060E80102A00F0d0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:54:44 online cha口 -bash-3.2# dlnkmgr online -chaid 1
KAPL01104-I All the paths which pass the specified CHA port will be changed to the Online status. Is this OK? [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Online; 0 path(s) were not. Operation name = online
示例三:offline pathid/online pathid
只offline指定的路径
查看pathid
-bash-3.2# dlnkmgr view -path
Paths:000004 OnlinePaths:000004
PathStatus IO-Count IO-Errors
Online 7884418 0 PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0000.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 0A Online Own 7185200 0 - c4t50060E80102A00F0d0
000001 0001.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 1A Online Non 33 0 - c4t50060E80102A00F0d0
000002 0000.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 1B Online Non 0 0 - c4t50060E80102A00F0d0
000003 0001.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 0B Online Own 699185 0 - c4t50060E80102A00F0d0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:56:32 offline指定path
-bash-3.2# dlnkmgr offline -pathid 2
KAPL01052-I The currently selected paths will be changed to the Offline(C) status. Is this OK? [y/n]:y
KAPL01053-I If you are sure that there would be no problem when the path is placed in the Offline(C) status, enter y. Otherwise, enter n. [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline offline后状态
-bash-3.2# dlnkmgr view -path
Paths:000004 OnlinePaths:000003
PathStatus IO-Count IO-Errors
Reduced 7891899 0 PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0000.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 0A Online Own 7188589 0 - c4t50060E80102A00F0d0
000001 0001.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 1A Online Non 33 0 - c4t50060E80102A00F0d0
000002 0000.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 1B Offline(C) Non 0 0 - c4t50060E80102A00F0d0
000003 0001.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 0B Online Own 703277 0 - c4t50060E80102A00F0d0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 14:57:12 online pathid -bash-3.2# dlnkmgr online -pathid 2
KAPL01050-I The currently selected paths will be changed to the Online status. Is this OK? [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Online; 0 path(s) were not. Operation name = online
示例四:offline device/online device
查看device名称
-bash-3.2# dlnkmgr view -lu
Product : AMS
SerialNumber : 75040975
LUs : 1 iLU HDevName Device PathID Status
0049 c4t50060E80102A00F0d0 ssd0 000000 Online
ssd1 000001 Online
ssd3 000002 Online
ssd2 000003 Online
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 15:03:08 offline指定device
-bash-3.2# dlnkmgr offline -device ssd0
KAPL01052-I The currently selected paths will be changed to the Offline(C) status. Is this OK? [y/n]:y
KAPL01053-I If you are sure that there would be no problem when the path is placed in the Offline(C) status, enter y. Otherwise, enter n. [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Offline(C); 0 path(s) were not. Operation name = offline offline后状态
-bash-3.2# dlnkmgr view -path
Paths:000004 OnlinePaths:000003
PathStatus IO-Count IO-Errors
Reduced 7972667 0 PathID PathName DskName iLU ChaPort Status Type IO-Count IO-Errors DNum HDevName
000000 0000.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 0A Offline(C) Own 7228561 0 - c4t50060E80102A00F0d0
000001 0001.0000.0000000000020100.0000 HITACHI .DF600F .75040975 0049 1A Online Non 33 0 - c4t50060E80102A00F0d0
000002 0000.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 1B Online Non 0 0 - c4t50060E80102A00F0d0
000003 0001.0000.0000000000020000.0000 HITACHI .DF600F .75040975 0049 0B Online Own 744073 0 - c4t50060E80102A00F0d0
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/11 15:03:46 online指定device
-bash-3.2# dlnkmgr online -device ssd0
KAPL01050-I The currently selected paths will be changed to the Online status. Is this OK? [y/n]:y
KAPL01061-I 1 path(s) were successfully placed Online; 0 path(s) were not. Operation name = online
HDLM命令dlnkmgr详解之四_monitor/offline/online的更多相关文章
- HDLM命令dlnkmgr详解之二__help/clear
1.help操作 主要显示命令的帮助信息. 显示所有操作的帮助信息 -bash-3.2# dlnkmgr help dlnkmgr: Format dlnkmgr { clear | help | o ...
- HDLM命令dlnkmgr详解之一__命令格式
dlnkmgr命令格式 dlnkmgr operation [parameter [parameter-value]] dlnkmgr - The command name. operation - ...
- HDLM命令dlnkmgr详解之五_set
set命令用来设置HDLM的操作环境及参数. set操作设置的大部分是dlnkmgr view -sys命令中显示的参数值 命令格式 dlnkmgr set { -lb on [ -lbtype { ...
- HDLM命令dlnkmgr详解之三__view
view命令主要用于显示program information, path information, LU information, HBA port information, CHA port in ...
- DB2 rollforward 命令使用详解
DB2 rollforward 命令使用详解 原文:https://www.ibm.com/developerworks/cn/data/library/techarticles/dm-1003wuc ...
- Linux 执行文件查找命令 which 详解
某个文件不知道放在哪里了,通常可以使用下面的一些命令来查找: which 查看可执行文件的位置 whereis 查看文件的位置 locate 配合数据库查看文件位置 find 实际搜寻硬盘查 ...
- systemctl命令用法详解
systemctl命令用法详解系统环境:Fedora 16binpath:/bin/systemctlpackage:systemd-units systemctl enable httpd.serv ...
- 批处理中的echo命令图文详解
批处理中的echo命令图文详解 1. Echo 显示当前ECHO的状态:ECHO ON 或者ECHO OFF 2. ECHO ON 将ECHO状态设置为ON,将显示命令行,也就是前面的C:\>类 ...
- Ubuntu kill命令用法详解
转自:Ubuntu kill命令用法详解 1. kill 作用:根据进程号杀死进程 用法: kill [信号代码] 进程ID root@fcola:/# ps -ef | grep sen ...
随机推荐
- myeclipse下搭建hadoop2.7.3开发环境
需要下载的文件:链接:http://pan.baidu.com/s/1i5yRyuh 密码:ms91 一 下载并编译 hadoop-eclipse-plugin-2.7.3.jar 二 将had ...
- QT QFtp使用实例 从FTP下载一个文件
1. ftp://ftp.denx.de/pub/u-boot/lowboot-1.0.0.patch.gz 下载文件 FtpGet.h #ifndef FTPGET_H #define FTPGE ...
- 转:Android命令Monkey压力测试,详解
停止Monkey命令: 1. ps命令 查找uiautomator的进程 打开cmd命令行窗口 输入: adb shell ps | grep monkey 返回来的第一个数字,即是monkey的进 ...
- Nova中的系统状态分析
系统状态 作者 孔令贤 Nova提供这么几个资源状态的查询. Service Nova中的service有两类,一类是所谓的control service,一类就是compute service.要想 ...
- JavaScript 对时间日期格式化
JavaScript 对时间日期格式化 // 对Date的扩展,将 Date 转化为指定格式的String // 月(M).日(d).小时(h).分(m).秒(s).季度(q) 可以用 1-2 个占位 ...
- php get_magic_quotes_gpc()
magic_quotes_gpc函数在php中的作用是判断解析用户输入的数据,如包括有:post.get.cookie过来的数据增加转义字符“\”,以确保这些数据不会引起程序异常,特别是数据库语句因为 ...
- Uninstall Office 2016 for Mac
官方原文:https://support.office.com/en-us/article/Uninstall-Office-2016-for-Mac-eefa1199-5b58-43af-8a3d- ...
- LINUX下SYN FLOOD攻击及LINUX下SYN攻防简述
LINUX下SYN攻防战如下 (一)SYN攻击原理 SYN攻击属于DOS攻击的一种,它利用TCP协议缺陷,通过发送大量的半连接请求,耗费服务器CPU和内存资源.SYN攻击聊了能影响主机外,还可以危害路 ...
- Image Pyramid
今天我们介绍图像处理邻域中比较常用的一种方法,image pyramid, 也叫图像金字塔.就是将图像进行一层一层的下采样,图像金字塔是为了构建图像的多尺度,让模型能够更好的适应图像的尺度变化,图像金 ...
- dedecms列表页文章有图调用缩略图 无图留空或自定义图片的方法!
默认情况下,织梦的文章列表页会调用出当前栏目下的文章列表,并且调用出每个文章的缩略图:如果文章本身就有图,会调用出一张小图,如果没有,则会显示默认的织梦图片.这种处理方式有时候比较影响美观,其实可以修 ...