Using ASM with files (either locally or via NFS)

From time to time i need to configure additional and temporary storage for data migration or just testing purposes. Raw Devices are not recommended to use from 11g onwards.

So why not use the loopback device for that? With this scenario you can even place these disks on NFS and use it across nodes in a cluster:


1. Create the file

dd if=/dev/zero bs=1024k count=1000 of=/disk1


2. Setup loopback driver

losetup /dev/loop1 /disk1


3. Label device

oracleasm createdisk LOOP1 /dev/loop1


4. Use it with ASM