3 Configuring Oracle ASMLIB
WARNING:
Oracle Linux 7 is now in Extended Support. See Oracle Linux Extended Support and Oracle Open Source Support Policies for more information.
Migrate applications and data to Oracle Linux 8 or Oracle Linux 9 as soon as possible.
The following procedures are a guideline for the initial configuration of ASMLIB on Oracle Linux. See the following Oracle Database documentation for more information:
- Database 23ai Administering Oracle ASMLIB and Disks
- Database 19c Administering Oracle ASMLIB and Disks
Important:
Changes to ASMLIB configuration don't take immediate effect. Stop the database and all related processes when reconfiguring ASMLIB. Changes usually take effect after the next system reboot.
Initializing ASMLIB Configuration
After installation, configure the ASMLIB software and scan for disks on boot by using
the management utility, /usr/sbin/oracleasm
.
You can read the ASMLIB configuration file at
/etc/sysconfig/oracleasm
, however we recommend that you always use
oracleasm configure
to change configuration parameters, so that this
file is always correctly configured. The interactive (-i
) option is
typically used to configure the library for the first time.
Making Disks Available to ASMLIB
Every disk that the Oracle Database accesses using ASMLIB must be labeled. This topic describes how to create an ASM disk label, verify it, and how to remove a label.
The following commands show how to scan disks, and create ASM disk labels. Instructions are also provided for viewing and querying disk labels and also for removing them.
When you have finished configuring disk availability, you can check that the disks are visible in ASM. See Validating ASM Disk Visibility Using a Discovery String.
Checking ASMLIB Configuration Status
Use the oracleasm status
command to show the status of ASMLIB
configuration. This command can help identify issues and can show which features are
enabled.
Validating ASM Disk Visibility Using a Discovery String
ASM uses discovery strings to describe which of the labeled ASM disks attached to a system are available to the Oracle Database instance.
Use the oracleasm-discover
command to validate ASM discovery
strings and view characteristics of the associated ASM disks.