Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2022 18:14:36 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        questions@freebsd.org
Subject:   Re: temporarily import a zpool striped disk (root-on-zfs)
Message-ID:  <1caed6a6-fa3b-5d00-8141-fac7c8904480@holgerdanske.com>
In-Reply-To: <YivjiJJOycrgisSD@cloud9.zyxst.net>
References:  <YivjiJJOycrgisSD@cloud9.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1caed6a6-fa3b-5d00-8141-fac7c8904480>