> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/storage/block-storage/quickstart.md).

# Quickstart

Create, attach and mount your first block storage volume.

***

You create, manage, and delete block storage volumes independently of your virtual machines under **Storage → Block storage**. From here, you can also attach and detach the block storage volumes to and from your VMs. While a block storage volume is attached, it's also possible to resize it. You can only increase a block storage volume, not decrease it.

## Create a block storage volume

1. Click **Block Storage** under **Storage** in the left-hand menu.
2. Click **Create**.
3. Choose a name, data center location, tier, and size for the volume.
4. Click **Create volume**.
5. Once the volume is ready, note down the WWN identification string. You'll need it later when creating a filesystem and mounting it.

## Attach the volume to a KVM virtual machine

From the overview page of the newly created volume, click **Attach** and select the correct virtual machine. Then, click **Attach**.

## Create a filesystem on the volume

{% tabs %}
{% tab title="Linux" %}
Start by verifying that the volume is in fact attached to the virtual machine. List the files in `/dev/disk/by-id/` and look for the WWN that matches the WWN from the control panel.  For example, if the WWN in the control panel is `3fa0d41402141ef7`, then the file in `/dev/disk/by-id/` will be `wwn-0x3fa0d41402141ef7`.

<pre data-title="Command and output. Command is highlighted."><code><strong>ls /dev/disk/by-id/
</strong>ata-QEMU_DVD-ROM_QM00001       scsi-33fa0d41402141ef7
ata-QEMU_DVD-ROM_QM00003       wwn-0x305b0264d59532e7
scsi-3305b0264d59532e7         wwn-0x305b0264d59532e7-part1
scsi-3305b0264d59532e7-part1   wwn-0x305b0264d59532e7-part14
scsi-3305b0264d59532e7-part14  wwn-0x305b0264d59532e7-part15
scsi-3305b0264d59532e7-part15  wwn-0x3fa0d41402141ef7
</code></pre>

First, create a partition table and a partition on the new volume. Double-check the WWN to avoid wiping the wrong disk or volume! When using the `print` command in `parted` below, also make sure that the model says `GLESYS REMOTE DISK`.

<pre data-title="Commands and output. Commands are highlighted. (parted) is the prompt inside the parted program."><code><strong>sudo parted /dev/disk/by-id/wwn-0x3fa0d41402141ef7
</strong>GNU Parted 3.6
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
<strong>(parted) print
</strong>Error: /dev/sdb: unrecognised disk label
Model: GLESYS REMOTE DISK (scsi)
Disk /dev/sdb: 10.7GB
Sector size (logical/physical): 4096B/4096B
Partition Table: unknown
Disk Flags:
<strong>(parted) mklabel gpt
</strong><strong>(parted) mkpart primary 1MiB 100%
</strong><strong>(parted) quit
</strong>Information: You may need to update /etc/fstab.
</code></pre>

You should now have a partition on the volume; verify it by listing all files related to the WWN.

<pre data-title="Command and output. Command is highlighted."><code><strong>ls /dev/disk/by-id/wwn-0x3fa0d41402141ef7*
</strong>/dev/disk/by-id/wwn-0x3fa0d41402141ef7
/dev/disk/by-id/wwn-0x3fa0d41402141ef7-part1
</code></pre>

Now, let's create a filesystem on the partition, `part1`. To not reserve any space on the partition for root, include the `-m 0` option as shown here.

<pre data-title="Command and output. Command is highlighted."><code><strong>sudo mkfs.ext4 /dev/disk/by-id/wwn-0x3fa0d41402141ef7-part1 -m 0
</strong>mke2fs 1.47.2 (1-Jan-2025)
Discarding device blocks: done
Creating filesystem with 2620928 4k blocks and 655360 inodes
Filesystem UUID: a5eb2aa7-4a01-463a-baca-17cfa07a861d
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
</code></pre>

{% endtab %}

{% tab title="Windows Server" %}
Start by verifying which disk corresponds to the WWN in the virtual machine with the WWN in the control panel. This prevents you from operating on the wrong disk.

Start a PowerShell terminal and run the following command. Look for the WWN from the control panel and match it to a disk.

<pre data-title="Command and output. Command is highlighted."><code><strong>Get-Disk | Select-Object Number, FriendlyName, UniqueId
</strong>
Number FriendlyName       UniqueId
------ ------------       --------
     0 GLESYS LOCAL DISK  34CE12CC9399D6F5
     1 GLESYS REMOTE DISK 3DD0446B90C484F1
</code></pre>

In this case, disk number 1 matches the WWN from the control panel.

Open **Computer Management** by searching for it in the Start menu.

Once inside Computer Management, select **Disk Management** under **Storage**. Right-click on the disk number that corresponds to the WWN from the previous step (in this case, **Disk 1**). Select **Online**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F2vXbE1Cel8WCdrchR1Yp%2Fwindows-server-2025-disk-management.png?alt=media&amp;token=11e72a7d-db81-4a22-8c7b-7f84dd2a5427" alt=""><figcaption></figcaption></figure>

Right-click the same disk again, but this time select **Initialize Disk**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FIHcEJFE3GsKYPDWaQFSy%2Fwindows-server-2025-disk-management-1.png?alt=media&amp;token=7a4131d4-1c9e-4e1e-9436-b30a3b697624" alt=""><figcaption></figcaption></figure>

Leave the defaults as-is in the dialog box (**Disk 1** and **GPT**). Click **OK**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FRUVfOYavSXqBWXMcxFuN%2Fwindows-server-2025-initialize-disk.png?alt=media&amp;token=3c974d08-da5a-43bd-8fe3-1a717974742c" alt=""><figcaption></figcaption></figure>

Right-click on the unallocated disk space and select **New Simple Volume...**

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FnheIY0SgGAaB3uZUusZe%2Fwindows-server-2025-new-simple-volume.png?alt=media&amp;token=076356c3-079c-4eae-8f0c-cbff82a0d95a" alt=""><figcaption></figcaption></figure>

Click **Next** to start the guide. Leave the default value for the volume size to use the entire volume. Click **Next**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FG8r9vWFLIIH1b37MOHxi%2Fwindows-server-2025-size-of-new-volume.png?alt=media&amp;token=99ce3456-7eed-4b51-aa36-0cbe1ffad590" alt=""><figcaption></figcaption></figure>

Select a desired drive letter for the new volume, or leave it at the default. Click **Next**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FZgs9WKVmxgzJ1vBv63IE%2Fwindows-server-2025-drive-letter-and-path.png?alt=media&amp;token=f5c99609-0090-42a9-b56c-9eac9f04588d" alt=""><figcaption></figcaption></figure>

Leave all the default settings as-is (Filesystem: NTFS, Allocation unit size: Default), but give the volume a label so you can identify it later. Here, we've given it the name *Block Storage 1*.

Make sure **Perform a quick format** is checked.

Click **Next**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FWX7uwtJkD2f8bc7wy3kZ%2Fwindows-server-2025-format-disk.png?alt=media&amp;token=16afc991-88f9-466d-9081-6e8241021837" alt=""><figcaption></figcaption></figure>

If everything looks okay in the summary, click **Finish**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F4Li46fMISxVaLvCWhY4R%2Fwindows-server-2025-disk-summary.png?alt=media&amp;token=2adaeec3-b2f3-454b-824f-38f65cc3c7dc" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Mount the volume

{% tabs %}
{% tab title="Linux" %}
Start by creating a mount point for the volume, for example, under `/mnt`.

<pre data-title="Command."><code><strong>sudo mkdir /mnt/lab-volume1
</strong></code></pre>

Mount the volume in the newly created directory.

<pre data-title="Command."><code><strong>sudo mount /dev/disk/by-id/wwn-0x3fa0d41402141ef7-part1 /mnt/lab-volume1
</strong></code></pre>

To automatically mount the volume on server boot, add it to `/etc/fstab`. For more information about the `nofail` option (whether to include it or not), see [Format and mount a volume](/products/storage/block-storage/how-tos/format-and-mount-a-volume.md).

Remember to change the WWN and the mount point to match your system and volume.

{% code title="New line in /etc/fstab." %}

```
/dev/disk/by-id/wwn-0x3fa0d41402141ef7-part1 /mnt/lab-volume1 ext4 defaults,nofail 0 0
```

{% endcode %}

Reload the `systemd` daemon so it recognizes the new mount.

<pre data-title="Command."><code><strong>sudo systemctl daemon-reload
</strong></code></pre>

To make sure you typed everything correctly, unmount the volume and mount it again by using only the mount point.

<pre data-title="Commands and output. Commands are highlighted."><code><strong>sudo umount /mnt/lab-volume1
</strong><strong>sudo mount /mnt/lab-volume1
</strong></code></pre>

If no error messages are shown, the line is correct.

Remember to remove the line from `/etc/fstab` if you detach the block storage volume from the VM.
{% endtab %}

{% tab title="Windows Server" %}
Windows automatically mounts the volume once it's formatted using the above steps. You should be able to see the new block storage volume in **This PC**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F4uHLzHCbmEiyNrhCk0cz%2Fwindow-server-2025-this-pc.png?alt=media&amp;token=8764efc6-7321-4367-8db2-faf3c8bbd421" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
