Chapter 5. Using Resources

Beyond getting an allocation, in some cases users have additional steps to use their resources.

5.1. Managing Disk

This section describes the process to change the amount of disk space available to your virtual machine. The process to increase disk space is slightly different from the process to decrease it. Perform the following steps to increase file system size:

  1. Check your existing file system size:

    [asmith@alicehost ~]# tycoon host get_account_status providinghost1 file_system_size
    

  2. Enter a bid specifying your desired file system size. For example, Alice would do the following to get 2GB on providinghost1:

    [asmith@alicehost ~]# tycoon host bid providinghost1 0 disk:1,2GB,2GB
    

  3. Assuming your bid was accepted, shutdown your virtual machine so that its file system can be resized:

    [asmith@alicehost ~]# tycoon host shutdown providinghost1
    

  4. Resize the file system to the maximum possible given the current bid:

    [asmith@alicehost ~]# tycoon host set providinghost1 file_system_size max
    

    The maximum file system size will be somewhat less than the bid size because of file system overhead.

  5. Boot up the virtual machine again.

    [asmith@alicehost ~]# tycoon host boot providinghost1
    

Perform the following steps to decrease file system size:

  1. Check your existing file system size:

    [asmith@alicehost ~]# tycoon host get_account_status providinghost1 file_system_size
    

  2. Shutdown your virtual machine so that its file system can be resized:

    [asmith@alicehost ~]# tycoon host shutdown providinghost1
    

  3. Resize the file system to the smaller size:

    [asmith@alicehost ~]# tycoon host set providinghost1 file_system_size 1GB
    

  4. Change your bid to correspond to the smaller size. This has to be slightly larger than the file system size. For example, Alice would do the following to get 1GB on providinghost1:

    [asmith@alicehost ~]# tycoon host bid providinghost1 0 disk:1,1.01GB,1.01GB
    

  5. Boot up the virtual machine again.

    [asmith@alicehost ~]# tycoon host boot providinghost1