From owner-freebsd-bugs@freebsd.org Wed Oct 4 20:38:39 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DD9AE42251 for ; Wed, 4 Oct 2017 20:38:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 1CA8770DAA for ; Wed, 4 Oct 2017 20:38:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v94KccVd017960 for ; Wed, 4 Oct 2017 20:38:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222785] [zfs] show progress of running zfs operations, zpool monitor Date: Wed, 04 Oct 2017 20:38:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: timf.public@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2017 20:38:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222785 Bug ID: 222785 Summary: [zfs] show progress of running zfs operations, zpool monitor Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: timf.public@gmail.com Solaris 11.3 introduced a new zpool subcommand, 'monitor' allowing the user to monitor the ongoing progress of long-running zfs operations, for example, scrubs, send/recv and resilver. More detail on what the Solaris implementation looks like is at: https://docs.oracle.com/cd/E53394_01/html/E54801/gnheq.html and here is one example documented in that man page: # zpool monitor -t resilver 5 4 pool provider pctdone total speed timeleft other poolA resilver 10.7 12.0G 37.7M 4m50s (2/2) poolB resilver 7.1 10.0G 31.5M 5m02s (2/2) poolC resilver 1.8 10.0G 42.9M 3m54s (2/2) poolA resilver 13.9 12.0G 38.0M 4m38s (2/2) poolB resilver 9.0 10.0G 30.4M 5m07s (2/2) poolC resilver 5.3 10.0G 41.7M 3m52s (2/2) poolA resilver 14.7 12.0G 36.1M 4m50s (2/2) poolB resilver 10.8 10.0G 29.2M 5m12s (2/2) poolC resilver 7.2 10.0G 41.0M 3m51s (2/2) poolA resilver 14.7 12.0G 32.8M 5m19s (2/2) poolB resilver 10.8 10.0G 29.6M 5m08s (2/2) poolC resilver 7.2 10.0G 40.7M 3m53s (2/2) While it's possible to script some of this today on FreeBSD using=20 'zpool status -v' output, grepping for the activity that the pool is performing, it's a little clunky. It would be pretty useful if OpenZFS had similar functionality. --=20 You are receiving this mail because: You are the assignee for the bug.=