From owner-freebsd-fs@freebsd.org Tue Oct 1 05:35:11 2019 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED5E0FCE89 for ; Tue, 1 Oct 2019 05:35:11 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 46j7Jb208rz4N2q for ; Tue, 1 Oct 2019 05:35:11 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id x134so10084075qkb.0 for ; Mon, 30 Sep 2019 22:35:11 -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=ISnsK5Jve28z6uweD3UgoDLWV/9vwzOVskYiyCtr8nI=; b=T0lurWJTZPhyKfTjAOD7MYU0Mpwr6O6poROf4AAy5yPOnDhEgVeYSE4igDpmgfTljK t0NKSw9TxOCsYg/IlbBblo7xp8ysCprPZz8652YZQ0sq9OvLcxq+qWWk8yzCHEE1aMT1 MnubFtOugaDIWzZCt87/R/Rvo0XcBVgvgYk/6s0XbcaJHx0n8R4aDQbuo0AoGW1hx++7 g8xbASuof7nsZu+YdVp+3Ru6yrZVRrJwKld9DzKZx+IgBDdBr9RbORti53LkwAL5d3QW z35F8Lq/AmjawDJ5eFjrsH4SiOX9QrC6g2A/I8PYCVDYcNH/wSxS0VmeNajrTkwbrpvf KEtA== 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=ISnsK5Jve28z6uweD3UgoDLWV/9vwzOVskYiyCtr8nI=; b=gQ+G/0lG3gR7Npf0PAmFkARSE8CHksJkFZs0Rv7rVDI3qhcV2TNd0Q0+VhwEMJYHAQ 4m/5ey5UEPieTzXX57dgLGN/NZB8RPrSYMVwJDja+5dNwWP4TQVIblF/UeG4XRY/slEv KxKSxNAys2o3aRG2HdbHyPiUSbUbZKDCg7dhghG0PsCE4KuivtcyQN0GTJOqpGdry7Hw 6G+EUVdOEk0Ki/NGFCLM61islRCtc3i/e8jtyjy1gpTXvnN3ZfcsIyi2kMUBL2y9oy5A e6V0LMzS0sqgwq+PXrQblatmrosumhWuVAzF/hq4roN7KRKsT66YAqfL/eG/tJw7A2kj m0BQ== X-Gm-Message-State: APjAAAV52rEnNFE9Um/CP/I9UxMXi8tnSpsHAg1UuUXKMSVzt6oTZUJP 5WAab6yrs6vxcJ7tstlEunUCdSRbUynV11TbyT5CCQ== X-Google-Smtp-Source: APXvYqwI3Ot3Yd4awpztSsAYMJVYBgnsoOYOv8JI8dXKdCntwXNN5UIHzifnzkfsBhhXEwULwgyQCgFxKXrnJR7nsI8= X-Received: by 2002:a37:aa02:: with SMTP id t2mr4213410qke.154.1569908110326; Mon, 30 Sep 2019 22:35:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reshad Patuck Date: Tue, 1 Oct 2019 11:04:59 +0530 Message-ID: Subject: Re: [zfs] filesystem reads hanging To: Warner Losh Cc: FreeBSD FS X-Rspamd-Queue-Id: 46j7Jb208rz4N2q X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=T0lurWJT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of reshadpatuck1@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=reshadpatuck1@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; 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)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[f.2.7.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]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.44), ipnet: 2607:f8b0::/32(-2.58), asn: 15169(-2.16), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] 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: Tue, 01 Oct 2019 05:35:12 -0000 Hi Warner, I will do a scrub the moment I reboot the box. As mentioned, running the zpool scrub command itself hangs (the command does not return, and I can not kill it), further I am not able to see the scrub running in the zpool status for zroot. Is there any other way I can check the disk/hardware? (the pool is running on a single SSD) I have no logs that look like disk errors to me in /var/log/all.log and /var/log/messages. Thanks, Reshad On Tue, Oct 1, 2019 at 10:51 AM Warner Losh wrote: > > > On Mon, Sep 30, 2019, 10:56 PM Reshad Patuck > wrote: > >> Hi, >> >> I have a FreeBSD 12.0-RELEASE-p9 system running ZFS. >> The system runs an application that uses postgres, and python (among other >> services). >> >> I have noticed that python suddenly is not able to connect to postgres. >> When I try to investigate further, certain files on disk can not be read. >> The commands `cat` and `ls -l` hang (no output and I can not ctrl-c or >> kill >> -9 them), ps -aux shows them in a D+ state. >> On killing the SSH session these processes continue running in orphans, I >> am not able to kill them. >> >> Someone on IRC suggested running a zfs scrub to check for data corruption, >> but running `zpool scrub zroot` has the same effect. >> The command does not return, ctrl-c does not kill it and `zpool scrub -s >> zroot` says "cannot cancel scrubbing zroot: there is no active scrub". >> >> This has happened in the past 1 month to two of my production servers and >> since the application was critical they were rebooted and the boxes >> function as normal after the reboot. >> Files that were not cat-able on the production servers were working fine >> and a zfs scrub worked fine to show 0 errors and 0 fixes. >> One of these boxes needed a hard reboot as it got stuck in the shutting >> down stage of a soft reboot. >> >> I am not sure where to start debugging this or if there are any ways to >> get >> metrics on a box stuck in this state. >> Please let me know if you would like me to fetch any metrics or run and >> commands, etc. for you. >> Any help would be much appreciated. >> > > Step 1 should be to make sure there are no disk errors... the successful > scrub suggests not, but it doesn't hurt to rule out hardware... > > Warner > > Best regards, >> >> Reshad >> _______________________________________________ >> 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" >> >