zxxx 大佬有话说 : 2019-12-16 09:01:43
Contabo SSD S 通过 NFS 挂载 HostHatch 荷兰大盘鸡
本帖最后由 zxxx 于 2019-12-16 09:01 编辑
Contabo SSD S 机器信息
四核 E5-2630 v4 @ 2.20 GHz
RAM 7.8 GB
硬盘 195 GB
流量 无限
网卡 200 MBps
续费 5欧/月
root@contabo:~# df -h
Filesystem SizeUsed Avail Use% Mounted on
udev 3.9G 03.9G 0% /dev
tmpfs 798M 33M766M 5% /run
/dev/sda2 195G6.7G179G 4% /
tmpfs 3.9G 03.9G 0% /dev/shm
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 3.9G 03.9G 0% /sys/fs/cgroup
/dev/sda1 922M 56M803M 7% /boot
tmpfs 798M4.0K798M 1% /run/user/116
tmpfs 798M8.0K798M 1% /run/user/0
153.92.127.26:/nfs246G1.2G245G 1% /nfs
root@contabo:~# free -h
total used free sharedbuff/cache available
Mem: 7.8Gi 429Mi 7.1Gi 37Mi 274Mi 7.1Gi
Swap: 0B 0B 0B
root@contabo:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
stepping : 1
microcode : 0x1
cpu MHz : 2199.996
cache size : 16384 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid: 0
fpu : yes
fpu_exception : yes
cpuid level : 20
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 ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology 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 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat umip md_clear arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips : 4399.99
clflush size : 64
cache_alignment : 64
address sizes : 40 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 /nfs &&
cat << EOF >> /etc/exports
/nfs 4.3.2.1(rw,no_root_squash,no_subtree_check,sync,fsid=1)
EOF
exportfs -ra &&
systemctl restart nfs-server.service
配置 Contabo SSD S 机器作为 NFS 客户机
IP 4.3.2.1
apt install nfs-common &&
mkdir /nfs
mount -t nfs 1.2.3.4:/nfs /nfs
测试读写速度
root@contabo:/nfs# time dd if=/dev/zero of=/nfs/128MB.bin bs=128k count=1024
134217728 bytes (134 MB, 128 MiB) copied, 5.7442 s, 23.4 MB/s
root@contabo:/nfs# time dd if=/nfs/128MB.bin of=/dev/null bs=128k count=1024
134217728 bytes (134 MB, 128 MiB) copied, 6.37938 s, 21.0 MB/s
受限于 Contabo 的 200 MBps 网卡速度
写入速度 23.4 MB/s
读取速度 21.0 MB/s
开机自动挂载
cat << "EOF" >> /etc/fstab
1.2.3.4:/nfs /nfs nfs defaults 0 0
EOF
guonning2000 大佬有话说 : 2019-12-16 09:07:15
不错的说
edear 大佬有话说 : 2019-12-16 09:13:09
火钳刘明
如果是通过局域网来挂载,可能会快一些
any 大佬有话说 : 2019-12-16 09:15:24
为了这点存储空间,成本太高了
zxxx 大佬有话说 : 2019-12-16 09:32:36
用作备份的机器。
葱油饼董事长 大佬有话说 : 2019-12-16 09:44:04
这IO,石头盘啊。。。。备份大文件备份到什么时候
zxxx 大佬有话说 : 2019-12-16 09:45:52
葱油饼董事长 大佬有话说 : 2019-12-16 09:44
这IO,石头盘啊。。。。备份大文件备份到什么时候
一时冲动买回来了,慢慢吃灰喽
zxxx 大佬有话说 : 2019-12-16 09:47:45
葱油饼董事长 大佬有话说 : 2019-12-16 09:44
这IO,石头盘啊。。。。备份大文件备份到什么时候
用 25 MB/s 的速度,写满 250G 硬盘需要 2.777 个小时。
葱油饼董事长 大佬有话说 : 2019-12-16 09:54:33
zxxx 大佬有话说 : 2019-12-16 09:45
一时冲动买回来了,慢慢吃灰喽
外网挂载,存储鸡一样吃流量啊~!感觉没啥用。。。
zxxx 大佬有话说 : 2019-12-16 09:57:27
葱油饼董事长 大佬有话说 : 2019-12-16 09:54
外网挂载,存储鸡一样吃流量啊~!感觉没啥用。。。
只能用不到半年时间,到期扔了吧。