Revision fd09d178

b/lib/cmdlib.py
8299 8299
      lv_names = [".disk%d_%s" % (idx, suffix) for suffix in ["data", "meta"]]
8300 8300
      names = _GenerateUniqueNames(self.lu, lv_names)
8301 8301

  
8302
      vgname = dev.children[0].logical_id[0]
8302
      vg_data = dev.children[0].logical_id[0]
8303 8303
      lv_data = objects.Disk(dev_type=constants.LD_LV, size=dev.size,
8304
                             logical_id=(vgname, names[0]))
8304
                             logical_id=(vg_data, names[0]))
8305
      vg_meta = dev.children[1].logical_id[0]
8305 8306
      lv_meta = objects.Disk(dev_type=constants.LD_LV, size=128,
8306
                             logical_id=(vgname, names[1]))
8307
                             logical_id=(vg_meta, names[1]))
8307 8308

  
8308 8309
      new_lvs = [lv_data, lv_meta]
8309 8310
      old_lvs = dev.children

Also available in: Unified diff