最近Buyvm 新增迈阿密地区,目前用的人比较少,应该炸得不会很厉害。
官网:点此直达
控制面板: https://manage.buyvm.net/
1、挂载
1、查看磁盘基本信息
fdisk -l
输入后信息如下
root@localhost:~# fdisk -l
Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 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: 0x132f3779
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 20969215 20967168 10G 83 Linux
Disk /dev/sda: 512 GiB, 549755813888 bytes, 1073741824 sectors
Disk model: SLAB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
2、对新添加的硬盘进行分区
fdisk /dev/sda
按以下顺序输入
root@localhost:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The old ext4 signature will be removed by a write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xea7e50e8.
Command (m for help): n #输入n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 2 #输入2
First sector (2048-1073741823, default 2048): #回车默认
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1073741823, default 1073741823): #回车默认
Created a new partition 2 of type 'Linux' and of size 512 GiB.
Command (m for help): w #输入w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
3、查看新分区
fdisk -l
出现新分区如下
root@localhost:~# fdisk -l
Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 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: 0x132f3779
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 20969215 20967168 10G 83 Linux
Disk /dev/sda: 512 GiB, 549755813888 bytes, 1073741824 sectors
Disk model: SLAB
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: 0xea7e50e8
Device Boot Start End Sectors Size Id Type
/dev/sda2 2048 1073741823 1073739776 512G 83 Linux
4、查看数据块编号
ls /dev/disk/by-id/
诸如“scsi-0BUYVM_SLAB_VOLUME-9812”编号的即为挂载的存储块
5、格式化
mkfs.ext4 -F /dev/disk/by-id/存储块编号
如出现错误:mkfs: failed to execute mkfs.ext4: No such file or directory 则需要安装 e4fsprogs
Debian/Ubuntu下
apt-get install e4fsprogs -y
CentOS下
yum install e4fsprogs -y
6、创建文件夹挂载或直接挂载(此处我直接挂载在/home目录下)
mount -o discard,defaults /dev/disk/by-id/数据库编号 /home
7、设置开机或重启自动挂载
echo '/dev/disk/by-id/数据库编号 /home ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
8、查看挂载情况
df -h
结果如下,即为挂载完成
root@localhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 228M 0 228M 0% /dev
tmpfs 49M 1.6M 47M 4% /run
/dev/vda1 9.8G 841M 8.5G 9% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 242M 0 242M 0% /sys/fs/cgroup
tmpfs 49M 0 49M 0% /run/user/0
/dev/sda 503G 73M 478G 1% /home
2、测试
系统信息
-> System Information
OS Release: Debian GNU/Linux "Buster" 10.10 (x86_64)
CPU Model: AMD Ryzen 9 3900X 12-Core Processor 3.79 GHz
CPU Cache Size: 512 KB
CPU Number: 1 vCPU
VirtReady: Yes (Nested Virtualization)
Virt Type: KVM
Memory Usage: 82.40 MB / 483.19 MB
Swap Usage: [ No Swapfile/Swap Partition ]
Boot Device: /dev/vda1
Disk Usage: 857.24 MB / 10253.46 MB
CPU Usage: 0.0% used, 0.0% iowait, 0.0% steal
Load (1/5/15min): 0.15 0.04 0.01
Uptime: 0 Days, 0 Hours, 16 Minutes, 1 Seconds
Kernel Version: 4.19.0-17-amd64
Network CC Method: cubic + pfifo_fast
CPU、内存、存储等
-> CPU Performance Test (Fast Mode, 1-Pass @ 5sec)
1 Thread Test: 1900 Scores
-> Memory Performance Test (Fast Mode, 1-Pass @ 5sec)
1 Thread - Read Test : 43980.38 MB/s
1 Thread - Write Test: 20230.24 MB/s
-> Disk Speed Test (4K Block/1M Block, Direct Mode)
Test Name Write Speed Read Speed
100MB-4K Block 34.9 MB/s (8508 IOPS, 3.01s) 37.5 MB/s (9165 IOPS, 2.79s)
1GB-1M Block 1.2 GB/s (1146 IOPS, 0.87s) 1.6 GB/s (1482 IOPS, 0.67s)
三网速度
ID 测速服务器信息 上传/Mbps 下载/Mbps 延迟/ms
3633 电信|上海 ↑ 287.64 ↓ 441.44 209.01
17145 电信|安徽合肥5G ↑ 317.14 ↓ 576.24 209.45
27594 电信|广东广州5G ↑ 312.97 ↓ 312.35 221.33
27575 电信|新疆乌鲁木齐 ↑ 38.51 ↓ 496.39 258.49
5396 电信|江苏苏州5G ↑ 337.84 ↓ 565.21 206.96
23844 电信|湖北武汉 ↑ 315.18 ↓ 400.45 221.06
29353 电信|湖北武汉5G ↑ 316.44 ↓ 326.39 209.55
28225 电信|湖南长沙5G ↑ 284.66 ↓ 307.67 256.91
24447 联通|上海5G ↑ 282.69 ↓ 240.18 248.85
27154 联通|天津5G ↑ 292.77 ↓ 222.71 248.36
26180 联通|山东济南5G ↑ 274.83 ↓ 393.46 261.91
26678 联通|广东广州5G ↑ 319.85 ↓ 431.97 224.10
13704 联通|江苏南京 ↑ 187.18 ↓ 183.09 253.28
30232 移动|内蒙呼和浩特5G↑ 265.21 ↓ 516.64 265.99
25858 移动|北京 ↑ 278.83 ↓ 494.30 256.49
16398 移动|贵州贵阳 ↑ 222.29 ↓ 387.64 314.23
——————————————————————————————————————————————————————————
测试完成, 本次测速耗时: 9 分 3 秒
当前时间: 2021-08-27 18:58:26
# 三网测速中为避免节点数不均及测试过久,每部分未使用所
# 有节点,如果需要使用全部节点,可分别选择三网节点检测