* Re: running NFS in LXC
2018-02-15 15:45 ` J. Bruce Fields
@ 2018-02-15 19:14 ` Benjamin Coddington
2018-03-20 11:09 ` Harald Dunkel
2018-03-20 12:01 ` Jeff Layton
2 siblings, 0 replies; 9+ messages in thread
From: Benjamin Coddington @ 2018-02-15 19:14 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: Harald Dunkel, linux-nfs
On 15 Feb 2018, at 10:45, J. Bruce Fields wrote:
> On Wed, Feb 14, 2018 at 09:15:05AM -0500, Benjamin Coddington wrote:
>> On 14 Feb 2018, at 2:06, Harald Dunkel wrote:
>>
>>> Hi Ben,
>>>
>>> I take this as a "no serious problems by now". Good to hear.
>>> Which kernel are you using?
>>
>> This was years ago on a 2.6.32 series. I don't expect you'll have
>> serious problems now, either. As far as I know, my last employer is
>> still using that architecture, but I couldn't tell you what software
>> versions they're on now..
>>
>> We moved to the knfsd-in-a-container from an architecture that was
>> essentially a bunch of vanilla knfsds that could mount and any of
>> the block devices, and block devices were tied to IP addresses, and
>> this was all orchestrated by pacemaker. The problem with that one
>> was that when a block device or filesystem was migrated, the server
>> receiving that filesystem had to be put into grace, which disrupted
>> any existing NFS serving that was going on.
>>
>> Test things, let us know how it works!
>
> I think you were using KVM, right, Ben?
That's right.
> Harald is talking about LXC, and there are still a few problems there.
Ah, yes -- What a bonehead I am, I'd forgotten about containing the
upcalls.. but if the state recovery db can be stored on the same filesystem
as the container, and there's only one knfsd container per "host", then the
HA model should still work I think.
Ben
> Jeff, do you object to going back to our plan B for reboot recovery (the
> daemon)? The usermode helper containerization seems stalled and I have to
> admit I'm probably not going to take it on myself. That might be the only
> knfsd-in-a-container obstacle left.
>
> --b.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: running NFS in LXC
2018-02-15 15:45 ` J. Bruce Fields
2018-02-15 19:14 ` Benjamin Coddington
@ 2018-03-20 11:09 ` Harald Dunkel
2018-03-20 12:01 ` Jeff Layton
2 siblings, 0 replies; 9+ messages in thread
From: Harald Dunkel @ 2018-03-20 11:09 UTC (permalink / raw)
To: J. Bruce Fields, linux-nfs
Hi JB,
On 02/15/18 16:45, J. Bruce Fields wrote:
>
> Harald is talking about LXC, and there are still a few problems there.
>
> Jeff, do you object to going back to our plan B for reboot recovery (the
> daemon)? The usermode helper containerization seems stalled and I have
> to admit I'm probably not going to take it on myself. That might be the
> only knfsd-in-a-container obstacle left.
>
I have no clue about plan B, but it would be very nice if this feature
(running NFServer in a container) could be completed.
Regards
Harri
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: running NFS in LXC
2018-02-15 15:45 ` J. Bruce Fields
2018-02-15 19:14 ` Benjamin Coddington
2018-03-20 11:09 ` Harald Dunkel
@ 2018-03-20 12:01 ` Jeff Layton
2018-03-20 13:22 ` Scott Mayhew
2 siblings, 1 reply; 9+ messages in thread
From: Jeff Layton @ 2018-03-20 12:01 UTC (permalink / raw)
To: J. Bruce Fields, Benjamin Coddington; +Cc: Harald Dunkel, linux-nfs
On Thu, 2018-02-15 at 10:45 -0500, J. Bruce Fields wrote:
> On Wed, Feb 14, 2018 at 09:15:05AM -0500, Benjamin Coddington wrote:
> > On 14 Feb 2018, at 2:06, Harald Dunkel wrote:
> >
> > > Hi Ben,
> > >
> > > I take this as a "no serious problems by now". Good to hear.
> > > Which kernel are you using?
> >
> > This was years ago on a 2.6.32 series. I don't expect you'll have
> > serious problems now, either. As far as I know, my last employer is
> > still using that architecture, but I couldn't tell you what software
> > versions they're on now..
> >
> > We moved to the knfsd-in-a-container from an architecture that was
> > essentially a bunch of vanilla knfsds that could mount and any of
> > the block devices, and block devices were tied to IP addresses, and
> > this was all orchestrated by pacemaker. The problem with that one
> > was that when a block device or filesystem was migrated, the server
> > receiving that filesystem had to be put into grace, which disrupted
> > any existing NFS serving that was going on.
> >
> > Test things, let us know how it works!
>
> I think you were using KVM, right, Ben?
>
> Harald is talking about LXC, and there are still a few problems there.
>
> Jeff, do you object to going back to our plan B for reboot recovery (the
> daemon)? The usermode helper containerization seems stalled and I have
> to admit I'm probably not going to take it on myself. That might be the
> only knfsd-in-a-container obstacle left.
Sorry for the late response. I've no objection to resurrecting that
approach if it helps this use-case. The daemon and umh callout should be
able to share a lot of the same code and database if it's done properly.
--
Jeff Layton <jlayton@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: running NFS in LXC
2018-03-20 12:01 ` Jeff Layton
@ 2018-03-20 13:22 ` Scott Mayhew
0 siblings, 0 replies; 9+ messages in thread
From: Scott Mayhew @ 2018-03-20 13:22 UTC (permalink / raw)
To: Jeff Layton
Cc: J. Bruce Fields, Benjamin Coddington, Harald Dunkel, linux-nfs
On Tue, 20 Mar 2018, Jeff Layton wrote:
> On Thu, 2018-02-15 at 10:45 -0500, J. Bruce Fields wrote:
> > On Wed, Feb 14, 2018 at 09:15:05AM -0500, Benjamin Coddington wrote:
> > > On 14 Feb 2018, at 2:06, Harald Dunkel wrote:
> > >
> > > > Hi Ben,
> > > >
> > > > I take this as a "no serious problems by now". Good to hear.
> > > > Which kernel are you using?
> > >
> > > This was years ago on a 2.6.32 series. I don't expect you'll have
> > > serious problems now, either. As far as I know, my last employer is
> > > still using that architecture, but I couldn't tell you what software
> > > versions they're on now..
> > >
> > > We moved to the knfsd-in-a-container from an architecture that was
> > > essentially a bunch of vanilla knfsds that could mount and any of
> > > the block devices, and block devices were tied to IP addresses, and
> > > this was all orchestrated by pacemaker. The problem with that one
> > > was that when a block device or filesystem was migrated, the server
> > > receiving that filesystem had to be put into grace, which disrupted
> > > any existing NFS serving that was going on.
> > >
> > > Test things, let us know how it works!
> >
> > I think you were using KVM, right, Ben?
> >
> > Harald is talking about LXC, and there are still a few problems there.
> >
> > Jeff, do you object to going back to our plan B for reboot recovery (the
> > daemon)? The usermode helper containerization seems stalled and I have
> > to admit I'm probably not going to take it on myself. That might be the
> > only knfsd-in-a-container obstacle left.
>
> Sorry for the late response. I've no objection to resurrecting that
> approach if it helps this use-case. The daemon and umh callout should be
> able to share a lot of the same code and database if it's done properly.
I'm sorta in the early stages of resurrecting nfsdcld because I wanted
to tie it in to corosync for use in pacemaker clusters. I'm planning on
having the cluster-related stuff controls by a command-line or nfs.conf
flag, but I think even in the standalone case the upcall message needs
to change to include the session flag (which the umh callout passes via
an environment variable)... but I was also looking at maybe adding the
server address and filesystem fsid to the message.
>
> --
> Jeff Layton <jlayton@kernel.org>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread