I’m writing Immortal Clay, a science fiction series for people who enjoy alien invasion tales like Invasion of the Body Snatchers and The Thing.
The first book is now out; the second should be available in late 2015.
Crime writer. Many of those crimes involve computers.
I’m writing Immortal Clay, a science fiction series for people who enjoy alien invasion tales like Invasion of the Body Snatchers and The Thing.
The first book is now out; the second should be available in late 2015.
I’m in the midst of rearranging my web site. The nonfiction stuff is pretty well organized, but the fiction really is not.
Most of the fiction can easily be reordered, except for a couple of pages that just won’t fit well anywhere. So I’m putting those pages up as blog posts.
Unfortunately, I can’t cancel those out of the RSS feeds. And most of my blog readers are already aware of these pages. I’m using the bang-more markup to keep most of the pages out of your feed, though.
I think I can cancel those pages from spreading to the third-party sites, like Facebook and Twitter and such. If not, I’ll log into those sites and cancel them manually.
My apologies for the extra traffic.
I’ll be doing a 20-minute presentation on Tarsnap at the mug.org meeting on 12 May 2015, at the Farmington Hills library.
As you might guess, it’s somewhat based on my Tarsnap book. I only get 20 minutes, so it won’t be a complete overview, but it will get you started.
Assuming all goes well, we’ll get video again.
FreeBSD Mastery: ZFS just went to the FreeBSD developer community for technical review.
I’ve also made it available for pre-order on the Tilted Windmill site.
This is the first of two books on ZFS.
I also plan a 4-book bundle once FreeBSD Mastery: Specialty Filesystems is done.
One of Solaris’ ZFS features is boot environments, where you can install multiple versions of the core operating systems and choose which one to boot into. Boot environments take a lot of the risk out of upgrades; if an upgrade goes bad, you can easily roll back to the previous version.
Boot environments are built on top of ZFS. Recent FreeBSD installers create fine-grained datasets rather than a single large dataset, which means you can leverage boot environments on FreeBSD.
Boot environments will go into FreeBSD Mastery: Advanced ZFS. But the first book needs to be boot-environment compatible–especially the chapter on manual ZFS installations. So here are my rough notes on boot environments, both from my own researches and from poking Allan Jude on Twitter.
If you’re going to play with boot environments, it’s best to start with a new system. You can migrate an existing system to a boot environment friendly one, but as Dan Langille discovered, it’s a right pain.
I started by installing a new 10.1/amd64 host. Your initial datasets look like this.
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 465M 188G 128K none
zroot/ROOT 463M 188G 128K none
zroot/ROOT/default 462M 188G 462M /
zroot/tmp 149K 188G 149K /tmp
zroot/usr 570K 188G 128K /usr
zroot/usr/home 186K 188G 186K /usr/home
zroot/usr/ports 128K 188G 128K /usr/ports
zroot/usr/src 128K 188G 128K /usr/src
zroot/var 703K 188G 128K /var
zroot/var/crash 128K 188G 128K /var/crash
zroot/var/log 192K 188G 192K /var/log
zroot/var/mail 128K 188G 128K /var/mail
zroot/var/tmp 128K 188G 128K /var/tmp
1
This list is deceptive. The dataset zroot/usr exists, but it isn’t mounted. Go ahead, run mount(8) or zfs mount
and check. I’ll wait. The dataset must exist for you to have child datasets like /usr/ports, but it doesn’t actually contain any data. The files in /usr that aren’t in specific child datasets like /usr/ports or /usr/src are all in the root dataset.
Run pkg install once to install the package management system, and then install beadm from packages.
# pkg install
# pkg install -y beadm
Now see which boot environments you have.
# beadm list
BE Active Mountpoint Space Created
default NR / 494.0M 2015-04-08 07:18
The only boot environment is named default. Under active, N means the environment is active now. An R means the environment will be active on reboot.
I need to upgrade this host to the latest version of FreeBSD 10.1, p9. This is where we need a new boot environment. I’ll name it after the release.
# beadm create 10.1-p9
Created successfully
# beadm list
BE Active Mountpoint Space Created
default NR / 646.0M 2015-04-08 07:18
10.1-p9 - - 10.7K 2015-04-08 11:43
Activate the new boot environment.
# beadm activate 10.1-p9
Activated successfully
# beadm list
BE Active Mountpoint Space Created
default N / 186.0K 2015-04-08 07:18
10.1-p9 R - 646.2M 2015-04-08 11:43
While the default environment has an N, indicating it’s active now, the 10.1-p9 environment has an R, so it will be active after a reboot.
Reboot. After the reboot, you’ll see the new environment is running.
# beadm list
BE Active Mountpoint Space Created
default - - 538.0K 2015-04-08 07:18
10.1-p9 NR / 646.3M 2015-04-08 11:43
Now I can install the latest FreeBSD patches without damaging my default system. If it fails, I can fall back by activating the default boot environment.
Remember how the zroot/usr partition isn’t mounted, so that files on /usr fall through to the root dataset. Your files in /usr and /usr/local are in the boot environment, so you can create new boot environments for package upgrades as well as base system updates. The /var partition works similarly.
Using boot environments opens another whole crate of weasels, though. Of course you want the core system databases in /var/db to be part of the boot environment–but what about /var/db/mysql? Similarly, postgres stashes data in /usr/local/postgres. You don’t want reverting the core operating system to give you an old version of the system database!
When using boot environments, create a new dataset for your database data. This also lets you tune ZFS for that application.
(PS: While you’re here, take a moment to admire how the header image changes every 10 seconds. I am immensely proud of myself for finding the button that made that happen. That’s, like, real web design! And for changing the density of the bookshelf photo so it looked okay in the header. That makes me a graphic designer too, right? Sweet!)
The Sunday Morning Linux Review crew has reviewed Tarsnap Mastery in episode 148. From the review:
“If you use any nix-type system, and need offsite backups, then you need Tarsnap. If you want to use Tarsnap efficiently, you need Tarsnap Mastery.”
The whole episode is worth listening to, but the review itself starts about 1:27 in the unedited video.
They also review me as an author. All I can say to that is: “Eeep!” Fortunately they didn’t review my personality, so I come out okay.
I’ve been busy producing words, just not blog words.
The short bits first. I hit 125K words in the first 3 months of 2015, putting me on track to break half a million words in 2015. While in the past I normally hit about a thousand words an hour, that required leveraging my day job as “research time.” I need to research during my work day now. My nonfiction speed is about 500 words/hour.
Recent releases include a new Montague Portal novella and Tarsnap Mastery. Both seem to be well-received, although neither has accumulated many reviews yet.
Sunday Morning Linux Review did a nice long review of Networking for Systems Administrators.
FreeBSD Mastery: ZFS is starting to take shape. The shape is unexpected.
For the first time, I’m working with a co-author. Allan Jude, one of the brains behind BSDNow and the original author of the FreeBSD Handbook’s ZFS chapter, is working with me to produce this book. He uses a huge amount of ZFS, and his knowledge and experience have been invaluable. Plus, he’s producing words.
This book won’t read like the Handbook, however. It will unquestionably be done in a light and engaging style, with an information flow designed for comfortable reading. It means I have to beat Allan. A lot. But at EuroBSDCon 2013 I demonstrated to Allan that I can kill him in five different ways with a butter knife, so he’s doing as he’s told. Sort of. Mostly.
(No, don’t come running up to me asking if you can co-author a book. This is a very special circumstance.)
We’ve had some unexpected developments along the way. ZFS is huge, and it includes features that we must cover but aren’t in corresponding books. A book on UFS wouldn’t need to cover rsync–but ZFS includes sending and receiving datasets! A book on UFS wouldn’t need NFS, but NFS is built into ZFS. ZVOLs and snapshots? While some BSD UFS’ have snapshots, ZFS snapshots are far more featureful.
All told, this book will run about 80,000 words.
The Mastery books are deliberately limited to 30,000-45,000 words. People tell me that’s about the right price point for that amount of knowledge.
In traditional publishing, when a book runs long you raise the price. That’s fair, assuming the book is worth reading.
Sadly, I can’t charge more than $9.99 for an ebook, thanks to Amazon’s daft pricing structure. I’ve written about this before, but it comes down to the fact that Amazon clearly has no interest in supporting highly-researched nonfiction with a limited audience.
Given the length, we’re splitting FreeBSD Mastery: ZFS into two books. The first book will be on basic ZFS, while the second will have more complicated ZFS information.
Now I just need to get Allan to stop writing like a sysadmin, and start writing so people will learn from his work. Hmmm… where did I leave that butter knife?
I posted this elsewhere, but now that it’s in print I should mention it here:
I have a new Montague Portal novella out, Forever Falls, in both print and ebook.
There’s no grounds for murder.
There’s no ground at all.
The people exploring and exploiting alien universes risk everything—including their lives.But Devin Gupper’s death makes no sense. And the more questions security officer Aidan Redding asks, the less rational it seems.
But in a bottomless universe full of impossibilities, with neutronium miners at one end and a steel-aerating blimp at the other, one impossible murder is only the beginning…
You can get the print version of Tarsnap Mastery from Amazon.com and Amazon.co.uk. Other Amazon sites will have it shortly.
In about 6 weeks the book will percolate through the Ingram catalog, which means that sites like Powells and B&N will have it.
The ebook of Tarsnap Mastery is now on Amazon, iBooks, and Kobo. All DRM-free, of course.
I’m working on the print version this week.
Once I have the print version available, the 3-format ebook bundle will be available from www.tiltedwindmillpress.com