paint-brush
Playing With Oracle ASM and Multipath Disks - Configuring TrueNASby@lolima
647 reads
647 reads

Playing With Oracle ASM and Multipath Disks - Configuring TrueNAS

by Rodrigo Lima
Rodrigo Lima HackerNoon profile picture

Rodrigo Lima

@lolima

Hovering around technology for the last 30 years.

June 1st, 2023
Read on Terminal Reader
Read this story in a terminal
Print this story
Read this story w/o Javascript
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

I was looking for an article on creating a testing environment to implement multipath disks on Oracle ASM. I could find several articles, each with some piece of what I was trying to implement, so I wrote this how-to, putting everything together. It consists of 2 Virtual Machines running on VirtualBox. Each machine has 3 networks, one for communication with the host (my computer) and the other 2 for multipath configuration.
featured image - Playing With Oracle ASM and Multipath Disks - Configuring TrueNAS
1x
Read by Dr. One voice-avatar

Listen to this story

Rodrigo Lima HackerNoon profile picture
Rodrigo Lima

Rodrigo Lima

@lolima

Hovering around technology for the last 30 years.

About @lolima
LEARN MORE ABOUT @LOLIMA'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item
1-item

STORY’S CREDIBILITY

DYOR

DYOR

The writer is smart, but don't just like, take their word for it. #DoYourOwnResearch before making any investment decisions or decisions regarding you health or security. (Do not regard any of this content as professional investment advice, or health advice)

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

I love trying things on my computer, as I don’t need to ask some customer or employer for testing resources.


With that in mind, I was looking for an article on creating a testing environment to implement multipath disks on Oracle ASM. I could find several articles, each with some piece of what I was trying to implement, so I wrote this how-to, putting everything together.

The Environment

It consists of 2 Virtual Machines running on VirtualBox. Each machine has 3 networks, one for communication with the host (my computer) and the other 2 for multipath configuration.

Installing TrueNAS

Open your VirtualBox and create a new Virtual Machine.


image


image


image


image


image


image


image


image


image



We also need to add a new disk for the ASM Disk Pool (20G).


image


image


image


image


With the VM created, it’s time to install the TrueNas software. We can download it from here. I am using the file TrueNAS-12.0-U8.1.iso.


image


image


image


image


image


image


![

](https://cdn.hackernoon.com/images/y8NpJmORWIQxyPvYCy7MXmsUZq53-25s3p6v.png)

image


image


image


Remove the boot disk (TrueNAS iso), and click OK.


image


Configuring TrueNAS


image


This is your first view at TrueNAS. If you configured the networks as I suggested, there will be one IP in the same network as your computer (host) and 2 others not yet configured. Let’s configure the other 2 networks. Choose 1 to continue.


Choose as below for interface 2.


image


Choose as below for interface 3.


image


Now we have the three networks configured. If interface 1 disappears after configuring interface 2 or 3, just edit its configuration and choose DHCP.


image


Now we can log in to the console. Just open your web browser and type the interface 1 IP.


image


Now, go to POOL -> ADD -> CREATE POOL.

Create the Pool as above. Ignore the stripe data vdev errors because of having only one disk.


image


Add 3 Zvol of 5G each


image


Go to SHARING -> BLOCK SHARES (SCSI) -> PORTALS -> ADD. Configure as above and SUBMIT.


image


Go to SHARING -> BLOCK SHARES (SCSI) -> TARGETS -> ADD. Configure as above and SUBMIT.


image


Go to SHARING -> BLOCK SHARES (SCSI) -> EXTENTS -> ADD. Configure as above. Don't forget to check the "Disable Physical Block Size Reporting"; otherwise, you will face errors when using the multipath disks on ASM.


image


Create 3 EXTENTS.


image


Go to SHARING -> BLOCK SHARES (SCSI) -> ASSOCIATED TARGETS -> ADD.


image


Go to SERVICES and enable iSCSI, as above.


image


Now we have finished the TrueNAS configuration and the first part of this how-to. The next part will show how to configure the iSCSI, multipath, and UDEV on the database server.


À la prochaine.




L O A D I N G
. . . comments & more!

About Author

Rodrigo Lima HackerNoon profile picture
Rodrigo Lima@lolima
Hovering around technology for the last 30 years.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
X REMOVE AD