<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Fajar,<div><br></div><div>Thank you very much for your response, and sorry - I think i know very little about the linux operating system, and I never added a disk in an environment with Linux Container.</div><div><br></div><div>I made several attempts, including a partition of one of my disks, but I did not succeed.<br></div><div><br></div><div>So I decided to simplify my problem, trying this time with a virtual disk.<br></div><div><br></div><div>A - Quick guess, /dev/xvda did not exist before you ran dd?</div><div>No.</div><div><br></div><div>B - 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>No, I do not know exactly the difference.<br></div><div><br></div><div>Can you help me with a litle explanation or direct me to some website with more information about it?<br></div><div><br></div><div>Again, thank you very much for your patience, and sorry for my little knowledge.<br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex, 25 de jan de 2019 às 10:00, <<a href="mailto:lxc-users-request@lists.linuxcontainers.org">lxc-users-request@lists.linuxcontainers.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send lxc-users mailing list submissions to<br>
        <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:lxc-users-request@lists.linuxcontainers.org" target="_blank">lxc-users-request@lists.linuxcontainers.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:lxc-users-owner@lists.linuxcontainers.org" target="_blank">lxc-users-owner@lists.linuxcontainers.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of lxc-users digest..."<br>
Today's Topics:<br>
<br>
   1. Re: zfs @copy snapshots (Stéphane Graber)<br>
   2. Its possible to add a xen virtual device to an lxc container?<br>
      (Márcio Castro)<br>
   3. Re: Its possible to add a xen virtual device to an lxc<br>
      container? (Fajar A. Nugraha)<br>
<br><br><br>---------- Forwarded message ----------<br>From: "Stéphane Graber" <<a href="mailto:stgraber@stgraber.org" target="_blank">stgraber@stgraber.org</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Bcc: <br>Date: Thu, 24 Jan 2019 14:35:35 -0500<br>Subject: Re: [lxc-users] zfs @copy snapshots<br>Hi,<br>
<br>
If ZFS lets you, then yes, but normally those will be here because<br>
you've created a container as a copy of this one, due to how zfs<br>
datasets work, that snapshot then has to remain until the container<br>
which was created from it is deleted.<br>
<br>
Stéphane<br>
<br>
On Wed, Jan 23, 2019 at 11:04 PM Kees Bos <<a href="mailto:cornelis.bos@gmail.com" target="_blank">cornelis.bos@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
><br>
> I see multiple @copy snaphots on some containers (zfs)<br>
><br>
> From <a href="https://github.com/lxc/lxd/issues/5104" rel="noreferrer" target="_blank">https://github.com/lxc/lxd/issues/5104</a> it is not clear to me why<br>
> there are multiple on a container.<br>
><br>
> Can I safely remove these snapshots (if zfs lets me)?<br>
><br>
><br>
> Kees<br>
><br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
<br>
<br>
-- <br>
Stéphane<br>
<br>
<br><br><br>---------- Forwarded message ----------<br>From: "Márcio Castro" <<a href="mailto:marciomouracastro@gmail.com" target="_blank">marciomouracastro@gmail.com</a>><br>To: <a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>Cc: <br>Bcc: <br>Date: Fri, 25 Jan 2019 00:27:18 -0200<br>Subject: [lxc-users] Its possible to add a xen virtual device to an lxc container?<br><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_-4250953797796998168gmail-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_-4250953797796998168gmail-Apple-interchange-newline"></div><div><span id="gmail-m_-4250953797796998168gmail-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_-4250953797796998168gmail-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><br></div><div>What i'm doing wrong?<br clear="all"><div><br></div><div><br></div><div>Best regards, <br></div><div dir="ltr" class="gmail-m_-4250953797796998168gmail_signature"><div dir="ltr"><div><br></div><div>Márcio de Figueiredo Moura e Castro</div><div> </div><div> </div><div>Oracle Real Application Clusters 11g Certified Implementation Specialist</div><div>Oracle 11g DBA OCP</div><div>Oracle Exadata 11g Certified Implementation Specialist</div><div>Oracle Linux Certified Implementation Specialist</div><div>OPN Certified Specialist</div><div>Oracle 10g DBA OCA</div><div>Oracle PL/SQL Developer OCA</div></div></div></div></div></div></div></div></div>
<br><br><br>---------- Forwarded message ----------<br>From: "Fajar A. Nugraha" <<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Bcc: <br>Date: Fri, 25 Jan 2019 10:18:42 +0700<br>Subject: Re: [lxc-users] Its possible to add a xen virtual device to an lxc container?<br><div dir="ltr"><div dir="ltr">On Fri, Jan 25, 2019 at 9:27 AM Márcio Castro <<a href="mailto:marciomouracastro@gmail.com" target="_blank">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_-4250953797796998168gmail-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_-4250953797796998168gmail-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_-4250953797796998168gmail-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_-4250953797796998168gmail-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>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Atenciosamente,<br><br>Márcio de Figueiredo Moura e Castro</div><div> </div><div> </div><div>Oracle Real Application Clusters 11g Certified Implementation Specialist</div><div>Oracle 11g DBA OCP</div><div>Oracle Exadata 11g Certified Implementation Specialist</div><div>Oracle Linux Certified Implementation Specialist</div><div>OPN Certified Specialist</div><div>Oracle 10g DBA OCA</div><div>Oracle PL/SQL Developer OCA</div></div></div>