Skip to main content

Manage volumes

info

This guide applies to GPU and NPU instances. Video transcoding instances are provided via Virtual Machines. For more details, refer to Virtual Machine > Create instance.

This document explains how to manage volumes and snapshots attached to virtual machine instances in the GPU service.

Create volume

You can create a new volume.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Volume menu, click the [Create volume] button on the top right.

    Create volume

  3. In the Create volume popup, enter the information and click [Create].

    FieldDescription
    Volume nameEnter the name of the volume
    Volume description (optional)Description of the volume
    TypeType of volume
    - Only SSD is supported currently; additional types will be supported later
    Sizevolume size
    - for Linux systems: can be created in sizes from 1 to 16,384 GB
    - for Windows systems: can be created in sizes from 1 to 2,048 GB
    Max IOPSMaximum IOPS based on volume size
    - Ranges from 3,000 IOPS to 16,000 IOPS
    Availability zoneThe zone in which to create the volume
    Snapshot scheduleDisabled
    - The volume will not use snapshot schedules
    Enabled
    - The volume will automatically generate snapshots according to a defined policy

Manage volume

View volume list

You can view a list of running volumes and their basic information.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Volume menu, view the list of currently running volumes. Use filters if needed.

    FieldDescription
    NameVolume name
    IDUnique volume ID
    StatusVolume status
    - For more details, refer to Volume status values
    Connected instanceInstance connected to the volume
    - Click the instance name to go to its detail page
    Mount pointMount point of the volume
    TypeVolume type
    SizeVolume size
    Snapshot scheduleLinked snapshot schedule
    Availability zoneAvailability zone where the volume was created
    Created atDate and time the volume was created
    MoreExecute actions by item
    - Edit volume: Edit the volume settings applied to the instance
    - Attach/detach volume: Set or remove the instance connection
    - Create snapshot: Create a snapshot for the volume
    - Attach/detach snapshot schedule: Set or remove the linked snapshot schedule
    - Delete volume: Delete the created volume

View volume details

You can view and manage detailed information and snapshot history for the selected volume.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Volume menu, select a volume to view its details.

  3. On the volume detail page, review the information.

    FieldDescription
    Volume name and description
    Click the [Volume actions] icon to see the full list of available operations
    - See the More section for all options
    Volume details
    - Operational status: See Volume status values
    - Size: Volume size
    - Type: Volume type
Details tab

You can view detailed information for the selected volume.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Volume menu, select the volume you want to inspect.

  3. On the Details tab, review the volume information.

    FieldDescription
    Volume IDUnique identifier for the volume
    Volume nameName of the selected volume
    CreatorUser who created the volume
    Created atTime of volume creation
    Connected instanceName of the connected instance
    - Click to go to the instance's details
    Mount pointMount point of the volume
    Snapshot scheduleSnapshot schedule linked to the volume
    - Click to view the snapshot schedule list
    Availability zoneAvailability zone where the volume was created
    TypeVolume type
Snapshot tab

You can view snapshots created from the selected volume. For more information, refer to Create and manage snapshots.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Volume menu, select the volume to view snapshots.

  3. On the Snapshot tab, view the list of snapshots.

    FieldDescription
    TypeSnapshot type
    - Full: Saves the entire volume
    - Incremental: Saves only changes from the base full snapshot
    Snapshot nameName of the created snapshot
    StatusStatus of the snapshot
    SizeSize of the snapshot
    Snapshot schedule-: Manually created snapshot or a snapshot with a deleted/unlinked schedule
    Snapshot schedule name: Snapshot automatically generated by policy
    CreatorUser who created the snapshot
    Created atDate the snapshot was created
    - Hover to view the exact time and elapsed duration
    MoreAvailable actions
    - Edit snapshot: Modify snapshot name or description
    - Restore snapshot: Create a volume from the snapshot
    - Delete snapshot: Delete the snapshot

View volume by instance

You can view volume information connected to a specific instance.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.
  2. In the Instance menu, select the instance you want to inspect.
  3. On the instance detail page, go to the Volume tab to view connected volume information.

Modify volume

You can modify volume settings.

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.
  2. In the Volume menu, click the [More] icon next to the volume and select Edit volume.
    • When editing the volume size, only larger sizes (in 1 GB units) are allowed. After resizing, refer to Extend file system to expand the file system accordingly.
  3. In the Edit volume popup, configure the settings and click [Save].

Detach volume

You can detach a volume that is no longer in use.

info
  • You cannot detach root volumes used for OS partitions.
  • If you try to detach a volume from a running instance, make sure the volume is unmounted before detaching. For safe detachment, it is recommended to stop the instance first.
  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.
  2. In the Volume tab, click the [More] icon next to the volume and select Detach volume.
  3. In the Detach volume popup, verify the target volume and instance, then click [Detach].

Expand volume

You can increase the volume size.

info
  • After expanding the volume size, use appropriate commands to extend the file system.
    - You can begin extending the file system once the volume status changes to Extending.
  • To apply new volume QoS settings based on volume type:
    - For root volumes: Shelve and then unshelve the instance.
    - For additional volumes: Detach and then reattach the volume.
  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.
  2. In the Volume menu, click the [More] icon next to the volume and select Edit volume.
  3. In the Edit volume popup, enter the new size in the Volume size field and click [Save].

Attach volume

Newly created volumes are in the Available state, not attached to any instance. To use a volume properly, you must attach it to an instance via the console and connect it as a device according to the OS-specific guide.

Attach volume from console

To attach a volume to an instance using the KakaoCloud Console, follow the steps below:

  1. Go to the KakaoCloud Console, then navigate to Beyond Compute Service > GPU.
  2. In the Volume menu, click the [more options] icon for the volume you want to attach and select Attach volume.
  3. In the Attach volume popup window, enter the required information and click the [Save] button.

Attach volume on Linux

In a Linux environment, access the instance via SSH and configure the file system and mount point. For detailed instructions, refer to Connect to Linux instance.

  1. Use the lsblk command to check whether the volume is correctly connected as a device.

    • Example: After running lsblk, the newly created 8GB volume appears as /dev/vdb.
    lsblk command (check device connection)
    ubuntu@volume-attach-1:~$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    vda 252:0 0 20G 0 disk /boot
    vdb 252:16 0 8G 0 disk
  2. Use the file -s command to check the file system type. If it outputs data, the device does not have a file system.

    file -s command (check file system type)
    ubuntu@volume-attach-1:~$ sudo file -s /dev/vdb
    /dev/vdb: data
  3. If no file system is present, create one using the mkfs -t command.

    mkfs -t command (create file system)
    ubuntu@volume-attach-1:~$ sudo mkfs -t xfs /dev/vdb
  4. Verify the file system has been created successfully.

    file -s command (verify file system creation)
    ubuntu@volume-attach-1:~$ sudo file -s /dev/vdb
    /dev/vdb: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)
  5. Create a mount point directory using the mkdir command.

    mkdir command (create mount point)
    ubuntu@volume-attach-1:~$ sudo mkdir -p /data/vdb
  6. Mount the volume to the directory with the mount command.

    mount command (mount volume to directory)
    ubuntu@volume-attach-1:~$ sudo mount /dev/vdb /data/vdb
  7. Confirm the file system and mount point are correctly applied using lsblk.

    lsblk command (verify mount point)
    ubuntu@volume-attach-1:~$ sudo lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    vda 252:0 0 20G 0 disk /boot
    vdb 252:16 0 8G 0 disk /data/vdb
  8. To persist the volume after reboot, first retrieve the device UUID.

    lsblk command (get UUID)
    ubuntu@volume-attach-1:~$ lsblk -o +UUID
  9. Add the UUID to the /etc/fstab file for persistent mounting.

    persist mount after reboot
    UUID=2d332f0b-1771-4b83-bd5c-7e9d1cc91ed2 /data/vdb  xfs  defaults,nofail  0  2

Attach volume on Linux(xfs)

When using an OS image based on the xfs file system (e.g., CentOS Stream 8, Rocky Linux 8), restoring a root volume snapshot to the same instance may cause a UUID conflict. Follow the steps below to resolve the issue.

  1. Temporarily mount the file system using the nouuid option.

    mount command (nouuid option)
    $ sudo mount -t xfs -o nouuid /dev/vdb1 /home/centos/test
  2. Unmount the volume.

    umount command
    $ sudo umount /dev/vdb1
  3. Regenerate the UUID.

    xfs_admin command (generate uuid)
    $ sudo xfs_admin -U generate /dev/vdb1
  4. Set the new UUID on the restored snapshot volume.

    xfs_admin command (update uuid)
    $ sudo xfs_admin -U ff714d9b-8c90-40e2-9e2f-12623220e1cf /dev/vdb1
  5. Mount the snapshot again.

    mount command (re-mount)
    $ sudo mount /dev/vdb1 /home/centos/test

Attach volume on Windows

On Windows, connect to the instance via Remote Desktop and initialize the disk.

  1. Press Start > Run or use the WIN + R shortcut.

  2. In the Run window, enter diskmgmt.msc and click [OK] or press Enter.

  3. In Disk Management, right-click the newly added disk and select Online.

    Set disk to online

  4. Right-click the disk and select Initialize disk.

    Initialize disk

  5. Check the new disk, select the GPT partition table, and click [OK].

    • Use GPT for disks over 2TB.

    Select GPT partition table

  6. Right-click the initialized disk and select New simple volume to launch the wizard.

    New simple volume

  7. Follow the New Simple Volume Wizard.

    New simple volume wizard

  8. Follow the wizard to set volume size, assign a drive letter, and format the volume to complete the attachment.

    Complete volume creation

Extend file system (Linux)

To utilize the newly added disk space after expanding a volume, users must access the instance directly and update the partition and file system sizes. Once the volume size is increased, follow these steps within the instance to expand the file system using relevant commands. Note that the required steps may vary depending on the file system and partition configuration of the instance.

OS-specific partition table format and file system type
OS nameVersionRoot volume partition table formatFile system
Ubuntu20.04GPText4
Ubuntu22.04GPText4
Ubuntu24.04GPText4
CentOS Stream9MBRxfs
Rocky Linux8.10MBRxfs
Rocky Linux9.4MBRxfs
Alma Linux8.10GPTxfs
Alma Linux9.4GPTxfs
Windows2019MBRntfs
Windows2022MBRntfs
info

Modifying the file system or partition does not alter or delete volume data. However, it is recommended to back up any important data before making changes in case a rollback is needed.

The procedures below apply to ext4 and xfs, the most commonly used file systems in Linux environments.

  • In the following Linux example, a user has an instance with a 50GB root volume. The root volume is expanded to 80GB, and the partition and file system are updated accordingly.

Connect to instance

Connect to the instance using the SSH command in a terminal. For more detailed steps, refer to Connect to Linux instance.

Check partition and file system info

Use lsblk and df commands to check the partition and file system information for expansion.

  • Example: Before expansion, the 50GB root volume is mapped as /dev/vda, and the 30GB non-root volume as /dev/vdb. The root partition vda1 is 50GB.

    lsblk command (before volume expansion)
    ubuntu@volume-test:~$ sudo lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    vda 252:0 0 50G 0 disk
    ├─vda1 252:1 0 49.9G 0 part /
    ├─vda14 252:14 0 4M 0 part
    └─vda15 252:15 0 106M 0 part /boot/efi
    vdb 252:16 0 30G 0 disk /data

After expanding the root volume, run lsblk again to verify the updated volume size.

  • Example: The /dev/vda device is now 80GB, but vda1 remains at 50GB.

    lsblk command (after volume expansion)
    ubuntu@volume-test:~$ sudo lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    vda 252:0 0 80G 0 disk
    ├─vda1 252:1 0 49.9G 0 part /
    ├─vda14 252:14 0 4M 0 part
    └─vda15 252:15 0 106M 0 part /boot/efi
    vdb 252:16 0 30G 0 disk /data

Run the df command to check the file system type.

  • Example: The /dev/vda1 partition is still 50GB and uses the ext4 file system.

    df command
    ubuntu@volume-test:~$ sudo df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    ...
    /dev/vda1 ext4 49G 1.5G 47G 3% /
    ...
    /dev/vdb ext4 30G 45M 28G 1% /data

Extend partition

Use the growpart command to expand the partition to its maximum size.

  • Example: Run growpart to extend the vda1 partition.

    Extend partition
    ubuntu@volume-test:~$ sudo growpart /dev/vda 1

Run lsblk again to confirm the partition size has been updated.

  • Example: vda1 has now been extended to 80GB.

    Verify after partition extension
    ubuntu@volume-test:~$ lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    vda 252:0 0 80G 0 disk
    ├─vda1 252:1 0 79.9G 0 part /

Extend file system

To use the expanded space, extend the file system. Use resize2fs for ext4 or xfs_growfs for xfs.

Extend file system (ext4)
sudo resize2fs /dev/vda1
Extend file system (xfs)
sudo xfs_growfs -d /

Verify the file system has been extended using df. No reboot is required after resizing.

  • Example: /dev/vda1 has been expanded to 80GB.

    df command (after file system expansion)
    ubuntu@volume-test:~$ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/vda1 ext4 78G 1.6G 76G 2% /
    ...
    /dev/vdb ext4 30G 45M 28G 1% /data
    ...

Extend file system (Windows)

To extend a file system in a Windows environment:

  • In this example, the user has an instance with a 50GB root volume, which is expanded to 70GB using the volume expansion feature.

Expand file system with disk management tool

Follow these steps to expand the file system using Disk Management in Windows:

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Instance menu, click the [more options] icon for the instance and select RDP connection.

  3. In the RDP connection popup, check the password and log in to the Windows instance.

  4. Right-click the [Windows] icon and select Disk Management.

    Launch disk management

  5. In Disk Management, click Action > Rescan Disks.

    Rescan disks

  6. Right-click the formatted partition of the disk you wish to expand and select Extend volume.

    • The partition must be adjacent to the unallocated space on the right. Extensions are disabled for non-adjacent layouts. Also, MBR-formatted volumes cannot exceed 2TB.

    Extend volume from partition

  7. Click [Next] in the Extend Volume Wizard.

    Extend volume wizard

  8. In Select the amount of space in MB, enter the amount to add and click [Next].

    • Typically, allocate the maximum available space.

    Select disk for extension

  9. Click [Finish] and verify that the file system has been extended.

    Complete extension wizard

Extend partition with PowerShell

To expand the file system using PowerShell in Windows:

  1. Go to KakaoCloud Console > Beyond Compute Service > GPU.

  2. In the Instance menu, click the [more options] icon for the instance and select RDP connection.

  3. In the RDP connection popup, check the password and log in to the Windows instance.

  4. Right-click the [Windows] icon and select Windows PowerShell (Admin).

    Launch Windows PowerShell

  5. Identify the drive letter of the partition to expand.

    Get drive letter
    Get-Partition
  6. Rescan the disks.

    Rescan disks
    "rescan" | diskpart
  7. Check the minimum and maximum allowed size for the partition.

    Check supported size
    Get-PartitionSupportedSize -DriveLetter <drive-letter>
  8. Expand the partition to the maximum size.

    Expand to max size
    Resize-Partition -DriveLetter <drive-letter> -Size $(Get-PartitionSupportedSize -DriveLetter <drive-letter>).SizeMax
    • To expand to a specific size, specify the <size> in GB.
    Expand to specific size
    Resize-Partition -DriveLetter <drive-letter> -Size <size>