NFS経由でルートファイルシステムをマウントできません。

NFS経由でルートファイルシステムをマウントできません。

NFS共有から起動するためにPidora(Fedora Remix)を実行する最初の(多くの)Raspberry Piを設定しようとしています。私の目標は、最終的に私のデータセンターに12を超えるRaspberry Piを持って、インフラストラクチャとクライアントにさまざまなサービスを提供し、現在使用している小さなVPSノードの一部を交換することです。

cmdline.txtの私の設定は次のとおりです。

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs nfsroot=<serverip>:/fake/path,nolock ip=dhcp elevator=deadline rootwait

Piで私が見る出力は次のとおりです。

IP-Config: Got DHCP answer from <router>, my address is <clientip>
IP-Config: Complete:
device=eth0, hwaddr=<macaddress>, ipaddr=<clientip>, mask=255.255.255.0, gw=<routerip>
host=<clientip>, domain=, nis-domain=(none)
bootserver=<routerip>, rootserver=<serverip>, rootpath=
nameserver0=<routerip>
(It pauses for a bit here)
VFS: Unable to mount root fs via NFS, trying floppy
VFS: Cannot open root device "nfs" or unknown-block(2,0); error -6
Please append a correct "root=" boot option; here are the available partitions:
.....

エクスポート設定は次のとおりです。

/fake/path        <clientip>(rw,no_root_squash,insecure,no_subtree_check)

NFSサーバー(OpenVZコンテナ)で/ var / log / messagesに表示される出力は次のとおりです。

Aug 22 23:24:01 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:783 for /fake/path (/fake/path)
Aug 22 23:24:38 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:741 for /fake/path (/fake/path)
Aug 22 23:25:25 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:752 for /fake/path (/fake/path)
Aug 22 23:26:12 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:876 for /fake/path (/fake/path)

テストのためにPiとルート以外のコンピュータからインストールできることを確認し、正しく動作しました。

何が間違っている可能性があるか、または範囲を絞り込む方法を知っている人はいますか?

修正する:

プロセスがもう少し進んだ。サーバーにはまだ同じメッセージが表示されますが、クライアントには「応答なし、まだ試行中」と表示されます。

これはプロセスのtcpdumpです(tcdump -vv 'port not 22')。

tcpdump: listening on venet0, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
02:27:49.396600 IP (tos 0x0, ttl 50, id 56458, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:27:49.396694 IP (tos 0x0, ttl 64, id 22318, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:27:49.396700 IP (tos 0x0, ttl 64, id 22318, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:27:49.396701 IP (tos 0x0, ttl 64, id 22318, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:27:49.396963 IP (tos 0x0, ttl 64, id 34369, offset 0, flags [DF], proto UDP (17), length 72)
    <serverhostname>.57067 > <redacted2>.domain: [udp sum ok] 45505+ PTR? <redacted>.in-addr.arpa. (44)
02:27:49.400054 IP (tos 0x0, ttl 60, id 0, offset 0, flags [DF], proto UDP (17), length 121)
    <redacted2>.domain > <serverhostname>.57067: [udp sum ok] 45505 q: PTR? <redacted>.in-addr.arpa. 1/0/0 <redacted>.in-addr.arpa. PTR <clienthostname>. (93)
02:27:49.400289 IP (tos 0x0, ttl 64, id 34372, offset 0, flags [DF], proto UDP (17), length 73)
    <serverhostname>.51421 > <redacted2>.domain: [udp sum ok] 15808+ PTR? <redacted3>.in-addr.arpa. (45)
02:27:49.401603 IP (tos 0x0, ttl 60, id 0, offset 0, flags [DF], proto UDP (17), length 115)
    <redacted2>.domain > <serverhostname>.51421: [udp sum ok] 15808 q: PTR? <redacted3>.in-addr.arpa. 1/0/0 <redacted3>.in-addr.arpa. PTR <redacted2>. (87)
02:27:50.496543 IP (tos 0x0, ttl 50, id 56459, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:27:50.496627 IP (tos 0x0, ttl 64, id 22319, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:27:50.496634 IP (tos 0x0, ttl 64, id 22319, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:27:50.496636 IP (tos 0x0, ttl 64, id 22319, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:27:52.694985 IP (tos 0x0, ttl 50, id 56460, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:27:52.695058 IP (tos 0x0, ttl 64, id 22320, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:27:52.695064 IP (tos 0x0, ttl 64, id 22320, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:27:52.695066 IP (tos 0x0, ttl 64, id 22320, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:27:57.105354 IP (tos 0x0, ttl 50, id 56461, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:27:57.105451 IP (tos 0x0, ttl 64, id 22321, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:27:57.105456 IP (tos 0x0, ttl 64, id 22321, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:27:57.105458 IP (tos 0x0, ttl 64, id 22321, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:28:05.914058 IP (tos 0x0, ttl 50, id 56462, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:28:05.914130 IP (tos 0x0, ttl 64, id 22322, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:28:05.914137 IP (tos 0x0, ttl 64, id 22322, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:28:05.914138 IP (tos 0x0, ttl 64, id 22322, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:28:07.014579 IP (tos 0x0, ttl 50, id 56463, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:28:07.014665 IP (tos 0x0, ttl 64, id 22323, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:28:07.014672 IP (tos 0x0, ttl 64, id 22323, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:28:07.014674 IP (tos 0x0, ttl 64, id 22323, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp
02:28:09.216009 IP (tos 0x0, ttl 50, id 56464, offset 0, flags [DF], proto UDP (17), length 144)
    <clienthostname>.3541049940 > <serverhostname>.nfs: 116 read fh Unknown/01000401D2255200F6209D570C172001AA2F2645000000000000000000000000 4096 bytes @ 516096
02:28:09.216102 IP (tos 0x0, ttl 64, id 22324, offset 0, flags [+], proto UDP (17), length 1500)
    <serverhostname>.nfs > <clienthostname>.3541049940: reply ok 1472 read REG 100755 ids 0/0 sz 1630184 nlink 1 rdev ffffffff fsid 579d20f6 nodeid 120170c a/m/ctime 1408774668.892909 1404929018.000000 1408747025.202589
02:28:09.216107 IP (tos 0x0, ttl 64, id 22324, offset 1480, flags [+], proto UDP (17), length 1500)
    <serverhostname> > <clienthostname>: udp
02:28:09.216109 IP (tos 0x0, ttl 64, id 22324, offset 2960, flags [none], proto UDP (17), length 1264)
    <serverhostname> > <clienthostname>: udp

ベストアンサー1

Pidoraのデフォルトカーネルはnfsrootをサポートしていないため、独自のカーネルをコンパイルする必要があります。だから、Fedoraが最先端だと言っていると思います。

おすすめ記事