Servarica大盘鸡只有IPv6的VPS挂载到OVH家的VPS详细设置教程

Servarica大盘鸡只有IPv6的VPS挂载到OVH家的VPS详细设置教程

最近买了一台Servarica的IPv6 Only的VPS,准备和我的OVH挂载一起,研究了半天,终于成功!把OVH终于利用起来,防D的同时硬盘多利用,现在顺便也把折腾的过程分享出来,或许能帮到同样有困扰的朋友。

#### 配置NFS服务端

#### 服务端:2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx

#### 客户端:2604:xxxx:xxx:xxx::xxx

一、服务端安装

sudo su
安装NFS:
$ sudo yum install nfs-utils
sudo mkdir /www/wwwroot/tu
sudo chmod 777 /www/wwwroot/tu
sudo vi /etc/exports
/www/wwwroot/tu    2604:xxxx:xxx:xxx::xxx (insecure,rw,sync,no_root_squash,no_all_squash)
exportfs -rv
$sudo systemctl enable rpcbind

$sudo systemctl start rpcbind

$sudo systemctl enable nfs-server

$sudo systemctl start nfs-server
sudo systemctl restart nfs
showmount -e localhost
$ sudo firewall-cmd --zone=public --permanent --add-service={rpc-bind,mountd,nfs}
$ sudo firewall-cmd --reload

二、客户端安装

sudo su
sudo yum install nfs-utils
sudo systemctl enable rpcbind
sudo systemctl start rpcbind
sudo mkdir /www/wwwroot/tu
sudo chmod 777 /www/wwwroot/tu
sudo mount -t nfs [2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx]:/www/wwwroot/tu /www/wwwroot/tu
mount
sudo vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu May 25 13:11:52 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/cl-root     /                       xfs     defaults        0 0
UUID=414ee961-c1cb-4715-b321-241dbe2e9a32 /boot                   xfs     defaults        0 0
/dev/mapper/cl-home     /home                   xfs     defaults        0 0
/dev/mapper/cl-swap     swap                    swap    defaults        0 0
[2602:xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx]:/www/wwwroot/tu    /www/wwwroot/tu                nfs         defaults     0 0
sudo systemctl daemon-reload