Last update at :2024-01-25,Edit by888u
We know that BuyVM also provides additional Block Storage Slabs (storage block) products, and the price is also quite cheap. 256GB storage only costs $1.25/month. After purchasing Block Storage Slabs, you can mount it on our VPS host. It turns into a larger disk in seconds. Today we will take a look at how to mount a hard disk on BuyVM.
BuyVM official website: https://frantech.ca/
1. Panel operation
First of all, after we purchase Block Storage Slabs and activate it, we will receive product information emails. We can log in to the Stallion panel to view the storage information (click Storage Volumes at the top of the panel or click Volumes on the VPS management page).
Then we allocate 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 click Attach Volume after selection.
After completing the allocation, our operation on the VPS management panel is completed. Next, we log in to the VPS via ssh and start mounting 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. What I bought here is a 256GB storage.
The next thing we do is to check the storage block name number, format the storage block, and mount the storage to the mount point.
[root@zrblog ~]# ls /dev/disk/by-id/ ata-QEMU_DVD-ROM_QM00004 scsi-0BUYVM_SLAB_VOLUME-10811 #View storage block name number, etc. [root@zrblog ~]# mkfs.ext4 -F /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-10811 #Format storage block [root@zrblog ~]#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 boot, edit /etc/fstab, and add a line:
/dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-10811 /home ext4 defaults,nofail,discard 0 0After that, you can restart and check whether it is mounted normally after booting. The overall operation is relatively convenient. In the same way, we can also uninstall and deallocate the storage blocks, etc., and just reverse the operation.
This article is reproduced from Zhao Rong’s tribe: https://www.zrblog.net/26280.html
Recommended site search: US server, expired registered domain name query, game high defense server, ip purchase, broadband ip address query, ip138 website query, vps server, domain name registration center, foreign virtual host, Ministry of Industry and Information Technology website registration System,
发表评论