<div dir="ltr"><div dir="ltr">On Fri, Jan 25, 2019 at 9:27 AM Márcio Castro <<a href="mailto:marciomouracastro@gmail.com">marciomouracastro@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>My Ubuntu is 18.04, with lxc version 3.0.3.</div><div><br></div><div>I installed several Oracle products (Database, Weblogic, SOA, ODI) with success in Linux Contaners, and i'm want to try Oracle RAC.</div><div><br></div><div>To do that, I want to create a virtual disc, but i cant attach this to the container.</div><div><br></div><div>I created a container named "ol7testedisc" with Oracle Linux and done the following:<br></div><div><br></div><div><span id="gmail-m_608830661360536159gmail-docs-internal-guid-44f2a970-7fff-15e6-1eba-c0c3c0edff5c"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">mmoura@mmoura-W350STQ-W370ST:~$ sudo dd if=/dev/zero of=/dev/xvda bs=1M count=4096</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">4096+0 registros de entrada</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">4096+0 registros de saída</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">4294967296 bytes (4,3 GB, 4,0 GiB) copiados, 1,01326 s, 4,2 GB/s</span></p></span><br class="gmail-m_608830661360536159gmail-Apple-interchange-newline"></div></div></div></div></div></div></blockquote><div><br></div><div>Quick guess, /dev/xvda did not exist before you ran dd?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div><span id="gmail-m_608830661360536159gmail-docs-internal-guid-02947df5-7fff-9942-527c-ae220f9699b7"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">mmoura@mmoura-W350STQ-W370ST:/dev$ ls -l xvda</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">-rw-r--r-- 1 root root 4294967296 jan 25 00:01 xvda</span></p></span><br class="gmail-m_608830661360536159gmail-Apple-interchange-newline"></div><div><div>mmoura@mmoura-W350STQ-W370ST:/dev$ lxc config device add ol7testedisc xvda unix-block path=/dev/xvda</div><div>Error: Invalid devices: Not a device</div></div><div><br></div></div></div></div></div></div></blockquote><div><br></div><div>Do you know the difference between a file and block device? If my guess is correct, you have just created a regular file /dev/xvda. That is not a xen virtual device.</div><div><br></div><div>-- </div><div>Fajar</div></div></div>