Aligning ASM Disks on Linux
Linux is a wonderful operating system. However there are a number of things that one needs to do to make sure it runs as efficiently as possible. Today, I would like to share one of them. It has to do with using ASM (Automatic Storage Manager) disks.
In Linux, there are 2 major ways to create ASM disks.
- you can use ASMlib kernel driver
- you can use devmapper devices
You could also use /dev/raw devices, but I don’t recommend this at all. I will write another blog explaining why.
Regardless of which approach you take, you have to create partitions on your LUNs. Starting with version 2, ASMlib won’t let you use the entire disk. You have to create a partition.
The reason to force the creation of this partition is to make explicit that something exists on that device, and that it’s not empty. Otherwise, some OS tools assume the disk is unused and could mark it, or just begin using it, and override your precious Oracle data.
(Read more after the jump.)

