在rhel6.3x8664系统上安装lsscsi包

本文发布时间: 2019-Mar-22
本文是原创文章,转载请注明出处:http://blog.csdn.net/msdnchina/article/details/43637889lsscsi包默认是不安装的。lsscsi包安装完之后,lsscsi命令就可以使用了。lsscsi命令(lsscsi -t)能很方便的看出哪些是固态硬盘(SSD),哪些是SATA盘,哪些是FC盘。关于lsscsi命令的详细使用说明,请见:http://blog.csdn.net/msdnchina/article/details/43638857[root@rhel63single media]# yum list | grep lsscsiUnable to read consumer identitylsscsi.x86_64 0.23-2.el6 rhel-source [root@rhel63single media]# yum list | grep iscsiUnable to read consumer identityiscsi-initiator-utils.x86_64 6.2.0.872-41.el6 rhel-source [root@rhel63single media]# yum install iscsi*Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================== Package Arch Version Repository Size========================================================================================================================================================================Installing: iscsi-initiator-utils x86_64 6.2.0.872-41.el6 rhel-source 654 kTransaction Summary========================================================================================================================================================================Install 1 Package(s)Total download size: 654 kInstalled size: 2.2 MIs this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1 Installed products updated. Verifying : iscsi-initiator-utils-6.2.0.872-41.el6.x86_64 1/1 Installed: iscsi-initiator-utils.x86_64 0:6.2.0.872-41.el6 Complete![root@rhel63single media]# lsscsi-bash: lsscsi: command not found[root@rhel63single media]# which lsscsi/usr/bin/which: no lsscsi in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)--->我本来的推测是安装了iscsi包之后,lsscsi命令就能看到了,其实从上面的输出可以看出不是这样的。[root@rhel63single media]# yum install lsscsi*Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package lsscsi.x86_64 0:0.23-2.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================== Package Arch Version Repository Size========================================================================================================================================================================Installing: lsscsi x86_64 0.23-2.el6 rhel-source 38 kTransaction Summary========================================================================================================================================================================Install 1 Package(s)Total download size: 38 kInstalled size: 75 kIs this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : lsscsi-0.23-2.el6.x86_64 1/1 Installed products updated. Verifying : lsscsi-0.23-2.el6.x86_64 1/1 Installed: lsscsi.x86_64 0:0.23-2.el6 Complete![root@rhel63single media]# which lsscsi/usr/bin/lsscsi[root@rhel63single media]# lsscsi -l[1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0 state=running queue_depth=1 scsi_level=6 type=5 device_blocked=0 timeout=30[2:0:0:0] disk VMware, VMware Virtual S 1.0 /dev/sda state=running queue_depth=32 scsi_level=3 type=0 device_blocked=0 timeout=30[2:0:1:0] disk VMware, VMware Virtual S 1.0 /dev/sdb state=running queue_depth=32 scsi_level=3 type=0 device_blocked=0 timeout=30--->注意看上面的输出。[root@rhel63single media]# uname -aLinux rhel63single 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux[root@rhel63single media]# uname -r2.6.32-279.el6.x86_64[root@rhel63single media]#


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2020-Jul-13 01:13am
栏目列表