Attach and detach a volume
Attaching a volume connects it to a server so the OS can see it as a disk device. After attaching, you mount it using the commands in the Mount Instructions tab.
Before you begin
- A Ready block storage volume (Create a volume)
- A running IBEE Cloud server to attach it to
Attach a volume
Mount the volume (Linux)
After attaching, open the Mount Instructions tab on the volume detail page and run the following commands on your server:
Replace /dev/<guest-disk> with the actual device path shown in the Mount Instructions tab (e.g. /dev/vdc).
Only run the mkfs.ext4 format command on a new, empty volume. Running it on a volume with existing data will erase all data.
Detach a volume
Unmount the volume at the OS level before detaching from the portal to avoid data corruption.
After detaching, the volume status returns to Not attached and can be re-attached to any other server.
Troubleshooting
Device path not shown in Mount Instructions The device path only appears after the volume is fully attached. Wait a few seconds and refresh the page.
lsblk does not show the new disk
Ensure the attach completed successfully in the portal. If the volume shows as attached but the disk is not visible, try rebooting the server.
Mount does not persist after reboot
Ensure step 6 (fstab entry) was run correctly. Verify the UUID is correct with sudo blkid /dev/<guest-disk>.
Detach fails in portal
Unmount the volume at the OS level first (sudo umount /mnt/data) before detaching in the portal.