High Five New York

Halfway Home - Tommy Emmanuel

Create mirrored root volume on Solaris 11 with ZFS with EFI

Start with the instructions here, but they don't cover the use of EFI/GPT volumes.  So when you're frustrated with that article, check out these steps.

Install the system on to one disk.

Normally, you would just add another volume with a command like this (where c7t1d0p1 is the disk you are planning to add to the rpool):

zpool attach rpool c7t0d0s0 c7t1d0p1

However, if you are using EFI, you may get an error like this:

root@server:/home/michael# zpool attach rpool c7t0d0s0 c7t1d0p1 Error: c7t1d0p1 is part of an EFI(GPT) labeled device. A required boot partition (BIOS Boot) was not found.

In this case, create a new 256MB partition on your second disk, and in parted, run the following command to make it a bios_boot volume (where 2 is the partition number):

(parted) set 2 bios_grub on

Now, re-run the following command, and you should be set:

zpool attach rpool c7t0d0s0 c7t1d0p1

Make sure to wait for the reslivering to complete.

Can't start HTTPS Apache on CentOS 6

If you are getting an error like the one below, there's a simple solution.

[root@hostname ~]# /etc/init.d/httpd start Starting httpd: Syntax error on line 105 of /etc/httpd/conf.d/ssl.conf: SSLCertificateFile: file '/etc/pki/tls/certs/yourcertificate.crt' does not exist or is empty

The problem is that the SELinux policy is not allowing the apache process to see the keys.  This should fix it:

[root@hostname ~]# restorecon -RvF /etc/pki

Install pandas on OS X 10.9 Mavericks

Turns out the wholesale switch to clang/llvm is causing more trouble with other python packages along with M2Crypto.


Having a problem installing the excellent pandas python library on Mac OS X 10.9 Mavericks?

You may be seeing an error like this when running sudo pip install pandas

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

Thankfully, there is a simple solution.  As root:

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"

pip install pandas

Install M2Crypto on Mac OS X 10.9 Mavericks

Having a problem installing the excellent M2Crypto python library on Mac OS X 10.9 Mavericks?

You may be seeing an error like this when running sudo pip install M2Crypto

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

Thankfully, there is a simple solution.  As root:

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"

pip install M2Crypto

python terbiumlabs Permalink

Careless Whisper in the style of the 1930s, among other things.