From owner-freebsd-fs@freebsd.org Mon Jul 2 15:35:32 2018 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 9E28D102D1F8 for ; Mon, 2 Jul 2018 15:35:32 +0000 (UTC) (envelope-from clover.informatica.it@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 13EB58DE5E for ; Mon, 2 Jul 2018 15:35:32 +0000 (UTC) (envelope-from clover.informatica.it@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id h40-v6so4901272wrh.2 for ; Mon, 02 Jul 2018 08:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=moxiLm7jWDdwObI2zQRJsd12jJUaLCK2og0ktXl4DyU=; b=LnAOyi5J4MTSZycO289+YjbN4fD2UgX1rgHyKPB5Cq4M0ez3U8pV2yGStREaFJ4ql+ q40VnybD4UNfLkE3+sFkQRZHuBBuyltW5WNlNE3Z7+xAI/4IDFcE2h4VvM4/iYYAM8xK SDCJ8+EDvz/XRL114f6VRRxRPTzXz1BVOomx8ICbzmms8P9kFYUC9gFWOClMnw3ekMab zDBzV1GQns/TKPLZxQ8gvR+DkrCyrrPIY5aARxNyv15cdsFOHeStPH3jHUWu8V2iHHva R9eM7LmyrGi6Rp75H6137MyxgzrVkFyAUMGcR0dCKD28DSA0RGslotTVhkrcZZk9+QMt ZF1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=moxiLm7jWDdwObI2zQRJsd12jJUaLCK2og0ktXl4DyU=; b=n1Vr6eDWt3yVbFLD4kxSMqCC02ZXaOT5YSMOHHp/mcuraSHEsp4VDqHAUMfvhuE+TD 5yXnQjnJAOIuMDd51w4qhbayEUSMI6Kk2NlBtRFXDgdrx/seRuk/gtCxF8v7EjudhpYy PXPCAzLu0xfsyMs6U3qgyfaObdagbpACTr9KWTY0rdtGVDH1EOWvgRH49FtdoZulACo1 zc3Eyxe9N0n3oVuThqEnxg/2SD8E8f3eiOn5+RVOevhqUVCpiAbTCnc2mV0/B9x4P03e NaorX0Htwvv+qNdL05mlGZgzJf+FrPqtTyZ93tJS8Ufg9+Dky3OBEHqtvsFCJ3apUSX1 iH3w== X-Gm-Message-State: APt69E035SLsuTCKnkhXBHBZLZsw2Ouusi0JKupLr8+2WwF45vedn16V pJOodgfgc9z+iUtj4yMHPzGywMWJ X-Google-Smtp-Source: AAOMgpe9OBWfmtMX1bbsCxVlARzMNMYGG3YFgBd8eht2TIWbwUWWxt6P6xjmSJ2NVPb6WNjsVtRzQw== X-Received: by 2002:adf:99ea:: with SMTP id y97-v6mr19623028wrb.215.1530545729992; Mon, 02 Jul 2018 08:35:29 -0700 (PDT) Received: from [192.168.0.60] (host60-31-static.11-79-b.business.telecomitalia.it. [79.11.31.60]) by smtp.gmail.com with ESMTPSA id l6-v6sm6211858wmh.41.2018.07.02.08.35.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 08:35:29 -0700 (PDT) From: Maurizio Vairani X-Google-Original-From: Maurizio Vairani Reply-To: maurizio.vairani@cloverinformatica.it Subject: Re: Reproducible panic playing with zpool remove in FreeBSD 11.2-RELEASE. To: =?UTF-8?Q?Karli_Sj=c3=b6berg?= Cc: freebsd-fs@freebsd.org References: Message-ID: Date: Mon, 2 Jul 2018 17:35:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2018 15:35:32 -0000 Il 02/07/2018 16:45, Karli Sjöberg ha scritto: > > > On Jul 2, 2018 15:52, Maurizio Vairani > wrote: > > Hi, > > boot the 11.2-RELEASE installation media in the . > Insert an USB memory stick, suppose it is /dev/da5. > # gpart create -s GPT da5 > # gpart add -t freebsd-zfs -a 1m -s 1g da5 > # gpart add -t freebsd-zfs -a 1m -s 1g da5 > # zpool create -O mountpoint=/tmp/ztest ztest da5p1 da5p2 > # cp /bin/* /tmp/ztest > # zpool remove ztest da5p1 > > > How are you even able to remove a partition in a pool without redundancy? > > I would've thought ZFS would complain about that and at least force > you to have an '-f' or something in there... This is a new feature in 11.2-RELEASE. From ZPOOL-FEATURES(7): device_removal            GUID               com.delphix:device_removal            READ-ONLY COMPATIBLE    no            DEPENDENCIES           none            This feature enables the    "zpool remove" subcommand to remove            top-level vdevs,    evacuating them    to reduce the total size of            the pool.