全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1767|回复: 10

[不限流量] 云筏 2H4G200G HZ德国机房 VPS 通过 NFS 挂载 HostHatch 荷兰大盘鸡

[复制链接]
发表于 2019-12-16 10:07:14 | 显示全部楼层 |阅读模式
本帖最后由 zxxx 于 2019-12-16 10:07 编辑

云筏 2H4G200G HZ德国机房机器信息

双核 E5-1650 v2 @ 3.50GHz
RAM 3.8 GB
硬盘 197 GB
流量 2T
网卡 1 GBps
续费 24¥/月

  1. root@CR-191214-S4FM:~# df -h
  2. Filesystem      Size  Used Avail Use% Mounted on
  3. udev            1.9G     0  1.9G   0% /dev
  4. tmpfs           386M   41M  345M  11% /run
  5. /dev/vda1       197G 1001M  186G   1% /
  6. tmpfs           1.9G     0  1.9G   0% /dev/shm
  7. tmpfs           5.0M     0  5.0M   0% /run/lock
  8. tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
  9. tmpfs           386M     0  386M   0% /run/user/0
  10. root@CR-191214-S4FM:~# free -h
  11.               total        used        free      shared  buff/cache   available
  12. Mem:          3.8Gi        67Mi       3.5Gi        40Mi       185Mi       3.5Gi
  13. Swap:            0B          0B          0B
  14. root@CR-191214-S4FM:~# cat /proc/cpuinfo
  15. processor       : 0
  16. vendor_id       : GenuineIntel
  17. cpu family      : 6
  18. model           : 62
  19. model name      : Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
  20. stepping        : 4
  21. microcode       : 0x1
  22. cpu MHz         : 3499.998
  23. cache size      : 12288 KB
  24. physical id     : 0
  25. siblings        : 1
  26. core id         : 0
  27. cpu cores       : 1
  28. apicid          : 0
  29. initial apicid  : 0
  30. fpu             : yes
  31. fpu_exception   : yes
  32. cpuid level     : 13
  33. wp              : yes
  34. flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust smep erms xsaveopt arat md_clear
  35. bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
  36. bogomips        : 6999.99
  37. clflush size    : 64
  38. cache_alignment : 64
  39. address sizes   : 46 bits physical, 48 bits virtual
  40. power management:
复制代码


HostHatch 荷兰存储机器信息

单核 E5-2620 v2 @ 2.40 GHz
RAM 483 MB
SWAP 511 MB
硬盘 246 GB
网卡 1 GBps
流量 1T
续费 15刀


  1. root@server:~# df -h
  2. Filesystem      Size  Used Avail Use% Mounted on
  3. udev            228M     0  228M   0% /dev
  4. tmpfs            49M  1.6M   47M   4% /run
  5. /dev/vda1       246G  1.2G  245G   1% /
  6. tmpfs           242M     0  242M   0% /dev/shm
  7. tmpfs           5.0M     0  5.0M   0% /run/lock
  8. tmpfs           242M     0  242M   0% /sys/fs/cgroup
  9. tmpfs            49M     0   49M   0% /run/user/0

  10. root@server:~# free -h
  11.               total        used        free      shared  buff/cache   available
  12. Mem:          483Mi        81Mi       220Mi       1.0Mi       180Mi       387Mi
  13. Swap:         511Mi          0B       511Mi

  14. root@server:~# cat /proc/cpuinfo
  15. processor       : 0
  16. vendor_id       : GenuineIntel
  17. cpu family      : 6
  18. model           : 63
  19. model name      : Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
  20. stepping        : 2
  21. microcode       : 0x1
  22. cpu MHz         : 2399.998
  23. cache size      : 15360 KB
  24. physical id     : 0
  25. siblings        : 1
  26. core id         : 0
  27. cpu cores       : 1
  28. apicid          : 0
  29. initial apicid  : 0
  30. fpu             : yes
  31. fpu_exception   : yes
  32. cpuid level     : 13
  33. wp              : yes
  34. flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt
  35. bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
  36. bogomips        : 4799.99
  37. clflush size    : 64
  38. cache_alignment : 64
  39. address sizes   : 46 bits physical, 48 bits virtual
  40. power management:
复制代码


配置 HostHatch 荷兰大盘鸡作为 NFS 服务器

IP 1.2.3.4

  1. apt install nfs-kernel-server && \
  2. mkdir /nfs2 && \
  3. cat << EOF >> /etc/exports
  4. /nfs2  4.3.2.1(rw,no_root_squash,no_subtree_check,sync,fsid=2)
  5. EOF

  6. exportfs -ra && \
  7. systemctl restart nfs-server.service
复制代码


配置云筏 2H4G200G HZ德国机房机器作为 NFS 客户机

IP 4.3.2.1

  1. apt install nfs-common && \
  2. mkdir /nfs
  3. mount -t nfs 1.2.3.4:/nfs2 /nfs
复制代码


测试读写速度

  1. root@CR-191214-S4FM:/nfs# time dd if=/dev/zero of=/nfs/128MB.bin bs=128k count=1024
  2. 1024+0 records in
  3. 1024+0 records out
  4. 134217728 bytes (134 MB, 128 MiB) copied, 4.93679 s, 27.2 MB/s

  5. real    0m5.176s
  6. user    0m0.000s
  7. sys     0m0.824s
  8. root@CR-191214-S4FM:/nfs#  time dd if=/nfs/256MB.bin of=/dev/null bs=256k count=1024
  9. 1024+0 records in
  10. 1024+0 records out
  11. 268435456 bytes (268 MB, 256 MiB) copied, 0.123009 s, 2.2 GB/s

  12. real    0m0.150s
  13. user    0m0.017s
  14. sys     0m0.094s
复制代码



为什么这个写入速度这么低呢?



写入速度 27.2 MB/s
读取速度 2.2 GB/s


开机自动挂载

  1. cat << "EOF" >> /etc/fstab
  2. 1.2.3.4:/nfs /nfs nfs defaults 0 0
  3. EOF
复制代码

发表于 2019-12-16 10:10:21 来自手机 | 显示全部楼层
这两个鸡不在同机房吧?这样算走内网还是外网?
 楼主| 发表于 2019-12-16 10:13:02 | 显示全部楼层
yanaxiao 发表于 2019-12-16 10:10
这两个鸡不在同机房吧?这样算走内网还是外网?

不同商家,不同机房,走外网。
发表于 2019-12-16 10:13:07 | 显示全部楼层
yanaxiao 发表于 2019-12-16 10:10
这两个鸡不在同机房吧?这样算走内网还是外网?

肯定是外网啊!
 楼主| 发表于 2019-12-16 10:14:29 | 显示全部楼层
荷兰鸡 DD 测试

  1. root@server:~# time dd if=/dev/zero of=512MB.bin bs=64k count=8192
  2. 8192+0 records in
  3. 8192+0 records out
  4. 536870912 bytes (537 MB, 512 MiB) copied, 1.03465 s, 519 MB/s

  5. real    0m1.167s
  6. user    0m0.017s
  7. sys     0m0.749s

  8. root@server:~# time dd if=512MB.bin of=/dev/null bs=64k count=8192
  9. 8192+0 records in
  10. 8192+0 records out
  11. 536870912 bytes (537 MB, 512 MiB) copied, 4.82921 s, 111 MB/s

  12. real    0m4.890s
  13. user    0m0.036s
  14. sys     0m0.502s

  15. root@server:~# time dd if=/dev/zero of=1GB.bin bs=8k count=131072
  16. 131072+0 records in
  17. 131072+0 records out
  18. 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.75084 s, 226 MB/s

  19. real    0m5.107s
  20. user    0m0.173s
  21. sys     0m1.538s

  22. root@server:~# time dd if=1GB.bin of=/dev/null bs=8k count=131072
  23. 131072+0 records in
  24. 131072+0 records out
  25. 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.35079 s, 169 MB/s

  26. real    0m6.430s
  27. user    0m0.178s
  28. sys     0m1.117s
复制代码
zoenreo 该用户已被删除
发表于 2019-12-16 10:26:29 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2019-12-16 10:36:34 | 显示全部楼层
zoenreo 发表于 2019-12-16 10:26
你拿云筏的大盘鸡挂就好了,我之前就这么挂的

好的,看看论坛有没有出的。
发表于 2019-12-30 22:05:25 | 显示全部楼层
大佬能不能问下,我的挂载提示mount.nfs: mount system call failed这是为什么啊
 楼主| 发表于 2019-12-30 22:13:06 | 显示全部楼层
天蓝色的忧伤 发表于 2019-12-30 22:05
大佬能不能问下,我的挂载提示mount.nfs: mount system call failed这是为什么啊
有可能是版本不匹配,解决方法很简单,加参数 vers=3
mount -t nfs -o vers=3,nolock,rw remote_ip:remote_dir local_dir

网上找的,你看看
发表于 2020-1-7 12:03:48 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-7 11:31 , Processed in 0.079047 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表