[lxc-users] What are the options for connecting to storage?
McDonagh, Ed
Ed.McDonagh at rmh.nhs.uk
Wed Nov 23 10:17:56 UTC 2016
So I gave up with NFS, as I couldn’t get the permissions right such that Windows active directory users using the same Synology share via CIFS could manipulate the objects created on the container.
With a Samba mount, I could set the username in the mount command and all is well!
The mount is passed to the unprivileged container with
lxc config device add c1 sdb disk source=/mnt/nasshare path=/mnt/nasshare
I have set up the same mount on the other server, with the same credentials and path; now I can move the container from one host to the other, and the share is available without any further effort. I haven’t tried live migration, as it doesn’t work on my servers.
Ed
From: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Ron Kelley
Sent: 17 November 2016 15:46
To: LXC users mailing-list
Subject: Re: [lxc-users] What are the options for connecting to storage?
Hi Ed,
Not sure how well that will work unless your unprivileged containers have the same UID/GID between your LXD servers. Looking forward to your test results :-)
-Ron
On Nov 17, 2016, at 10:11 AM, McDonagh, Ed <Ed.McDonagh at rmh.nhs.uk<mailto:Ed.McDonagh at rmh.nhs.uk>> wrote:
Thanks Ron. Thinking my requirements through again, I’ve decided to scrap the iSCSI mount and use NFS/CIFS instead. So following your pointer I have NFS mounted in the host, and then bind-mounted that to the container. I’ve yet to see how that migrates, but one bridge at a time!
Thanks again.
Kind regards
Ed
From: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Ron Kelley
Sent: 16 November 2016 19:49
To: LXC users mailing-list
Subject: Re: [lxc-users] What are the options for connecting to storage?
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
On Nov 16, 2016, at 11:42 AM, McDonagh, Ed <Ed.McDonagh at rmh.nhs.uk<mailto:Ed.McDonagh at rmh.nhs.uk>> 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
lxc-users at lists.linuxcontainers.org<mailto:lxc-users at lists.linuxcontainers.org>
http://lists.linuxcontainers.org/listinfo/lxc-users
________________________________
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
lxc-users at lists.linuxcontainers.org<mailto:lxc-users at lists.linuxcontainers.org>
http://lists.linuxcontainers.org/listinfo/lxc-users
#########################################################################
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
#########################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161123/5c4341dc/attachment.html>
More information about the lxc-users
mailing list