Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2019 10:35:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234741] Loader fails to load from ZFS with two disks in JBOD configuration
Message-ID:  <bug-234741-227-FW7yFvnSDD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234741-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234741-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234741

--- Comment #16 from Toomas Soome <tsoome@freebsd.org> ---
(In reply to David Chisnall from comment #15)

First of all: make sure you have backup/snapshot of the disk..

gpart create -s BSD da1
gpart add -t freebsd-zfs -b 0 da1

That should create BSD label and partition starting from sector 0 (label is
512B, one sector). Since zfs does have reserved 8KB from the very start, th=
is
will not disturb zfs. (and would be good to test first!).

Note you *can not* use GPT, because GPT will store backup at the end of the
disk and that will clash with zfs. Also you must use partition scheme which
does allow to create  partition from absolute sector 0.

However, there also is alternate and much better approach. Since you have V=
M,
if you can provision new, a bit larger disk, you can create proper partition
table on it, large enough to fit da1, then *attach* it to da1:

zpool attach zpool da1 <newdisk>pX, wait for resilver, then zpool detach zp=
ool
da1.

just do not mix up the zpool attach and zpool add, those are 2 very differe=
nt
commands.

if you do not have enough space to make full copy but can extend the existi=
ng
da1, then  you can move its content to make space for partition table, but
thats also complicated operation...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234741-227-FW7yFvnSDD>