Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configuring the extra volume in the new instance

That extra volume is not mounted (or even formatted) by default. You must log in to your freshly created instance, and then follow the instructions below:

  1. You may need to trigger a rescan of the new block device, typically named vd*. We assume here the name of the extra volume is vdb:
No Format
sudo echo 1 > /sys/class/block/vdb/device/rescan

or, alternatively:

No Format
sudo apt-get install scsitools # or yum install scitools for CentOS
sudo rescan-scsi-bus.sh

Then you will be able to see the vdb disk when you run lsblk.

  1. Create a partition and format it. You may use parted to do all in one go:

    No Format
    sudo parted -s -a optimal -- /dev/vdb mkpart primary ext4 0% 100%



    Info

    You may partition the disk differently and use any other filesystem type.


  2. Add this entry to your VM's  /etc/fstab:

    No Format
    echo "/dev/vdb1 /data1 ext4 defaults 0 0" | sudo tee -a /etc/fstab > /dev/null

    If your VM uses disk IDs then use the following command to find the vdb ID and amend the line above as required:

    No Format
    ​echo "UID-$(blkid /dev/vdb) /data1 ext4 defaults 0 0" | sudo tee -a /etc/fstab > /dev/null


  3. Make the directory where you are mounting your filesystem. Make sure you use the same path as defined in fstab:

    No Format
    sudo mkdir /data1


  4. Mount the file system

    No Format
    sudo mount -av


...

Content by Label
showLabelsfalse
max5
spaces~usxa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("volume","morpheus-web","disk","storageprovisioning") and type = "page" and space = "~usxa"
labelsstorage disk volume morpheus-web

...

Page properties
hiddentrue


Related issues