openstack云硬盘的初始化:
1、在openstack卷页面将云硬盘链接到对应的linux主机
2、进入linux主机terminal
3、检查是否映射正确:fdisk -l
Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 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
Disklabel type: dos
Disk identifier: 0xff8e5110
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 41943006 41940959 20G 83 Linux
Disk /dev/vdb: 40 GiB, 42949672960 bytes, 83886080 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
红色为新映射的云硬盘,参数说明:
/dev/vdb 为物理盘符。
40 GiB,