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
轉載于:https://www.cnblogs.com/nodchen/p/9498843.html
總結
以上是生活随笔為你收集整理的openstack添加热添加硬盘并识别的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件工程实验报告一软件开发准备及Visi
- 下一篇: 阿里Java开发手册(2021最新终极版