Raw Device Mapping (RDM) is a VMware vSphere feature that presents a FlashArray volume directly to a virtual machine as a block device, bypassing the VMFS datastore layer used by VMDK files. From the guest operating system's perspective, the volume appears as a SCSI disk that retains the FlashArray volume's native serial number, preserving a one-to-one correspondence between the guest's disks, the VM's virtual devices, and the underlying array volumes. This direct alignment simplifies snapshot-based cloning and recovery, because the volumes a database administrator clones on the array correspond exactly to the disks the guest sees and mounts.
For Oracle workloads, this model fits naturally with the FlashArray protection-group snapshot workflow. Source database volumes are grouped on the array, snapshotted as a write-consistent set, copied onto pre-provisioned clone volumes, and presented to a target virtual machine as RDMs without involving a VMFS datastore. The procedure below walks through this end to end: identifying the source volumes, taking the protection-group snapshot, copying it to the clone volumes, attaching the clones to the target VM, and bringing the cloned Oracle database online.
-
Identify the storage volumes on the FlashArray that make up the source database volumes and add those volumes to a protection group.
-
Take the protection-group snapshot of the source database volumes.
The copy-to data and file-recovery area with a new volume.
-
Copy the individual snapshots to the new clone volumes; in this example, we copy orpag-clone-ora1-data to ora4-data and ora4-fra.
purevol copy snapshot-name ora4-data purevol copy snapshot-name ora4-fraCopy the individual snapshots to the new clone volumes.
-
Take note of the new volumes and the serial numbers allocated with the new volumes; these will be used in VMware to allocate volumes to the virtual machine.
-
Connect the new clone volumes to the VMware ESX cluster host group.
Connect the new clone volumes to the ESXi cluster host group.
-
Log in to the VMware vSphere environment, and then select the new virtual machines to use as the target for cloned volumes; in the example shown in Figure 36, this is the ora4 virtual machine.
Select the new virtual machines to use as the target for cloned volumes.
-
Create a Secure Shell connection to the Oracle virtual machine and confirm there are no clone volumes attached. In this example, we can see that only the boot volume is shown:
su - # lslbk[root@ora4 ~]# [root@ora4 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 99G 0 part ├─ol-root 249:0 0 50G 0 lvm / ├─ol-swap 249:1 0 7.9G 0 lvm [SWAP] └─ol-home 249:2 0 41.1G 0 lvm /home sr0 11:0 1 4.1G 0 rom/run/media/oracle/OL-7.5 Server.x86_64 -
Select the ora4 virtual machine in the vSphere console.
-
Right-click the Actions tab, and then select Edit settings.
-
Select Add new device, and then select RDM.
-
Figure 37 highlights the new clone volumes needed, with the serial numbers confirmed previously (e3ab0 and e3aaf).
Showing the new clone volumes needed.
-
We can now see the new hard disks allocated to the virtual machine (the 300GB and 100GB disks). We can also see the output of the lsblk command, which shows us the new volumes attached with the correct serial numbers. Because they are clones, we can also see the Logical Volume Manager names.
# lsblk -o name,serialThe raw volume details.
[root@ora4 ~]# [root@ora4 ~]# lsblk -o name,serial NAME SERIAL sda ├─sda1 └─sda2 ├─ol-root ├─ol-swap └─ol-home sdb 624a9370a21265762db64ece008e3ab0 └─sdb1 └─orafravg-orafra sdc 624a9370a21265762db64ece008e3aaf └─sdc1 └─oradatavg-oradata sr0 00000000000000000001 [root@ora4 ~]# -
On the Oracle host, mount the new clone volumes.
-
Confirm the volumes are mounted and the file systems are consistent with the source host.
-
Switch to the Oracle user, source the .bash_profile, and then run the sqlplus command to start Oracle:
sqlplus / as sysdba# mount /dev/mapper/oradatavg-oradata /u01 # mount /dev/mapper/orafravg-orafra /u02 [root@ora4 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.7G 0 7.7G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 18M 7.7G 1% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/mapper/ol-root 50G 6.9G 44G 14% / /dev/mapper/ol-home 42G 43M 42G 1% /home /dev/sda1 1014M 329M 686M 33% /boot tmpfs 1.6G 36K 1.6G 1% /run/user/54321 /dev/sr0 4.2G 4.2G 0 100% /run/media/oracle/OL-7.5 Server.x86_64 tmpfs 1.6G 0 1.6G 0% /run/user/1000 /dev/mapper/oradatavg-oradata 296G 24G 257G 9% /u01 /dev/mapper/orafravg-orafra 99G 671M 93G 1% /u02 [root@ora4 ~]# -
Confirm Oracle Database starts up, and then select the mode of the database to confirm it is in read/write mode.
-
Select the name of the database; in this example, orcl, which is the name of the source database.Note: Depending on your environment and what you trying to do, the name can be left for the purpose of testing or you can change the name.
-
To change the database name, use the NID command provided by Oracle, and then complete the following steps:
-
Start in mount mode.
-
Run the NID command with the new target database name.
[oracle@ora4 ~]$ [oracle@ora4 ~]$ sqlplus / as sysdba SQL> startup mount; Total System Global Area 4966053832 bytes Fixed Size 8906696 bytes Variable Size 1157627904 bytes Database Buffers 3791650816 bytes Redo Buffers 7868416 bytes Database Mounted. SQL> oracle@ora4 ~] nid TARGET=sys/oracle123 DBNAME=devdb DBNEWID: Release 19.0.0.0.0 - Production on Thu Jan 30 09:20:43 2025 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. Connected to server version 19.3.0 Control Files in database: /u01/app/oracle/oradata/ORCL/controlfile/ol_mf_gj74s43x_.ctl /u02/fast_recovery_area/ORCL/controlfile/ol_mf_gj74s44y_.ctl Change database ID and database name ORCL to DEVDB? (Y/[N]) => Y Proceeding with operation Changing database ID from 1538741700 to 1095587148 Changing database name from ORCL to DEVDB Control File /u01/app/oracle/oradata/ORCL/controlfile/ol_mf_gj74s43x_.ctl - modified Control File /u02/fast_recovery_area/ORCL/controlfile/ol_mf_gj74s44y_.ctl - modified Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_system_gj74nsbv_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_tsdemo_gqovfmhx_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_sysaux_gj74pjjq_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_undotbs1_gj74qmng_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_iops_gqlwmt7r_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_users_gj74qnrc_.db - dbid changed wrote new name Datafile /u01/app/oracle/oradata/ORCL/datafile/ol_mf_temp_gq74sd4y_.db - dbid changed wrote new name Control File /u01/app/oracle/oradata/ORCL/controlfile/ol_mf_gj74s43x_.ctl - dbid changed, wrote new name Control File /u02/fast_recovery_area/ORCL/controlfile/ol_mf_gj74s44y_.ctl - dbid changed, wrote new name Instance shut down Database name changed to DEVDB Modify parameter file and generate a new password file before restarting Database ID for database DEVDB changed to 1095587148 All previous backups and archived redo logs for this database are unusable Database is not aware of previous backups and archive logs in Recovery Area Database has been shutdown, open database with RESETLOGS option Successfully changed database name and ID DBNEWID - Completed successfullySQL> alter database open resetlogs; Database altered. SQL> SQL> exit. [oracle@ora4 ~]$ sqlplus / as sysdba SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jan 30 09:13:11 2025 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 SQL> SQL> select open_mode from v$database; OPEN_MODE -------------------- READ WRITE SQL> SQL> SQL> select name from v$database; NAME --------- DEVDB SQL>
-