/srv/irclogs.ubuntu.com/2018/12/03/#ubuntu-server.txt

MACscrany ideas what im doing wrong here in regards to dnsmasq and resolv? it shows the correct ip's when i check the dnsmasq status, but then says no servers found in /var/run/dnsmasq/resolv.conf. Is that required if its getting them fine through my network interface file? https://paste.debian.net/hidden/1b71f30c/04:02
MACscrthis is a xenial lts server04:02
MACscrweird. rebooted system to apply kernel updates and everything is good again05:14
Ouyesguys, is there any way that I can limit the buffer/cache used on ubuntu server?  My server is using too much memory for cache/buffer, the application is running lack of memory, sometimes it failed to allocate memory.05:40
=== ideopathic_ is now known as ideopathic
lordievaderGood morning08:22
lordievaderOuyes: Buffers/cache should be reclaimable memory by an application. You can drop them, but they are there for your benefit.08:24
lordievaderOuyes: https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/08:24
Ouyeslordievader, well  let me tell you something, the buffer/cache is used and controlled by the kernel, when free memory is low, the application will report "can't not allocate memory".08:31
lordievader"Disk cache can always be given back to applications immediately! You are not low on ram!" from https://www.linuxatemyram.com/08:33
lordievaderSo, buffers/cache should not be a problem. But like I said, you can drop them.08:33
Ouyeslordievader, drop them ? how?  the application should got the priority to get memory, and the kernel should maintain how much should be put into cache, so in your opinion, every time when an application wants to get some memory, it should free some cache?08:35
lordievaderThe application does get the priority. The kernel only uses memory for cache/buffers that is unused. The kernel only needs to free some cache if there is no 'free' memory available.08:37
Ouyeslordievader, this is exactly the problem, the kernel did not free cache when application needs it.08:39
Ouyeslordievader, never mind, I increased my swap memory.08:39
lordievaderOuyes: Do you have `sysstat` installed? What is the output of `sudo sar -r 1 1`. The memory might simply be higly overcommitted.08:41
Ouyeslordievader,  overcommitted?08:43
lordievaderYes, there is a difference between how much memory an application request v.s. how much it actually uses.08:44
lordievaderThe kernel, by default, allows overcommitting till 150% if I recall correctly.08:44
Ouyeslordievader,  I am not quite following you, what are u trying to indicate? my application has a memory leakage?08:45
Ouyeslordievader, it is actually a ubuntu server08:46
lordievaderOuyes: No, that is not what I'm trying to say. Could you run the command I gave you?08:47
=== rchavik_ is now known as rchavik
ahasenackgood morning10:45
=== TheHonorableKitt is now known as ThKitten
samba35if i want usb drivers to be loaded as a module ,not kernel componet then how do i remove usb drivers from kernel and add to as a module13:35
rbasakkstenerud: php7.3 should be availab.e in git-ubuntu now.13:37
kstenerudgreat Thanks!13:50
muhahaany idea how to set iptables permanently ? (18.10)15:18
sdezielmuhaha: check the netfilter-persistent package15:18
GreyztarWith rsync,if sync job is rather large and to be most efficient would it be ok to do for the initial sync with --partial(-p),then if it gets scuffed by disconnect,one would use the --append-verify,then for further syncing use the --checksum option?15:22
sdezielGreyztar: you could always run it with --partial, no? --checksum is rather expensive for large files since you need to read them all on both sides15:33
Greyztarsdeziel: yes that checksum hmm,but wouldnt partial start a whole new transfer again if i just redo that command after a disconnect or so?15:35
sdezielGreyztar: no, --partial is specifically made to keep the partial file around in case of disconnect15:35
sdezielGreyztar: what I don't like with --append-verify is the implied --inplace and the side effects it has15:37
sdezielGreyztar: but maybe those side effects are OK for your use case, I don't know :)15:37
Greyztarsdeziel: thanks for the heads up i think i need to look further into this,ive only used abit gluster and ceph which for me atleast was set and forget hehe15:37
sdezielGreyztar: for large file transfer, I really love zfs send/receive feature15:38
Greyztarsdeziel: zfs ive yet to handle,my dream is to have my storage all on zfs,but for homelab i find it not so flexible with raidz when cant add remove was it device or vdev ?15:39
Greyztarsdeziel: though they say they will implement it,when they do ill migrate,think can actually remove device now though,but add not so much15:42
sdezielGreyztar: I've only used mirrors, sorry15:42
Greyztarsdeziel: ohh ok then it doesnt matter,but i fully agree zfs is the way to go thumbs up15:43
Greyztarsdeziel: did some reading though,would it be that omit append with --inplace as to if source file could get corrupted so have like 3 versions to compare with?16:51
smoserrbasak: katamo and Odd_Bloke (and a customer) were confused as to why bug 1802354 was not fixed in bionic.16:55
ubottubug 1802354 in open-iscsi (Ubuntu Bionic) "iscsid does not run if there are only initramfs initiated targets" [High,Fix committed] https://launchpad.net/bugs/180235416:55
smoseri think the source of that was (partially) the message in comment 1716:56
smoserwhere would i request a fix to tooling that posted that message to mention "bionic-updates"16:56
rbasaksmoser: see pending-sru16:56
smoserrather than just "-updates"16:56
rbasakThere's a resoruce-agents armhf dep8 failure16:56
rbasaksmoser: ubuntu-archive-tools16:56
rbasaksmoser: sru-review script16:56
rbasak(also possibly sru-accept script)16:57
smoserok.16:57
smoserkatamo, Odd_Bloke i will follow up on trying to improve that message16:58
katamosmoser I'll try to read more carefully too ;) thanks for that follow through though!16:58
smoserbut one of you should follow up in #ubuntu-release on requesting that failure to be ignored16:58
smoserhttp://autopkgtest.ubuntu.com/packages/r/resource-agents/bionic/armhf16:59
smoserkatamo and for reference, "pending sru" that rbasak mentioned was16:59
smoser https://people.canonical.com/~ubuntu-archive/pending-sru.html16:59
v0lksmanI have an l2tp connection I'm trying to establish.  I believe I've set everything correctly however when I connect I don't see a new interface or IP bind to any of the existing interfaces. However in syslog I do see keep alives being sent and a few other entries regarding the tunnel18:36
v0lksmanwondering if the remote (the "server") should be serving me an IP at this point or is this something I need to set strongswan or xl2tpd to receive?18:36
v0lksmanI'm asking in server because the answers I've gotten to date are to use a GUI tool that was created, but I can't as it's headless18:38
v0lksmanall good...bad config18:49
leftyfbAnyone know the proper replacement for Wants=network-online.target? Since this doesn't actually work.18:57
leftyfbIn a systemd unit that is18:57
sdezielleftyfb: have you also set After=network-online.target?18:58
leftyfbI've tried that as well18:58
leftyfband Requires18:58
leftyfband every permutation of those18:59
leftyfbI've seen lots of posts online of network-online not actually working the way it's supposed to18:59
sdezielsystemctl is-enabled NetworkManager-wait-online.service systemd-networkd-wait-online.service => do you have any of those "enabled"19:00
leftyfbNo19:00
sdezielor maybe you are using ifupdown?19:01
leftyfbit's a server so NetworkManager isn't installed19:01
leftyfbit's 16.04, so yes, ifupdown19:01
rbasakleftyfb: do you know about https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ /19:01
rbasak?19:01
sdezielI think you could depend on ifup@$IFACE or something19:01
leftyfbrbasak: yep. Read the entire page several times. It's stating to do what we already had configured originally.19:02
sdezielI'd try Wants= and After=ifup@$IFACE.service19:03
rbasakI'm not sure how well ifupdown is integrated with network-online.target.19:03
leftyfbsdeziel: we have a gross workaround using "until", but I was looking for a cleaner solution19:04
rbasakThe page explains why network-online.target is ill-defined19:04
leftyfbrbasak: right, so is there a better alternative?19:04
rbasakleftyfb: for what? http://xyproblem.info/ etc19:06
leftyfbalternative to network-online.target19:06
leftyfbto determine if we're online .19:07
rbasakDefine "online"!19:09
rbasakSee the upstream page :)19:09
leftyfbping able to contact a host over the internet ... in this case, a REDIS server19:13
tewardi'm going to go out on a limb and say that "online" is a determination of if the network interface is up19:13
tewardnot necessarily a connection to "other machines"19:14
tewardif you are looking for an "actually able to reach things" state I'm not sure there's a SystemD target that fits that requirement19:14
leftyfbnetwork-online is supposed to mean interface is up, has an ip and can contact a DNS server. <~~~ this would be adequate, but it doesn't work19:15
tewardehhh... "network-online.target is a target that actively waits until the nework is "up", where the definition of "up" is defined by the network management software. "  <-- this is the actual definition19:16
tewardaccording to rbasak's link19:16
tewardbut that's not really a 'clear' definition19:16
tewardOr more specifically: "This will ensure that all configured network devices are up and have an IP address assigned before the service is started."  <-- this19:16
tewardthis doesn't mean that it'll verify connectivity exists if I'm reading this right19:17
tewardjust that it's got an IP assigned19:17
leftyfbthat would be good if that were the case19:17
rbasakUnfortunately whatever definition you pick it will not work for some reasonably substational set of server users.19:17
teward^ this19:17
tewardwhich is why it's not really in 'mainstream' use :p19:17
rbasakThat's why the best answer is as suggested in that page - fix the services.19:17
teward^ this19:17
leftyfbok, so there's no systemd solution19:17
tewardit'd be better for your app/service to have in-built ability to test its own connectivity and 'not start' in those cases where it can't reach the other servers.19:18
sdezielI don't even know if this target has any real meaning when using ifupdown19:18
lordcirthYeah, the app (or a launch wrapper) should check19:18
lordcirthYou could use ExecStartPre= for that, perhaps19:18
leftyfblordcirth: Again, this is what we're already doing as a workaround. I was just looking for a cleaner way. Looks like there isn't one.19:20
sdezielleftyfb: have you tried the Wants/After=ifup@$IFACE.service?19:20
sdezielthis worked for me in the past19:20
leftyfbExecStartPre=/bin/bash -c 'until host remotehost.com; do sleep 1; done'19:22
leftyfbThis is the workaround we're using. It works19:22
rbasakAn "up" ifupdown stanza would be better than that.19:23
lordcirthOh ok, sorry.  Didn't read the whole scrollback19:23
rbasakOr sdeziel's suggestion sounds even better19:23
leftyfbsdeziel: That's cleaner. I like it. Thank you19:28
sdezielleftyfb: you are welcome19:29
DammitJimis there such a thing as openjdk 10?21:03
naccDammitJim: generally? Yes, but not in any current release, I don't think21:04
DammitJimwhatever happened to it? got superceded by 11?21:05
nacchttps://launchpad.net/ubuntu/+source/openjdk-lts/+publishinghistory21:05
naccgives you a rough idea, i suppose21:05
naccDammitJim: so that package builds openjdk 11, which confusingly for 18.04 users is still at 10.x .. It will update at some point in 18.04 (I believe there is an open bug for this you canfind easily)21:06
naccDammitJim: LP: #179602721:07
ubottuLaunchpad bug 1796027 in openjdk-lts (Ubuntu) "Update openjdk-11 to 11.0.1 -> Backport it from Ubuntu 18.10" [Undecided,Confirmed] https://launchpad.net/bugs/179602721:07
DammitJimOMG21:07
DammitJimthanks for clarifying21:07

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!