Create Virtueel File System ASM disken

Create Virtual File System for ASM Disks

Automatic Storage Management (ASM) employs provisioned disks for creating disk groups. The following steps instantiate the virtual disks used to create a virtual file system, without creating disks partitioning.

Create zero-filled flat files

Run the ‘dd’ command to create the zero-filled flat files. Optionally, in between each ‘dd’ command, the Operating System ‘sync’ command is executed to write buffered data to the disk, releasing memory for the next ‘dd’ command. The size of the file is specified using the ‘count’ attribute. The following example creates a zero-filled file of size 20GB.

Attach a loopback device for each file

Use the Operating System utility ‘losetup’ to attach the first Linux loopback device with the flat file created. Ensure the loopback devices /dev/loop1 to /dev/loop7 are available. Test each loopback device availability; to test the first loopback device, type the following the command:

Link the virtual loopback device

Use the command ‘ln’ to alias the loopback devices to be presented as virtual block devices.

Create the ASM Disk

The last step is to use Oracle ASM command ‘oracleasm createdisk’ to provision the files as virtual ASM disk.

Please let me know if this manual ‘Create Virtueel File System ASM disken’ was usefull to you. If there are  errors or you have suggestions regarding this manual, please let me know.
No rights can be derived from this manual

Regards,

Maarten

Maarten Schoonus

Leave a Reply