RE: nfsd restart failures without /proc/fs/nfsd filesystem mounted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I tried creating a single nfsd thread but I get the same error from the kernel.

Ani


>-----Original Message-----
>From: J. Bruce Fields [mailto:bfields@xxxxxxxxxxxx]
>Sent: Tuesday, April 01, 2008 2:06 PM
>To: Anirban Sinha
>Cc: linux-nfs@xxxxxxxxxxxxxxx
>Subject: Re: nfsd restart failures without /proc/fs/nfsd filesystem
>mounted
>
>On Mon, Mar 31, 2008 at 03:39:04PM -0700, Anirban Sinha wrote:
>> Hi:
>>
>> I am using a system where we do not use the /proc/nfs/nfsd filesystem
>(due to several reasons). I understand that without this filesystem,
>nfsutils does not use the "new cache" mechanism. However, a nfsd restart
>operation should still be functional. However, when I try doing this
>manually, I get the following error:
>>
>> root:my_node:/etc/rc.d/init.d# /sbin/service nfs restart
>> Shutting down NFS mountd:                                  [  OK  ]
>> Shutting down NFS daemon:                                  [FAILED]
>> Shutting down NFS services:                                [  OK  ]
>> Starting NFS services:                                     [  OK  ]
>> Starting NFS daemon:                                       [FAILED]
>> Starting NFS mountd:                                       [  OK  ]
>>
>> And the kernel log says:
>> [13:37:37.766844] nfsd: Could not allocate memory read-ahead cache.
>
>What kernel version is this?  In the latest
>fs/nfsd/vfs.c:nfsd_racache_init(int cache_size):
>
>	raparml = kcalloc(cache_size, sizeof(struct raparms), GFP_KERNEL);
>
>	if (!raparml) {
>		printk(KERN_WARNING
>			"nfsd: Could not allocate memory read-ahead
>cache.\n");
>		return -ENOMEM;
>	}
>
>which is called from fs/nfsd/nfssvc.c:nfsd_svc() as:
>
>	error = nfsd_racache_init(2*nrservs);
>
>where nrservs is the number of server threads.  How many server threads
>are you
>trying to start, and how much memory do you have?
>
>--b.
>
>>
>> This issue is happening on an intel platform. However, this same
>operation succeeds on our mips platform (without nfsd filesystem). What
>is also interesting is that once I turn on /proc/fs/nfsd filesystem on
>Intel, the issue seems to go away.
>>
>> Several weeks back, I reported an issue regarding exportfs -a failure
>on an already exported filesystem when nfsd FS was not used. It turned
>out to be a bug in the nfsutils. Did we bump into another bug here? Is
>there no other option but to turn on nfsd filesystem?
>>
>> Thanks for whoever responds to this ...
>>
>> Cheers,
>>
>> Ani
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs"
>in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux