From: "Muntz, Daniel" Subject: RE: [RFC][PATCH 0/5] NFS: trace points added to mounting path Date: Wed, 21 Jan 2009 15:05:38 -0800 Message-ID: <7A24DF798E223B4C9864E8F92E8C93EC01DB5F4B@SACMVEXC1-PRD.hq.netapp.com> References: <4970B451.4080201@RedHat.com> <5B2817A2-B0FF-4FB5-9244-9E13C55EF6B2@oracle.com> <497757D1.7090908@RedHat.com> <49777988.6010401@RedHat.com> <4977A385.8000406@melbourne.sgi.com> <20090121225619.GI4295@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Cc: "Chuck Lever" , "Linux NFS Mailing list" , "Linux NFSv4 mailing list" , "SystemTAP" To: "J. Bruce Fields" , "Greg Banks" Return-path: Received: from mx2.netapp.com ([216.240.18.37]:8408 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754384AbZAUXFm convert rfc822-to-8bit (ORCPT ); Wed, 21 Jan 2009 18:05:42 -0500 In-Reply-To: <20090121225619.GI4295@fieldses.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: My favorite: when you try a Kerberos mount and one of the kernel modules requried for this isn't loaded, mount gets ENOMEM and says "out of memory" -Dan -----Original Message----- From: J. Bruce Fields [mailto:bfields@fieldses.org] Sent: Wednesday, January 21, 2009 2:56 PM To: Greg Banks Cc: Chuck Lever; Linux NFS Mailing list; Linux NFSv4 mailing list; SystemTAP Subject: Re: [RFC][PATCH 0/5] NFS: trace points added to mounting path On Thu, Jan 22, 2009 at 09:36:53AM +1100, Greg Banks wrote: > Chuck Lever wrote: > > > > > > I think we need to visit this issue on a case-by-case basis. > > Sometimes dprintk is appropriate. Sometimes printk(KERN_ERR). > > Sometimes a performance metric. > Well said. > > > Trond has always maintained that dprintk() is best for developers, > > but probably inappropriate for field debugging, > It's not a perfect tool but it beats nothing at all. > > and I think that may also > > apply to trace points. > It depends on whether distros can be convinced to enable it by default, > and install by default any necessary userspace infrastructure. The > most important thing for field debugging is Just Knowing that you have > all the bits necessary to perform useful debugging without having to > find some RPM that matches the kernel that the machine is actually > running now, and not the one that was present when the machine was > installed. On the mount case specifically: How far are we from the idea of a mount program that can identify most problems itself? I know its error reporting has gotten better.... I suppose the main feedback mount gets right now is an error code from the mount system call, and that may be too narrow an interface to cover most problems. Is there some way we can give mount a real interface it can use to find out this stuff instead of just dumping more strings into the logs? My main obstacle to judging a solution is that I don't have in mind a good list of (say) the top 10 problems that can cause the first mount to fail. Hm: - dns lookup of the server fails - server isn't reachable - server isn't running nfs - requested path isn't known to server or isn't exported - export is there, but requires more security - user doesn't have gss credentials - file permissions on the export are wrong ... --b. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html