/srv/irclogs.ubuntu.com/2017/10/30/#ubuntu-server.txt

berglhcan anyone tell me how to update the ulimit for nofiles (soft/hard) for a non-root user on ubuntu 17.10 without restarting the whole server? when i edit /etc/security/limist.conf and /etc/systemd/user|system.conf and set the nofiles limits, then logout of the box and back on, the new settings for the user don't take effect. am i missing something?00:25
=== albech1 is now known as albech
chamarjoin #go-nuts03:32
lordievaderGood morning07:15
jancoowHi. I'm running a ubuntu server for several years now. I've a feeling that the performance of my fileserver is going down. I've like ~10 harddisk inside it and I'm using greyhole. I wanna know from each disk if they have some problems etc.11:38
jancoowhow can I do this the best11:38
jancoowI don't get all the SMART information and I've no clue if the tests are up-to-data11:38
hateballjancoow: if they support S.M.A.R.T, query with smartctl11:38
jancoowyeah all of them have smart11:38
jancoowhateball: could you maybe help me a bit further? :)11:41
jancoowI just wanna make sure everything is all right :)11:41
jancoowMaybe my samba configuration is just wrong;11:42
hateballjancoow: pastebin your smartctl output and I can have a look11:44
jancoowhateball: do you want individuel pastebins for each drive?11:51
jancoowhateball: hdd1: https://jancokock.me/f/49c53 hdd2: https://jancokock.me/f/1377e hdd3: https://jancokock.me/f/de675 hdd4: https://jancokock.me/f/9b81b hdd5: https://jancokock.me/f/70c46 hdd6:  https://jancokock.me/f/e4ef3 hdd7: https://jancokock.me/f/8a5e511:54
rbasakjancoow: if ext4 then "e4defrag -c ..." is useful11:57
jancoowrbasak: defrag for ext4  ? :O11:57
rbasakIt'll tell you if it's required.11:57
rbasakHopefully not :)11:57
jancoowi'm also running badblocks now11:58
rbasakBut pathological cases will be able to fragment any filesystem I think.11:58
rbasakAnd it's easy and quick enough so you might as well eliminate that.11:58
jancoowhow long does it take for the command to finish?12:01
hateballjancoow: look at the error rates on hdd212:02
hateball.. and hdd312:03
hateball4 and 5 also has some, tho not nearly as bad12:03
jancoowwhat are these rates?12:04
jancoowagain these stupid seagates..12:04
jancoow2 years ago they both failed at the same time12:04
jancoowlost a lot of data (which was redunant stored on both..)12:05
jancoowI did got 2 new ones because I was still under RMA12:05
jancoowbut now they are failing again??12:05
hateballwell it can be the controller as well12:07
jancoowrbasak: http://jancokock.me/f/6045f/ still wating on hdd312:07
jancoowhateball: should I run badblocks on them?12:07
jancoowso I can check if there are any bad blocks?12:08
jancoowI think I will move the landing disk from greyhole to hdd1. I don't trust these seagates anymore12:08
hateballoh I didnt even notice they were seagate and not WD. seagate report smart data differently12:09
jancoowYeah that's one thing I hate about smart. There is no actual standard12:09
jancoowAnd the raw values are sometimes encoded..12:09
jancoowWhy just not one standard which makes it easy for everyone12:09
hateballBecause https://xkcd.com/927/12:11
jancoowyeah exactly12:11
rbasakjancoow: I think you actually need to ready the output of -c.12:12
rbasak-c tells you whether it's needed. It doens't actually do it.12:12
jancoowIt says "Done."12:13
jancoowI will try without running the command in the background12:13
rbasakstandard> SMART is a standard. The individual parameters checked can be manufacturer-specific. But if the disk thinks there's something wrong, smartctl will tell you that.12:13
rbasakYeah it should give you more output than that.12:13
rbasak(IIRC)12:13
jancoowyeah I know, smart is the standard12:14
jancoowbut indeed the values are specific12:14
jancoowand that's what I hate12:14
jancoowrbasak: https://jancokock.me/f/33e3212:16
rbasakThe "I think I'm about to fail" indication isn't specific though.12:20
rbasakjancoow: sorry. The manpage says to use -v as well.12:21
jancoowoh I needed root permissions12:21
jancoowrbask12:52
jancoowrbasak: after I used the sudo command I do get some more information12:52
jancoowIt has 5 fragmented files12:52
jancoowso that's not a big issue12:53
rbasakGreat!12:54
jancoowrbasak: now checking the other 6 disks ;p12:54
jancoowrbasak: yay. None of them need defrag13:10
theGoatso i have some nfs exports on my ubuntu 14.04 server, but the transfer rates seem slow.  only able to write at about 50 MB/s or so.  SCP i am able to push close to 90.   is there any tuning i can don on the nfs server?13:18
andreastheGoat: try rsize and wsize14:35
theGoatandreas: yeah i have them set to 6553614:53
joeliotheGoat: udp mode any quicker?15:03
theGoatlet me give it a whack15:03
joelioshould be udp default iirc15:03
joelioif it is udp, you might want to wrangle your rmem kernel params etc15:04
theGoatjoelio: udp doesn't seem to be any better.  kernel params on the client or server side15:05
joelioperhaps check the rmem settings then, only other thing I can suggest15:06
theGoatjoelio: on the server or client side?15:06
joelioboth really, check out http://www.tldp.org/HOWTO/NFS-HOWTO/performance.html or something similar15:06
joelio(may be a bit old that, but still is valid) - also vhat version of NFS, 3 or 4?15:07
theGoatfigured it out.  had the export set to sync, and not async.  once i changed it to async:15:17
theGoatdd if=/dev/zero of=/nfs/software/zerofile bs=1024k count=50015:17
theGoat500+0 records in15:17
theGoat500+0 records out15:17
theGoat524288000 bytes transferred in 7.002229 secs (74874441 bytes/sec)15:17
joeliocool, got there in the end15:32
theGoatyep15:42
theGoatthanks for the help15:42
joelionp dude16:03
albech1anyone know of an interface for administrating websites on a shared webserver. the different departments in our company need this for wikis etc.18:04
andreasnacc: what's the preferred way to use the git workflow to update the version of a package? That doesn't come from debian. It's a plain new upstream version18:42
naccandreas: uupdate/uscan, probably18:43
naccandreas: i can tell you how I have done it, if you want. HO?18:43
andreasand then git commit/delete as necessary?18:43
andreasadd/delete I meant18:43
naccandreas: right, uupdate will create a new directory18:43
andreasyes18:43
naccandreas: you'll need to effecitvely move it in place over your git repo18:43
andreasok18:43
naccandreas: it's something i want to wrap better, as that can be error prone :)18:44
andreasI was just wondering if there was such a wrapper already :)18:44
andreasthx18:44
naccandreas: `git status --ignored` can help, to see what has updated18:46
=== led_ir23 is now known as led_ir22
blizzowDoes anyone here know if the nagios-nrpe-server package is fixed to honor the allow arguments flag in the config? Last I checked it was broken and wouldn't read the allow arguments flag.20:43
naccblizzow: is there a bug?20:45
blizzownacc, there have been some firefights with the maintainer saying that the args option a security hole. The point of the feature is to let the user choose. Having the option is not a security hole, setting the option is.20:49
blizzowIt's like disabling the ability to set the listening address in mysql via the conf file.  Yes, if you set it to 0.0.0.0, you could be in for a bad time. But the designers intended the behavior to be configurable. Intentionally breaking the ability to configure certain parts is asinine.20:51
naccblizzow: i meant is there a bug #, not your opinion on the bug :)20:52
blizzownacc: there have been multiple bugs filed, the maintainer consistently closes them citing "security hole"20:52
blizzowlike a TSA agent.20:52
naccblizzow: ... give me the bug numbers?20:53
naccblizzow: and more importantly, is there an ubuntu bug filed?20:53
blizzowhttps://bugs.launchpad.net/ubuntu/+source/nagios-nrpe/+bug/155525820:54
ubottuLaunchpad bug 1555258 in nagios-nrpe (Ubuntu Artful) "Request contained command arguments" [Medium,Fix released]20:54
naccblizzow: well, that's fix released in all ubuntu releases.20:55
naccblizzow: so not sure what you were just talking about?20:55
blizzowIt's not clear to me which way the package maintainers have decided to swing, allow command args to be configured, or disable them entirely.20:57
blizzowI was hoping to get an answer here before installing, testing, and possibly rebuilding.20:58
naccblizzow: it is fixed in Ubuntu.20:58
naccblizzow: as that bug says, a few times.20:58
naccblizzow: you will need to modify your configuration to allow it locally.20:59
naccblizzow: the functionality is there by default, but disabled.20:59
blizzowI guess I'll try the latest.21:00
naccblizzow: latest what?21:00
naccblizzow: you don't to run Artful to get the fix.21:00
nacc*don't need to run21:01
blizzowpackage. like I said, the maintainer for a long time was marking the bug "fixed" because args are a security hole if not used properly.21:01
naccblizzow: well, yes, you'd try the latest package. Not sure what else you'd try? Sorry, this feels like a rather circular converstaion.21:02
naccblizzow: also, I think you mean the Debian maintainer? As the LP bug says, Ubuntu has decided to diverge from Debian on this issue.21:02
sarnoldhave you tried since may?21:03
blizzowI was just hoping to get an answer here before testing the current package, that's all. I spent a bunch of time building a system to build a custom deb with it enabled to distribute among my systems.21:05
naccblizzow: why wouldn't you use a PPA ?21:05
naccblizzow: but regardless, yes, fixed.21:06
rh10guys, which version of python do you mostly use for system administration tasks? or devops?22:17
rh102 or 3?22:17
tewardnacc: rbasak: dpb1: et. al.: I may have a meeting conflict tomorrow with a client, so I might not be able to chair the meeting this week.  Sucks that clients are slow at responding to me.22:17
dpb1teward: hah22:19
rh10and how long python 2 will b esupported? is next LTS ubuntu version will be shipped with python 2 onboard?22:19
* dpb1 looks at schedule22:19
tewarddpb1: i'mma pull myself off the chair list, bother me later :P22:19
tewardrh10: I use Py3 because Py2 dies in 202022:19
tewardand Py3 is becoming the standard22:19
dpb1teward: ok, sounds good22:19
rh10teward, thanks22:19
tewardrh10: i think both will be in the repositories, but Py2 is *dead* in 2020 by upstream22:19
dpb1teward: let us know when/if your schedule is more "predictable". :)22:20
tewarddpb1: who should I put in for it, rbasak, you, or TBD?22:20
tewarddpb1: will do.22:20
dpb1teward: who is next up?22:20
tewardrbasak22:20
tewardafter me22:20
dpb1put him in for next, he can slide the next person up if he wants (his schedule is a bit weird now too).22:20
tewarddone22:22
drabhi, anybody around using netdata, possibly with influxdb as a backend storage?23:12
sarnold"auto-detects everything, it can collect up to 5000 metrics per server out of the box" mmm nice for the very lazy admin like me :)23:14
drabthe other interesting thing is that it's very much lxc aware23:14
drabso it plays really nicely with all the containers I have23:14
sarnoldsome of these screen capture/video/image things are really cool23:16
drabI've had this sort of problem forever, being able to look at what's happening "right now" in high def and have historical23:16
drabthat's how I used to use collecd23:17
sarnoldeveryone has :) e.g. pcp is ~twenty years old now..23:17
drabbut the frontend stuff is non-existing/a pain for high res23:17
drabso netdata + influx may finally be a way to fix this23:17
drabespecially since the data at that high rate doesn't need to leave the box, which is the other issue if you even say you're sending stuff to statsd somewhere closeby, still lots of stuff leaving the host23:18
sarnoldzfs support :)23:21
drabyep, only cavia is that being zfs at kernel level and therefore all containers sharing the same kernels those numbers are repeated23:23
drabI'm still trying to figure out exactlty what to do with that part23:23
drabmaybe there's something I'm misunderstanding23:23

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