Physical vs Logical Blocksize on ASMLib Devices
As you all may know, ASMLib is a recommended module for Oracle databases running on Linux platforms and it is an embedded module for UEK (Oracle Unbreakable Kernel) users. Oracle announced that (two years ago or so) they will no longer maintain ASMLib for Red Hat compatible kernel but this does not mean that they abandon the project, rather it is mainly related to the effort they need to put in maintaining the module for multiple kernel versions.
A while ago, Oracle added a new feature to ASMLib allowing ASM devices to choose between physical or logical block sizes in I/O operations. This should be, I believe, a fail-back mechanism for SSD devices used as ASM disks. Many SSD devices use 4K block size however Linux still uses default 512 bytes logical block size for those devices in the same way it does for motor disks. In early releases of ASMLib (oracleasm-support-2.1.7
and earlier), ASM uses physical block size (4K for SSDs). This is still the default behavior in oracleasm-support-2.1.8
but now sysadmin can choose between physical and logical blocksize by using [-b|-p]
switches in oracleasm-configure.sh
script.
- -b|—logical-blocks sets logical blocksize usage
- -p|—physical-blocks set physical blocksize usage
Those switches set /sys/module/oracleasm/parameters/use_logical_block_size
which is default to be false
(use physical blocksize). So that asmlib
module can use the value to decide which block size to use.
Posted on February 16, 2013, in Linux, Oracle and tagged ASM, asmlib, Oracle Linux, uek. Bookmark the permalink. Leave a comment.
Leave a comment
Comments 0