The naive approach is to try to create the disk for ASMLib:
[root@ca-test1 /]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
Creating Oracle ASM disk "VOL1" [FAILED]
Why did it fail? Because the disk is already an ASM disk. It has the
"ORCLDISK" tag. ASMLib and its tools must honor that
fact. If they blindly changed the disk while it appears to be valid,
it could cause corruption of data. The entire operation is wrong,
anyway. The disk has already been "created" for ASM. It just needs a
label for ASMLib. The tools provided with ASMLib can do this.
WARNING -- Read This Carefully -- WARNING
Modification of the disk label must be done while ASM is not accessing
the disk. That means that all ASM nodes in the cluster must have
dismounted the diskgroup the disk is part of. If any ASM node is
accessing this disk while the label is being modified,
YOU CAN LOSE DATA
Once the system administrator is sure that nothing is accessing the
disk to be labeled, the administrator can proceed. The task is
acomplished with the /etc/init.d/oracleasm renamedisk command.
Note that renaming a disk from "VOL1" to "MYVOL1" is identical to
renaming it from "" to "VOL1". Even though it has an empty original
name, the tools still consider it renaming. The system administrator
uses the command:
[root@ca-test1 /]# /etc/init.d/oracleasm renamedisk /dev/sdb1 VOL1
Renaming disk "/dev/sdb1" to "VOL1" [ OK ]
The disk now has the label "VOL1". ASMLib can now see the disk. If
there are any other nodes in the cluster, running
/etc/init.d/oracleasm scandisks on the other nodes will allow
them to see the new label.
Now that ASMLib can see the disk, the diskgroup can be mounted via
ASMLib. As described earlier in this document, the disk can be accessed
via a raw device mapping or via ASMLib, but not both at the same time.