• openstack添加热添加硬盘并识别


    假定在虚拟机当中添加了磁盘,但是虚拟机没有识别出来;如何识别出来

    可以使用命令

    echo '- - -' >/sys/class/scsi_host/host0/scan

    使用后就可以识别出来了

     

     

    ###增加两块硬盘 默认是不会识别

     

    [root@compute1 ~]# fdisk -l

     

    Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors

    Units = sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disk label type: dos

    Disk identifier: 0x0009fb23

     

    Device Boot Start End Blocks Id System

    /dev/sda1 2048 4196351 2097152 82 Linux swap / Solaris

    /dev/sda2 * 4196352 104857599 50330624 83 Linux

     

     

     

    #scsi是内核参数

    echo '- - -' >/sys/class/scsi_host/host0/scan

    [root@compute1 ~]# fdisk -l

     

    Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors

    Units = sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disk label type: dos

    Disk identifier: 0x0009fb23

     

    Device Boot Start End Blocks Id System

    /dev/sda1 2048 4196351 2097152 82 Linux swap / Solaris

    /dev/sda2 * 4196352 104857599 50330624 83 Linux

     

    Disk /dev/sdb: 10.7 GB, 10737418240 bytes, 20971520 sectors

    Units = sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

     

     

    Disk /dev/sdc: 6442 MB, 6442450944 bytes, 12582912 sectors

    Units = sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

  • 相关阅读:
    EasyTransaction主要源码分析
    编程哲理小故事:Tina的运动会方阵
    多维扩展点的思考与设计——解决渠道、产品增加引发的腐化问题
    分布式事务框架Seata及EasyTransaction架构的比对思考
    设计,架构,框架之间是什么关系?
    你知道如何画好一幅架构图么?
    学会分享痛苦
    建立你自己的博客
    使用正确的工具软件
    掌握主动权
  • 原文地址:https://www.cnblogs.com/nodchen/p/9498843.html
Copyright © 2020-2023  润新知