zxxx 大佬有话说 : 2019-12-16 08:33:19
HostHatch 伦敦套装 NFS 测试
本帖最后由 zxxx 于 2019-12-16 08:33 编辑
NVMe 机器信息
单核 E5-2690 v2 @ 3.00 GHz
RAM 996 MB
SWAP 127 MB
硬盘 16 GB
流量 5T
续费 15刀
root@server:~# df -h
Filesystem SizeUsed Avail Use% Mounted on
udev 488M 0488M 0% /dev
tmpfs 100M 12M 88M12% /run
/dev/vda1 16G948M 15G 6% /
tmpfs 499M 0499M 0% /dev/shm
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 499M 0499M 0% /sys/fs/cgroup
tmpfs 100M 0100M 0% /run/user/0
root@server:~# free -h
total used free sharedbuff/cache available
Mem: 996M 33M 744M 11M 218M 818M
Swap: 127M 0B 127M
root@server:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
stepping : 4
microcode : 0x1
cpu MHz : 2999.998
cache size : 16384 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 pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm ssbd ibrs ibpb stibp kaiser fsgsbase tsc_adjust smep erms xsaveopt arat
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips : 5999.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
存储机器信息
单核 E5-2690 v2 @ 3.00 GHz
RAM 492 MB
SWAP 511 MB
硬盘 246 GB
流量 1T
续费 15刀
root@server:~# df -h
Filesystem SizeUsed Avail Use% Mounted on
udev 236M 0236M 0% /dev
tmpfs 50M6.9M 43M14% /run
/dev/vda1 246G953M245G 1% /
tmpfs 247M 0247M 0% /dev/shm
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 247M 0247M 0% /sys/fs/cgroup
tmpfs 50M 0 50M 0% /run/user/0
root@server:~# free -h
total used free sharedbuff/cache available
Mem: 492M 34M 243M 6.8M 214M 438M
Swap: 511M 0B 511M
root@server:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
stepping : 4
microcode : 0x1
cpu MHz : 2999.998
cache size : 16384 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 pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm ssbd ibrs ibpb stibp kaiser fsgsbase tsc_adjust smep erms xsaveopt arat
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips : 5999.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
配置存储机器作为 NFS 服务器
内网IP 10.10.1.2
apt install nfs-kernel-server &&
mkdir /nfs &&
cat << EOF >> /etc/exports
/nfs 10.10.1.1(rw,no_root_squash,no_subtree_check,sync,fsid=1)
EOF
exportfs -ra &&
systemctl restart nfs-server.service
配置 NVMe 机器作为 NFS 客户机
内网IP 10.10.1.1
apt install nfs-common &&
mkdir /nfs
mount -t nfs 10.10.1.2:/nfs /nfs
测试读写速度
root@server:~# time dd if=/dev/zero of=/nfs/128MB.bin bs=128k count=1024
134217728 bytes (134 MB, 128 MiB) copied, 0.505629 s, 265 MB/s
root@server:~# time dd if=/nfs/128MB.bin of=/dev/null bs=128k count=1024
134217728 bytes (134 MB, 128 MiB) copied, 0.157881 s, 850 MB/s
写入速度 265 MB/s
读取速度 850 MB/s
开机自动挂载
cat << "EOF" >> /etc/fstab
10.10.1.2:/nfs /nfs nfs defaults 0 0
EOF
秋风下的落叶 大佬有话说 : 2019-12-16 08:46:37
nfs是什么意思?
hihelllo 大佬有话说 : 2019-12-16 08:53:52
感谢教程
秘密 大佬有话说 : 2019-12-16 08:54:18
感谢大佬,先收藏备份
zxxx 大佬有话说 : 2019-12-16 08:56:06
秋风下的落叶 大佬有话说 : 2019-12-16 08:46
nfs是什么意思?
NFS 网络文件系统是一种分布式文件系统协议,力求客户端主机可以访问服务器端文件,并且其过程与访问本地存储时一样,它由太阳微系统开发,于1984年发布。 它基于开放网络运算远程过程调用协议:一个开放、标准的RFC协议,任何人或组织都可以依据标准实现它。
假设一个Unix风格的场景,其中一台计算机(客户端)需要访问存储在其他机器上的数据(NFS 服务器):
服务端实现 NFS 守护进程,默认运行 nfsd,用来使得数据可以被客户端访问。
服务端系统管理员可以决定哪些资源可以被访问,导出目录的名字和参数,通常使用 /etc/exports 配置文件 和 exportfs 命令。
服务端安全-管理员保证它可以组织和认证合法的客户端。
服务端网络配置保证可以跟客户端透过防火墙进行协商。
客户端请求导出的数据,通常调用一个 mount 命令。
如果一切顺利,客户端的用户就可以通过已经挂载的文件系统查看和访问服务端的文件了。
提醒:NFS自动挂载可以通过—可能是 /etc/fstab 或者自动安装管理进程。
秋风下的落叶 大佬有话说 : 2019-12-16 09:03:16
zxxx 大佬有话说 : 2019-12-16 08:56
NFS 网络文件系统是一种分布式文件系统协议,力求客户端主机可以访问服务器端文件,并且其过程与访问本地 …
大复杂,没看懂啥意思
zxxx 大佬有话说 : 2019-12-16 09:11:31
秋风下的落叶 大佬有话说 : 2019-12-16 09:03
大复杂,没看懂啥意思
https://i.loli.net/2019/12/16/lI5A42F1qnjOgHm.jpg
https://i.loli.net/2019/12/16/35r2NZ8DmpMflJS.jpg
https://i.loli.net/2019/12/16/VbQcvgdTpRto1nU.png
凤梨 大佬有话说 : 2019-12-16 09:15:11
相当于30刀买了个5T流量的大盘鸡
zxxx 大佬有话说 : 2019-12-16 09:34:36
凤梨 大佬有话说 : 2019-12-16 09:15
相当于30刀买了个5T流量的大盘鸡
云筏科技有个30刀的机器,1T硬盘,5T流量更香。
smalleye 大佬有话说 : 2019-12-16 11:15:54
大佬,伦敦250G单出吗