20140220

upgrading freebsd 9 to 10 notes

After upgrading freebsd 9 to 10 using freebsd's own install guide on wiki, I found that my pkg info returned no packages back to me. Kind of frustrating that their install guide does not explain the user land upgrade process. Anyway, this is what I had to do to fix that:


migrate to pkg2ng
# pkg2ng

tell your ports of the change
# cat /etc/make.conf
WITH_PKGNG=yes

update packages before proceeding to install
# pkg update


if you get an error: “PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file”

cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf


*I really should be using tags or something for this post.

20121220

openldap: bdb_equality_candidates: (uidNumber) not indexed

This article was a big help

Tested on Debian v6.0.6


  1. Stop the LDAP server:
    /etc/init.d/slapd stop
  2. Open the right OpenLDAP config file with an editor:
    vi /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
  3. Add new lines (after the one with olcDbIndex: objectClass eq in it) for the missing indexes. Eg.:
    olcDbIndex: cn eq
    olcDbIndex: gidNumber eq
    olcDbIndex: memberUid eq
    olcDbIndex: uid eq
    olcDbIndex: uidNumber eq
    olcDbIndex: uniqueMember eq
  4. Run the OpenLDAP indexer for your configuration:
    slapindex -F /etc/ldap/slapd.d/
  5. Fix file permissions in your OpenLDAP database:
    sudo chown -R openldap:openldap /var/lib/ldap
  6. Start the LDAP server:
    /etc/init.d/slapd start

20121109

VCenter 5 & Oracle 11g - Waiting for vpxd to initialize: .failed

So I have a VMWare vCenter v5 appliance connected to Oracle 11g database but I noticed I couldnt login to the vSphere client. I ssh'd to vCenter and found out vpxd process was down. When I manually tried to start it I got and error.

vcenter:~ # /etc/init.d/vmware-vpxd start
Waiting for vpxd to initialize: .failed


Its fails to start... why?

So I tried to start it from the vCenter web console and I got 
"ORA-28001: the password has expired"

I decided to login to Oracle DB and check ...yup....I found out my user account is expired.

SQL> select username,account_status from dba_users;

USERNAME       ACCOUNT_STATUS
------------------------------ --------------------------------
SYS       OPEN
SYSTEM       OPEN
VPXADMIN       EXPIRED



So first I setup a new password
"alter user VPXADMIN identified by MYNEWPASSWORD;"

And I dont need passwords to expire on the server so I fixed that by running

"ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;"