码迷,mamicode.com
首页 > 其他好文 > 详细

如何优雅的拔盘?

时间:2017-12-25 15:00:23      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:expander   log   echo   gpo   sdh   scsi   remove   proc   div   

如何优雅的拔掉 /dev/sdl?

#lsscsi
[6:0:0:0]    disk    ATA      ST2000NM0011     SN02  /dev/sda
[6:0:1:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdb
[6:0:2:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdc
[6:0:3:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdd
[6:0:4:0]    disk    ATA      ST2000NM0011     SN02  /dev/sde
[6:0:5:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdf
[6:0:6:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdg
[6:0:7:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdh
[6:0:8:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdi
[6:0:9:0]    disk    ATA      ST2000NM0011     SN02  /dev/sdj
[6:0:10:0]   disk    ATA      ST2000NM0011     SN02  /dev/sdk
[6:0:11:0]   disk    ATA      ST2000NM0011     SN02  /dev/sdl
[6:0:12:0]   enclosu SAS/SATA  Expander        RevA  -


#echo "scsi remove-single-device 6 0 11 0" > /proc/scsi/scsi

然后插上:

#echo "scsi add-single-device 6 0 11 0" > /proc/scsi/scsi

如何优雅的拔盘?

标签:expander   log   echo   gpo   sdh   scsi   remove   proc   div   

原文地址:http://www.cnblogs.com/muahao/p/8108974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!