主题 : 关于mount nfs文件系统的问题:Starting RPC idmapd: Error: RPC MTAB does not exist. 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4737
精华: 0
发帖: 29
金钱: 290 两
威望: 260 点
贡献值: 0 点
综合积分: 58 分
注册时间: 2009-03-27
最后登录: 2009-12-08
楼主  发表于: 2009-04-15 09:25

 关于mount nfs文件系统的问题:Starting RPC idmapd: Error: RPC MTAB does not exist.

有谁出现过这种问题吗?我启动nfs服务的时候出现错误信息:Starting RPC idmapd: Error: RPC MTAB does not exist.(最后一行)

[root@localhost ~]# /etc/init.d/nfs start
启动 NFS 服务:                                            [  确定  ]
关掉 NFS 配额:                                            [  确定  ]
启动 NFS 守护进程:                                        [  确定  ]
启动 NFS mountd:                                          [  确定  ]
Starting RPC idmapd: Error: RPC MTAB does not exist.


我的nfs以前一直用的是好的,近两天突然就不能用了,我没有改任何信息啊,我想应该是这个问题导致的,但是又不知道怎么解决,在百度上搜了一些别人的方法,都不管用。

下面是启动nfs系统时最后几行信息:

eth0: link down
IP-Config: Complete:
     device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=192.168.1.117,
     host=sbc2440, domain=, nis-domain=arm9.net,
     bootserver=192.168.1.117, rootserver=192.168.1.117, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.117
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Looking up port of RPC 100005/1 on 192.168.1.117
Root-NFS: Server returned error -13 while mounting /opt/FriendlyARM/mini2440/roo
t_qtopia
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             192 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02           63152 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


不知道问题出现在哪里?有知道的话跟我说一下,我的QQ289368031
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-04-15 12:26
这是redhat对于这个问题的描述(https://bugzilla.redhat.com/show_bug.cgi?id=220873

Bug 220873 - Starting RPC idmapd: Error: RPC MTAB does not exist.
Aliases:  
Summary:  Starting RPC idmapd: Error: RPC MTAB does not exist.  

Status:  CLOSED WONTFIX  

Aliases:  None (edit)


Product:  Fedora  
Component:  util-linux (Show Fedora/util-linux bugs)  
Version:  6  
Platform:  All Linux  

Priority:  medium Severity: medium (vote)  
Target Milestone:  ---  
Assigned To:  Karel Zak  
QA Contact:  Ben Levenson  

URL:  
Whiteboard:  bzcl34nup  
Keywords:  

Depends on:  
Blocks:  
  Show dependency tree  
   Reported:  2006-12-28 01:36 EDT by Need Real Name  
Modified:  2008-05-06 13:15 EDT (History)  

Fixed In Version:  
Release Notes:  
Clone Of:  



--------------------------------------------------------------------------------

Restrict Group Visibility:  Only users in any of the selected groups can view this bug:
(Unchecking all boxes makes this a more public bug.)
Current Groups: (edit)
None Set
Security Sensitive Bug (Check if this is a security related issue and should not be public)
Only members of a group can change the visibility of a bug for that group.


Attachments  
Add an attachment (proposed patch, testcase, etc.)  


External Bugs  



--------------------------------------------------------------------------------

Description From Need Real Name 2006-12-28 01:36:01 EDT Description of problem:

If you stop the 'rpcidmapd' service and then do something like 'umount -a', then
it will also umount the rpc_pipefs.

Then when you try to restart 'rpcidmapd' service (or the 'nfs' service which in
turn also starts the 'rpcidmapd' service), you get the error:
    Starting RPC idmapd: Error: RPC MTAB does not exist.

The reason is that the 'rpc_pipefs' filesystem has been unmounted. Now usually
loading the 'sunrpc' module will mount the 'rpc_pipefs'; however, in this case
'sunrpc' is already loaded and therefore not reloaded.

This is a confusing error that is not easy to decipher and solve.
Manually there are two solutions:
1. Unload and reload the 'sunrpc' module (which requires removing the modules
that depend on it and stopping the associated services)
2. Alternatively, mount the filesystem manually
      mount -t rpc_pipefs sunpc /var/lib/nfs/rpc_pipefs

Similarly, if you do 'umount -a'  but don't unload the 'nfsd' module, then the
'nfsd' filesystem will be unmounted and not remounted when you restart the nfs
service. However, in this case, the init script doesn't even warn you that the
filesystem is not mounted.
Again, manually you have two options
1. Unload and reload the 'nfsd' module
2. Manually create the filesystem
     mount -t nfsd nfsd /proc/fs/nfsd

However, this is all NON-OBVIOUS and could trip people up (it took me many
wasted hours trying to figure out what is happening here :)

I think a better solution would be to test for the existence of the 'rpc_pipefs'
and 'nfsd' at the end of the init.d scrips starting the 'rpcidmapd' and 'nfs'
services RESPECTIVELY.

Then, if the filesystems are either pre-existing or were just created indirectly
by the loading of the 'sunrpc' and 'nfsd' modules then nothing would be
necessary. However, if the filesystems are not there, then the script would just
run the above 'mount' commands to create the filesystems.  
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 4737
精华: 0
发帖: 29
金钱: 290 两
威望: 260 点
贡献值: 0 点
综合积分: 58 分
注册时间: 2009-03-27
最后登录: 2009-12-08
2楼  发表于: 2009-04-16 15:15
已解决,谢谢kasim
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-04-16 16:10
呵呵,有出错信息的问题好解决,google—下就行了
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 20428
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2010-05-01
最后登录: 2011-03-09
4楼  发表于: 2010-11-28 00:23
我也碰到这问题,请问你怎么解决的呢
级别: 新手上路
UID: 139653
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2018-09-06
最后登录: 2021-11-24
5楼  发表于: 2021-11-17 16:38
怎么解决的也不说一下