If you have a certified NAS storage device, then you can create zero-padded files in an NFS mounted directory and use those files as disk devices in an Oracle ASM disk group.
- If necessary, create an exported directory for the disk group files on the NAS device.
- Switch user to
- Create a mount point directory on the local system.
# mkdir -p /mnt/oracleasm
- To ensure that the NFS file system is mounted when the system restarts, add an entry for the file system in the mount file
- Enter a command similar to the following to mount the NFS on the local system:
# mount /mnt/oracleasm
- Choose a name for the disk group to create, and create a directory for the files on the NFS file system, using the disk group name as the directory name. For example, if you want to set up a disk group for a sales database:
# mkdir /mnt/oracleasm/sales1
- Use commands similar to the following to create the required number of zero-padded files in this directory:
# dd if=/dev/zero of=/mnt/oracleasm/sales1/disk1 bs=1024k count=1000
This example creates 1 GB files on the NFS file system. You must create one, two, or three files respectively to create an external, normal, or high redundancy disk group.
Note:Creating multiple zero-padded files on the same NAS device does not guard against NAS failure. Instead, create one file for each NAS device and mirror them using the Oracle ASM technology.
- Enter commands similar to the following to change the owner, group, and permissions on the directory and files that you created:
# chown -R grid:asmadmin /mnt/oracleasm # chmod -R 660 /mnt/oracleasmIn this example, the installation owner is
gridand the OSASM group is
- During Oracle Database installations, edit the Oracle ASM disk discovery string to specify a regular expression that matches the file names you created.