Upgrade ocfs2 untuk RAC

Beberapa bulan yang lalu salah satu partisi di server linux database RAC tidak bisa di-write, kalau di di
tail -f /var/log/messages ada error seperti ini :
kernel: ons(3576): unaligned access to 0x200000000829e93c, ip=0x20000000002416c0
kernel: ons(3576): unaligned access to 0x6000000000057b2c, ip=0x20000000002416c0
kernel: oracle(8534): floating-point assist fault at ip 4000000009f5e162, isr 0000020000001001

Setelah searching di mbah google plus metalink…ada saran untuk mengupgrade OCFS2 ke versi yang lebih baru. Dari http://oss.oracle.com/projects/ocfs2 didapat versi terbaru 1.2.8-2.
Yang terinstall sekarang versi 1.2.5-1

Jadi mulai langkah2 persiapan untuk upgrade:
1. Cari tahu versi ocfs yg terinstall.
# rpm -qa |grep ocfs
ocfs2-2.6.9-42.0.2.EL-1.2.5-1
ocfs2-tools-1.2.1-1
ocfs2console-1.2.1-1

Bisa juga menggunakan
# cat /proc/fs/ocfs2/version
OCFS2 1.2.5 Tue Mar 27 14:04:16 PDT 2007 (build 0f745576f5282c9408787369d99ba880)

2. Cari tahu versi kernel
# uname -r
2.6.9-42.0.2.EL

3. Download ocfs2 terbaru
ocfs2-2.6.9-42.0.2.EL-1.2.8-2.el4.ia64.rpm, ocfs2-tools-1.2.7-1.el4.ia64.rpm, ocfs2console-1.2.7-1.el4.ia64.rpm

4. Ikuti cara upgrade di http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html#UPGRADE

  • Umount all OCFS2 volumes.
  • 	# umount -at ocfs2
    
  • Shutdown the cluster and unload the modules.
    	# /etc/init.d/o2cb offline
    	# /etc/init.d/o2cb unload
    
  • If required, upgrade the tools and console.
    	# rpm -Uvh ocfs2-tools-1.2.7-1.el4.ia64.rpm ocfs2console-1.2.7-1.el4.ia64.rpm
    
  • Upgrade the module.
    	# rpm -Uvh ocfs2-2.6.9-42.0.2.EL-1.2.8-2.el4.ia64.rpm
    
  • Ensure init services ocfs2 and o2cb are enabled.
    	# chkconfig --add o2cb
    	# chkconfig --add ocfs2
    
  • To check whether the services are enabled, do:
    	# chkconfig --list o2cb
    	o2cb      0:off   1:off   2:on    3:on    4:on    5:on    6:off
    	# chkconfig --list ocfs2
    	ocfs2     0:off   1:off   2:on    3:on    4:on    5:on    6:off
    
  • To update the cluster timeouts, do:
    	# /etc/init.d/o2cb configure
  • At this stage one could either reboot the node or simply, restart the cluster and mount the volume.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: