ZFS on CentOS

First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below: $ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm $ sudo yum install zfs Once, zfs has been installed, we can create a storage pool. There’re many RAID configuration to choose from, and I’m not going to get into it. However, if you want to learn more, you can read this ZFS Administration article which explains in great detail about ZFS RAID(Z)....

October 8, 2013 · 1 min · 144 words · kenno

E: Internal Error, No file name for libapt-pkg4.12

When I tried to update an Ubuntu (12.04) machine with the usual apt-get command, this error message came up: Reading this post (http://ubuntuforums.org/showthread.php?t=2045321), one way to fix it is to download liapt-pkg4.12 and re-install it: This seems did the trick.

October 3, 2013 · 1 min · 40 words · kenno

Turn color on for git status

The following command will update the Git’s global configuration to set the color.ui to true. $ git config --global color.ui true Ref: https://ask.fedoraproject.org/question/10434

September 26, 2013 · 1 min · 23 words · kenno

Changing ZFS pool to use disk ID instead of disk assignment

This what I have: # zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 To convert the pool to use disk’s ID instead of device files such as /dev/sda, we need to export the storage pool. # zpool export tank After this command is executed, the pool tank is no longer visible on the system....

September 20, 2013 · 1 min · 162 words · kenno

FreeBSD configure: error: XML::Parser perl module is required for intltool

If you get this error message on a FreeBSD host, you may need to reinstall p5-XML-Parser.

July 24, 2013 · 1 min · 16 words · kenno

Upgrading from Fedora 18 to 19

I know Fedora 19 is officially released tomorrow; but if you can’t wait to upgrade your machine to the latest release like me, here is the command to do it: One thing I noticed after the upgrade is that, the bottom status bar can’t be found when you hit the system key. The good news is it’s still there; you just need to hit system key + m to have it showed up....

July 2, 2013 · 1 min · 73 words · kenno

Install crontab on CentOS 6

When you install CentOS 6 using minimal CD, a lot of packages aren’t installed by default; <strong>cron</strong> included. To install it, After the installation, you can verify that crond is running:

May 27, 2013 · 1 min · 31 words · kenno

vmware: CD/DVD ROM drive is stuck in connecting mode

As the title says, if the CD/DVD device of your VM is stuck in connecting mode, one thing to try is to shutdown the vSphere client, and restarted it. I found this solution from http://communities.vmware.com/message/1784438, and it worked for me.

February 11, 2013 · 1 min · 40 words · kenno

PHP Fatal error: Call to undefined function utf8_decode()

This occurs on a FreeBSD server. According to this post[1], I need to install php5-xmlphp5-xml. [1] http://hi.baidu.com/ericyangbj/item/8289a32771e4171d09750856

December 25, 2012 · 1 min · 17 words · kenno

FreeBSD: Fatal error: Call to undefined function session_name()

I just setup Apache and PHP on FreeBSD 9, configured a vhost, then when I tried to access it, I got the following error: Fatal error: Call to undefined function session_name() in /srv/www/sugaku.domain.com/inc/init.php on line 144 so apparently, the “session” support is missiong from php5 installation. To fix it, I need to install php5-session port. Let’s do it. # whereis php5-session<br /> php5-session: /usr/ports/www/php5-session<br /> portmaster www/php5-session If the installation is successful, then we can restart apache....

December 25, 2012 · 1 min · 89 words · kenno