From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-185720-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4310138334 for <garchives@archives.gentoo.org>; Tue, 11 Dec 2018 18:37:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD530E0C88; Tue, 11 Dec 2018 18:37:10 +0000 (UTC) Received: from gw1.antarean.org (gw1.antarean.org [194.145.200.214]) by pigeon.gentoo.org (Postfix) with ESMTP id 20243E0C75 for <gentoo-user@lists.gentoo.org>; Tue, 11 Dec 2018 18:37:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gw1.antarean.org (Postfix) with ESMTP id B634B23314 for <gentoo-user@lists.gentoo.org>; Tue, 11 Dec 2018 19:37:07 +0100 (CET) X-Virus-Scanned: amavisd-new at antarean.org Received: from gw1.antarean.org ([127.0.0.1]) by localhost (gw1.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 61WzGYFPr3p5 for <gentoo-user@lists.gentoo.org>; Tue, 11 Dec 2018 19:37:07 +0100 (CET) Received: from mailstore1.antarean.org (localhost [127.0.0.1]) by gw1.antarean.org (Postfix) with ESMTP id 18A1B229D2 for <gentoo-user@lists.gentoo.org>; Tue, 11 Dec 2018 19:37:07 +0100 (CET) Received: from localhost (lan102.nl.antarean.org [10.20.13.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailstore1.antarean.org (Postfix) with ESMTPSA id A0B2225 for <gentoo-user@lists.gentoo.org>; Tue, 11 Dec 2018 19:37:07 +0100 (CET) Date: Tue, 11 Dec 2018 18:37:04 +0000 In-Reply-To: <DM5PR15MB1722C76411BE1C802695C6C1F0A60@DM5PR15MB1722.namprd15.prod.outlook.com> References: <DM5PR15MB17224E3ADA225B4AC8E0EF41F0A60@DM5PR15MB1722.namprd15.prod.outlook.com>,<1d064cbc-eaf8-1001-f684-e81f432a41ad@spamtrap.tnetconsulting.net> <DM5PR15MB1722C76411BE1C802695C6C1F0A60@DM5PR15MB1722.namprd15.prod.outlook.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----AXHSMVBKPXHKWTB1A25OQH4V7M5FLX" Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-user] Root on NFS Suspend/Resume support To: gentoo-user@lists.gentoo.org From: "J. Roeleveld" <joost@antarean.org> Message-ID: <A92C55B9-01FC-4854-824F-6477B143D9A2@antarean.org> X-Archives-Salt: 50740482-a985-4a80-9a81-3c8e7c5acb26 X-Archives-Hash: 72f400d55bb895e857e9c3e77ac3fe37 ------AXHSMVBKPXHKWTB1A25OQH4V7M5FLX Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On December 11, 2018 11:23:27 AM UTC, Tsukasa Mcp_Reznor <mcp_reznor@hotmai= l=2Ecom> wrote: >________________________________________ >From: Grant Taylor <gtaylor@gentoo=2Etnetconsulting=2Enet> >Sent: Monday, December 10, 2018 10:14 PM >To: gentoo-user@lists=2Egentoo=2Eorg >Subject: Re: [gentoo-user] Root on NFS Suspend/Resume support > >On 12/10/18 8:03 PM, Tsukasa Mcp_Reznor wrote: >> Has anyone managed to get suspend/resume to work on diskless >machines >> using NFS as the root? > >~blink~ > >I haven't tried to suspend / resume diskless machines=2E (I've not done >much with diskless machines, but it's on my to do list=2E) > >But I don't think I would have thought about trying to suspend / resume >a diskless machine=2E > >Are we talking about a wired Ethernet network connection with static >IP(s)? Or something more complex? > >Aside: I'm wondering why a diskless machine is using suspend / resume=2E >If you're bored, I'd like to have my (apparently limited) world view >expanded=2E > >> Suspend works like normal, but resume hard locks, can't seem to >get any >> error's or anything as it's not sending to any log files >naturally=2E > >Have you tried using any network based logging? > >Can syslog log to a network block device? > >Doesn't the kernel have some network logging? Or the ability to log >debug info somewhere other than a file? > >> I have 3 machines currently running this setup, just trying to >save >> some power=2E If it helps they are all using Realtek NICs=2E > >Okay=2E I conceptually get saving power=2E > >How are you waking them up? User interaction? Clock? Magic packet? > >> My google-fu hasn't turned up anything in the last 5 years=2E > >So, you've been working on it for a while=2E > >Are any of your problems related to stale file handles? I=2Ee=2E the >diskless NFS client disagreeing with the NFS server about the state of >the files? Is the NFS server closing the files after a timeout? > >> Thanks > >You're welcome=2E But I'm not sure I helped=2E I would like to learn wh= at >you figure out=2E > > > > >You're totally correct, more information would be beneficial, here >goes=2E >All machines are Wired 1Gbps connections=2E >Uefi IP4 network stack sends dhcp request, gets boot file pxelinux=2Eefi, >the default entry sends the linux kernel (no initramfs needed, firmware >added to kernel image)=2E >Another good note is the kernel contains the command line built-in for >using root on NFS=2E >Machine loads, mounts the required mount points through NFS4=2E2 (so much >better than the old NFS 3 speeds)=2E >LightDM loads and users are free to work, in this case family members >playing Steam/Diablo 3/etc=2E >I switched to using Root on NFS for alot of reasons=2E > >Maintaining 4 gentoo installs on machines of varying specs and >remembering to update each with good updates added a fair amount of >administration time=2E (4, because the server is included) > >Using chroots on the server as binary build hosts for each machine >solves some problems, but increases space requirements quite a bit, and >adds latency if you want to use it while it's emerging anything, plus >compiling say Libreoffice or whatever 3+ times in a row is pretty slow=2E > >Side note, If anyone else runs diskless I have a patch for wine I can >send out that returns the nfs mount as a fixed hard drive, there are a >few apps/games that refuse to install/run on a network share, and a >patch for steam that removes the file locking issues so updates run >quick and smooth (neither will ever be upstreamable, people have tried >in the past) > ></gtaylor@gentoo=2Etnetconsulting=2Enet> > >Thanks for your response, I'd love to help if you have any more >questions, it's been a fun experience for me for sure=2E Also, >cachefilesd if there's a drive available, makes everything feel like >it's not a networked machine at all here=2E If you want to resume from NFS, you will need an initramfs that correctly = passes the swap device for resuming=2E I would try the same method as resuming from encrypted swap=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------AXHSMVBKPXHKWTB1A25OQH4V7M5FLX Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div class=3D"gmail_quote">On December 11, 2018 11= :23:27 AM UTC, Tsukasa Mcp_Reznor <mcp_reznor@hotmail=2Ecom> wrote:<b= lockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0=2E8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <pre class=3D"k9mail"><hr>From: Grant Taylor <gtaylor@gentoo=2Etnetcons= ulting=2Enet><br>Sent: Monday, December 10, 2018 10:14 PM<br>To: gentoo-= user@lists=2Egentoo=2Eorg<br>Subject: Re: [gentoo-user] Root on NFS Suspend= /Resume support<br><br>On 12/10/18 8:03 PM, Tsukasa Mcp_Reznor wrote:<br>&a= mp;gt; Has anyone managed to get suspend/resume to work on diskless machine= s<br>&gt; using NFS as the root?<br><br>~blink~<br><br>I haven't tried = to suspend / resume diskless machines=2E (I've not done<br>much with diskl= ess machines, but it's on my to do list=2E)<br><br>But I don't think I woul= d have thought about trying to suspend / resume<br>a diskless machine=2E<br= ><br>Are we talking about a wired Ethernet network connection with static<b= r>IP(s)? Or something more complex?<br><br>Aside: I'm wondering why a disk= less machine is using suspend / resume=2E<br>If you're bored, I'd like to h= ave my (apparently limited) world view<br>expanded=2E<br><br>&gt; Suspe= nd works like normal, but resume hard locks, can't seem to get any<br>&= gt; error's or anything as it's not sending to any log files naturally=2E<b= r><br>Have you tried using any network based logging?<br><br>Can syslog log= to a network block device?<br><br>Doesn't the kernel have some network log= ging? Or the ability to log<br>debug info somewhere other than a file?<br>= <br>&gt; I have 3 machines currently running this setup, just trying to= save<br>&gt; some power=2E If it helps they are all using Realtek NIC= s=2E<br><br>Okay=2E I conceptually get saving power=2E<br><br>How are you = waking them up? User interaction? Clock? Magic packet?<br><br>&gt; M= y google-fu hasn't turned up anything in the last 5 years=2E<br><br>So, you= 've been working on it for a while=2E<br><br>Are any of your problems relat= ed to stale file handles? I=2Ee=2E the<br>diskless NFS client disagreeing = with the NFS server about the state of<br>the files? Is the NFS server clo= sing the files after a timeout?<br><br>&gt; Thanks<br><br>You're welcom= e=2E But I'm not sure I helped=2E I would like to learn what<br>you figur= e out=2E<br><br><br><br><br>You're totally correct, more information would = be beneficial, here goes=2E<br>All machines are Wired 1Gbps connections=2E<= br>Uefi IP4 network stack sends dhcp request, gets boot file pxelinux=2Eefi= , the default entry sends the linux kernel (no initramfs needed, firmware a= dded to kernel image)=2E<br>Another good note is the kernel contains the co= mmand line built-in for using root on NFS=2E<br>Machine loads, mounts the r= equired mount points through NFS4=2E2 (so much better than the old NFS 3 sp= eeds)=2E<br>LightDM loads and users are free to work, in this case family m= embers playing Steam/Diablo 3/etc=2E<br>I switched to using Root on NFS for= alot of reasons=2E<br><br>Maintaining 4 gentoo installs on machines of var= ying specs and remembering to update each with good updates added a fair am= ount of administration time=2E (4, because the server is included)<br><br>U= sing chroots on the server as binary build hosts for each machine solves so= me problems, but increases space requirements quite a bit, and adds latency= if you want to use it while it's emerging anything, plus compiling say Lib= reoffice or whatever 3+ times in a row is pretty slow=2E<br><br>Side note, = If anyone else runs diskless I have a patch for wine I can send out that re= turns the nfs mount as a fixed hard drive, there are a few apps/games that = refuse to install/run on a network share, and a patch for steam that remove= s the file locking issues so updates run quick and smooth (neither will eve= r be upstreamable, people have tried in the past)<br><br></gtaylor@gento= o=2Etnetconsulting=2Enet><br><br>Thanks for your response, I'd love to h= elp if you have any more questions, it's been a fun experience for me for s= ure=2E Also, cachefilesd if there's a drive available, makes everything fee= l like it's not a networked machine at all here=2E<br></pre></blockquote></= div><br clear=3D"all">If you want to resume from NFS, you will need an init= ramfs that correctly passes the swap device for resuming=2E<br>I would try = the same method as resuming from encrypted swap=2E<br>-- <br>Sent from my A= ndroid device with K-9 Mail=2E Please excuse my brevity=2E</body></html> ------AXHSMVBKPXHKWTB1A25OQH4V7M5FLX--