On Fri, Jan 25, 2019 at 9:27 AM Márcio Castro <[email protected]> wrote:
> Hi, > > My Ubuntu is 18.04, with lxc version 3.0.3. > > I installed several Oracle products (Database, Weblogic, SOA, ODI) with > success in Linux Contaners, and i'm want to try Oracle RAC. > > To do that, I want to create a virtual disc, but i cant attach this to the > container. > > I created a container named "ol7testedisc" with Oracle Linux and done the > following: > > mmoura@mmoura-W350STQ-W370ST:~$ sudo dd if=/dev/zero of=/dev/xvda bs=1M > count=4096 > > 4096+0 registros de entrada > > 4096+0 registros de saída > > 4294967296 bytes (4,3 GB, 4,0 GiB) copiados, 1,01326 s, 4,2 GB/s > > Quick guess, /dev/xvda did not exist before you ran dd? > mmoura@mmoura-W350STQ-W370ST:/dev$ ls -l xvda > > -rw-r--r-- 1 root root 4294967296 jan 25 00:01 xvda > > mmoura@mmoura-W350STQ-W370ST:/dev$ lxc config device add ol7testedisc > xvda unix-block path=/dev/xvda > Error: Invalid devices: Not a device > > 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. -- Fajar
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
