Configure an additional volume

Preamble

You have probably created a new additional volume, or an additional disk.

This guide will explain how to create an additional disk, and then how to attach it to one of your instances.

Prerequisites

  • An instance
  • An additional volume attached

Disk mount

From an instance on Linux

  • List disks
sudo fdisk -l /dev/vd*

/dev/vda generally corresponds to the disk of your instance, /dev/vdb will thus be the first additional volume. Some operating systems recognize disks using another driver. In this case, they appear as /dev/sd*.

  • Create a partition with parted
sudo parted /dev/vdb
mktable gpt
mkpart primary ext4 512 100%
quit
  • Format the partition
sudo mkfs.ext4 /dev/vdb1
  • Mount the partition
sudo mount /dev/vdb1 /mnt
  • Checking the mount
mount /dev/vdb1

For a persisting disk mount, you will need to change the /etc/fstab file: - Retrieve the block ID - Add your disk in the /etc/fstab file:

From an instance on Windows

  • Access the disk management tool

public-cloud

  • Format the disk

public-cloud

Please note:

If the message “offline” appears (the disk is offline because of policy set by an administrator), you will need to change the disk attributes by right-clicking your disk, and then selecting “Online” and “Initialize” or by using Diskpart:

  • Launch Powershell or the command prompt
  • Checking the strategy followed
  • Change the strategy
  • Applying the strategy on the additional disk
  • Initialize the disk from the disk manager and then format the disk.

Once the disk is formated, you can easily access it from your file explorer.

public-cloud

 

 

  • 2 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Become root and select a password

To carry out certain actions, you may need to become root. These include: Installing...

Changing the hostname of an instance

The cloud-init program not only lets you configure your Public Cloud instance when you create it...

Create an instance in your customer account

The Public Cloud lets you create virtual servers (instances) quickly and easily in just a few...

Logging in to Public Cloud Instance

Objective Logging in to your Public Cloud instance is similar to a standard login for a VPS or...

Install Wordpress on an instance

WordPress is a content management system (CMS) which lets you create your website quickly and...