/srv/irclogs.ubuntu.com/2017/02/04/#ubuntu-server.txt

=== Ofir is now known as skeezix-hf
sarnoldstokachu: nice announcement mail :) btw your MUA did something silly: http://conjure-up.i <http://conjure-up.io>o  -- hehe :)02:19
stokachuah crap02:20
stokachui blame gmail02:20
sarnoldalways a good plan :D02:20
stokachuhaha02:20
sarnoldat least there's a working link right next to an obviously-funny-looking link02:20
stokachusarnold, i like to keep things interesting02:20
sarnoldlol02:21
qoarzersI am having problem with adjusting the brightness of my laptop screen in ubuntu 16.04. My laptop is Toshiba satellite pro c640. I have tried all the solutions from ubuntu forum but nothing worked.02:23
sarnoldqoarzers: most of the people in this channel never even see their computers; you may wish to try in #ubuntu instead02:24
qoarzersI want to do web developing using Rails in ubuntu02:25
sarnoldqoarzers: you've got a few choices to make there -- you can either stick with what's packaged in ubuntu's repositories, or you can stick with using ruby and rails and so on from upstream sources. both are fine choices but it's worth deciding that you want to do one or the other -- mixing and matching is likely to lead to trouble02:27
sarnoldqoarzers: I've really enjoyed reading the pragmatic programmer's guides to ruby on rails, I think they're a nice introduction02:28
sarnoldone trouble of course is there's so many versions of RoR that leads to so many books ..02:28
qoarzersYeah but the code is easy to understand02:29
sarnoldthe downside is it can be insanely hard to pick up something that was left six months ago02:30
sarnoldand forward porting to newer versions may also be a bit tricky02:30
sarnoldthe 'convention over configuration' may make it super-easy to get things done for the regular users but if you just fiddle with it every six months you'll go crazy when absolutely nothing you search for exists anywhere else in the source tree.02:30
qoarzerssarnold: yeah that is true02:32
zzxc_Alright I have a question. I'm running an AWS instance with 7.8G of ram + 4G of swap. I have a java application that had a memory leak that was fixed. The issue is OOM Killer keeps killing it, and I'm not sure why. I change it off of the heuristic alogrithm it is using way less tha the threshold. Any ideas?03:04
sarnoldcan you tune the java heap with those -Xm blahblah command line options to encourage it to use less memory?03:08
sarnoldor can you buy another six gigabytes of RAM from amazon? :D03:08
sarnoldwhat do the swapin and swapout columns of 'vmstat 1' show when it's under load?03:08
zzxc_sarnold: Well the thing is that its only using 1.5 G of actual memory. Its allocating more and the VIRT memory is 6G but the application is only using 1.5G of memory.03:10
sarnoldreally?? that doesn't sound like you ought to be getting to oomkiller then :/03:11
zzxc_Yeah. We even upped the threshold to 100 of physcial memory and it is still crashing. I migrated this from a 14.04 instance with less memory as well.03:12
sarnoldif you can't find anything 'obvious' in the logs, I think the next step is to try collecting enough data to spot a pattern; maybe gather slabtop output peridocailly, top sorted my memory output periodically, etc..03:12
zzxc_We are using the -Xmx flag to give it a limit of 4G of memory.03:13
sarnoldwhat else runs on this system?03:13
zzxc_A couple of things. Tomcat is running java, Apache, a headless libre office instance, clamav, SFTP clients some high volume users.03:14
zzxc_I'm starting to wonder if the SFTP users are part of the issue.03:15
zzxc_Unfortantly the person who set up this part decided to have a flat archive folder. For one of use SFTP clients there are over 147737 files.03:17
sarnoldow03:17
zzxc_Yep. Its also possible that it could be a memory leak somewhere as well. But it only seems to effect this env, though this is the heavist use one. This has been driving me nuts all week.03:21
sarnoldyeah it would do that03:23
sarnoldtry getting some more data; run something every minute or so that outputs smem or top output, slabtop output, free -m output, etc.03:24
sarnoldbased on what you've mentioned here it feels like all the memory is going to be pinned in the kernel to manage that ridiculous directory and bufferheads to manage IO to that directory03:24
sarnoldbut those are .. wild guesses at best.03:25
zzxc_sarnold: Yeah that sounds reasonable.03:32
zzxc_I also am starting to think that some of the work that was done to fix this might be part of the issue. I'm going to disable the java profiler my boss put in place and change the alorigthm back to the heuristic method. That they value I got was to trigger on over commit.03:34
zzxc_Anyways these are all tomorrow issues. sarnold thanks for the help.03:35
sarnoldzzxc_: good luck, and if you remember, I'd be curious to hear what it was when you sort it out03:36
zzxc_sarnold: Will do.03:37
patdk-lapoom killer? you have to look at the full output of oom killer03:49
patdk-laplikely it is not the issue, but something else03:49
patdk-lapwhat is the full dmesg output of the oom?03:49
sarnoldoh does it give useful output these days?03:51
patdk-lapwell, the output of the top programs and memory they are using at the time it picks what to kill03:52
patdk-lapin my case, it's normally some other program that pushes the kernel over and causes it to oom somethign else (mysql)03:52
patdk-lapcause it has the single largest memory allocation03:52
sarnoldoh nice03:53
sarnoldwell, nice that it gives you -some- data :) my recollection was just "failed n-order allocation, killing task <blah> with badness <blah>" and then you weep in the corner03:54
sarnoldzzxc_: ^^ if there's data in the ooms, please do share :)03:54
=== JanC is now known as Guest8949
=== JanC_ is now known as JanC
bluekingfileserver with 4 nics  1 connected to router and plan have 3 nics  connected to switch...  2 or 3 vlan are gonna have access to fileserver...  how would you configure these 3 nics ?  one nic each subnet  or  LACP + trunk vlans on this ?12:58
patdk-lapdepends on the usage pattern13:15
bluekingpatdk-lap point are increase throughput from fileserver to multiple devices/subnets13:32
bluekingif several devices access fileserver from same subnets  it's limited to 1 gbit if do 1 nic each subnet  if lacp it can  have 2 or 3 GBit's13:33
patdk-lapblueking, no15:30
patdk-lapand it depends on usecase15:30
patdk-lapI wouldn't worry about multible client access, and it won't happen15:30
patdk-lapeverything has to be perfect everywhere, to have >1 client use >1gbit15:30
patdk-lapmost of the time, you are going hit many other limits, that will cause <1gbit performance15:31
patdk-lapdo you need redundency for failed links? use lacp, sure15:31
patdk-lapif you need >1gbit speeds, and those users are on different vlans, sure use one port per vlan15:31
patdk-lapbut attempt to balance over lacp, is really not a simple thing at all, and depends a lot on luck15:32
patdk-lapon paper, yes it looks good, but in practice, it won't work well for load balancing, unless you have a LOT of users15:32
patdk-lapand we are talking about concurrent users access files at the same time15:33
bluekingpatdk-lap what would you do ?15:49
patdk-lapI have no idea15:50
patdk-lapdon't have enough info about what your doing, or need15:50
bluekingwhat I want  if user1 on subnet1 access fileserver and downloads a bd movie... and user2 on same subnet want to download another movie from same fileserver lacp should choose another nic for user2  and make total speed 1gbit+15:53
patdk-lapno15:53
bluekingmovies on fileserver are on raid0 arracy15:53
bluekingarray15:54
patdk-lapit will pick the nic based on it's hashing method15:54
patdk-lapso if the mac, ip, port don't both hash to the same nic, sure, but if they do, heh15:54
patdk-lapand you have to setup the proper hashing method on both sides, on the switch and the server15:54
patdk-lapwhy attempting to balance using lacp with a small number of users is pretty much impossible15:54
patdk-lapunless you can have full control, or a very static enviroment15:55
patdk-lapto guarrentee the hashes will always balance correctly for the use you have15:55
blueking'hashing method'  havn't seen that on switches15:55
patdk-lapif you haven't, your switch doesn't support lacp15:55
bluekingcisco sg200 hp procurve 2810 and 181015:55
patdk-lapit seems none of those devices allow you to change whatever it's default balancing method/hash is16:02
patdk-lapso you are stuck with whatever it uses, probably, mac, or ip, or mac+ip16:03
bluekingpatdk-lap ok16:08
jancoowHi. Where does USB storage devices get mounted in ubuntu server?16:37
tomreynjancoow: /media or /mnt17:00
tomreynor wheereever you specified in /etc/fstab17:00
=== Into_the_Pit is now known as Frickelpit
JoseLuis_Good afternon18:38
Seveas\o18:38
JoseLuis_Hello all, I feel my server in linode some slow and when a execute command18:39
JoseLuis_ps -ef | grep " 1 " | grep root18:39
JoseLuis_I see some command in execution like as "sh, id, cat resolv.conf, ifconfig eth0, 00:00:00 netstat -an, sh, sleep 1, cat resolv.conf, ls -la, ifconfig eth0, sleep 1, top, ps -ef, ls -la"18:42
SeveasJoseLuis_: does 'top' indicate any specific busy process?18:43
JoseLuis_root     10431     1  0 12:39 ?        00:00:00 top18:44
SeveasJoseLuis_: if you don't mind sharing the full process list, run this command: top -c -b -n1 | nc termbin.com 999918:49
Seveasand paste here the url it outputs18:49
JoseLuis_http://termbin.com/w7q618:52
tomreynJoseLuis_: there's nothing particularly uncommmon to be seen there. accroding to top, the system is in good shape18:58
tomreynmongodb consumes a third of your RAM, but i guess that's intentional...18:59
tomreynit's a bit uncommon that you would run a process from a dot directory (.ogm, a 'hidden' directory), but this is likely intentional as well.19:01
JoseLuis_yeah, the programmers let this configuration in this way19:02
JoseLuis_Thanks for the information, I am not a admin but I execute command from another linde vm and sometimes lost communication19:02
JoseLuis_with the command ping and a shell scripting19:03
tomreynssh -D is a bit strange unless you're debugging something19:03
JoseLuis_No, I am not debugging something19:04
JoseLuis_my port to connect by ssh is different than port 2219:05
tomreyn-D keeps the ssh daemon attached to the terminal, does not put it into the background (which normally you would do)19:06
tomreynso if there were issues with authenticating via SSH and you wanted to find out what's going on you might run it with -D19:06
tomreynbut usually not during normal operation19:07
tomreynit doesn't disclose more information than usually this way, though.19:07
JoseLuis_http://termbin.com/ixuz   is me19:10
tomreynJoseLuis_: if your only indication that 'something is not right' is that you sometimes loose the connection to this server, then you should diagnose the network.19:28
tomreyn...or have your admin do it19:28
JoseLuis_tomreyn: the network is linode.com19:29
tomreynno, that's a domain name19:29
SeveasI see lots of weird things in that top output19:30
Seveasall those commands running as root, a /usr/bin/.sshd, that sjvxr process19:31
tomreynhmm right i missed /usr/bin/.sshd19:31
tomreynwhat about sjvxr, how is that weird?19:32
tomreynit's not a standard process name, google doesn't know about it.19:32
Seveasno google hits19:32
Seveasbut especially all the root 'sh's19:33
tomreyncould be some custom application their developers wrote, though19:33
Seveasand 'id' and 'echo' that run long enough to show in top19:33
Seveaswhich makes me think it's not 'id' and 'echo', but the server has been compromised.19:33
JoseLuis_yeah, those things was my firt question19:33
JoseLuis_*first19:33
tomreynJoseLuis_: do you know what /usr/local/bin/sjvxr is then?19:34
JoseLuis_nop, but let me to ask to the programmers19:35
tomreyncan you run sha1sum on it and tell us what it returns19:35
JoseLuis_how run?19:35
tomreyntype this into a temrinal: sha1sum /usr/local/bin/sjvxr19:36
JoseLuis_1e80879afda301ee47a749fef1005ddb579321e0  /usr/local/bin/sjvxr19:36
tomreynhmm there is no hit on google or virustotal on this checksum19:37
tomreyntalk to your developers then19:37
tomreynif they don't know what it is, then it does indeed seem likely that the system is compromised. until more facts prove the opposite.19:38
tomreynif you can, take asnapshot of this system better sooner than later19:39
JoseLuis_lidone makes a backup each weekend19:42
JoseLuis_*linode19:43
tomreynJoseLuis_: can you also do this: sha1sum /usr/bin/.sshd19:43
JoseLuis_1e80879afda301ee47a749fef1005ddb579321e0  /usr/bin/.sshd19:44
tomreynwait thats the same file19:46
tomreynindeed this is very suspicious.19:46
JoseLuis_yeah, the programmer is going to ask their parters19:46
JoseLuis_*parters19:47
JoseLuis_*partners19:47
JoseLuis_I need to go to my home, i will to connect more later20:07
JoseLuis_thanks for your comments20:07
JoseLuis_see you20:07
JoseLuis_he regresado.22:53
JoseLuis_good afternon22:53
ChmEarlI have the xenial server ISO on usb, formatted ext2. I copied my preseed to usb root. In xen, I can get the usb to boot, but the cdrom-detect won't mount my device, since its using fs-iso966022:59
ChmEarlexcept dropping to shell and trying to mount it as /cdrom, what else can I do. The device is /dev/xvdb23:00
ChmEarlcan I change the cdrom filesystem type in preseed?23:48
ChmEarloh, won't help since preseed is read after the cdrom mounts23:48

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