发起问题

zoltan 的档案 - activity

2020-03-08 13:58:38 -0500 获得奖牌  受欢迎的问题 (source)
2020-03-08 13:58:38 -0500 获得奖牌  著名问题 (source)
2020-03-08 13:58:38 -0500 获得奖牌  热门的问题 (source)
2011-04-19 14:55:39 -0500 回答问题 wrong volume size inside guest?

Thanks!

It was indeed a user error, I should have given it vdc, instead of vdb.

2011-04-19 14:31:04 -0500 回答问题 wrong volume size inside guest?

found the difference in dumpxml:

<disk type='file' device='disk'>
  <driver name='qemu' type='qcow2'/>
  <source file='/opt/nova/nova/..//instances/instance-00000004/disk.local'/>
  <target dev='vdb' bus='virtio'/>
  <alias name='virtio-disk1'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<disk type='block' device='disk'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/mapper/nova--volumes-volume--00000004'/>
  <target dev='vdc' bus='virtio'/>
  <alias name='virtio-disk2'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>

the first volume was added as a local disk, instead of being added as an iSCSI volume, as the second one.

2011-04-19 14:29:10 -0500 回答问题 wrong volume size inside guest?

interestingly, when I added a new volume, it showed up as expected...

2011-04-19 14:26:02 -0500 问了问题 wrong volume size inside guest?

After creating a 1 gig volume, it shows up as much larger volume. is this expected?

on the guest (fdisk -l): Disk /dev/vdb: 21.5 GB, 21474836480 bytes

on the host (lvdisplay):

--- Logical volume --- LV Name /dev/nova-volumes/volume-00000003 VG Name nova-volumes LV UUID iedXcm-Qhpc-95hu-CLZE-kMg1-YvPV-OaQJu9 LV Write Access read/write LV Status available # open 1 LV Size 1.00 GiB Current LE 256 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:3

the iscsi volume looks fine: root@openstack2:/opt/nova# cat /proc/net/iet/volume tid:2 name:iqn.2010-10.org.openstack:volume-00000003 lun:0 state:0 iotype:fileio iomode:wt blocks:2097152 blocksize:512 path:/dev/nova-volumes/volume-00000003