You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by Du Jun <dj...@gmail.com> on 2013/11/25 15:31:06 UTC

cloudstack disk device id & name

Hi all,
I feel confused about /dev/sda , /dev/sdb/ , /dev/sda1, /dev/sda2 , or
/dev/sda5.
I know /dev/sda* is KVM boot partitions.So,how do they work?

Besides,I have a volume whose device_id.to_i=1,so what's the device_name it
equals to? /dev/sda or /dev/sdb? How does cloudstack calculate it? What's
the start number of cloudstack device_id?0 or 1?

Thanks!


-----
Best regards,
DuJun

Re: cloudstack disk device id & name

Posted by Wei ZHOU <us...@gmail.com>.
cloudstack只管创建vm的xml配置文件。磁盘这块包括file还是block,ide还是virtio,磁盘的名称(hda/vda)。
至于虚拟机的实际磁盘名称(sda/vda),是由qemu来处理的。libvirt或者virsh命令行指定的磁盘名称和实际名称不一致,非常常见。
至于sda1/sda2这种磁盘分区,取决你创建虚拟机模板时候的设置。


2013/11/25 Du Jun <dj...@gmail.com>

> Hi all,
> I feel confused about /dev/sda , /dev/sdb/ , /dev/sda1, /dev/sda2 , or
> /dev/sda5.
> I know /dev/sda* is KVM boot partitions.So,how do they work?
>
> Besides,I have a volume whose device_id.to_i=1,so what's the device_name it
> equals to? /dev/sda or /dev/sdb? How does cloudstack calculate it? What's
> the start number of cloudstack device_id?0 or 1?
>
> Thanks!
>
>
> -----
> Best regards,
> DuJun
>