I upgraded freebsd from 10.4 to 11.1. All went fine. I then proceeded to upgrade my zfs pool.
I then got a message indicating I may need to update boot code. On further examining these forums I realized I have to.
So based on this information I figure I need to update boot code on both ada0 and ada1 with these commands
when I execute the first command I get the following error:
After further exploring the forums I came across this post:
https://forums.freebsd.org/threads/...rite-bootcode-after-root-zpool-upgrade.57955/
Based on the comments by generic on this post I should be able to fix the problem by allocating more space from my swap to the boot drive. Is that correct? Any idea what commands to use to do this?
I do not have any free space so I am stuck.
Finally, I am assuming it is NOT safe to reboot this machine as it will not boot back up. Is that correct?
Code:
~/> zpool status pool0
pool: pool0
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
pool0 ONLINE 0 0 0
gpt/disk4 ONLINE 0 0 0
gpt/disk6 ONLINE 0 0 0
~/> zpool upgrade pool0
I then got a message indicating I may need to update boot code. On further examining these forums I realized I have to.
Code:
~/>
gpart show
=> 34 1953525101 ada0 GPT (932G)
34 128 1 freebsd-boot (64K)
162 33554432 2 freebsd-swap (16G)
33554594 1919970541 3 freebsd-zfs (916G)
=> 34 1953525101 ada1 GPT (932G)
34 128 1 freebsd-boot (64K)
162 33554432 2 freebsd-swap (16G)
33554594 1919970541 3 freebsd-zfs (916G)
So based on this information I figure I need to update boot code on both ada0 and ada1 with these commands
Code:
~/> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
~/> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
when I execute the first command I get the following error:
Code:
[code]
~/> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
gpart: /dev/ada0p1: not enough space
After further exploring the forums I came across this post:
https://forums.freebsd.org/threads/...rite-bootcode-after-root-zpool-upgrade.57955/
Based on the comments by generic on this post I should be able to fix the problem by allocating more space from my swap to the boot drive. Is that correct? Any idea what commands to use to do this?
I do not have any free space so I am stuck.
Finally, I am assuming it is NOT safe to reboot this machine as it will not boot back up. Is that correct?