打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ISCSI 命令用法

 

 

Here are some quick notes on how to do the most common tasks.

Discover available targets from a discovery portal

iscsiadm -m discovery -t sendtargets -p ipaddress  

Log into a specific target

iscsiadm -m node -T targetname -p ipaddress -l  

Log out of a specific target

iscsiadm -m node -T targetname -p ipaddress -u

Display information about a target

iscsiadm -m node -T targetname -p ipaddress

Display statistics about a target

iscsiadm -m node -s -T targetname -p ipaddress

Remove the portal address to receive information or statistics about all targets.

Display list of all current sessions logged in

iscsiadm -m session

View iSCSI database regarding discovery

iscsiadm -m discovery -o show

View iSCSI database regarding targets to log into

iscsiadm -m node -o show

View iSCSI database regarding sessions logged into

iscsiadm -m session -o show

View if the targets are multipathed (MPIO)

multipath -ll

If it is multipathed, you will see output like below (this is an example of two LUNs, both multipathed).  Note that this show the MPIO mode is round-robin:

36000d77100000b117de986015d5d5746 dm-7 EQL,DISK [size=20G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 12:0:0:0 sdb 8:16  [active][ready] \_ 13:0:0:0 sdd 8:48  [active][ready] 36000d771000002767de9860330139e10 dm-8 EQL,DISK [size=200G][features=0][hwhandler=0][rw] \_ round-robin 0 [prio=0][active] \_ 12:0:0:1 sdc 8:32  [active][ready] \_ 13:0:0:1 sde 8:64  [active][ready]
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
RHEL?5中安装配置iSCSI?Initiator
搭建基于FreeNAS的共享存储
iscsitarget 使用
存储基础知识学习笔记
iscsi磁盘挂载并设置为开机自动挂载
Openfiler之外篇:open-iscsi安装配置及smbclint的安装
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服