Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2021 17:37:29 +0100
From:      Matthias Fechner <idefix@fechner.net>
To:        Waitman Gobble <gobble.wa@gmail.com>, FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Disappearing files in FreeBSD 13.0-R2
Message-ID:  <0ade3392-4e85-fba0-e614-4351ef77e23f@fechner.net>
In-Reply-To: <CAFuo_fwc0d1U6DHWH7c1fPsxjXhiCWoDfr=2=bx052kWO87YSw@mail.gmail.com>
References:  <202103230747.12N7lnl0000125@sdf.org> <CAFuo_fwc0d1U6DHWH7c1fPsxjXhiCWoDfr=2=bx052kWO87YSw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 23.03.2021 um 16:40 schrieb Waitman Gobble:
> What's basic? I've done this many times with UFS systems but maybe the
> first time with ZFS. Maybe creating a pool named "home" mucked things
> up for me. The solution was simply deleting /home, an empty directory.
> After deleting the backup files I decrypted the second drive, imported
> it and it magically showed up on /usr/home where I wanted it. Then I
> made a symlink from /usr/home to /home, just because it's always been
> that way that I remember. When I have time I'll check out that ZFS
> book somebody pointed out.

be very careful here.
If you use the standard configuration and you create a "directory" in=20
your pool, zfs automatically mount it based on the configuration of your =

pool.
So if your zroot mounts to / and you create zroot/home it will be=20
mounted to /home.

If you want to migrate an old UFS to ZFS make sure you mount your new=20
zpool to an alternative root, to not shadow your current data:
zpool create -f -o altroot=3D/mnt zroot /dev/gpt/... (your disc label)

If you have already a pool you can them import to an alternative root:
zpool import -f -o altroot=3D/mnt -d /dev/gpt zroot

Replace zroot with your poolname.

Gru=C3=9F
Matthias

--=20

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0ade3392-4e85-fba0-e614-4351ef77e23f>