Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated numbering formatting


Panel
bordertrue
titleThis page:

Table of Contents
maxLevel1

Create a volume

1.
  1. Log in to the Nimbus dashboard.
2.
  1. Navigate to Volumes > Volumes, then click the + Create Volume button. 
3.
  1. On the Create Volume dialog window, enter a volume name and choose a size of your choice in gigabytes, then click the Create Volume button. 
4.
  1. On the Volumes page, click the drop-down arrow next to Edit Volume and select Manage Attachments.

    Image Modified
5.
  1. Select the instance you want to attach this volume to.
6.
  1. Click
the
  1. the Attach Volume
button
  1.  button.



Format and mount a filesytem


Once you have attached the volume as above, confirm that the volume is properly attached.1.

  1. Use ssh to log in to your instance from a terminal.
2.
  1. Check that you have properly attached the volume:

    Code Block
    >sudo fdisk -l /dev/vdc


    You should see this returned:

    Code Block
    Disk /dev/vdc: 20 GiB, 21474836480 bytes, 41943040 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
3.

  1. (Only new volumes) Format the volume. WARNING: Do this step only for new volumes. Do NOT do this step for existing volumes, as it will wipe out the volume:

    Code Block
    >sudo mkfs.ext4 /dev/vdc
4.

  1. Mount the volume to a new directory

called
  1. called /data:

    Code Block
    >sudo mkdir /data
    >sudo mount /dev/vdc /data
5.

  1. Check your new /data volume:

    Code Block
    >df -h | grep vdc


You have now successfully attached and mounted your storage volume.