python lvm2 calls sometimes Failed to initialize VG Handle.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




All,

new install of host.
created volume group, no lvm
I have a class that scans and stores all volumes on init and keeps copy
in it's instance. class has handle error first time only. the second time
I create an instance of it, lvm2 is ok with the same calls.

suggestions?


from volume import *
>>> v = volume()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "volume.py", line 21, in __init__
    self.lv_list_obj[volume_group]  = vg.lvscan()
  File "/usr/lib/python2.7/site-packages/lvm2py/vg.py", line 429, in lvscan
    self.open()
  File "/usr/lib/python2.7/site-packages/lvm2py/vg.py", line 80, in open
    raise HandleError("Failed to initialize VG Handle.")
lvm2py.exception.HandleError: Failed to initialize VG Handle.
>>> v = volume()
>>>

thanks

Jeff
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux