Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

SIRSTEVEHQ CP Block Storage

Introduction

SIRSTEVEHQ's Block Storage technology allows you to add additional, high performance storage to your VPS. The cloud data storage is highly available, redundant, and SSD backed.

If you need big data cloud storage, you can deploy volumes as large as 10,000 GB.

Add Block Storage

To add Block Storage to your SIRSTEVEHQ VPS, please contact our Sales Team through your SIRSTEVEHQ account. Our team will provide you with a list of available block storage options along with their respective prices, allowing you to choose the one that best suits your needs. Once you’ve made your selection, an invoice will be generated for payment, and upon confirmation, the block storage will be assigned to your VPS.

Mounting Block Storage on a Linux OS

Note: The command used below may destroy existing data volumes. The instructions below are for new block storage volumes without data. Before you proceed it's highly advised to back up your files. You should verify your backups and store them separately from the server instance. SIRSTEVEHQ snapshots and backups of the server instance do not include block storage.

By default we do not create any file systems on the block storage volumes. You can use the below steps to initialise, delete all data and mount the block storage volume.

  1. Check the device name on the Manage Disks page for the VPS accessible from the VPS's overview page. The first block storage device will be connected to your server as /dev/vdb. Additional devices will be labeled as /dev/vdc, /dev/vdd etc. You can use the lsblk command to verify the devices name. The below example shows a 50GB volume available as /dev/vdb

    # lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sr0     11:0    1  370K  0 rom
    vda    252:0    0   50G  0 disk
    └─vda1 252:1    0   50G  0 part /
    vdb    252:16   0   50G  0 disk
    
    
  2. Create a new disk label using parted.

     
    
    # parted -s /dev/vdb mklabel gpt
    
    
  3. Make a primary partition to fill the entire disk.

     
    
    # parted -s /dev/vdb unit mib mkpart primary 0% 100%
    
    
  4. Create an EXT4 filesystem on the primary partition and format it.

     
    
    # mkfs.ext4 /dev/vdb1
    
    
  5. Make a mount point.

     
    
    # mkdir /mnt/blockstorage
    
    
  6. Add a blank line and a mount entry to /etc/fstab. This will automatically mount the block storage at /mnt/blockstorage at reboot.

     
    
    # echo >> /etc/fstab
    # echo /dev/vdb1 /mnt/blockstorage ext4 defaults,noatime,nofail 0 0 >> /etc/fstab 
    
    

    You can also manually mount the block storage without rebooting.

     
    
    # mount /mnt/blockstorage
    
    
    

Mounting Block Storage on a Windows OS

Note: The command used below may destroy existing data volumes. The instructions below are for new block storage volumes without data. Before you proceed it's highly advised to back up your files. You should verify your backups and store them separately from the server instance. SIRSTEVEHQ snapshots and backups of the server instance do not include block storage.

By default we do not create any file systems on the block storage volumes. You can use the below steps to initialise, delete all data and mount the block storage volume.

The following instructions are based on a Windows Server 2016 however the basic process is very similar for all current versions of Windows.

  1. Click "Start", search for "Computer Management", and launch it.

  2. Select "Storage -> Disk Management" on the left side menu.

  3. The right panel displays the current disk configuration. The first block storage device connected to your server is usually Disk 1. Additional devices will be Disk 2, Disk 3, and so forth. This example shows a 50 GB volume as Disk 1.

    Windows computer management

  4. If the disk is offline, right-click on the new disk volume and select Online.

    Disk 1 online

  5. Right-click on the new disk volume and select Initialize.

    Initialise disk

  6. Select MBR or GPT partition style and click OK.

    Partition style

  7. Right click on the Unallocated Space and select New Simple Volume.

    New simple volume dropdown

    Follow the wizard and format the attached volume.

How to Upgrade Block Storage

There are two steps to upgrading Block Storage. You'll first need to upgrade the Block Storage in your control panel. You'll then need to resize the file system in the instance OS.

Upgrade block storage size

First navigate to Manage VPS within your account. Then Options > Manage > Manage Disks. Then under Current Storage on this page, under Actions you can use the drop down on a current Block Storage device to select a larger disk to upgrade to. You then just need to press the Upgrade button.

Resize the filesystem - Linux

You can resize the Block Storage to reflect the changes made in your control panel using the growpart tool. This tool is provided by cloud-init and is available for all major Linux distributions.

  1. You'll first need to unmount the block storage.

    # umount /mnt/blockstorage
    
  2. Use the lsblk command to verify the partition name. This example shows a 60 GB partition as /dev/vdb1. Note that the mountpoint is blank, because it was dismounted in step 1.

    # lsblk
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sr0     11:0    1  370K  0 rom
    vda    252:0    0   50G  0 disk
    └─vda1 252:1    0   50G  0 part /
    vdb    252:16   0   60G  0 disk
    └─vdb1 252:17   0   60G  0 part
    
  3. Now we grow the partition to fill the available block storage space.

    # growpart /dev/vdb 1
    
  4. Now we force a filesystem check before resizing.

    # e2fsck -fp /dev/vdb1
    
  5. Resize the filesystem to fill the entire partition.

    # resize2fs /dev/vdb1
    
  6. Remount the block storage.

    # mount /mnt/blockstorage
    

Resize the filesystem - Windows

  1. Click "Start", search for "Computer Management", and launch it.

  2. Select "Storage -> Disk Management" on the left side menu.

  3. The right pane displays the current disk configuration. The block storage device will have new unallocated space available. Right-click on the volume and select Extend Volume... as below.

    Extend disk volume

    Then follow the wizard to extend the volume.

How to Downgrade Block Storage

It's not possible to perform a downgrade or "shrink" block storage. If you'd like to move your files to a smaller block storage device, perform these steps:

  1. Make a backup of your block storage volume.
  2. Check your files to determine the space needed. Windows users can use Windows Explorer, while Linux users may want to use df.
  3. Purchase a new Block Storage device of the correct size.
  4. Mount the new volume on your VPS.
  5. Copy your files from the larger block storage volume to the new, smaller volume. Use the tools appropriate for your platform.
  6. Unmount the Block Storage device from your VPS.
  7. Reboot your server instance and verify your new volume is correct.
    Note: Linux instances need to remove the any references to the block storage volume from the /etc/fstab file as well to prevent system boot failure due to the OS waiting on a drive that no longer exists.
  8. When satisfied with the new volume, cancel the old block storage device from your SIRSTEVEHQ CP account.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I raise an additional IP address on my CentOS virtual machine?

You can buy additional IPs for your SIRSTEVEHQ CP virtual machine by contacting our support team....

Building a MySQL instance on CentOS 7 - SIRSTEVEHQ CP

You might need a larger database - for large ecommerce stores or complex sites, for example. To...

Can I install Xdebug on the shared platform? - SIRSTEVEHQ CP

No. Xdebug can't be installed on the shared platform (WordPress-Optimised Hosting and Cloud...

Can I install ZeroMQ on the shared hosting platform? - SIRSTEVEHQ CP

No.  ZeroMQ can't be installed on the shared platform (Cloud Hosting & WordPress Hosting) as...

Can I upgrade from an Unmanaged VPS to a SIRSTEVEHQ Cloud?

Unmanaged VPS and SIRSTEVEHQ Cloud are different services. So it isn't possible to simply upgrade...