Pirate Fibonacci
2014-08-28 23:55:34 UTC
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 *
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.
Jeff
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()
thanksJeff