From owner-freebsd-stable@freebsd.org Sat Jul 22 12:08:50 2017 Return-Path: Delivered-To: freebsd-stable@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 EE9ECD7EFC8 for ; Sat, 22 Jul 2017 12:08:50 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5AEAF77BB9 for ; Sat, 22 Jul 2017 12:08:49 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from [IPv6:2a02:2698:26:9b0e:71b3:748:aac9:67e1] (dynamic-2a02-2698-26-0-0.perm.ertelecom.ru [IPv6:2a02:2698:26:9b0e:71b3:748:aac9:67e1] (may be forged)) (authenticated bits=0) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPSA id v6MC8hit081070 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 22 Jul 2017 17:08:44 +0500 (YEKT) (envelope-from emz@norma.perm.ru) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=norma.perm.ru; s=key; t=1500725324; bh=aT8LS8Sm2zRXOuv3zYYf48vJ+PooRUMwEgiNZ1wZ+XY=; h=To:From:Subject:Date; b=RSl2cHVRlBMuMeOkat9oAN1Xq+HUKJz4y6hBlYPzbkNIHcl/pJMxOgvhrwB0EANNB cBQbkYjebTij/u/QlPZrmle4Tp/pZTgNdZNgZVxrSnPlJpaLPXeGMXXA3ZH5SUNsB1 t1NNSzAwIVFz5BBOyddmxGjKp2+b24JtCnYqQk7w= To: freebsd-stable From: "Eugene M. Zheganin" Subject: cannot destroy faulty zvol Message-ID: <73ed4a4d-a156-457a-37d3-12d7ef4f89b9@norma.perm.ru> Date: Sat, 22 Jul 2017 17:08:29 +0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2017 12:08:51 -0000 Hi, I cannot destroy a zvol for a reason that I don't understand: [root@san1:~]# zfs list -t all | grep worker182 zfsroot/userdata/worker182-bad 1,38G 1,52T 708M - [root@san1:~]# zfs destroy -R zfsroot/userdata/worker182-bad cannot destroy 'zfsroot/userdata/worker182-bad': dataset already exists [root@san1:~]# also noitice that this zvol is faulty: pool: zfsroot state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://illumos.org/msg/ZFS-8000-8A scan: scrub in progress since Sat Jul 22 15:01:37 2017 18,7G scanned out of 130G at 75,0M/s, 0h25m to go 0 repaired, 14,43% done config: NAME STATE READ WRITE CKSUM zfsroot ONLINE 0 0 4 mirror-0 ONLINE 0 0 8 gpt/zroot0 ONLINE 0 0 8 gpt/zroot1 ONLINE 0 0 8 errors: Permanent errors have been detected in the following files: zfsroot/userdata/worker182-bad:<0x1> <0xc7>:<0x1> is this weird error "cannot destroy: already exists" related to the fact that the zvol is faulty ? Does it indicate that metadata is probably faulty too ? Anyway, is there a way to destroy this dataset ? Thanks.