Solved FreeBSD errors after upgrading to Freebsd 13.0-BETA3 on ZFS

FreeBSD errors after upgrading to Freebsd 13.0-BETA3 on ZFS
1- reboot and shutdown, hang and take a long time to sync "All buffers synced"
2- ping -c 3 http://google.com / "ping: UDP connect: No route to host"

FreeBSD errors after upgrading to freebsd-13.0-BETA2 on ZFS
1- reboot and shutdown, hang and take a long time to sync "All buffers synced"
2- ping -c 3 http://google.com / "ping: UDP connect: No route to host"
3- pfctl -f /etc/pf.conf / "pfctl: DIOCADDRULE: Invalid argument"

On general the upgrade was success and smooth form Freebsd 12.2 to Freebsd-13.0-BETA2 and Freebsd-13.0-BETA3 with OpenZFS 2.0
 

Attachments

  • Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-BETA2 with OpenZFS 2.0.png
    Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-BETA2 with OpenZFS 2.0.png
    66.4 KB · Views: 116
Looks like you have issues with your network adapter. Which network card do you have and what driver detected it? I would also suggest turning off PF for testing, as it looks like you're doing something there that causes it to fail.
 
Looks like you have issues with your network adapter. Which network card do you have and what driver detected it? I would also suggest turning off PF for testing, as it looks like you're doing something there that causes it to fail.
The error pfctl -f /etc/pf.conf / "pfctl: DIOCADDRULE: Invalid argument" is resolved after upgrading to FreeBSD 13.0-BETA3

The error ping -c 3 http://google.com "ping: UDP connect: No route to host" persist even after turning off PF.

For the same VM configuration but with FreeBSD 12.2-RELEASE, there is no errors.

My setup is on a VM with a network adapter : Paravirtualized Network - virtio-net
Code:
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
        ether 08:00:27:5e:80:bc
        inet 10.29.79.239 netmask 0xffffff00 broadcast 10.29.79.255
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
 
The ping(8) command doesn't accept URLs as an argument, only IP addresses or hostnames. Besides that, ping(8) uses ICMP, not UDP.
 
The ping(8) command doesn't accept URLs as an argument, only IP addresses or hostnames. Besides that, ping(8) uses ICMP, not UDP.
Thanks for the reminding, but it just a typo from copy&paste.

Please look at the "Errors after upgrade to Freebsd-13.0-BETA3 with OpenZFS 2.0.png" snapshot image.
 

Attachments

  • Errors after upgrade to Freebsd-13.0-BETA3 with OpenZFS 2.0.png
    Errors after upgrade to Freebsd-13.0-BETA3 with OpenZFS 2.0.png
    73.2 KB · Views: 81
I suspect you have an error or issue with /etc/resolv.conf. Verify your DNS settings.
 
I suspect you have an error or issue with /etc/resolv.conf. Verify your DNS settings.

By the way this DNS settings conf work on freebsd 12.2-Release.

My config now with Freebsd-13.0-BETA3
cat /etc/resolv.conf

nameserver 208.67.220.220
nameserver 208.67.222.222
nameserver 8.8.4.4
nameserver 8.8.8.8
 
Well, it's not specific to 13.0-BETA3:
Code:
dice@lady3jane:~ % uname -a
FreeBSD lady3jane.dicelan.home 13.0-BETA3 FreeBSD 13.0-BETA3 #0 releng/13.0-n244525-150b4388d3b: Fri Feb 19 04:04:34 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
dice@lady3jane:~ % ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=117 time=13.369 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=13.663 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=10.031 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.031/12.354/13.663/1.647 ms
dice@lady3jane:~ % ifconfig vtnet0
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 58:9c:fc:03:af:02
        inet 192.168.11.240 netmask 0xffffff00 broadcast 192.168.11.255
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

What does your routing table look like? netstat -rn
 
Well, it's not specific to 13.0-BETA3:
Code:
dice@lady3jane:~ % uname -a
FreeBSD lady3jane.dicelan.home 13.0-BETA3 FreeBSD 13.0-BETA3 #0 releng/13.0-n244525-150b4388d3b: Fri Feb 19 04:04:34 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
dice@lady3jane:~ % ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=117 time=13.369 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=13.663 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=10.031 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.031/12.354/13.663/1.647 ms
dice@lady3jane:~ % ifconfig vtnet0
vtnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 58:9c:fc:03:af:02
        inet 192.168.11.240 netmask 0xffffff00 broadcast 192.168.11.255
        media: Ethernet autoselect (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

What does your routing table look like? netstat -rn
The ping command doesn't work with hostnames as an argument, but as IP addresse ping the command work fine.
Please look at the png file attached
 

Attachments

  • Errors after upgrade to Freebsd-13.0-BETA3 with OpenZFS 2.0.png
    Errors after upgrade to Freebsd-13.0-BETA3 with OpenZFS 2.0.png
    73.2 KB · Views: 76
The ping command doesn't work with hostnames as an argument
Sure it does:
Code:
dice@lady3jane:~ % ping -c 3 www.google.com
PING www.google.com (142.250.102.105): 56 data bytes
64 bytes from 142.250.102.105: icmp_seq=0 ttl=110 time=10.256 ms
64 bytes from 142.250.102.105: icmp_seq=1 ttl=110 time=12.929 ms
64 bytes from 142.250.102.105: icmp_seq=2 ttl=110 time=15.981 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.256/13.055/15.981/2.339 ms
dice@lady3jane:~ %

What does host www.google.com return? Or drill www.google.com? And post the output from netstat -rn. As text please, pictures are difficult to copy/paste.
 
Sure it does:
Code:
dice@lady3jane:~ % ping -c 3 www.google.com
PING www.google.com (142.250.102.105): 56 data bytes
64 bytes from 142.250.102.105: icmp_seq=0 ttl=110 time=10.256 ms
64 bytes from 142.250.102.105: icmp_seq=1 ttl=110 time=12.929 ms
64 bytes from 142.250.102.105: icmp_seq=2 ttl=110 time=15.981 ms

--- www.google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.256/13.055/15.981/2.339 ms
dice@lady3jane:~ %

What does host www.google.com return? Or drill www.google.com? And post the output from netstat -rn. As text please, pictures are difficult to copy/paste.
Code:
host www.google.com
www.google.com has address 172.217.171.228
www.google.com has IPv6 address 2a00:1450:4006:80a::2004

drill www.google.com
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 42672
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; www.google.com.      IN      A

;; ANSWER SECTION:
www.google.com. 180     IN      A       172.217.19.36

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 54 msec
;; SERVER: 208.67.220.220
;; WHEN: Mon Feb 22 15:09:42 2021
;; MSG SIZE  rcvd: 48

netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            10.29.79.20        UGS      vtnet0
10.29.79.0/24      link#1             U        vtnet0
10.29.79.239       link#1             UHS         lo0
127.0.0.1          link#2             UH          lo0

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               link#2                        UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         ::1                           UGRS        lo0
 
Ok, so name resolving (DNS) works, that's good. Your default gateway looks odd though. While it's technically possible to use any IP address within a subnet, it's more common for the .1 or .254 addresses being used as a gateway address. The message about UDP is odd too, as I said, ping(8) uses ICMP, not UDP.

This appears to be a VM? How is it connected? What's the host running? Which virtualization software?
 
FreeBSD Success and smooth upgrade form Freebsd 12.2-RELEASE to Freebsd-13.0-RELEASE-p0 with OpenZFS 2.0
1- reboot and shutdown, don't hang and take a normal time to sync All the buffers and vnodes, considering the configuration of the Server VM.
2- ping -c 3 google.com "ping: UDP connect: No route to host", persist with the error, even it work with the same config on Freebsd 12.2-RELEASE

The All-in-one (Freebsd, PostgreSQL, PgPool-II, Nginx, Samba, ...) setup for my server work fine and tested without problems.

Thanks for all and the Administrator SirDice for his attentions to help the FreeBSD Community.

Happy Freebsd-13.0-RELEASE.
 

Attachments

  • Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-RELEASE-p0 with OpenZFS 2.0 - gla...png
    Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-RELEASE-p0 with OpenZFS 2.0 - gla...png
    173.2 KB · Views: 85
  • Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-RELEASE-p0 with OpenZFS 2.0 - neo...png
    Success and smooth upgrade form Freebsd 12.2 to Freebsd-13.0-RELEASE-p0 with OpenZFS 2.0 - neo...png
    84.9 KB · Views: 79
Back
Top