Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 20:27:23 +0100
From:      Kurt Jaeger <pi@freebsd.org>
To:        John Kennedy <warlock@phouka.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: digital ocean droplet, FreeBSD update from 11.2 to 12.2p4, zpool upgrade and boot sector ?
Message-ID:  <YD6Rm86fcJXmeOS4@fc.opsec.eu>
In-Reply-To: <YD6QeRd3EiujS7O%2B@phouka1.phouka.net>
References:  <YD6J/XWurNIR%2BbsE@home.opsec.eu> <YD6QeRd3EiujS7O%2B@phouka1.phouka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

> > Now: How do I update the boot sector for the additional zpool
> > features ?
> > 
> > It normally says:
> >   gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
> > 
> > But I have no da0 on the digitalocean droplet ?
> 
>   As always, be careful.  For my droplet, my disk looks like this:
> 
> 	# gpart show
> 	=>       40  104857520  vtbd0  GPT  (50G)
> -->	         40        512      1  freebsd-boot  (256K)
> 	        552    4194304      2  freebsd-swap  (2.0G)
> 	    4194856  100662704      3  freebsd-zfs  (48G)
> 
>   So, BIOS (gpart bootcode Ok, vs UEFI) on partition 1.  If your setup is like
> mine, you'd want to be using "vtbd0" instead of "da0".
> 
>   So, presumably:
> 
> 	gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 vtbd0

Thanks -- gpart does not work, but /dev/ has:

l vtbd*
crw-r-----  1 root  operator  0x55 Mar  1 06:20 vtbd0
crw-r-----  1 root  operator  0x57 Mar  1 06:20 vtbd0p1
crw-r-----  1 root  operator  0x58 Mar  1 06:20 vtbd0p2
crw-r-----  1 root  operator  0x59 Mar  1 06:20 vtbd0p3
crw-r-----  1 root  operator  0x56 Mar  1 06:20 vtbd1

So that part looks similar, but gpart has this:

# gpart show

*** Fatal error: open(show): No such file or directory.

-- 
pi@FreeBSD.org         +49 171 3101372                  Now what ?



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