From nobody Sat Mar 12 02:14:36 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A8D051A24642 for ; Sat, 12 Mar 2022 02:14:47 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFmbB4x8Cz4skj for ; Sat, 12 Mar 2022 02:14:46 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1647051277; bh=3vjIROoKXzyjz6mBAjL+8hPxXeGD1iQcQfeK8hzo7Kw=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=veOSEgl/w7mCGKm+CblWN8nVm3JX9sVslZ2/pPsRTPQn6sKielj/eLahsTQH5HwFK W8UomWrlsQJireRPmqwUirmv0RxaTHzW4zpu2vJYuWmLJ9kUlvHp0qeHemeud1UVeZ hZKztKESrkfrJgMt6mPa3J/mWtIjCEQi5+Rv4X7mKfYtD5GmqvDWFYPKrYZmZ51eXu NawJQ6ml2g9/3Wh5gq8pVoZM3qez/RRfBPyRxXKg2rSgSI6+CXpmXIeDRHGQbcO6TJ rpELFC+f8UBRPHVAENbPy7FYmxKyQ29cauB3/Q50X4/63MzRddCdShJCDmSG5wVX2y Wr2mcy+UO3yVJ+PpksPOebwYlenXIBkY0jWP2XGu3Ft3M2OxrsI7yDxeKxaKw4f+DT iN9Bni+hkwtbt5khX/NZOBN9JhjtBuw0yGO4BJ+/oZ47L7uQnmMfHZVD1CyDbLfp78 VSJhunU/Fwt001WGNSMksKthpBOae3NLEiFC3owX04Vy2xfSZviOJ3ku0eBCJ7BKlX zvAm2f/Meg+ixxaNod9fEH4JE+SNmYD2S3jP7ffJNaOtdCmZUQ6jKvvajiOjTRhNH5 MU1w3aaxU+tBAb2VyCQ8gWCmkCo4T68Lya4UzgdUH8V0oKAT00sSXSo3D2v9YK13Ze 4KWbaUD64FKYQeWq0gvzybmY= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Fri, 11 Mar 2022 18:14:37 -0800 Message-ID: <1caed6a6-fa3b-5d00-8141-fac7c8904480@holgerdanske.com> Date: Fri, 11 Mar 2022 18:14:36 -0800 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: temporarily import a zpool striped disk (root-on-zfs) Content-Language: en-US To: questions@freebsd.org References: From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KFmbB4x8Cz4skj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b="veOSEgl/"; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 3/11/22 16:05, tech-lists wrote: > Hi, > > I want to *temporarily* import a disk into a stable/13 system in order > to modify a couple of files. > > The disk is an external usb3-boot root-on-zfs -current in a stripe > configuration. Do you mean that there is one pool containing one vdev? > The machine I'd like to import this into is *not* > zfs-on-root. It boots to ufs, uses zfs for data, runs stable/13 > > Ideally the disk should be mounted on /mnt of the importing system. > > Is there an easy way to do this that does not disrupt either system? > I'm wary of using zpool import in case the importing pool pollutes > the cache of the host. > > thanks, I would set the "altroot" property when importing the external pool: # zpool import -R /mnt externalpool See: https://www.freebsd.org/cgi/man.cgi?zpool(8) https://docs.oracle.com/cd/E18752_01/html/819-5461/gbcgl.html Importing Alternate Root Pools If you are worried about damaging your "stable/13 system", boot the FreeBSD installer into its live system and use that to do the work. David