[Users] pvscan error in AIO fr a new disk

2013-01-02 Thread Gianluca Cecchi
Hello,
I have an f18 AIO setup where the server is a guest inside updated f17 host.
The guest has a scsi disk configured this way
disk type='file' device='disk'
  driver name='qemu' type='qcow2'/
  source file='/var/lib/libvirt/images/f18e.img'/
  target dev='sda' bus='scsi'/
  address type='drive' controller='0' bus='0' target='0' unit='0'/
/disk

From virt-manager of host I add a second scsi disk.
In guest I run

echo - - -  /sys/class/scsi_host/host2/scan

and I get inside it

# dmesg| tail
[  531.004145] ata2.00: configured for MWDMA2
[  531.004638] ata2: EH complete
[ 8133.578309] scsi 2:0:0:1: Direct-Access QEMU QEMU HARDDISK
 1.0. PQ: 0 ANSI: 5
[ 8133.579128] sd 2:0:0:1: [sdb] 20971520 512-byte logical blocks: (10.7
GB/10.0 GiB)
[ 8133.579213] sd 2:0:0:1: [sdb] Write Protect is off
[ 8133.579216] sd 2:0:0:1: [sdb] Mode Sense: 63 00 00 08
[ 8133.579255] sd 2:0:0:1: [sdb] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[ 8133.579760] sd 2:0:0:1: Attached scsi generic sg2 type 0
[ 8133.580220]  sdb: unknown partition table
[ 8133.580403] sd 2:0:0:1: [sdb] Attached SCSI disk

So that
# fdisk -l /dev/sdb

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

But :

# pvcreate /dev/sdb
  Device /dev/sdb not found (or ignored by filtering).

Could it be oVirt preventing this or should I post against F18 and/or
libvirt ?

BTW: packages are from nightly as for
ovirt-engine-3.2.0-1.20130101.git9486bfd.fc18.noarch

Thanks,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] pvscan error in AIO fr a new disk

2013-01-02 Thread Gianluca Cecchi
Probably something related with multipath default F18 config or what set up
by oVirt, as I see this in multipath.conf:

# RHEV REVISION 0.9



Any way
# lvm dumpconfig |grep filter
filter=a/.*/

# multipath -l
Jan 02 16:42:52 | multipath.conf +5, invalid keyword: getuid_callout
Jan 02 16:42:52 | multipath.conf +18, invalid keyword: getuid_callout
0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1 dm-5 QEMU,QEMU HARDDISK
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
  `- 2:0:0:1 sdb 8:16 active undef running
0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0 dm-0 QEMU,QEMU HARDDISK
size=18G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
  `- 2:0:0:0 sda 8:0  active undef running

and
# pvcreate  /dev/mapper/0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1
  Physical volume /dev/mapper/0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1
successfully created

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  fedora   1   2   0 wz--n- 17.51g0

# vgextend fedora /dev/mapper/0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-1
  Volume group fedora successfully extended

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  fedora   2   2   0 wz--n- 27.50g 10.00g


Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users