BuyVM Mount Hard Drive Method (Block Storage Slabs)

BuyVM Mount Hard Drive Method (Block Storage Slabs)

This month we have shared information about BuyVM's products, reviews, and Stallion panel usage. We know that BuyVM also provides additional Block Storage Slabs products, and the price is quite cheap, 256GB storage is only $1.25/month. After purchasing Block Storage Slabs, you can mount it on your VPS host and turn it into a large disk machine in seconds. Today, let's take a look at how to mount a hard disk with BuyVM.

BuyVM official website: https://buyvm.net/

1. Panel Operation

First, after we purchase Block Storage Slabs and activate it, we will receive a product information email. We can log in to the Stallion panel to view the storage information (click Storage Volumes at the panel header or click Volumes on the VPS management page).

Then we assign the storage block to the VPS host (as shown below, click Attach To Virtual Server on the right)

On the page that pops up below, we need to select our own VPS host in the Attach To box, and then click Attach Volume.

After completing the allocation, our operations in the VPS management panel are completed. Next, we ssh into the VPS and start mounting it in the system.

2. System Operation

Log in to the VPS host and use the command fdisk -l to see the disk space we allocated, as shown in the red box in the figure below. I bought a 256GB storage here.

Next we will check the storage block name number, format the storage block, and mount the storage to the mount point.

 [root@ ~]# ls /dev/disk/by-id/
ata-QEMU_DVD-ROM_QM00004 scsi-0BUYVM_SLAB_VOLUME-10811
#View the storage block name number, etc. [root@ ~]# mkfs.ext4 -F /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-10811
#Format storage block [root@ ~]#mount -o discard,defaults /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-10811 /home
#Mount the storage block to /home. If you need to mount it to other directories, please create the relevant directories first.

After completion, we can use df -lh to check whether the partition is normal, and then add an automatic mount at startup. Edit /etc/fstab and add a line:

 /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-10811 /home ext4 defaults,nofail,discard 0 0

After that, you can restart to check whether it can be mounted normally. The overall operation is relatively convenient. Similarly, we can also uninstall and deallocate storage blocks, etc., and perform the reverse operation.

<<:  SpartanHost Seattle E5 series VPS restock, 10Gbps port, NVMe hard drive, 20% off monthly payment

>>:  RAKsmart: 50% off all VPS hosting, VPS in Hong Kong/Japan/San Jose starting from $2.63 per month

Recommend

How to apply code intelligence technology to daily development?

01/ Let’s start with the developers’ worries When...

This article teaches you how to use C code to parse a network data packet?

[[416402]] The purpose of this article is to rand...

Why does 6G run so fast?

The latest 6G speed created by Chinese scientists...