Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

NFS as RootDevice

$
0
0

Hi, 

Since we tried to use nfs export dir as RootDevice of Xeon Phi card.
According to https://software.intel.com/sites/default/files/article/373934/system-adm..., we made changes as below.

It seems booting, however /dev/* is not usable at mic0 so we can't login via SSH nor screen /dev/ttyMIC0

[host] # micctrl --rootdev=NFS -v -c -d -t [host_ip_addr]:/srv/nfs/mic0  mic0
[host] # ls -al /srv/nfs/mic0
total 32
drwxr-xr-x 18 root    root    4096 Oct 16 23:18 .
drwxr-xr-x  4 root    root      28 Oct 16 23:17 ..
drwxr-xr-x  2 root    root    4096 Oct 16 23:06 bin
drwxr-xr-x  2 root    root       6 Oct 16 23:06 boot
drwxr-xr-x  2 root    root    4096 Oct 16 23:06 dev
drwxr-xr-x 31 root    root    4096 Oct 16 23:18 etc
drwxr-sr-x  4 root    root      31 Oct 16 23:06 home
-rwxr-xr-x  1 root    root    3946 Oct 16 23:06 init
drwxr-xr-x  3 root    root      20 Oct 16 23:06 lib
drwxr-xr-x  5 root    root    4096 Sep 19 07:51 lib64
drwxr-xr-x 10 root    root      94 Oct 16 23:06 media
drwxr-xr-x  2 root    root      57 Oct 16 23:06 mnt
drwxr-xr-x  3 root    root      18 Oct 16 23:06 opt
drwxr-xr-x  2 root    root       6 Oct 16 23:06 proc
-rw-r--r--  1 polkitd polkitd   62 Oct 16 23:17 .profile
drwx------  2 root    root      21 Oct 16 23:17 root
drwxr-xr-x  2 root    root    4096 Oct 16 23:18 sbin
drwxr-xr-x  2 root    root       6 Oct 16 23:06 sys
lrwxrwxrwx  1 root    root       8 Oct 16 23:18 tmp -> /var/tmp
drwxr-xr-x 12 root    root     123 Sep 19 08:32 usr
drwxr-xr-x  8 root    root     142 Sep 19 07:51 var
[host] # cat /etc/exports
/srv/nfs/mic0	[mic0_ip_addr]/32(rw,sync,no_root_squash)
[host] # micctrl -s mic0
mic0: online (mode: linux image: /usr/share/mpss/boot/bzImage-knightscorner)
[host] # service mpss start
[host] # tail -n f /var/log/messages
Oct 16 23:17:55 ccx10 systemd: Starting Intel(R) MPSS control service...
Oct 16 23:17:56 ccx10 kernel: mic0: Transition from state ready to booting
Oct 16 23:17:56 ccx10 kernel: mic image: /usr/share/mpss/boot/bzImage-knightscorner
Oct 16 23:17:56 ccx10 kernel: MIC 0 Booting
Oct 16 23:18:01 ccx10 kernel: Waiting for MIC 0 boot 5
Oct 16 23:18:06 ccx10 kernel: Waiting for MIC 0 boot 10
Oct 16 23:18:11 ccx10 kernel: Waiting for MIC 0 boot 15
Oct 16 23:18:16 ccx10 kernel: Waiting for MIC 0 boot 20
Oct 16 23:18:21 ccx10 kernel: Waiting for MIC 0 boot 25
Oct 16 23:18:22 ccx10 kernel: MIC 0 Network link is up
Oct 16 23:18:22 ccx10 kernel: br0: port 1(mic0) entered forwarding state
Oct 16 23:18:22 ccx10 kernel: br0: port 1(mic0) entered forwarding state
Oct 16 23:18:22 ccx10 rpc.mountd[30856]: authenticated mount request from [mic0_ip_addr]:969 for /srv/nfs/mic0 (/srv/nfs/mic0)
[host] # tail -f /srv/nfs/mic0/var/log/messages
Oct 16 23:53:58 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 16 23:54:08 ccx11 user.warn kernel: [ 2164.337626] Host state not PC0
Oct 16 23:54:08 ccx11 daemon.info init: Id "0" respawning too fast: disabled for 5 minutes
Oct 16 23:59:09 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 16 23:59:19 ccx11 user.warn kernel: [ 2475.812577] Host state not PC0
Oct 16 23:59:19 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 16 23:59:29 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 16 23:59:40 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 16 23:59:50 ccx11 user.warn kernel: [ 2506.029530] Host state not PC0
Oct 16 23:59:50 ccx11 auth.err getty: /dev/hvc0: No such file or directory
Oct 17 00:00:00 ccx11 auth.err getty: /dev/hvc0: No such file or directory
[host] # ping -c 5 [mic0_ip_addr]
PING [mic0_ip_addr] ([mic0_ip_addr]) 56(84) bytes of data.
64 bytes from [mic0_ip_addr]: icmp_seq=1 ttl=64 time=0.524 ms
64 bytes from [mic0_ip_addr]: icmp_seq=2 ttl=64 time=0.424 ms
64 bytes from [mic0_ip_addr]: icmp_seq=3 ttl=64 time=0.398 ms
64 bytes from [mic0_ip_addr]: icmp_seq=4 ttl=64 time=0.268 ms
64 bytes from [mic0_ip_addr]: icmp_seq=5 ttl=64 time=0.226 ms

--- [mic0_ip_addr] ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.226/0.368/0.524/0.108 ms

Could someone know the correct way to setup NFS export as a root of mic card?

Thanks!


Viewing all articles
Browse latest Browse all 1347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>