跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 云筏 2H4G200G HZ德国机房 VPS 通过 NFS 挂载 HostHatch 荷兰大盘鸡
未分類
11 2 月 2020

云筏 2H4G200G HZ德国机房 VPS 通过 NFS 挂载 HostHatch 荷兰大盘鸡

zxxx 大佬有话说 : 2019-12-16 10:07:14

云筏 2H4G200G HZ德国机房 VPS 通过 NFS 挂载 HostHatch 荷兰大盘鸡

本帖最后由 zxxx 于 2019-12-16 10:07 编辑

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

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

root@CR-191214-S4FM:~# df -h
Filesystem      SizeUsed Avail Use% Mounted on
udev            1.9G   01.9G   0% /dev
tmpfs         386M   41M345M11% /run
/dev/vda1       197G 1001M186G   1% /
tmpfs         1.9G   01.9G   0% /dev/shm
tmpfs         5.0M   05.0M   0% /run/lock
tmpfs         1.9G   01.9G   0% /sys/fs/cgroup
tmpfs         386M   0386M   0% /run/user/0
root@CR-191214-S4FM:~# free -h
            total      used      free      sharedbuff/cache   available
Mem:          3.8Gi      67Mi       3.5Gi      40Mi       185Mi       3.5Gi
Swap:            0B          0B          0B
root@CR-191214-S4FM:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model         : 62
model name      : Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
stepping      : 4
microcode       : 0x1
cpu MHz         : 3499.998
cache size      : 12288 KB
physical id   : 0
siblings      : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid: 0
fpu             : yes
fpu_exception   : yes
cpuid level   : 13
wp            : yes
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
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips      : 6999.99
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

HostHatch 荷兰存储机器信息

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

root@server:~# df -h
Filesystem      SizeUsed Avail Use% Mounted on
udev            228M   0228M   0% /dev
tmpfs            49M1.6M   47M   4% /run
/dev/vda1       246G1.2G245G   1% /
tmpfs         242M   0242M   0% /dev/shm
tmpfs         5.0M   05.0M   0% /run/lock
tmpfs         242M   0242M   0% /sys/fs/cgroup
tmpfs            49M   0   49M   0% /run/user/0

root@server:~# free -h
            total      used      free      sharedbuff/cache   available
Mem:          483Mi      81Mi       220Mi       1.0Mi       180Mi       387Mi
Swap:         511Mi          0B       511Mi

root@server:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model         : 63
model name      : Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
stepping      : 2
microcode       : 0x1
cpu MHz         : 2399.998
cache size      : 15360 KB
physical id   : 0
siblings      : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid: 0
fpu             : yes
fpu_exception   : yes
cpuid level   : 13
wp            : yes
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
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips      : 4799.99
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

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

IP 1.2.3.4

apt install nfs-kernel-server &&
mkdir /nfs2 &&
cat << EOF >> /etc/exports
/nfs24.3.2.1(rw,no_root_squash,no_subtree_check,sync,fsid=2)
EOF

exportfs -ra &&
systemctl restart nfs-server.service

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

IP 4.3.2.1

apt install nfs-common &&
mkdir /nfs
mount -t nfs 1.2.3.4:/nfs2 /nfs

测试读写速度

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

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

real    0m0.150s
user    0m0.017s
sys   0m0.094s

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

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

开机自动挂载

cat << "EOF" >> /etc/fstab
1.2.3.4:/nfs /nfs nfs defaults 0 0
EOF

yanaxiao 大佬有话说 : 2019-12-16 10:10:21

这两个鸡不在同机房吧?这样算走内网还是外网?

zxxx 大佬有话说 : 2019-12-16 10:13:02

yanaxiao 大佬有话说 : 2019-12-16 10:10
这两个鸡不在同机房吧?这样算走内网还是外网?

不同商家,不同机房,走外网。

葱油饼董事长 大佬有话说 : 2019-12-16 10:13:07

yanaxiao 大佬有话说 : 2019-12-16 10:10
这两个鸡不在同机房吧?这样算走内网还是外网?

肯定是外网啊!

zxxx 大佬有话说 : 2019-12-16 10:14:29

荷兰鸡 DD 测试

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

real    0m1.167s
user    0m0.017s
sys   0m0.749s

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

real    0m4.890s
user    0m0.036s
sys   0m0.502s

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

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

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

real    0m6.430s
user    0m0.178s
sys   0m1.117s

zoenreo 大佬有话说 : 2019-12-16 10:26:29

你拿云筏的大盘鸡挂就好了,我之前就这么挂的

zxxx 大佬有话说 : 2019-12-16 10:36:34

zoenreo 大佬有话说 : 2019-12-16 10:26
你拿云筏的大盘鸡挂就好了,我之前就这么挂的

好的,看看论坛有没有出的。

天蓝色的忧伤 大佬有话说 : 2019-12-30 22:05:25

大佬能不能问下,我的挂载提示mount.nfs: mount system call failed这是为什么啊

zxxx 大佬有话说 : 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
网上找的,你看看

xiaoseng 大佬有话说 : 2020-1-7 12:03:48

丢给我吧。 QQ 9805173

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具