Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 18:28:14 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        Trond Endrest?l <Trond.Endrestol@fagskolen.gjovik.no>
Cc:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Dualboot and ZFS
Message-ID:  <20180116112814.GA18197@admin.sibptus.transneft.ru>
In-Reply-To: <alpine.BSF.2.21.1801160934560.69908@mail.fig.ol.no>
References:  <20180115051308.GA45168@admin.sibptus.transneft.ru> <VI1PR02MB12007D071EA5398373D2189CF6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115125241.GB60956@admin.sibptus.transneft.ru> <VI1PR02MB1200C7F0066F361E60A6CBEDF6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115144747.GA65526@admin.sibptus.transneft.ru> <VI1PR02MB120018D174817F8FFB2981D5F6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115151526.GA66342@admin.sibptus.transneft.ru> <a7920f859b666cff48f4f73ee1b2f954@dweimer.net> <20180116034929.GB89443@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1801160934560.69908@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Trond Endrest?l wrote:
> 
> I couldn't resist attempting a proof of concept, so here it is.

Before I follow your steps, two comments:
> 
> !!! Show the resulting disklabel !!!
> 
> [script]# gpart show ada0s3
> =>       0  67108864  ada0s3  BSD  (32G)
>          0  58720256       1  freebsd-zfs  (28G)
>   58720256   8388608       2  freebsd-swap  (4.0G)

How funny! I did not even know that fstype in the disklabel can be "ZFS". I
have only seen "swap" and "4.2BSD" so far.

$ gpart add -t freebsd-zfs md0s1 && disklabel md0s1
md0s1a added
# /dev/md0s1:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  a:       4095          0       ZFS
  c:       4095          0    unused        0     0     # "raw" part, don't edit
$

[dd]

> 
> !!! Create our zpool, YMMV !!!
> 
> !!! Create our initial BE, YMMV !!!

Do you know how to create a beadm-friendly zroot manually (like the one
created automatically by bsdinstall)? 

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180116112814.GA18197>