Revision ac00bf1b lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
415 | 415 |
" in lvm.conf using either 'filter' or 'preferred_names'") |
416 | 416 |
free_size = sum([pv[0] for pv in pvs_info]) |
417 | 417 |
current_pvs = len(pvlist) |
418 |
desired_stripes = params[constants.STRIPES] |
|
418 |
desired_stripes = params[constants.LDP_STRIPES]
|
|
419 | 419 |
stripes = min(current_pvs, desired_stripes) |
420 | 420 |
if stripes < desired_stripes: |
421 | 421 |
logging.warning("Could not use %d stripes for VG %s, as only %d PVs are" |
... | ... | |
1368 | 1368 |
|
1369 | 1369 |
barrier_args = \ |
1370 | 1370 |
self._ComputeDiskBarrierArgs(vmaj, vmin, vrel, |
1371 |
self.params[constants.BARRIERS], |
|
1372 |
self.params[constants.NO_META_FLUSH]) |
|
1371 |
self.params[constants.LDP_BARRIERS],
|
|
1372 |
self.params[constants.LDP_NO_META_FLUSH])
|
|
1373 | 1373 |
args.extend(barrier_args) |
1374 | 1374 |
|
1375 | 1375 |
result = utils.RunCmd(args) |
... | ... | |
1468 | 1468 |
# sync speed only after setting up both sides can race with DRBD |
1469 | 1469 |
# connecting, hence we set it here before telling DRBD anything |
1470 | 1470 |
# about its peer. |
1471 |
sync_speed = self.params.get(constants.RESYNC_RATE) |
|
1471 |
sync_speed = self.params.get(constants.LDP_RESYNC_RATE)
|
|
1472 | 1472 |
self._SetMinorSyncSpeed(minor, sync_speed) |
1473 | 1473 |
|
1474 | 1474 |
if netutils.IP6Address.IsValid(lhost): |
... | ... | |
1835 | 1835 |
# the device |
1836 | 1836 |
self._SlowAssemble() |
1837 | 1837 |
|
1838 |
sync_speed = self.params.get(constants.RESYNC_RATE) |
|
1838 |
sync_speed = self.params.get(constants.LDP_RESYNC_RATE)
|
|
1839 | 1839 |
self.SetSyncSpeed(sync_speed) |
1840 | 1840 |
|
1841 | 1841 |
def _SlowAssemble(self): |
Also available in: Unified diff