« Previous | Next » 

Revision fd791263

IDfd7912637b1330ab053981004327d5125045b2a6

Added by Apollon Oikonomopoulos over 12 years ago

Pause DRBD sync for OS install if no_wait_for_sync

When no_wait_for_sync is specified in LUInstanceCreate, Ganeti lets DRBD sync
in the background while performing the rest of the installation steps,
including OS installation.

However, OS installation is a very disk-intensive task that intereferes badly
with the background I/O caused by DRBD's initial sync. To this end, we pause
the background sync before OS installation and unpause it afterwards, which
yields a significant speed boost for OS installation. The following should be
noted:

a) The user has requested not to wait for sync, i.e. the instance will be
non-redundant for an unspecified interval anyway and delaying this by a
couple of minutes is not a big compromise.

b) This approach is also followed during disk wiping.

Signed-off-by: Apollon Oikonomopoulos <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences