From owner-freebsd-fs@freebsd.org Wed May 15 14:26:45 2019 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76F9C1592C35 for ; Wed, 15 May 2019 14:26:45 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B19918D3F8 for ; Wed, 15 May 2019 14:26:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Date: Wed, 15 May 2019 16:26:35 +0200 (CEST) From: Ronald Klop To: Ganbold Tsagaankhuu Cc: freebsd-fs@freebsd.org Message-ID: <290003690.37.1557930395569@localhost> In-Reply-To: References: Subject: Re: NFS file access log MIME-Version: 1.0 X-Mailer: Realworks (459.489.e46a8f03723) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: B19918D3F8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 194.109.157.24 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-0.64 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.85)[-0.848,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-0.96)[-0.962,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[klop.ws]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.03)[0.031,0]; MX_GOOD(-0.01)[mx2.greenhost.nl,mx1.greenhost.nl]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[24.157.109.194.list.dnswl.org : 127.0.15.0]; IP_SCORE(-0.05)[ipnet: 194.109.0.0/16(-0.14), asn: 3265(-0.12), country: NL(0.01)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2019 14:26:45 -0000 DTrace might help. https://books.google.nl/books?id=jseJ56fUjJgC&lpg=PA163&ots=3M_bkEb6pj&dq=freebsd%20dtrace%20nfs&hl=nl&pg=PA163#v=onepage&q=freebsd%20dtrace%20nfs&f=false Never used it for NFS, so I'm not sure. Ronald. Van: Ganbold Tsagaankhuu Datum: woensdag, 15 mei 2019 09:52 Aan: freebsd-fs@freebsd.org Onderwerp: NFS file access log > > Hi, > > Is there anyway to log file access in NFS client/server side? > I'm experiencing following problem: > > vm_fault: pager read error, pid 75363 (php-fpm) > ncl_getpages: error 70 > > and would like to know if there is possibility to find problematic files. > > thanks, > > Ganbold > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > > > From owner-freebsd-fs@freebsd.org Wed May 15 14:57:39 2019 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E63A1594A1E for ; Wed, 15 May 2019 14:57:39 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F8DA8F0C0 for ; Wed, 15 May 2019 14:57:38 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io1-xd32.google.com with SMTP id s20so2458146ioj.7 for ; Wed, 15 May 2019 07:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r9SsyBsu+C/bwz6QcvLfGiTIPSDNEybhHVqO3Kdp04o=; b=CPUgnbeQXqsgzq6kAv0RBbNSdfUDW2wkyJLFMhh5PIH351wuYJyKCOq/LTvQ9hpqwX GsQbJ59qlchO08ecksNy2gcHWVvUDbO7zCMnS1IP8ymSWrgoFb902mLVlQLdDQYWaDx3 lOufc1rmWPma00dBU/T9zcL9/ueMpGJyioHJLxRy9rkVqOS0oMIaAXa1d0x0bKIdnLjO abIPlkcSNIobW91veh5eX8Jy3tCv151z3+JbaqcizPTEMXGqrf0/ho5KLu3zYLVJLG+C nl8r9vTDOE+Lzi+ijSSDgNIjVpox221uccXYjWxOuMwq03z5O+egeOtt+gYjGJkDDAWl c3Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r9SsyBsu+C/bwz6QcvLfGiTIPSDNEybhHVqO3Kdp04o=; b=DzxKnhQtNMCPZ0Ud8rAyDZtEF9Q0xc9QmpvP1BNoJdsUHzerWQu5HLn9ldmqyVoapQ 3fVUHQATZBo3NEIuIQsW4cPtX0t/FyXLO+YBkTFcTiUIWUCJu1fwwV+EpB9xKHAHAlp/ VYck6VL6pLJlqZysVJlmT+aIOmdFL1l1hfVvLGVlX5z3zXeCOJadyYomgFWKCGGhRu+v l0kjCUC7vzFreojC4aaZrber83PkPHdXkR2K1rtcORB07VKcLFus+nXZvdAsHVvkeWN1 PKbnjcyST/f9cDzl54ecjUxpY3kdFjr4JdAUVk4YWVCJs4O1V6B1ff2oqZax141inFXs QXDQ== X-Gm-Message-State: APjAAAURhk2E2KtUpywaGQvxuc7Z30vJ6pyKOMn+8nXJYcrCRjJct9kw RbAUjq/rXI5qGlKXOkJwC0iqeBe6kkzjGZkEoBg= X-Google-Smtp-Source: APXvYqy3jFBDkjh25EJVyYEr9l6S7bfxu8Yly8H1imthtHQJFPkhxlrrbNAOGAWPTOpOJr/MFPPsYLyCqAS4DpyGJCs= X-Received: by 2002:a6b:fe0d:: with SMTP id x13mr23902476ioh.1.1557932257365; Wed, 15 May 2019 07:57:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adam Date: Wed, 15 May 2019 09:57:25 -0500 Message-ID: Subject: Re: NFS file access log To: Ganbold Tsagaankhuu Cc: freebsd-fs X-Rspamd-Queue-Id: 0F8DA8F0C0 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CPUgnbeQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::d32 as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-6.78 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.77)[ip: (-8.26), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2019 14:57:39 -0000 On Wed, May 15, 2019 at 2:53 AM Ganbold Tsagaankhuu wrote: > Hi, > > Is there anyway to log file access in NFS client/server side? > I'm experiencing following problem: > > vm_fault: pager read error, pid 75363 (php-fpm) > ncl_getpages: error 70 > > and would like to know if there is possibility to find problematic files. > https://www.freebsd.org/doc/handbook/audit.html could used, but seems easier just to add some logging to the php app. And make sure file locking is working as desired. -- Adam