{"id":8151,"date":"2020-07-18T21:20:41","date_gmt":"2020-07-18T13:20:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8151"},"modified":"2020-07-18T21:20:42","modified_gmt":"2020-07-18T13:20:42","slug":"lsscsi","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lsscsi","title":{"rendered":"lsscsi\u547d\u4ee4 – \u5217\u51faSCSI\u8bbe\u5907\u53ca\u5c5e\u6027"},"content":{"rendered":"\n
lsscsi\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5217\u51faSCSI\u8bbe\u5907\uff08\u6216\u4e3b\u673a\uff09\u53ca\u5b83\u4eec\u7684\u5c5e\u6027\u3002<\/p>\n\n\n\n
lsscsi\u4e0d\u662f\u5185\u7f6e\u547d\u4ee4\u3002\u9700\u8981\u5b89\u88c5lsscsi\u76f8\u5e94\u7684\u5305\uff0c\u5b89\u88c5\u5b8c\u4e4b\u540elsscsi\u547d\u4ee4\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002lsscsi\u547d\u4ee4\u80fd\u5f88\u65b9\u4fbf\u7684\u770b\u51fa\u54ea\u4e9b\u662f\u56fa\u6001\u786c\u76d8\uff0c\u54ea\u4e9b\u662fSATA\u76d8\uff0c\u54ea\u4e9b\u662fFC\u76d8\u3002<\/p>\n\n\n\n
\u5982\u679cH:C:T:L\u7ed9\u51fa\u53c2\u6570\uff0c\u90a3\u4e48\u5c31\u4f1a\u4f5c\u4e3a\u4e00\u4e2a\u8fc7\u6ee4\u5668\uff0c\u53ea\u5339\u914d\u5b83\u88ab\u5217\u51fa\u7684\u8bbe\u5907\u3002\u8fd9\u91ccH\u662f\u6307Host\uff0cC\u662f\u6307Channel\uff0cT\u662f\u6307Id\uff0cL\u662f\u6307Lun\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lsscsi [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5217\u51faSCSI\u8bbe\u5907\u53ca\u5b83\u4eec\u7684\u5c5e\u6027\uff1a<\/p>\n\n\n\n \u663e\u793a\u5339\u914d\u201c2:1:1:0\u201d\u7684SCSI\u8bbe\u5907\uff1a<\/p>\n\n\n\n \u663e\u793aSCSI\u8bbe\u5907\u7684\u4f20\u8f93\u4fe1\u606f\uff1a<\/p>\n\n\n\n lsscsi\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5217\u51faSCSI\u8bbe\u5907\uff08\u6216\u4e3b\u673a\uff09\u53ca\u5b83\u4eec\u7684\u5c5e\u6027\u3002 lsscsi\u4e0d\u662f\u5185\u7f6e\u547d\u4ee4\u3002\u9700\u8981\u5b89\u88c5lsscs […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8151"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8151"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8151\/revisions"}],"predecessor-version":[{"id":8383,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8151\/revisions\/8383"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-g<\/td> \u663e\u793aSCSI\u901a\u7528\u8bbe\u5907\u6587\u4ef6\u540d\u79f0<\/td><\/tr> -k<\/td> \u663e\u793a\u5185\u6838\u540d\u79f0\u800c\u4e0d\u662f\u8bbe\u5907\u8282\u70b9\u540d<\/td><\/tr> -d<\/td> \u663e\u793a\u8bbe\u5907\u8282\u70b9\u7684\u4e3b\u8981\u53f7\u7801\u548c\u6b21\u8981\u53f7\u7801<\/td><\/tr> -H<\/td> \u5217\u51fa\u5f53\u524d\u8fde\u63a5\u5230\u7cfb\u7edf\u7684SCSI\u4e3b\u673a\u800c\u4e0d\u662fSCSI\u8bbe\u5907<\/td><\/tr> -l<\/td> \u663e\u793a\u6bcf\u4e00\u4e2aSCSI\u8bbe\u5907\uff08\u4e3b\u673a\uff09\u7684\u9644\u52a0\u4fe1\u606f<\/td><\/tr> -c<\/td> \u76f8\u5bf9\u4e8e\u6267\u884ccat \/proc\/scsi\/scsi\u547d\u4ee4\u7684\u8f93\u51fa<\/td><\/tr> -p<\/td> \u663e\u793a\u989d\u5916\u7684\u6570\u636e\u5b8c\u6574\u6027\uff08\u4fdd\u62a4\uff09\u7684\u4fe1\u606f<\/td><\/tr> -t<\/td> \u663e\u793a\u4f20\u8f93\u4fe1\u606f<\/td><\/tr> -L<\/td> \u4ee5\u201c\u5c5e\u6027\u540d=\u503c\u201d\u7684\u65b9\u5f0f\u663e\u793a\u9644\u52a0\u4fe1\u606f<\/td><\/tr> -v<\/td> \u5f53\u4fe1\u606f\u627e\u5230\u65f6\u8f93\u51fa\u76ee\u5f55\u540d<\/td><\/tr> -y<\u8def\u5f84><\/td> \u5047\u8bbesysfs\u6302\u8f7d\u5728\u6307\u5b9a\u8def\u5f84\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684\u201c\/ sys\u201d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# lsscsi<\/pre>\n\n\n\n
[root@linuxcool ~]# lsscsi 2:0:0:0<\/pre>\n\n\n\n
[root@linuxcool ~]# lsscsi -t<\/pre>\n","protected":false},"excerpt":{"rendered":"