hi: I attach a phyical disk to my qemu guest os successfully.But guest can not find the disk. Please give some advise? Below is my steps(opentest os host os, test1 is guest os)
[root@opentest ~]# virsh attach-disk instance-00000001 /dev/performance_disk1 vdb --cache none --config --type disk Disk attached successfully [root@opentest ~]# virsh attach-disk instance-00000001 /dev/performance_disk1 vdb --cache none --config --type disk error: Failed to attach disk error: Requested operation is not valid: target vdb already exists [root@opentest ~]# virsh qemu-monitor-command instance-00000001 --hmp 'info block' drive-virtio-disk0: removable=0 io-status=ok file=/opt/stack/data/nova/instances/828fd857-a957-4c17-b200-71d109585dd5/disk backing_file=/opt/stack/data/nova/instances/_base/3f82096f9c9d65312ae01acd864fc4d255ea3872 backing_file_depth=1 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 drive-ide0-1-1: removable=1 locked=1 tray-open=0 io-status=ok file=/opt/stack/data/nova/instances/828fd857-a957-4c17-b200-71d109585dd5/disk.config ro=1 drv=raw encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 host os: [root@opentest ~]# uname -a Linux opentest 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root@opentest ~]# cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) [root@opentest ~]# /usr/libexec/qemu-kvm -version QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-105.el7_2.4), Copyright (c) 2003-2008 Fabrice Bellard [root@opentest ~]# qemu-img --help | grep version qemu-img version 1.5.3, Copyright (c) 2004-2008 Fabrice Bellard conversion. If the number of bytes is 0, the source will not be scanned for [root@opentest ~]# virsh -V Virsh command line tool of libvirt 1.2.17 See web site at http://libvirt.org/ Compiled with support for: Hypervisors: QEMU/KVM LXC ESX Test Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM RBD Gluster Miscellaneous: Daemon Nodedev SELinux Secrets Debug DTrace Readline Modular guest os?? [root@test1 centos]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core)