From owner-freebsd-questions@freebsd.org Tue Oct 27 13:45:01 2020 Return-Path: Delivered-To: freebsd-questions@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 00B3544E68F for ; Tue, 27 Oct 2020 13:45:01 +0000 (UTC) (envelope-from xpetrl@beepc.ch) Received: from srv.fastssdserver.com (srv.fastssdserver.com [162.223.31.2]) (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 4CLCcr08Lmz4rc2 for ; Tue, 27 Oct 2020 13:44:59 +0000 (UTC) (envelope-from xpetrl@beepc.ch) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=beepc.ch; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BH3ci9bHValn3Ha6Mn/t1swHfl3j7qzYtrD1y48EdMU=; b=bsbjPwp2gDtlkdlWzTqbQWeUpI VSxOjJ4ZptIBibfmsUbP+4IC9EIfd2hLL1PVIruLpvmnctee8wr2LDTKYoBgWYOfgsWVNnuSNhSeJ no+zNLZvDYrShw/wyAUsSMF+ASK7NxqUHmbW2rEUKxc0tR/7wvuZ0EszNfV2xD/8/0j3waUI2mnwN 2rAPmnMBtAtRbJj36mZlcp8UtwaqJAtjt5t10K2hb/f3IT6HiwX5s2QBbPHOR0VOq6RdsVnIU1iM9 G2MUnY/ovVcJhJEzFGYQO67J2cSBDj7UbhN0XwKYDS+1hS0tdOFgSI1Og7aYbdpq1pzgM50q4H+wE UoNwdRgw==; Received: from 37.245.43.185.wifx.net ([185.43.245.37]:45230 helo=[192.168.1.242]) by srv.fastssdserver.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kXPHQ-005JKx-A1; Tue, 27 Oct 2020 18:44:52 +0500 Subject: Re: move zfs geli encrypt mirror to unencrypted To: Steve O'Hara-Smith , freebsd-questions@freebsd.org References: <66e2f2da-af22-766a-cc7a-78c29735e39f@beepc.ch> <20200916153611.abaaa06edad1738c9c4c381e@sohara.org> From: xpetrl Message-ID: Date: Tue, 27 Oct 2020 14:44:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200916153611.abaaa06edad1738c9c4c381e@sohara.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv.fastssdserver.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - beepc.ch X-Get-Message-Sender-Via: srv.fastssdserver.com: authenticated_id: xpetrl@beepc.ch X-Authenticated-Sender: srv.fastssdserver.com: xpetrl@beepc.ch X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4CLCcr08Lmz4rc2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=beepc.ch header.s=default header.b=bsbjPwp2; dmarc=none; spf=pass (mx1.freebsd.org: domain of xpetrl@beepc.ch designates 162.223.31.2 as permitted sender) smtp.mailfrom=xpetrl@beepc.ch X-Spamd-Result: default: False [-2.67 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[beepc.ch:s=default]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; HAS_X_SOURCE(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[beepc.ch]; ARC_NA(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.993]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[beepc.ch:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.17)[-0.173]; HAS_X_GMSV(0.00)[xpetrl@beepc.ch]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; HAS_X_ANTIABUSE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:46261, ipnet:162.223.28.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions]; HAS_X_AS(0.00)[xpetrl@beepc.ch] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2020 13:45:01 -0000 > xpetrl wrote: > >> Hello, >> >> We have a server with 4 disks, 2 zpool are zfs mirror: >> >> - base system unencrypted, partitions (da*p2) >> - data storage, geli encrypted, partitions (da*p4) >> >> We now want to "move" the data storage (encrypt) to unencrypted partition. > > Do you still want the encrypted partitions ? If not the simplest > thing to do would be to detach the encrypted devices (daNp4.eli) one at a > time and attach the unencrypted device (daNp4) in its place, wait for the > resilver and repeat for the other devices in the zvol. > Detached one drive daNp4.eli, then I didn't found how to attach daNp4: zpool attach encrypt 3680521480316264201 /dev/da3p4 cannot attach /dev/da3p4 to 3680521480316264201: no such pool or dataset I could just attach (again) daNp4.eli: zpool attach encrypt 3680521480316264201 /dev/da3p4.eli Do I miss a step?