Revision d529599f

b/lib/backend.py
1522 1522
      device.Assemble()
1523 1523
    except errors.BlockDeviceError, err:
1524 1524
      _Fail("Can't assemble device after creation, unusual event: %s", err)
1525
    device.SetSyncSpeed(constants.SYNC_SPEED)
1526 1525
    if on_primary or disk.OpenOnSecondary():
1527 1526
      try:
1528 1527
        device.Open(force=True)
......
1697 1696

  
1698 1697
  if as_primary or disk.AssembleOnSecondary():
1699 1698
    r_dev = bdev.Assemble(disk.dev_type, disk.physical_id, children, disk.size)
1700
    r_dev.SetSyncSpeed(constants.SYNC_SPEED)
1701 1699
    result = r_dev
1702 1700
    if as_primary or disk.OpenOnSecondary():
1703 1701
      r_dev.Open()
b/lib/bdev.py
1743 1743
      - if we have a configured device, we try to ensure that it matches
1744 1744
        our config
1745 1745
      - if not, we create it from zero
1746
      - anyway, set the device parameters
1746 1747

  
1747 1748
    """
1748 1749
    super(DRBD8, self).Assemble()
......
1756 1757
      # the device
1757 1758
      self._SlowAssemble()
1758 1759

  
1760
    self.SetSyncSpeed(constants.SYNC_SPEED)
1761

  
1759 1762
  def _SlowAssemble(self):
1760 1763
    """Assembles the DRBD device from a (partially) configured device.
1761 1764

  

Also available in: Unified diff