What about using a bind-mount?  Mount your iscsi volume to the LXD server and 
bind-mount it into the container.  A quick URL:  
https://github.com/lxc/lxd/issues/2005 <https://github.com/lxc/lxd/issues/2005>






On Nov 16, 2016, at 11:42 AM, McDonagh, Ed <[email protected]> wrote:

Hi
 
I need to create a container that has access to a couple of TB to store image 
files (mostly 8MB upwards). My instinct is to create an iSCSI target on my 
Synology server and connect from the container to get a new disk that I can use 
for the storage.
 
I understand that the guest has to be privileged to do any sort of connection 
to storage, however it seems that the iSCSI node in the container doesn’t work.
 
What are my options? Do I need to use a SMB connection to the Synology server? 
Or is NFS better? Is there a way to connect using iSCSI?
 
If it makes any difference, I have two identical servers that I am running LXD 
on, and want to be able to move the containers between them for maintenance 
etc. Ideally live, but not essential. And that doesn’t seem to work anyway with 
lxd 2.0, so kind of a moot point!
 
Any help, suggestions or advice would be very welcome.
 
Kind regards
 
Ed
 
Ed McDonagh 
Head of Scientific Computing (Diagnostic Radiology)
Joint Department of Physics 
The Royal Marsden NHS Foundation Trust
Tel 020 7808 2512
Fax 020 7808 2522
<image001.jpg>
 

Attention: 
This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary, confidential and/or privileged 
information and should not be copied, disclosed, distributed, retained or used 
by any other party. If you are not an intended recipient please notify the 
sender immediately and delete this e-mail (including attachments and copies). 
The statements and opinions expressed in this e-mail are those of the author 
and do not necessarily reflect those of the Royal Marsden NHS Foundation Trust. 
The Trust does not take any responsibility for the statements and opinions of 
the author. 
Website: http://www.royalmarsden.nhs.uk <http://www.royalmarsden.nhs.uk/>



_______________________________________________
lxc-users mailing list
[email protected] <mailto:[email protected]>
http://lists.linuxcontainers.org/listinfo/lxc-users 
<http://lists.linuxcontainers.org/listinfo/lxc-users>
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to