Background introduction
Buyvm, a well-known North American merchant, specializes in cost-effective VPS. One of its major advantages is that extremely cheap storage blocks are mounted to his VPS. The price is 1.25CAD (6.46CNY), per month, per 256G
Therefore, it is often used as a download machine, a network disk machine, a map machine, etc.
panel settings
To mount an external hard drive, first add it to the VPS where you need to add the hard drive in the control panel https://manage.buyvm.net/
VPS configuration
First check the hard disk situation, as shown in the following command and effect diagram, showing a 1T hard disk
fdisk -l
Then use the following command to retrieve the hard disk ID. The part at the beginning of Scsi as shown in the figure below, and the last number 12645 is the ID of this external hard disk. Please replace the following numbers according to the actual situation.
ls /dev/disk/by-id/
If you need to format, please run the following command, if you don’t format, there may be an error
mkfs.ext4 -F /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-12645
Then you can use the command or the pagoda panel to create a new directory for mounting
mkdir -p /ssd
Then mount to this directory with the command
mount -o discard,defaults /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-12645 /ssd
Then use the command or pagoda panel to set the permissions
chmod -R 777 /ssd/
Then check the current hard disk condition
df -h
Apparently already done
Then you need to start automatically or process daemon, the process daemon can use the process daemon manager of the pagoda, and the command to automatically run at startup is as follows
echo "/dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-12645 /ssd ext4 defaults 0 0" >> /etc/fstab
Finally, remember that the machine and the storage block must be used together, but you can give up the renewal fee. After all, the supply is not very sufficient. In addition, it is recommended to pay with Alipay, which is much cheaper.
Purchase address: https://my.frantech.ca/aff.php?aff=4329
For related articles, such as new information, mounting hard disk, adding IP , etc., please visit https://www.blueskyxn.com/tag/buyvm
This article is reprinted from: https://www.blueskyxn.com/202205/5984.html?utm_source=rss&utm_medium=rss&utm_campaign=buyvm-vps-%25e6%258c%2582%25e8%25bd%25bd%25e5%25a4%2596%25e6% 258c%2582%25e7%25a1%25ac%25e7%259b%2598%25e6%2596%25b9%25e6%25b3%2595%25ef%25bc%2588block-storage-slabs-%25e5%25ad%2598%25e5%2582%25a8 %25e5%259d%2597%25ef%25bc%2589
This site is for inclusion only, and the copyright belongs to the original author.