[oi-dev] Install into existing zfs pool on a GPT partition
Udo Grabowski (IMKASF)
udo.grabowski at kit.edu
Fri Sep 5 09:13:38 UTC 2025
On 05/09/2025 10:59, Atiq Rahman wrote:
> Hi folks,
> So I tried this tonight (rsync OI from a whole disk installation).
> Everything
> (the parts that usually work on my system except for graphics, network,
> etc.)
> seemed to go smoothly. BSD Loader booted the kernel without errors.
>
> Except after rsync and reboot, my home pool won't automount. Since I put
> /export (/home is inside that) on a separate dataset, I get it. I had to
> manually import it. However, the system is supposed to initialize my home
> dir. That wouldn't happen due to the pool not auto-importing.
>
> Any thoughts on getting the automount behavior back?
>
> root pool:
> spool 38.0G 85.0G 34.5K /mnt/spool
> spool/ROOT 5.99G 85.0G 24K legacy
> spool/ROOT/OI 5.99G 85.0G 5.73G /mnt
> spool/ROOT/OI/var 269M 85.0G 269M /mnt/var
> spool/dump 15.5G 85.0G 15.5G -
> spool/swap 16.5G 102G 12K -
>
> home / data pool:
>
> $ sudo zfs list
> NAME USED AVAIL REFER MOUNTPOINT
> matrix 2.15M 123G 24K none
> matrix/export 291K 123G 291K /mnt/export
> ...
Seems home does no longer have its own zfs. Do it like this:
cd /mnt/export;mv home home_d;zfs create matrix/export/home;
# home should appear empty besides home_d
rsync -av home_d/ home/; rm -rf home_d;
zfs set canmount=on matrix/export/home
# check that /home does not exist already
zfs set mountpoint=/home matrix/export/home
# /home should appear with your user dir inside
Do the analog steps if your user dir under /home should also
be its own zfs (recommendable for more than one user).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6041 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20250905/6cd456ff/attachment.bin>
More information about the oi-dev
mailing list