Created attachment 841966 [details]
dmeg output seen at emergency console, compressed to meet file size limit
Description of problem:
When trying to mount nfs share as root it fails at boot with errors:
- mount.nfs: requested NFS version or transport protocol is not supported
- No root device "nfs" found.
When it drops into recovery shell it has no problem mount the require nfs share manually. Trying to do first stage boot from SSD but mount nfs share on QNap TS-412 NAS as root filesystem.
Version-Release number of selected component (if applicable):
dracut does not appear to support -V version reporting option. Version installed using yum on CentOS 6.5.
Steps to Reproduce:
1. Install OS, Cent OS 6.5, to SSD and ensure boots and runs ok.
2. Copy SSD to nfs share on Qnap TS-412 NAS.
2. Create initramfs-nfs-only.img (then put in /boot) using:
dracut -f --debug -v -k /lib/modules/2.6.32-4126.96.36.199.1.el6.x86_64/ -m "nfs network base kernel-modules" --add-drivers "scsi_wait_scan" /tmp/initramfs-nfs-only.img 2.6.32-4188.8.131.52.1.el6.x86_64
3. Add entry to /boot/grub/grub.cfg:
title CentOS (Network eth0)
kernel /vmlinuz-2.6.32-4184.108.40.206.1.el6.x86_64 ro rdshell ifname=eth0:00:22:4D:A0:F8:21 ip=10.11.1.1::10.11.1.3:255.255.255.0:yi:eth0:off root=nfs:10.11.1.10:/yi/:nolock,nfsvers=3,udp,port=2049 nameserver=10.11.1.3 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us
4. Reboot system, select grub option for new entry.
Will see error messages:
mount.nfs: requested NFS version or transport protocol is not supported
No root device "nfs" found
Then will fall into emergency console. Attached dmesg output seen at that console. Can mount nfs share fine using:
mount.nfs 10.11.1.10:/yi/ /mnt -v -o nolock,nfsvers=3,udp,port=2049
System boots OS with root filesystem on nfs share.
Output of mount.nfs from emergency console:
mount.nfs: timeout set for Thu Dec 26 22:53:55 2013
mount.nfs: trying text-based options 'nolock,nfsvers=3,udp,port=2049,addr=10.11.1.10'
mount.nfs: prog 100005, trying vers=3, prot=17
10.11.1.10:/yi/ on /mnt type nfs (nolock,nfsvers=3,udp,port=2049)
I have filed as Fedora bug as that is assumed parent of dracut project even though I am using with a CentOS set up.
to get more debug info follow:
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
Thank you for reporting this bug and we are sorry it could not be fixed.