Revision c6e911bc

b/scripts/gnt-instance
382 382
  return 0
383 383

  
384 384

  
385
def GrowDisk(opts, args):
386
  """Command-line interface for _ShutdownInstanceBlockDevices.
387

  
388
  This function takes the instance name, looks for its primary node
389
  and the tries to shutdown its block devices on that node.
390

  
391
  """
392
  instance = args[0]
393
  disk = args[1]
394
  amount = utils.ParseUnit(args[2])
395
  op = opcodes.OpGrowDisk(instance_name=instance, disk=disk, amount=amount)
396
  SubmitOpCode(op)
397
  return 0
398

  
399

  
385 400
def StartupInstance(opts, args):
386 401
  """Startup an instance.
387 402

  
......
1006 1021
  'deactivate-disks': (DeactivateDisks, ARGS_ONE, [DEBUG_OPT],
1007 1022
                       "<instance>",
1008 1023
                       "Deactivate an instance's disks"),
1024
  'grow-disk': (GrowDisk, ARGS_FIXED(3), [DEBUG_OPT],
1025
                "<instance> <disk> <size>", "Grow an instance's disk"),
1009 1026
  'list-tags': (ListTags, ARGS_ONE, [DEBUG_OPT],
1010 1027
                "<node_name>", "List the tags of the given instance"),
1011 1028
  'add-tags': (AddTags, ARGS_ATLEAST(1), [DEBUG_OPT, TAG_SRC_OPT],

Also available in: Unified diff