Last update at :2024-06-16,Edit by888u
I bought buyvm’s VPS, and then bought buyvm’s block storage (Block Storage Slabs), but I don’t know how to mount this block storage to the VPS to make the hard disk larger for use? Here we will give you a simple tutorial. If you follow the steps, you should be able to mount it relatively easily!
Step one: Log in to buyvm’s VPS and block storage management backend
https://manage.buyvm.net/
Step 2: Click "Storage Volumes" to manage
Step 3: Load block storage to the corresponding VPS
If you buy multiple VPS, please pay attention to which VPS you want to mount the block storage to when mounting. Don’t make a mistake:
Close the web page of the management background. Nothing will happen. Next, we log in to SSH and use the command:
Let’s first look at the specific size of the local file system, but we don’t see the block storage:
Command: df -lh
Let’s take a look at the hard disk and partitions. There is /dev/vda, 10G; there is also /dev/sda, 250G, no partitions
Command: fdisk -l
Next we need to partition the /dev/sda 256G block:
Command 1: parted /dev/sda mklabel gpt
Command 2: parted /dev/sda mkpart primary 0% 100%
Let’s take a look again now:
Next create an ext4 file system for this /dev/sda1:
Command: mkfs.ext4 /dev/sda1
The next step is to mount /dev/sda1. We need to check the UUID of this block storage?
Command: blkid
Next we need to add the UUID to the /etc/fstab file and add a line in it, as follows
UUID=786f36a6-25f5-45ac-91fe-738184d22565 /data ext4 defaults 0 0
Note: /data, this is a specific directory. You can choose this according to your own needs. For example, the oneinstack one-click installation used by the webmaster, the website directory is under /data/, what I hope is to put the blocks of this large hard disk The storage is all for the website, so I will mount it directly to /data/. If the /data/ directory itself does not exist, create a directory. If the directory itself exists, omit the step of creating the directory. The command to create the directory is: mkdir /data
Mount it!
Command: mount -a
Finally, check this out:
Okay, let’s stop here first!
Recommended site searches: online registration query, Hong Kong vps host, one-yuan domain name, IP online query, forum registration, Google's permanent free server, registration-free space, how to query the domain name registration number, how much does server defense cost, the best United States Server,
发表评论