BuyVM提供的Block Storage Slab(存储块)从256GB-10TB,最低$1.25/月起,
而且用的是加币来计算,这样我们就可以构建特别实惠的大容量VPS。
购买以后先到后台:https://manage.buyvm.net/ 设置挂载的VPS
点选 Storage Volunmes --点击右侧齿轮图标x
选择 Attach To Virtual Server 选择你要挂载的VPS

然后登陆VPS

fdisk -l 查看

[[email protected] ~]# fdisk -l
Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x81*2

Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 41940735 41938688 20G 83 Linux

Disk /dev/sda: 256 GiB, 274877906944 bytes, 536870912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[[email protected] ~]# df -Th 查看文件系统类型 发现是ext4
/dev/vda1 ext4 20G 2.1G 17G 12% /

查看存储盘ID
[[email protected] ~]# ls /dev/disk/by-id/
ata-QEMU_DVD-ROM_QM00004 scsi-0BUYVM_SLAB_VOLUME-12*

格式化此存储块:

mkfs.ext4 -F /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-1***2

挂载存储块到/home

mount -o discard,defaults /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-1***2 /home

编辑/etc/fstab 设置开机启动

/dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-1***2 /home ext4 defaults,nofail,discard 0 0

然后 reboot ,df -lh。

标签: buyvm, 挂载存储盘, ext4, Block Storage Slabs

添加新评论