From owner-freebsd-fs@freebsd.org Wed Jan 4 18:30:39 2017 Return-Path: Delivered-To: freebsd-fs@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 930EDC9FF11 for ; Wed, 4 Jan 2017 18:30:39 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt0-x22a.google.com (mail-qt0-x22a.google.com [IPv6:2607:f8b0:400d:c0d::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52265136C for ; Wed, 4 Jan 2017 18:30:39 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt0-x22a.google.com with SMTP id k15so259606235qtg.3 for ; Wed, 04 Jan 2017 10:30:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZgFC3vypBkIpmn9YMOJJGWNn0ZXKju8CDq4Y+Gm+WhM=; b=turOiP5hNPuvOHwszeb+wN7w0Heg9VDJFZwUGCX35+z2jF/BSfGRlI+hbqHryV2MQx kTNr4qjXkN+5gmGZbErVOoGBO7ki1HdMlYTf2h/8p0Ll0LBJ/NAr99pFXlaflyPLiNAA SKVyh27G0Vi1NZwdodPsqOYHrzB4TFtWPQCiQA+BN1MzCjY1QhV1y0UJtIi/8STh+A8C giFzFq07hfA08O3oE5sMz7EU09V1KPJn2NCbnIBYWVkQSFU/vliziult0WuFOo/cE7jT Qy/33eTBgwka4ATE7qDdqDxvqqnHabjO2tk/WxT4B8GMjA1i1KfxiDRo6zIO7cCMwp8w iA5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZgFC3vypBkIpmn9YMOJJGWNn0ZXKju8CDq4Y+Gm+WhM=; b=h0xRNJWnAxpC9Cuz3T2cjrs60LrMvn7apsH/6TE3HDvjrBZzaeFP+zaG13utu4qFTt tSvxdPbYjF7j0dGRozqmxyvtxGgRqGf32QMvDrifCLn0Bqo0f4LzfFBCwrQ7Diix0FEL UBJgLq9PJS4KZ5T8jbRN26zMAs64HwAEWKgWUYxYiBbGUM+ftITI53hFwqpUmRx1gKza E/X/SKL3zLMQ0rgWtLnArHl7JkpU4X7/xgdN3eVwPg8RWerMGNHIrojEfVAi0o4Vb+zg sw5vxrejL4BulT+4zII46yRwhqjRqkjvKHhqvHYLMXGIMoS3tEDzMSY2d48CU4927HY/ O6jw== X-Gm-Message-State: AIkVDXIpowskuYMFMJF1czYu241Ho1x58saN3wxpkG1wcbxgNUrEIJPZjL8GArHE4SAQbHTpUdOz4BJ/xjfGZw== X-Received: by 10.200.37.178 with SMTP id e47mr70745808qte.7.1483554638224; Wed, 04 Jan 2017 10:30:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.165.161 with HTTP; Wed, 4 Jan 2017 10:30:37 -0800 (PST) From: Freddie Cash Date: Wed, 4 Jan 2017 10:30:37 -0800 Message-ID: Subject: Check status of background destroy To: FreeBSD Filesystems Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2017 18:30:39 -0000 Is there a way to check the progress of a background destroy process? I did a very bad thing in the middle of December. "zfs destroy -r poolname/dataset", where there's approx 40 TB of data in that dataset, spread across about 400 snapshots, sitting on a dedupe-enabled pool. :( (Usually, I delete individual snapshots, but thought I would try a recursive destroy instead.) Needless to say, the 128 GB of RAM in the box, with 128 GB of L2ARC on SSD, is not enough to hold the DDT, and the box deadlocks after about 8 hours of disk churning. Once Wired memory goes above 120 GB, the system is unresponsive to everything, including pings. During that 8 hour period, the pool is usable; I can read and write data to the pool, I can create and destroy snapshots, and I can receive snapshots from other systems. But the background destroy continues to run after every boot, continues to churn through RAM, and locks everything up after about 8 hours. This has been going on for several weeks now. Is there any way to check the progress of the background destroy to see how much longer this will continue, how much data has been freed, how much of the DDT has been updated, etc? "zfs list" shows very little change in free space. Or am I just going to have to live with resetting the box every 8-10 hours for the next few weeks? Unfortunately, adding more RAM to the box isn't an option right now. :( -- Freddie Cash fjwcash@gmail.com