FreeBSD upgrade pool zroot

Today I successfully upgraded my FreeBSD home nas server from 10.3 to 11.0. This is the final release of version 11.0, though the official announcement is expected to be made on September 28. After the system upgrade, I need to also upgrade the 2 zpools (tank and zroot) so they can have new features. Upgrading tank was easy, all I needed to do was running this command: # zpool upgrade tank This system supports ZFS pool feature flags....

September 27, 2016 · 2 min · 283 words · kenno

FreeBSD git fatal: Unable to find remote helper for 'https'

I just found out that git is not fully functional on my FreeBSD (11) box. It was installed from port (using portmaster git). I can clone a repo using SSH key, but not with HTTPS. I’m not quite sure if it’s always been this way. Here is how to fix it: Reinstall curl # pkg remove curl # portmaster curl Reinstall git # pkg remove git # portmaster git Why did I install git from port?...

July 1, 2016 · 1 min · 94 words · kenno

PF firewall rule for DNS server

A reminder to readers, most of these blog posts are to remind me what I have done or fixed some problems. What works for me may not work for you. Most of the time, they aren’t even the best practice. Here’s a snippet of the PF firewall rule on my FreeBSD box which acts as a DNS server. Basically, the firewall opens up UDP port 53 to allow LAN access it....

July 9, 2015 · 1 min · 131 words · kenno

Remove a file/directory starting with dash/hyphen

I just noticed that in the /root directory, there exists a directory with its name starting with a dash: -p in my FreeBSD box. As much as I wanted to get rid of it, I was curious to find out what’s inside that directory. That didn’t work. After a short while of trying many things, I figured out 2 ways to do it. Another way (1) is to add ‘./’ in front of it:...

July 7, 2015 · 1 min · 148 words · kenno

ISC Dhcpd Duplicate UID Lease

Someone asked this question in one of his blog posts: Yes, I’m seeing something like that now in the my dhdcp logs. Here is the actual message: I think I know why this happened. Basically, the machine with MAC address of ’08:00:27:6e:61:b8′ used to have grab an IP address from the pool. Then later on, I have created a reservation for it. On Centos 7, the lease file is located at: /var/lib/dhcpd/dhcpd....

June 25, 2015 · 1 min · 98 words · kenno