Today, I decided to upgrade PostgreSQL from 9.1.5 to 9.2.0 on one of my computers. Ironically, PostgreSQL 9.2.1 was released today, but until the FreeBSD ports hierarchy catches up, the most recent version available is 9.2.0, unless of course you want to do everything yourself. Continue reading Upgrading PostgreSQL from 9.1.5 to 9.2.0
Not long ago it was announced that the FreeBSD ports tree will cease exporting its Subversion repository to CVS, and subsequently any use of CVSup for updating the ports tree will be discontinued by February 28th 2013.
FreeBSD’s main source tree repository has been served by Subversion since late May 2008 with every commit done in the Subversion repository being exported to the old CVS repository, but no date has been announced when that Subversion to CVS transfer will be shut down. Stay tuned for more information.
Nonetheless, this is a Good Time™ to begin the transition from CVSup to Subversion once and for all. And why not set up your own FreeBSD Subversion repository mirror for both the main source tree and the ports tree well ahead of the transition? Continue reading Making your own FreeBSD Subversion repository mirror
Someone named “Edward M” posted on the freebsd-questions mailing list a question of when should we create a ZFS filesystem. I didn’t reply to any of the messages, but I decided to write this post expressing my view.
In short, whenever a part of the filesystem hierarchy exhibits different characteristics, create one or more ZFS filesystems for that particular subtree. Continue reading When to create a ZFS filesystem?
Jeg børstet støvet av noen tilårskomne filer forleden dag. Jeg fant et lite program som jeg skrev en gang i 2000. Programmet teller ned til slutten av Unix-epoken.
Den opprinnelige definisjonen av datatypen
time_t, 32-bit heltall med fortegn, vil få overflyt i midten av januar 2038. Moderne 64-bit OS som FreeBSD/amd64 9.0 har for lengst gått over til 64-bit
time_t. Bare ta en titt i fila
/usr/src/sys/amd64/include/_types.h, omtrent ved linje 83. Problemet med overflyten i år 2038 vil fortsatt gjelde alt utstyr og (binære) filformater som bruker den gamle definisjonen, slik som FreeBSD/i386 9.0. Ta en titt i fila
/usr/src/sys/i386/include/_types.h, omtrent ved linje 91. Den engelske utgaven av Wikipedia har en utfyllende artikkel om problemet.
Kildekoden for det søte, lille programmet mitt, er gjengitt under. Continue reading endofepoch.c
If you trust your users well, you might feel slightly less anxious and allow your users to create new filesystems below their own home directories. Continue reading ZFS Delegated Administration in FreeBSD
One of my systems is running FreeBSD/amd64 9.0-STABLE and is using ZFS for all its worth. The amount of installed memory in this system is 8 gibibytes, which should be enough to please even ZFS’ ARC. After a few hours of uptime not everyone are happy, and one of those unhappy guys are GnuPG. Continue reading Not enough room for wired pages?
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
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
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