All,
I'm using fedora20. fresh install. I start with an empty volume group, vg-targetdusing the lvm lib, I don't have this issue.
thanks
Jeffrey
Jeffrey
#!/usr/bin/python
from lvm2py import *
from rtslib import BlockStorageObject
lvm = LVM()
vg_list_obj = lvm.vgscan()
lv_list_obj = {}
target_count = 12
volume_size = 1
vg_name = 'vg-targetd'
volume_name = "test_volume_%s"
for i in range (1,target_count):
lv_name = volume_name % (str(i).zfill(2))
so_name = "%s:%s" % (vg_name, lv_name)
vg = lvm.get_vg(vg_name, 'w')
vg.create_lv(lv_name, volume_size, 'GiB')
storageblock_obj = BlockStorageObject(so_name, dev="/dev/%s/%s" % (vg_name, lv_name))
print 'created volume ', lv_name
i = 1
while i < 300:
vg = lvm.get_vg(vg_name, 'r')
lv_list_obj = vg.lvscan()
output = []
for lv in lv_list_obj:
output.append(dict(volume_name=lv.name, size=int(lv.size()), uuid=lv.uuid))
print output
print i
i = i + 1
# hangs after 42 iterations with 12 volumes
_______________________________________________ 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/