1 |
________________________________________ |
2 |
From: Grant Taylor <gtaylor@×××××××××××××××××××××.net> |
3 |
Sent: Monday, December 10, 2018 10:14 PM |
4 |
To: gentoo-user@l.g.o |
5 |
Subject: Re: [gentoo-user] Root on NFS Suspend/Resume support |
6 |
|
7 |
On 12/10/18 8:03 PM, Tsukasa Mcp_Reznor wrote: |
8 |
> Has anyone managed to get suspend/resume to work on diskless machines |
9 |
> using NFS as the root? |
10 |
|
11 |
~blink~ |
12 |
|
13 |
I haven't tried to suspend / resume diskless machines. (I've not done |
14 |
much with diskless machines, but it's on my to do list.) |
15 |
|
16 |
But I don't think I would have thought about trying to suspend / resume |
17 |
a diskless machine. |
18 |
|
19 |
Are we talking about a wired Ethernet network connection with static |
20 |
IP(s)? Or something more complex? |
21 |
|
22 |
Aside: I'm wondering why a diskless machine is using suspend / resume. |
23 |
If you're bored, I'd like to have my (apparently limited) world view |
24 |
expanded. |
25 |
|
26 |
> Suspend works like normal, but resume hard locks, can't seem to get any |
27 |
> error's or anything as it's not sending to any log files naturally. |
28 |
|
29 |
Have you tried using any network based logging? |
30 |
|
31 |
Can syslog log to a network block device? |
32 |
|
33 |
Doesn't the kernel have some network logging? Or the ability to log |
34 |
debug info somewhere other than a file? |
35 |
|
36 |
> I have 3 machines currently running this setup, just trying to save |
37 |
> some power. If it helps they are all using Realtek NICs. |
38 |
|
39 |
Okay. I conceptually get saving power. |
40 |
|
41 |
How are you waking them up? User interaction? Clock? Magic packet? |
42 |
|
43 |
> My google-fu hasn't turned up anything in the last 5 years. |
44 |
|
45 |
So, you've been working on it for a while. |
46 |
|
47 |
Are any of your problems related to stale file handles? I.e. the |
48 |
diskless NFS client disagreeing with the NFS server about the state of |
49 |
the files? Is the NFS server closing the files after a timeout? |
50 |
|
51 |
> Thanks |
52 |
|
53 |
You're welcome. But I'm not sure I helped. I would like to learn what |
54 |
you figure out. |
55 |
|
56 |
|
57 |
|
58 |
|
59 |
You're totally correct, more information would be beneficial, here goes. |
60 |
All machines are Wired 1Gbps connections. |
61 |
Uefi IP4 network stack sends dhcp request, gets boot file pxelinux.efi, the default entry sends the linux kernel (no initramfs needed, firmware added to kernel image). |
62 |
Another good note is the kernel contains the command line built-in for using root on NFS. |
63 |
Machine loads, mounts the required mount points through NFS4.2 (so much better than the old NFS 3 speeds). |
64 |
LightDM loads and users are free to work, in this case family members playing Steam/Diablo 3/etc. |
65 |
I switched to using Root on NFS for alot of reasons. |
66 |
|
67 |
Maintaining 4 gentoo installs on machines of varying specs and remembering to update each with good updates added a fair amount of administration time. (4, because the server is included) |
68 |
|
69 |
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. |
70 |
|
71 |
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) |
72 |
|
73 |
</gtaylor@×××××××××××××××××××××.net> |
74 |
|
75 |
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. Also, cachefilesd if there's a drive available, makes everything feel like it's not a networked machine at all here. |