Revision 5bc556dd lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
7182 | 7182 |
self.cfg.SetDiskID(disk, node) |
7183 | 7183 |
result = self.rpc.call_blockdev_grow(node, disk, self.op.amount) |
7184 | 7184 |
result.Raise("Grow request failed to node %s" % node) |
7185 |
|
|
7186 |
# TODO: Rewrite code to work properly |
|
7187 |
# DRBD goes into sync mode for a short amount of time after executing the |
|
7188 |
# "resize" command. DRBD 8.x below version 8.0.13 contains a bug whereby |
|
7189 |
# calling "resize" in sync mode fails. Sleeping for a short amount of |
|
7190 |
# time is a work-around. |
|
7191 |
time.sleep(5) |
|
7192 |
|
|
7185 | 7193 |
disk.RecordGrow(self.op.amount) |
7186 | 7194 |
self.cfg.Update(instance, feedback_fn) |
7187 | 7195 |
if self.op.wait_for_sync: |
Also available in: Unified diff