Unable to create persistent Virtual HBA using storage pool in RHEL 6.6
Unable to create persistent vHBA using storage pool way as explained in "http://wiki.libvirt.org/page/NPIV_in_libvirt".
I am trying to do NPIV setup as part of that creating two vHBAs so that I can expose fibre channel disks to both VMs after doing zoing at switch level.
I am able to create vHBA using node device driver as explained in above link but vHBA created via node device driver way are in-persistent and
removed after host system reboot.
System configration:
Libvirt Version: 0.10.2
Qemu-KVM Version: 0.12.1.2
OS version: RHEL 6.6
[root@node1 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Kernel \r on an \m
[root@node1 ~]# uname -a
Linux node1.blr.com 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@node1 ~]# rpm -qa|grep -i qemu
qemu-img-0.12.1.2-2.445.el6.x86_64
gpxe-roms-qemu-0.9.7-6.12.el6.noarch
qemu-kvm-0.12.1.2-2.445.el6.x86_64
[root@node1 ~]# rpm -qa|grep -i libvirt
libvirt-client-0.10.2-46.el6.x86_64
libvirt-python-0.10.2-46.el6.x86_64
libvirt-0.10.2-46.el6.x86_64
Steps to reproduce:
1. Use physical HBA “scsi_host1”, name while creating vHBA.
[root@node1 ~]# virsh nodedev-dumpxml scsi_host1 > scsi_host1.xml
uploaded file .... [scsi_host1.xml.jpg]
- Create vHBA storage pool xml file.
[root@light4 ~]# cat poolvhba0.xml
Uploaded file. ....[poolvhba0.xml.jpeg]
-
Define vHBA storage pool.
[root@node1 ~]# virsh pool-define poolvhba0.xml
Pool poolvhba0 defined from poolvhba0.xml -
Start vHBA storage pool.
[root@node1 ~]# virsh pool-start poolvhba0
error: Failed to start pool poolvhba0
error: An error occurred, but the cause is unknown
[root@node1 ~]# virsh pool-list --all
Name State Autostart
default active yes
poolvhba0 inactive no
- Set pool for auto restart.
[root@node1 ~]# virsh pool-autostart poolvhba0
Pool poolvhba0 marked as autostarted
- Checked libvirtd.log, after reboot system.
[root@node1 ~]# tail -f /var/log/libvirt/libvirtd.log
2015-05-25 06:04:32.126+0000: 52740: info : libvirt version: 0.10.2, package: 46.el6 (Red Hat, Inc. http://bugzilla.redhat.com/bugzilla, 2014-09-09-07:49:04, x86-022.build.eng.bos.redhat.com)
2015-05-25 06:04:32.126+0000: 52740: error : storageDriverAutostart:115 : Failed to autostart storage pool 'poolvhba0': no error message found
2015-05-25 06:07:21.728+0000: 53069: info : libvirt version: 0.10.2, package: 46.el6 (Red Hat, Inc. http://bugzilla.redhat.com/bugzilla, 2014-09-09-07:49:04, x86-022.build.eng.bos.redhat.com)
2015-05-25 06:07:21.728+0000: 53069: error : storageDriverAutostart:115 : Failed to autostart storage pool 'poolvhba0': no error message found
2015-05-25 06:14:10.419+0000: 5523: info : libvirt version: 0.10.2, package: 46.el6 (Red Hat, Inc. http://bugzilla.redhat.com/bugzilla, 2014-09-09-07:49:04, x86-022.build.eng.bos.redhat.com)
2015-05-25 06:14:10.419+0000: 5523: error : storageDriverAutostart:115 : Failed to autostart storage pool 'poolvhba0': no error message found
Note: Created vHBA successfully using same wwnn and wwpn number by node device driver.
Attachments
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
