Dear forumers,
I'm trying to mount some directories from the host on the MIC cards using NFS.
I followed step by step the guide there.
https://software.intel.com/sites/default/files/article/373934/system-administration-for-the-intel-xeon-phi-coprocessor.pdf
My aim was to mount:
(host side) (mic side)
/opt/intel -> /opt/intel
/home -> /host
Following the guide, I modified exports
[root@terminus filesystem]# cat /etc/exports
#/home/shared 192.168.1.100/24(rw,no_root_squash)
/opt/intel 172.31.1.1(rw,no_root_squash)
/opt/intel 172.31.2.1(rw,no_root_squash)
/home 172.31.1.1(rw,no_root_squash)
/home 172.31.2.1(rw,no_root_squash)
and hosts.allow
[root@terminus filesystem]# cat /etc/hosts.allow
#
# hosts.allow This file contains access rules which are used to
# allow or deny connections to network services that
# either use the tcp_wrappers library or that have been
# started through a tcp_wrappers-enabled xinetd.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
ALL: 172.31.1.1
ALL: 172.31.2.1
Then I executed the exportfs -a command.
Following the guide, I tried both the micdir and commondir approaches (see page 22). For example, in the commondir case, I created a file fstab under /opt/intel/mic/filesystem/common/etc as following:
[root@terminus filesystem]# cat /opt/intel/mic/filesystem/common/etc/fstab
devpts /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
host:/home /host nfs rsize=8192,wsize=8192,nolock,intr 0 0
host:/opt/intel /opt/intel nfs rsize=8192,wsize=8192,nolock,intr 0 0
and
[root@terminus filesystem]# cat /opt/intel/mic/filesystem/common/common.filelist
dir /opt/intel 755 0 0
dir /host 755 0 0
file /etc/fstab etc/fstab 664 0 0
Finally I execute the micctrl --resetconfig and I would expect to find the nfs filesystem mounted on the mics but...
[root@terminus filesystem]# service mpss stop
Shutting down Intel(R) MPSS: [ OK ]
[root@terminus filesystem]# micctrl --resetconfig
[Warning] mic0: Generating compatibility network config file /opt/intel/mic/filesystem/mic0/etc/sysconfig/network/ifcfg-mic0 for IDB.
[Warning] This may be problematic at best and will be removed in a future release, Check with the IDB release.
[Warning] mic1: Generating compatibility network config file /opt/intel/mic/filesystem/mic1/etc/sysconfig/network/ifcfg-mic0 for IDB.
[Warning] This may be problematic at best and will be removed in a future release, Check with the IDB release.
[root@terminus filesystem]# service mpss start
Starting Intel(R) MPSS: [ OK ]
mic0: online (mode: linux image: /usr/share/mpss/boot/bzImage-knightscorner)
mic1: online (mode: linux image: /usr/share/mpss/boot/bzImage-knightscorner)
[root@terminus filesystem]# ssh mic0
[root@terminus-mic0 ~]# ls /
bin boot dev etc home init lib lib64 media mnt proc root sbin sys tmp usr var
[root@terminus-mic0 ~]# cat /etc/fstab
rootfs / auto defaults 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
... nothing... as you can see, the fstab doesn't show that I wanted to mount...
Can somebody point out some errors in the procedure that I followed?
Thanks in advance,
Fabio