Adding and extending virtual disks for a VM

If you think you’ll need to shrink a virtual disk later, add a second disk that you can delete, instead of expanding your primary disk. You can’t shrink a Skytap virtual disk.

Contents

Editing the disk settings in Skytap

The current virtual disks for the VM are displayed in the Storage section of the VM Hardware page.

Storage

Notes
  • The VM must be powered off to add, edit, or delete virtual disks.
  • Before making hardware changes to your VM, we recommend saving it as a template that you can restore if something goes wrong.
To add a virtual disk
  1. Click Add disk.
  2. Type a Valid disk size for the new disk.

    See Skytap service limits for maximum disk sizes for all regions and compute types.

  3. Click Save.
  4. Depending on the VM guest OS, you may also need to format or extend the disk so that the VM OS recognizes it. The method to do this varies, depending on the VM OS. You may need to use in-guest OS settings or third-party software such as Partition Magic. For help, see Changing the disk partition settings in the VM guest OS.
To edit an existing virtual disk
  1. Click Edit disk.
  2. Type a Valid disk size for the disk.

    You can’t shrink an existing virtual disk.

  3. Click Save.
  4. Depending on the VM guest OS, you may also need to format or extend the disk so that the VM OS recognizes it. The method to do this varies, depending on the VM OS. You may need to use in-guest OS settings or third-party software such as Partition Magic. For help, see Changing the disk partition settings in the VM guest OS.

Changing the disk partition settings in the VM guest OS

This section describes additional steps you may need to take to format or extend a disk so that the VM operating system recognizes it.

Operating system

Notes

Windows
  1. From the Start screen, type Disk Management (or press Windows Key + R and then type diskmgmt.msc)
  2. The Disk Management console displays the VM virtual disks.
  3. To add a new virtual disk, right-click the disk name, and select Online.

    To extend the virtual disk, there are two options:

    • To extend the current partition into the new unallocated space, right-click the drive, and select Extend Volume.
    • To create a secondary partition, right-click the new unallocated space and select the option for a secondary partition on this disk. Right-click the disk name, and select Online.

      Notes

      • Depending on the VM administrative policies, you may need to sign in as an administrator and set this disk to Online before you can format it.
      • After you change the disk size, Windows performs a disk integrity check to be sure that the file system was not corrupted.
Linux

Different Linux distributions and filesystem types might have different steps.

Common Linux file system adjustment procedures

IBM i

After you add a disk to an IBM i VM, you must use Dedicated Service Tools to add it to the LPAR.

We recommend Add, which can be significantly faster than Add and balance to initialize disks.

AIX

In the command line of the running AIX VM:

  1. Type cfgmgr.
  2. Use chvg -g {volumeGroup} to examine the disks in the volume group for changes. See chvg Command.
  3. Use chfs -a size=+{size} {Mount Point} to expand the disk {Mount Point} by {size}. See chfs Command.