/srv/irclogs.ubuntu.com/2018/05/23/#ubuntu-server.txt

JanCpstate is an Intel alternative for cpufreq, but it's possible that it doesn't work well with all CPUs, I don't know...00:00
JanCin theory it shouldn't affect # of CPUs though00:01
JanCand the two nomdm* are about RAID00:01
BluekingI have to ask those guys at server shop then00:03
Bluekingor test box with another OS00:04
sarnoldI suspect they will not be able to help you :)00:04
sarnoldother OS seems like a reasonable enough test, but another *cpu* frmo a different supplier might be more useful still00:04
BluekingI have 5 year warranty on such hardware...00:04
Bluekingmight be faulty cpu microcode too ?00:05
Bluekinggot error on it last time I ran apt upgrade00:06
sarnoldwell at least that one might be easy to nail down, uninstall the intel-microcode package, rebuild initrd, reboot, re-test, and check the microcode date in dmesg..00:08
BluekingE: intel-microcode: failed to create or prepend the early initramfs to the initramfs00:08
sarnoldit seems insanely unlikely to me though00:08
sarnoldwe'll publish a new microcode in a few days for the spectre v4, maybe your cpu is covered in that list...00:09
Blueking -> /usr/sbin/iucode_tool: microcode bundle /lib/firmware/intel-ucode/list: unknown microcode format00:09
Bluekingdownloaded from intel: microcode-20180425.tgz00:10
JanCBlueking: my guess would be that it's actually a BIOS/UEFI firmware bug (possibly in ACPI)00:21
sarnoldhmmmm.. I wonder if the fwts package could help?00:22
JanCI wonder if there is a kernel parameter to ignore ACPI's core count (or whatever makes this wrong)00:24
=== uplime is now known as klime
=== klime is now known as uplime
cpaelzergood morning05:12
lordievaderGood morning05:57
=== jaskal_ is now known as Guest1700
xnoxsarnold, I do not have access to Better ARK but people on #clearlinux irc channel do08:54
xnoxsarnold, lack of CPUs may indicate custom microcode that disables/enables them; or that cpus were fused away, meaning there is a crippled SKU out there aka a cheap edition.08:54
xnoxsarnold, many of Intel CPUs are the same, and artificially clocked down / cores disabled. And one can sometimes pay to unlock higher clock speeds & cores.08:55
=== jaskal__ is now known as jaskal_
=== jaskal__ is now known as jaskal_
rbasakahasenack: I'd say the reporter has modified his system from defaults so much in bug 1772337 that it's likely to be a configuration problem than a bug in Ubuntu. If he thinks it's a bug he should at least present an explanation as to why. So Incomplete.09:22
ubottubug 1772337 in mysql-5.7 (Ubuntu) "package mysql-server-5.7 5.7.22-0ubuntu18.04.1 failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1" [Undecided,Triaged] https://launchpad.net/bugs/177233709:22
samba35can some one please tell on 18.04 i have process with sha256sum and it keep running for long time and it kepp cpu busy ,how do i find what it is doing and trace it ,and it keep changeing pid even kill within second it start new same process ,is it normal ?13:15
Oolsamba35: try ps with the f option to see hierarchy13:17
samba35ok ,i will try it when this start13:17
Ooldid you put some security stuff who want to have hash from each file ?13:17
samba35how do i find which package hold this file  /usr/bin/sha256sum13:18
Oolapt search sha256sum  ?13:18
ivoksdpkg -S /usr/bin/sha256sum13:19
ahasenackhm, mod-wsgi dep8 tests passed locally13:19
* ahasenack clicks the retry button in excuses13:19
samba35ps auxf should be ok ?13:19
Oolexactly how I use ps :)13:19
Oolbut someones prefer ps -edf13:20
samba35thanks Ool and ivoks13:20
samba35ok will that too :) but thanks for give idea get good idea13:21
Neo4my shell script functionality, what would be good else to add there?13:24
Neo4https://paste.ubuntu.com/p/ChMScTw5sp/13:24
Neo4backup, generation and set up sshkey, set up certificates for virtualdomains13:24
Neo4I think about create a fullfladgit control panel :)13:25
olivierb-Hello everyone, basic question but can not find answer easily on my side. Let's assume I have a dhcp server on my network which assigns IP AND hostname. When my machine boots, it gets the IP but hostname command and /etc/hostname file contains ubuntu. Machine is ubuntu xenial 64bit with minimal set of packages. Furthermore my seconday IP address is on another network served by another dhcp server but this one does not provide host13:52
olivierb- names in DHCP offers. How does all this works and what should I add/change to get my hostname properly set ?13:52
ahasenackI don't know13:54
rbasakolivierb-: if you're using ifupdown on Xenial, then it's done via dhclient.conf and dhclient-script14:02
rbasakI'm not sure what the default is or if you need to change it.14:02
rbasakolivierb-: it's probably not a good idea to have a server's hostname regularly change though. Unless it's an appliance, I'd lock it in statically on the client side anyway.14:03
olivierb-rbasak I managed to get it working once using service networking restart, but it was only once14:03
olivierb-name should not change as long as the lease remains same14:04
ahasenackthere is this fence-agents package in the ubuntu archive, that ships a lot of scripts of the type fence_*14:18
ahasenackthere is one of those scripts that doesn't work out of the box because of missing python dependencies14:18
ahasenackthese missing deps are declared as "Suggests" in the d/control file14:18
ahasenackthat seems wrong to me. If the script doesn't even run, surely those deps should be in Depends?14:19
ahasenackbug is https://bugs.launchpad.net/ubuntu/+source/fence-agents/+bug/177209614:19
ubottuLaunchpad bug 1772096 in fence-agents (Ubuntu) "fence_vmware_soap is not working after installation of fence-agents" [Undecided,Triaged]14:19
ahasenackcheck comment #214:19
ahasenackand #414:19
ahasenackit's a sync from debian, though14:19
rbasakahasenack: depends on the nature of it. AIUI, if it's not the normal use case of a package, it doesn't hae to be a Depends.14:24
ahasenackit's just one of many fence agents the package ships14:24
ahasenacktake a look at apt-cache show fence-agents14:24
rbasak"The Depends field should be used if the depended-on package is required for the depending package to provide a significant amount of functionality."14:25
rbasak"The Recommends field should list packages that would be found together with this one in all but unusual installations."14:25
rbasak"[Suggests] is used to declare that one package may be more useful with one or more others. Using this field tells the packaging system and the user that the listed packages are related to this one and can perhaps enhance its usefulness, but that installing this one without them is perfectly reasonable."14:26
rbasakFrom https://www.debian.org/doc/debian-policy/#binary-dependencies-depends-recommends-suggests-enhances-pre-depends14:26
ahasenackit backtraces14:27
rbasakFor a package that is essentially a collection of a bunch of different use cases, it's difficult.14:28
rbasakPeople might not want it to depend on every single possible use case dependency package.14:28
ahasenackthey should have their own package each then, if it pulls in more deps than the maintainer is willing to accept14:28
rbasakBut by not doing that the user has to know what extra to pull in14:28
ahasenackthe user will see a python backtrace14:29
rbasakYeah that's not good. It's not necessarily wrong to not have a dependency, but it's reasonable to expect a more helpful error message.14:29
rbasakI would leave it to whatever the Debian maintainer thinks is appropriate14:29
ahasenackthere's a changelog entry even, mentioning the two deps being added as build-depends, and suggests, at the same time14:30
ahasenack  * Add python-requests and time to Build-Depends, add python-requests and14:30
ahasenack    python-suds to Suggests (needed by fence_vmware_soap).14:30
rbasakThat sounds reasonable14:30
ahasenackI fail to see how14:32
ahasenackthe package is shipping a binary, like many others it already has, that does not work because of a missing dependency14:32
ahasenackit crashes14:32
ahasenackapport will raise its head14:32
rbasakIt can be fixed by adjusting the apport hook or adjusting the error message when the "dependency" isn't found.14:33
rbasakIt doesn't necessarily have to be declared as a Depends unless it is needed to provide a significant amount of functionality for the package.14:34
rbasakThe decision is left to the maintainers otherwise, and it seems that they selected Suggests deliberately.14:35
Bluekingare there any dos tools that can post intel cpu, number of cores and so ?15:21
compdocyou mean command line15:27
compdochttps://www.tecmint.com/check-linux-cpu-information/15:28
RoyKBlueking: lscpu as before16:06
ahasenackrbasak: success! "   * Move python3-requests and python3-suds to Depends (Closes: #899381)"16:33
samba35why  usr/bin/sha256sum /etc/aide/aide.conf.d/31_aide_rngd keep cpu usage very hight17:07
samba35any idea why sha256sum is used for X11 relates file ?17:08
tewardbecause the CPU has to calculate the hash sum of a given file17:08
tewardwhy it's doing that I don't know, but sha256sum is not a 'light' function in terms of resources17:08
teward(any hashsum function will eat CPU)17:08
teward(to varying degrees depending on the filesize of the file being hashsummed, and the hashing algo)17:08
samba35yes but what kind of with X1117:09
tewardI... have no idea what you just tried to ask.17:09
tewardwhich means either a language barrier, or your question was malformed./17:09
tewardsamba35: as I said, I can't answer *why* it's used for the X11 relates file, but I can answer the "keep cpu usage very high" part because of the nature of what sha256sum does17:10
tewardi once sha256summed a 240GB disk image file once.  Took full CPU on the 16 cores of that workstation, for a good bit of time.17:11
teward(100% usage, on pretty much all cores, until it finished the calculation of the sha256sum)17:12
samba35ok ,got it it seems im-config17:12
samba35remove this page and let see what happen17:12
ahasenackrbasak: little help: is this good? https://pastebin.ubuntu.com/p/ZPCZcYtykt/17:13
samba35/etc/apache2/mods-available/proxy_http2.load now sha256sum is using this file17:17
samba35so its not static to one file17:17
samba35i am not trying encrpth /decrypth any file17:17
tewardit's not encryption/decryption17:18
tewardit's hashsumming.  *something* on your system is trying to get hash sums for various files17:18
ahasenacksamba35: you seem to be using aide. That will hash all files in your system17:18
teward^ that17:18
samba35how to i fix this ?17:19
ahasenackremove aide17:19
ahasenackor figure out why you installed it17:19
ahasenackunless this is not your system :)17:19
samba35is it relaed to check-security ?17:20
ahasenackdon't know what that is17:21
ahasenackthere is no such file or package in ubuntu bionic17:21
samba35brb will reboot system ,its keeping cpu very hight and its too hot already17:21
ahasenackrebooting won't fix it17:22
ahasenackit's likely a cron job, it will just run again17:22
Bluekinghmm how to open this ? intel-microcode_3.20180425.1~ubuntu0.16.04.1.tar.xz17:22
Bluekingtar won't work ?17:22
ahasenacktar xJf <file>17:23
ahasenackJ is for xz compression17:23
Bluekinghmm how do I implement microcode ?17:27
Bluekingnone help file inside this package ?17:27
ahasenackI don't know, but there is a package in ubuntu that installs new microcode, you could check how it does it17:28
Bluekingare there search function inside apt ?17:29
ahasenackapt-cache search for packages17:29
ahasenackapt-file search for files in packages17:29
sdezielBlueking: installing the intel-microcode package should be all you need17:32
Bluekingsdeziel how ?17:33
sdezielBlueking: on your next reboot, a fresh microcode will be loaded if one is available17:33
sarnoldxnox: oh thanks for the #clearlinux tip -- I knew intel binned CPUs pretty heavily but I thought they were *really* diligent about making sure every unique combination had a descriptive name..18:25
xnoxHAHAHHAHAHAH18:25
sarnoldxnox: well not poor Blueking is likely to return his cpu because it's not what he thought he bought..19:06
lyn||iansarnold, that is what ark.intel.com is for as there are too many to memorize19:08
sarnoldlyn||ian: ARK says Blueking's processor should have FOUR cores but it only has TWO cores.19:08
lyn||ianwow'19:12
sarnoldyeah, that's what has me so surprised :)19:13
sarnoldI've spent so many hours reading ARK details on processors I've thought about buying..19:14
xnoxsarnold, well.... what does the box say? or the markings on the cpu itself? it might be sub-sku with disabled cores.19:16
sarnoldBlueking: hey :) do you still have the box? :D19:16
Bluekingsarnold it's a few months away from beeing used for 5 year :P19:42
sarnoldBlueking: so.. the box is long since discarded? heh19:43
Bluekingbios says 4 core19:43
Bluekinggotta find out how to remove current microcode and force new one in19:45
sarnoldapt-get install intel-microcode; make sure the initrd is rebuild; then reboot19:48
sdezielBlueking: again, this should all be automatically done on reboot19:48
sdezielBlueking: journalctl -k | grep -i microcode19:48
sdezielbut IIRC, this will only load a microcode on CPUs visible by the kernel...19:48
Bluekinglast line didn't post anything19:49
Bluekinghow to remove current microcode.. apt-get install intel-microcode  says 'intel-microcode defined manual installation'19:52
naccBlueking: you mean remove the intel-microcode package? `sudo apt-get remove intel-microcode`19:55
Bluekingok used apt-get remove intel-microcode  ->  then apt-get install intel-microcode -> reply from process  "/usr/sbin/iucode_tool: microcode bundle /lib/firmware/intel-ucode/list: unknown microcode format" and "E: intel-microcode: failed to create or prepend the early initramfs to the initramfs"19:56
Bluekingmaybe this error  make it fail update intel-microcode at next boot ?19:58
sdezielBlueking: most probably19:58
naccuh, don't think there should be a /lib/firmware/intel-ucode/list file19:58
naccand yes, if the package failed to install, then it ... didn't install19:58
sdezielBlueking: you asked how to untar the intel-microcode tarball earlier, have you extracted that tarball in that dir?19:59
Bluekingno19:59
sdezielOK good19:59
naccjust did a quick chdist check and yea, there shouldn't be a list file20:00
nacc(at least, afaict)20:00
sdezielI can confirm this /list file isn't here on my machines20:02
Bluekingmaybe this was bad thing.. what I did 2 weeks ago ? mv intel-ucode /lib/firmware20:02
Bluekingtar -xvzf microcode-20180425.tgz20:02
Bluekingbut only had two core before that20:04
sdezielis that the tarball provided by Intel?20:04
Bluekingyes20:04
sdezielI'd try to do the following: "apt-get purge intel-microcode" then "rm -rf /lib/firmware/intel-ucode" and finally "apt-get install intel-microcode"20:05
Bluekingok20:06
Bluekingok rebooting now20:07
Bluekingstill 2 core20:10
sdezielBlueking: did you have the "unknown microcode format" error prior to the reboot?20:33
sdezielif no, I'd be curious to see the "journalctl -k| grep -i microcode"20:34
Bluekingsdeziel: http://paste.ubuntu.com/p/9JmBr77pvZ/21:08
Bluekingsdeziel: interesting here http://paste.ubuntu.com/p/pSs9NcXDv3/21:13
sdezielenabledcores=1 looks suspicious21:14
Bluekingonly one enabled core..21:14
sdezielyou have HyperThreading right?21:14
Bluekingyes21:14
sdezielOK so that explains the first paste21:17
Bluekinghttp://paste.ubuntu.com/p/M7nQ3bjjG5/21:19
Bluekingso where do ubuntu have these control sets ?21:21
Bluekinggrub/grub2 ?21:22
Bluekingsdeziel ?21:24
sdezielBlueking: cat /proc/cmdline21:25
Bluekingsdeziel: http://paste.ubuntu.com/p/t6v8mqtqX2/21:25
sdezielBlueking: so there is no kernel arg that artificially limits the number of cores visible21:46
Bluekingthere must be sumthin ?21:54
aroonianyway to check to make sure log rotation is working across web logs/etc.. ? or is this just on by default (16.04 server)21:54
Bluekinghello Janc21:54
Bluekinghello JanC21:54
Bluekinghello JanC_21:55
=== JanC_ is now known as JanC
BluekingJanC  you had a peek at mine problem ?21:56
sarnoldBlueking: has this cpu always had two cores? :)21:57
Bluekingthat I am not sure about21:57
sdezielBlueking: yeah, I'd grep old boot logs for nr_cpu_ids21:58
Bluekingsarnold  seems only one core  are enabled   with HT it's '2' core21:58
Bluekingcd ..21:58
JanCBlueking: currently my guess would be it's an ACPI problem?22:01
Bluekinghttp://paste.ubuntu.com/p/THJS4XjWH3/22:02
Bluekingnot sure22:03
Bluekingshould I goin bios and change ?22:03
Bluekingwhat are RCU ?22:04
BluekingRCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=2.22:04
sarnoldRCU is a go-fast lockless datastructure design scheme22:05
sarnoldit allows working with stale data in a predictable way22:05
JanCand it needs to know how many CPUs you actually have, I suppose22:06
sarnoldright22:07
Bluekinghmm I need to uncompress log files ?22:08
Bluekingto search through old log files ?22:08
sdezielBlueking: zgrep should be able to look into .gz log files22:10
sdezielzgrep -F nr_cpu_ids /var/log/syslog*22:10
sarnoldvim also has some autorules to expand compressed files in place22:11
Bluekingkern log files goes back only 3 days..22:12
sdezielBlueking: syslog, not kern.log22:14
Bluekingnothing there22:14
sdezieldo you ship logs to an aggregator/concentrator by any chance?22:15
sdezielBlueking: I'm done for the day but good luck22:17
sarnoldgnight sdeziel ;)22:20
sdezielthx22:20
Bluekingstill a bug ? -> https://ubuntuforums.org/showthread.php?t=2187699&page=223:05
tomreynBlueking: it's either still a *BIOS* bug (and will then surely remain that as BIOSes traditionally have a long lifetime) or it remains to be an ubuntu bug which, at least according to this forum thread, was not yet reported (and would thus not get fixed unless identified AND reported independently).23:08
Bluekingokey23:09
Bluekingtomreyn: configuration: cores=4 enabledcores=1 threads=8  with command lshw -class cpu23:12
tomreynBlueking: so?23:13
Bluekingjust wonder  cores=4  enabled cores=1  but  the number of threads=8   are it 8 enabled threads ?  thus it indicates 4 enabled cores..23:13
Bluekingjust wonder if ubuntu read bios wrong  where bios say 1 core someplace it means 1 physical cpu ?23:14
Bluekingit's supermicro mobo23:15
naccBlueking: i don't think the threads relates to how many threads are enabled23:15
naccBlueking: not sure, though, i'd need to read the source to be sure23:15
naccBlueking: what does `grep -c '^processor' /proc/cpuinfo` say?23:16
* tomreyn would also *assume* it refers to capabilities, not current configuration23:16
Bluekinginside bios  there intel service thing wich tells status of mobo/cpu   disabled cores = 023:16
nacctomreyn: yeah, i assume givne the 'enabled' vs. no-prefix for cores, they are distinct for threads too (but possibly not emitting)23:17
Bluekingnacc nothing.. wrong typo ?23:17
Blueking223:18
naccBlueking: ok, so you have 1 core enabled with HT on23:18
naccBlueking: which is completely accurate with `lshw`23:18
Bluekinglooks like that yes23:18
naccBlueking: and your BIOS setting is currently set to 4 cores?23:18
Blueking'all'23:18
Bluekingactive cores23:19
naccBlueking: did you figure out what actual model (by the box) you have?23:19
BluekingI can define 1,2,3, all23:19
naccBlueking: based upon sarnold & xnox's disucssion above23:19
naccBlueking: it seems most likely you have a buggy BIOS or you have a not-full-core chip23:19
sarnoldI *really* have trouble seeing supermicro having a bios this buggy23:20
sarnoldI know bioses suck and all23:20
sarnoldbut defective-CPU sold at a discount is my current favourite theory23:20
Bluekingbilling from shop:  Intel Xeon Quad-Core E3-1230Lv3 1.8GHz 8MB, 25W, LGA115023:20
Bluekingshop didn't have this cpu on shelf.. were some ordering time and had to wait some time23:22
Bluekingnacc: I updated Bios  2 days ago to see if update fixed number of visible cores23:23
BluekingI am gonna put another hdd on mine box and test with windows OS23:24
naccsarnold: yeah, i would agree too23:30
naccBlueking: also, fwiw, your mobo page didn't list this cpu as explicitly compatible23:31
sarnoldcurious23:31
sarnoldI saw e3 v3-4 xeons on the page and though tit looked good enough23:32
nacci saw e3 1200, and it wasn't immediately obvious to me if that included 123023:32
naccthis person claims to have seen 8 cpus in linux with a 1230: https://superuser.com/questions/851799/proc-cpuinfo-for-xeon-e3-processor23:34
sarnoldI think that's  adifferent model, no L in that name23:34
naccah right23:35
naccBlueking: this seems relevant: https://webcache.googleusercontent.com/search?q=cache:eWwSlZlUNDMJ:https://forum.pfsense.org/index.php%3Ftopic%3D128722.0+&cd=3&hl=en&ct=clnk&gl=us23:38
sarnoldnacc: DUDE23:39
sarnoldthat looks like it exactly23:39
naccthey got an actual response from SM23:40
nacci don't know if it's the same mobo, but the symptoms seem oddly similar23:40
sarnoldthe only slight prblem of course is the bios upgrade was done to try to fix this issue23:44
sarnoldbut still, clearing cmos and spending a few minutes to put it all back together again is quick and easy, easier than installing windows anyway :)23:44
naccright23:44

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