Category Archives: FreeBSD

Anything related to FreeBSD

Resizing mirrored ZFS root pool

George Mamalakis was having trouble with ZFS not detecting and utilizing his resized GPT freebsd-zfs partitions. Marco van Tol came to the rescue with a corrective procedure.

Credit goes to George Mamalakis for raising the issue and to Marco van Tol for the solution. I’m just a simple bystander in comparison to these two, fine gentlemen.

Below are my notes from a simple experiment performed late this evening demonstrating one way of making ZFS grow its pool size. The experiment is based on George Mamalakis’ setup as explained in his post linked above. Note, some system administrator’s liberty has been applied. Continue reading Resizing mirrored ZFS root pool

New server and first attempt at running FreeBSD/amd64 with ZFS for all storage

The switch to new hardware finally happened. This is the first server to run FreeBSD/amd64 under my supervision. ZFS is used for all storage on this server. I chose to install the newly released FreeBSD/amd64 9.0-RELEASE, before upgrading to FreeBSD/amd64 9.0-STABLE by source. It’s just a matter of preference, given my 13-14 years of experience with FreeBSD. Continue reading New server and first attempt at running FreeBSD/amd64 with ZFS for all storage

ZFS root fs on FreeBSD 9.0

Gone are the old MFS root fs image and the sysinstall utility. To create a useable ZFS root fs from the 9.0-RELEASE DVD we must specify an alternate location for the temporary zpool.cache file and an alternate mountpoint for the ZFS root fs by using a command like:

zpool create -o cachefile=/tmp/zpool.cache -m /tmp/zroot zroot /dev/gpt/disk0

Also, the FreeBSD distribution is now stored as a handful of xz compressed tar files in /usr/freebsd-dist on the DVD. Everything else remain largely the same. The instructions below also apply to 9.1-RELEASE.

See http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot and http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/ for further details.

Keep on reading if you want my recipe for creating a ZFS root fs. Continue reading ZFS root fs on FreeBSD 9.0

FreeBSD 9.0 as IPv6-only

At work we have native IPv6 connectivity along with IPv4. We’ve had IPv6 for nearly 5 years and IPv4 for the past 17 years.

On 2011-08-16, I grabbed an IPv6-only snapshot of FreeBSD/i386 9.0-BETA1 dated 20110727 and started experimenting with internet life using only IPv6. This particular machine is a virtual machine running inside VirtualBox 4.1.2 on my Windows 7 desktop at work. Continue reading FreeBSD 9.0 as IPv6-only

How to forcefully upgrade all your FreeBSD ports using portupgrade

When moving from one major FreeBSD branch to another, you are almost compelled to upgrade all of your installed FreeBSD ports. If you move from the RELENG_7 branch to RELENG_8, as an example, the old pty interface is deprecated, and ports such as screen (sysutils/screen) must be recompiled and reinstalled to take advantage of the new pts interface. Continue reading How to forcefully upgrade all your FreeBSD ports using portupgrade

Oppgraderingstabell for FreeBSD

Jeg tenkte at jeg skulle dele med dere et lite avkrysningsskjema som jeg lagde i formiddag. Det er en god del ting som skal gjøres for hver FreeBSD-maskin i forbindelse med oppgradering. I stedet for å fortsette å bruke Post-It-lapper, så brukte jeg pdfLaTeX og lagde koden for skjemaet som dere ser under. Dersom du vil se hva resultatet blir, så kan du ta en titt på denne PDF-fila. Bon appétit. Continue reading Oppgraderingstabell for FreeBSD