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가 최첨단이라고 말하는 것 같아요.

관련 정보