Skip to content

Disk Management ​

With the day 2 action "Manage Disks" you can easily add, edit or delete existing disks on your Managed OS VM. The following chapters explain how to do this.

Constraints ​

The following constraints apply for disks on a Managed OS VM:

RequirementValue
Minimum disk size1 GB
Maximum disk size6144 GB
Maximum number of disks10
Maximum cumulated disk size14336 GB
File system (RHEL)XFS
File system (Windows)NTFS

Use Day 2 "Manage Disks" action ​

To use the day 2 action just navigate to your VM in the portal and click on the Manage Disks action. Select Manage Disks

Add Disk ​

Use the following procedure to add a disk to an existing VM:

  1. Select the VM in the portal
  2. Select the Manage Disks action
  3. Select the Add operation
  4. Configure the following fields and click Manage Disks
  5. Save and submit
FieldDescriptionRequired
Size (GB)Disk size between 1 GB and 6144 GB✅
Disk LabelLogical volume name (RHEL) / Disk label (Windows)✅
Mount PointWhere the disk is mounted (RHEL) / Drive letter (Windows)✅
Storage Reservation PolicyStorage policy for the disk✅

Both the mount point and the disk label must be unique across all disks.

Add a disk to a Managed RHEL

Add Information

The workflow automatically performs the following steps:

RHEL
  • Adds the disk to the VM
  • Creates the partitions
  • Adds the disk to the datavg volume group
  • Creates the logical volume
  • Creates the XFS file system
  • Creates the entry in /etc/fstab
  • Mount the new filesystem
Windows
  • Adds the disk to the VM
  • Initializes and partitions the disk
  • Formats the disk with NTFS
  • Assigns the configured drive letter

How to verify the result on the OS:

bash
# After the workflow completes, verify the result:
$ df -hP /test
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/datavg-test  5.0G   68M  5.0G   2% /test

$ cat /etc/fstab
...
/dev/mapper/datavg-test /test xfs noatime 0 0
powershell
# No further configuration on the Operating System is required.
# You can verify the result with:
Get-Volume

Edit Disk ​

Use the following procedure to edit a disk on an existing VM:

  1. Select the VM in the portal
  2. Select the Manage Disks action
  3. Select the Edit button for the disk you want to change
  4. Increase the size or change the storage policy
  5. Save and submit

Edit a disk of a Managed RHEL

INFO

Disk 0 is reserved for the Operating System and cannot be increased, only the storage policy can be changed.

RHEL

The workflow automatically:

  • Extends the disk on the VM
  • Increases the logical volume
  • Increases the XFS file system

You can verify the result:

bash
$ df -hP /test
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/datavg-test   10G  104M  9.9G   2% /test
Windows

The workflow automatically:

  • Extends the disk on the VM
  • Extends the NTFS file system

No further configuration on the Operating System is required.

WARNING

It is not possible to reduce the size of a disk. Disks can only be extended.

Delete Disk ​

INFO

Disk 0 is reserved for the Operating System and cannot be deleted.

Use the following procedure to delete a disk on an existing VM:

  1. Select the VM in the portal
  2. Select the Manage Disks action
  3. Delete the disk you want by clicking the Delete button
  4. Save and submit

Delete a disk of a Managed RHEL

RHEL

The workflow automatically:

  • Unmounts the disk
  • Removes the entry from /etc/fstab
  • Deletes the disk from the VM

You can verify the result:

bash
$ df -hP
# The deleted mount point should no longer appear in the output
Windows

The workflow automatically:

  • Checks that the disk is empty before deletion
  • Deletes the disk from the VM

WARNING

The disk will not be deleted if it still contains data. Make sure the disk is no longer used by the OS before proceeding.

Enable manual Disk Management ​

If you want to configure the disk on the OS yourself, you have the option to Enable manual Disk Management for a VM.

This means you do all disk operations on the OS by yourself (manage physical volumes, volume groups, logical volumes, file systems). The Manage Disks action will only add, modify or delete a disk on the Virtual Machine, but no action on the OS is executed. If the Enable manual Disk Management operation is executed once, it will be set for all future Manage Disk actions on this VM. The option can never be undone for the entire VM lifecycle!

As the disk configuration is done manually on the OS, it is possible that driveletter/mount-point and label/logical volume in the table on the "Manage Disks" window does not reflect the reality. Please carefully check on which disk you want to execute an edit or delete action.

WARNING

The Delete action with Enable Manual Disk Management is currently not working. If you want to delete a disk, please open a ticket with the support and we will delete the disk for you.

Enable manual Disk Management

Remark: If you change the disk configuration within the Operating System, the Manage Disks action is not aware of this change. Therefore future Manage Disks actions cannot be correctly configured by the automation.