/srv/irclogs.ubuntu.com/2018/07/20/#ubuntu-server.txt

wrRoyK, about 30 (sorry just got back now)00:03
=== yokel_ is now known as yokel
RoyKwr: should be trivial00:18
RoyKwr: at work we have 30k or so - works well on a single vm00:19
wrRoyK, i think i'll use like 8Gb00:30
sarnoldseriously, it's the 2000. Splurge on a few extra gigs so you never have to clean up kernels when /boot fills.00:31
RoyKsarnold: it's no problem to expand that later01:22
sarnoldin some environments anyway :)01:23
RoyKsarnold: I'd say most - unless you refuse to use lvm :รพ01:30
sarnoldRoyK: I swear learning how to use lvm has been on my todo list for only a dozen years I'll get to it :)01:31
=== minipini is now known as Guest42397
cpaelzergood morning05:27
=== codedmart_ is now known as codedmart
caribouhello everyone; I just wanted you to know that I revived LP: #1662345 and took ownership of the bug12:38
ubottuLaunchpad bug 1662345 in qemu (Ubuntu Xenial) "smbios parameter settings not visible in guest" [Medium,Confirmed] https://launchpad.net/bugs/166234512:38
caribouit is a showstopper for us to deploy cloud-init on ARM64 and, since it works on Bionic, I'll try to identify the change for an SRU to Xenial12:38
ahasenackcaribou: ok, it definitely helps to have an arm64 host to try on12:46
caribouyeah, we got plenty of that12:47
caribouand a vested interest in fixing it :-)12:47
ahasenackgood combination :)12:51
hsni have ubuntu 12.04 what is end of support date?13:26
rbasakhsn: see https://wiki.ubuntu.com/Releases13:27
rbasak12.04 is already EOL13:28
hsnso support is only for 5 years13:30
rbasakCorrect.13:30
rbasakCanonical provide additional support to its customers, but Ubuntu LTS for servers has always been five years.13:31
hsnany linux distro has more then 5 years support? i have lot of linuxes out of support now here13:31
blackflowhsn: https://www.ubuntu.com/support13:36
hsnfound this page https://linuxlifecycle.com13:37
sdezielhsn: this site doesn't mention ESM that adds 2y of support to an LTS13:38
Guest87713I'm seeing lots of HTTP 404s that point to this website. http://t20.proxy-checks.com/favicon.ico: 1 Time(s) I'm running Nginx and don't have proxying configured. Should I be worried?13:39
blackflowhsn: if you're willing to change the entire distro and go through everything that assumes (different logistics, different programs, different versions of existing programs, etc...), then you can simply just upgrade to next LTS every 5 years, if you don't wanna pay for extended support beyond 5yr.13:42
hsnyou will get different versions of programs after upgrade anyway no matter distro you use.13:44
hsni want to update as less as possible to major software versions because it do not earns any money13:44
blackflowRHEL systems are radically different from debian/ubuntu based ones. you're not gonna change only program versions.13:46
JanCactually, upgrading every 2 or 4 years will make it easier to upgrade than when you wait 8 years or more13:47
JanCbecause even RHEL will run out of support one day, and by then everything will have changed so much you'll practically have to re-write all your code at once13:49
blackflowdefinitely. Netflix had a series of talks about that, why riding on development version of the OS helps them achieve that. It's another extreme (riding on dev), but it's part of the same paradigm of frequent upgrades with small steps and less to test, than rare huge bumps with months of testing and software adjustment required.13:49
JanCI doubt months of testing will be enough by then  :)13:50
blackflowright now, switching from 12.04 to, say, 18.04 is far less work than going to RHEL/CentOS 7 which is a totally diferent platform.13:50
JanCto get even just close to the same stability as a system that has been around for 10 years, you would be testing for years13:51
hsnwe have RHELs and Ubuntus here. Ubuntus for development and RHEL for software testing.13:51
blackflowwell yeah, in 10 years a LOT has changed, esp. in today's world of agile dev.13:51
blackflowhell, just look at Fedora and how much it changes from realease to release. Fedoras are what RHEL is made of.13:52
arrrghhhhey all.  How can I troubleshoot a service timeout?  My machine is taking a very long time to boot, I think it is waiting for a service to start and failing16:29
naccarrrghhh: systemd-analyze blame will help you know if that's the case16:32
arrrghhhnacc, hm.  That is a great command, although perhaps you are correct that it is not the case - the longest service is 3.4s, everything else is milliseconds.16:34
naccarrrghhh: does the total time there match what you are experiencing?16:34
naccarrrghhh: as in, does it seem quite long16:34
arrrghhhI saw some timeouts in syslog yesterday related to snappy/snapd.  I tried removing it, and I still have a slow startup... I'm not sure if snapd is required or not tho16:35
naccarrrghhh: well it is if you use snaps :)16:35
arrrghhhnacc, no I'd say not.  I guess there is another reason for the slow boot... seems like a timeout somewhere since the system is just sitting idle for almost 5 mins while it boots16:35
arrrghhhI don't think I use any snap packages16:36
naccarrrghhh: `snap list` will tell you16:36
naccand you can remove snapd if you don't need it16:36
arrrghhhyea snap is not installed haha16:36
arrrghhh"Command 'snap' not found"16:36
naccarrrghhh: what version of ubuntu?16:36
arrrghhh18.0416:37
naccarrrghhh: strange, happens every time?16:39
arrrghhhnacc, yep.  It just started in the last few weeks... I don't think any changes were made, although I do randomly upgrade the system16:40
arrrghhhI really like this systemd-analyze tho.  I wonder what else it could be if it's not a service timeout16:45
arrrghhhwouldn't a NFS or CIFS mount timeout show in the syslog?16:45
arrrghhhI don't think I have any... nope none in fstab at least16:45
JanCarrrghhh: do you know at which point it hangs?17:08
JanCsometimes if filesystems aren't unmounted properly on shutdown they can be slow to start up...17:09
JanCdatabase servers can also be slow to start up if they have lots of data to check17:10
JanC(even more so if they are not shut down properly, of course)17:10
DammitJimDo you guys know what gives a network interface the name eth0 or ens160, etc?17:29
nacchttps://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/17:30
naccDammitJim: --^17:31
DammitJimthanks nacc17:32
blackflowDammitJim: the default order tried is defined in /lib/systemd/network/99-default.link    This part is a bit less obvious.17:34
DammitJimthanks guys17:37
DammitJimso, I had to do the net.ifnames=0 change to a server so that it would use eth0 instead of ens16017:37
blackflowyup17:37
DammitJimthis server happens to use keepalived and the configuration relies on eth0 now that everything is working17:37
blackflowDammitJim: see NamePolicy=   in systemd.link(5) manpage17:38
geniiConsistent Naming is both a blessing and a curse17:38
blackflowhear hear17:38
DammitJimwell, now when we try to do a recovery from a backup on the cloud, the interface is coming up as ens3 instead of eth017:38
DammitJimfrom what I understand, the could company doesn't use ESX, which is what we use, but they use KVM17:39
blackflowyah ens3 sounds like virtio net KVM VPS17:39
DammitJimso, I think the ethernet controller they are assigning it is an e1000 and not a VMXNET317:39
=== Fr0Master is now known as FroMaster
DammitJimhow do I overwrite that (again)17:39
blackflowDammitJim: should be virtio, check in dmesg17:39
DammitJimthanks for listetning blackflow17:39
DammitJimyeah, blackflow it changes to virtio if I change the controller from e1000 to virtio17:40
DammitJimbut my Ubuntu VM was build in ESX with a VMXNET3 controller17:40
DammitJimI'm looking at the file you mentioned blackflow17:40
blackflowDammitJim: wait, what is the problem exactly? IF you use net.ifnames=0 kernel option, it'll be eth017:41
DammitJimso, I would break it down in 2 things I did17:42
DammitJim1) The default Ubuntu install on ESX would show ens160 as the network interface, so I set net.ifnames=0 and biosdevname=0 in /etc/default/grub17:44
DammitJimthat changed ens160 to eth017:44
DammitJim2) When recovering the VM in a KVM environment, the network interface is showing up as ens317:44
DammitJimso, how do I change it from ens3 to eth0 "again"17:44
blackflowsame way. are you sure you're booting with those kernel options?17:45
DammitJimblackflow, how do you mean "same way" I already changed /etc/default/grub to use net.ifnames=0 and that changed ens160 to eth017:46
DammitJimso, the VM has that configuration now17:46
DammitJimbut when recovering the same VM in a KVM environment, it's not coming up with eth0, but with ens317:46
DammitJimeven though I already have net.ifnames=0 configured17:46
blackflowDammitJim: well are you sure that the kernel is given those options? what does    cat /proc/cmdline   say in that VM that doesn't change to eth0?17:48
DammitJimas a matter of fact, dmesg says: virtio_net virtio0 ens3: renamed from eth017:48
blackflowDammitJim: note that /etc/default/grub per se doesn't do anything. it's a file sourced by update-grub that sets up the grub menu. is it possible different grub menu is used when you changed the VM?17:48
DammitJimcat /proc/cmdline yields: BOOT_IMAGE.... ro quiet root=UUID=.... rootfstype=ext4 enforcing=017:49
blackflowDammitJim: yah, no net.ifnames=017:49
DammitJimthat's a good question blackflow I don't know what grub menu is used by the KVM (DR)17:49
DammitJimok, cool! so, maybe when they recover the VM, they are passing a different parameter when booting the kernel?17:50
DammitJimI can't tell what is being used within the VM< right?17:50
blackflowDammitJim: you can force it yourself to test, in teh grub menu hit 'e' to edit the first line, navigate down to the line starting with vmlinuz, and add  net.ifnames=0 to it,   hit F10 to continue booting.17:50
blackflowDammitJim: under KVM you should have full control over the booting process and grub options.17:51
DammitJimOh Ok... let me see what I can find17:52
DammitJimbut what you have provided is invaluable!17:52
DammitJimwhere does one change the timeout to pick what kernel to load in grub?17:57
blackflowDammitJim: in /etc/default/grub17:58
DammitJimLOL.. thanks blackflow you are good17:58
DammitJimI was just going there telling myself I shouldn't have asked until I confirmed that wasn't it17:58
blackflowwasn't it?  did you run upate-grub after changing that file?17:59
DammitJimah, that's what I missed18:00
DammitJimweird... I don't see a line that starts with vmlinuz after doing 'e' in the grub menu18:01
DammitJimok, I see a line starting with /boot/vmlinuz-4.4 etc18:02
DammitJimbut it has the parameters!18:02
blackflowDammitJim:   linux /boot/vmlinuz ......         ?18:03
blackflowah yes, that one.18:03
blackflowDammitJim: so, there's net.ifnames=0 in there?18:03
DammitJimweird18:04
DammitJimhold on18:04
DammitJimit worked18:04
blackflowI'm guessing it works now because you ran update-grub, which you missed earlier.18:04
DammitJimno, I ran update-grub when I set net.ifnames=018:04
blackflowI assumed you knew you had to run it, because you mentioned you already edited /etc/default/grub and had what you wanted, under ESX.18:04
DammitJimand that was working in ESX18:04
DammitJimI didn't run update-grub when I changed the timeout from 2 to 2018:05
blackflowDammitJim: so anyway, you have eth0 under KVM now?18:06
DammitJimyes18:06
blackflowgreat.18:08
DammitJimthey must have a bug in their system where they change the things they load to the kernel18:12
blackflowDammitJim: as far as I know (could be wrong), under KVM you boot from the VM. It's not like Xen (sans pvgrub) with external kernel.18:14
blackflowso it boils down to which /boot was used, under which hypervisor. one of them has /boot separate from root?18:15
DammitJimhhmmmm18:15
blackflowanyway, gotta run, bbl18:15
DammitJimthanks man!18:16
arrrghhhJanC, sorry moved computers... I'm not sure which point it hangs which is a bit of the problem.  Should I look at syslog?  It doesn't seem extremely helpful18:34
JanCsyslog might show what happens around the time it continues18:38
JanCsyslog or journald, of course18:39
arrrghhhI guess I'll check journald?  Not familiar with that one.  syslog hasn't been extremely helpful thus far...18:50
arrrghhhbbiab18:50
crandonToday on a sever operated by someone else I faced the following problem: I created a .tar.gz with ordinary files, all owned by the user running tar, but could neither extract it, not list it's content with -ztvf. tar simply blocked and did nothing. Interestingly as root I could list the archive content just fine. Running an strace as both the regular user and root I found, that compared to where tar got stucked as regular user19:43
crandon(some futex calls after getuid() and getgid()) as root the next calls initiated some mysql queries. The machine's nssswitch.conf is configured to use mysql. Any idea what could be misconfigured and how tar could be told not to do such thing?19:43
nacc!crosspost | crandon19:44
ubottucrandon: Please don't ask the same question in multiple Ubuntu channels at the same time. Many helpers are in more than one channel and it's not fair to them or the other people seeking support.19:44
crandonSorry, I was told on the other channel to come here.19:50
nacccrandon: i see that now19:50
nacccrandon: does the system behave normally otherwise? what is the nsswitch.conf contents?19:51
crandonnacc:19:55
crandon       passwd: files mysql19:55
crandon       shadow: files mysql19:55
crandon       group:  files mysql19:55
crandon     19:55
nacccrandon: i see (switching to here)19:56
crandonnacc: You mean like "--no-same-owner"? No I haven't, but those should be the default. Unfortunately I don't have access to the system right now (trying to be proactive here until I get access again)20:00
nacccrandon: that's one idea, yeah20:01
nacccrandon: i really don't know, sorry20:01
crandonnacc: What I tried are --no-acls, --no-selinux, --no-xattrs20:01
nacccrandon: hrm20:01
crandonOk, thanks. It's just annoying when you try to do some work and you got stuck on something like extracting a simple tgz...20:02
crandonnacc: BTW even if I'd find some tar switches which allow the extraction I'd still be stuck as the problem is triggered when running pyenv to which I'm not sure how I could pass the tar options...20:03
crandonnacc: Anyway, thanks for your time!20:04
nacccrandon: yeah not sure; it's almost certainly while tar is doing some lookup20:10
nacccrandon: i'm just wondering if the system is generally broken for that user20:11
=== devil is now known as Guest41148

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