[root@localhost ~]# /usr/local/mfs/bin/mfsmount /mnt/mfs -H 192.168.1.56
mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
/bin/mount:无法识别的选项“–no-canonicalize”
Usage: mount -V : print version
mount -h : print this help
[root@localhost ~]# wget -c https://www.kernel.org/pub/linux/utils/util-linux/v2.17/util-linux-ng-2.17.tar.gz --no-check-certificate
[root@localhost ~]# tar zxvf util-linux-ng-2.17.tar.gz
[root@localhost ~]# cd util-linux-ng-2.17
[root@localhost util-linux-ng-2.17]# ./configure --prefix=/usr/local/util-linux-ng-2.17
[root@localhost util-linux-ng-2.17]# make && make install
[root@localhost util-linux-ng-2.17]# mv /bin/mount /bin/mount.old
[root@localhost util-linux-ng-2.17]# mv /bin/umount /bin/umount.old
[root@localhost util-linux-ng-2.17]# ln -s /usr/local/util-linux-ng-2.17/bin/mount /bin/mount
[root@localhost util-linux-ng-2.17]# ln -s /usr/local/util-linux-ng-2.17/bin/umount /bin/umount
[root@localhost util-linux-ng-2.17]# /usr/local/mfs/bin/mfsmount /var/www/html/ -H 192.168.1.56
mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
/bin/mount:无法识别的选项“–no-canonicalize”
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
查资料说是mount的版本过低,在mfsmount的时候需要–no-canonicalize 参数支持。
解决方法:
从 https://www.kernel.org/pub/linux/utils/util-linux/ 下载新版本,我这里对应centos6下的版本util-linux-ng-2.17进行安装。
[root@localhost ~]# wget -c https://www.kernel.org/pub/linux/utils/util-linux/v2.17/util-linux-ng-2.17.tar.gz --no-check-certificate
[root@localhost ~]# tar zxvf util-linux-ng-2.17.tar.gz
[root@localhost ~]# cd util-linux-ng-2.17
[root@localhost util-linux-ng-2.17]# ./configure --prefix=/usr/local/util-linux-ng-2.17
[root@localhost util-linux-ng-2.17]# make && make install
[root@localhost util-linux-ng-2.17]# mv /bin/mount /bin/mount.old
[root@localhost util-linux-ng-2.17]# mv /bin/umount /bin/umount.old
[root@localhost util-linux-ng-2.17]# ln -s /usr/local/util-linux-ng-2.17/bin/mount /bin/mount
[root@localhost util-linux-ng-2.17]# ln -s /usr/local/util-linux-ng-2.17/bin/umount /bin/umount
[root@localhost util-linux-ng-2.17]# /usr/local/mfs/bin/mfsmount /var/www/html/ -H 192.168.1.56
mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
转自:http://www.rootop.org/pages/2401.html