/srv/irclogs.ubuntu.com/2019/08/13/#ubuntu-server.txt

=== not_phunyguy is now known as phunyguy
calcmandan-tabi have an severely out of date server on 15.04 and looking for directions of updating severely eol ersions. can someone kindly send me a url?07:11
lotuspsychjecalcmandan-tab: is that a test server or production?07:54
calcmandan-tabfoud it08:03
calcmandan-tabfound it08:03
calcmandan-tabfingers crossed i don't hose my server08:03
lotuspsychjecalcmandan-tab: a lot of security flaws have been released since 15.04 are you sure you take the risk of eolupgrade?08:04
calcmandan-tablotuspsychje: not sure what the risk is08:05
lotuspsychjecalcmandan-tab: were your servers connected to internet or offline use?08:06
calcmandan-tabboth08:06
calcmandan-tabbut not critical08:06
lotuspsychje!usn | calcmandan-tab security risks08:06
ubottucalcmandan-tab security risks: Please see https://usn.ubuntu.com/ for information about recent Ubuntu security updates.08:06
lotuspsychjecalcmandan-tab: if its for production use, id really reccomend fresh install to be sure your server isnt compromized08:07
lotuspsychjemaybe its not, but why take the risk right?08:07
calcmandan-tabi did a major scan of the server and i have strong egress rules on the firewall08:07
calcmandan-tabi also reviewed its logs08:07
calcmandan-tabfirewall and proxy logs08:08
lotuspsychjecalcmandan-tab: ok then if you know what youre doing :p08:08
cpaelzerjamespage: did your issue with OVS 2.12 resolve?08:32
Aisonhello, can I disable the network-manager.service, when I do not use the /etc/network/interfaces facility? is it enough to keep just systemd-networkd.service enabled?09:11
lordievaderAison:  You mention three different methods of configuring network interfaces here. What do you actually use?09:24
calcmandan-tablotuspsychje: thanks for your help earlier.09:24
lotuspsychjecalcmandan-tab: welcome mate09:25
calcmandan-tablotuspsychje: i'm taking your advice as it'll be much quicker to go fresh09:25
calcmandan-tablotuspsychje: and cleaner09:25
lotuspsychje+1 nice choice calcmandan-tab09:25
calcmandan-tabnight09:26
calcmandan-tabtake care09:26
Aisonlordievader, i'm only using the systemd facility09:26
lordievaderIn that case NetworkManager and ifupdown (`/etc/network/interfaces`) can safely be disabled.09:27
Aisonso I placed config files into /etc/systemd/network09:27
lordievaderDo make sure the `systemd-networkd` service is enabled and running.09:27
lordievaderIf you are able to, reboot at least once to check if the configuration is reboot-proof.09:28
Aisonok09:28
AisonI just wonder, why networkmanager replaced my reslov.conf by an empty file (except containing # Generated by NetworkManager)09:28
lordievaderBecause it likes to control it with information either from DHCP or manually supplied.09:29
lordievaderIf you are doing this remote, make sure you have some backup method of access (IPMI).09:29
Aisonthe funny thing is, altough resolv.conf has no nameserver defined, nslookup, dig, etc... is still working.09:31
Aisonis automatically the localhost used if there is no nameserver defined? because i'm running bind on this machine09:31
lordievaderThe DNS was designed this way.09:31
lordievaderAs a way to push over people to the DNS (instead of the hosts file) the fall-back default would be localhost.09:32
Aisonlordievader, ok, thx :-) /etc/network/interfaces is read by the network-manager.service or are these two different facilities?09:35
lordievaderNetworkManager only reads that file to figure out which interfaces are managed by ifupdown, furthermore it does its own thing. NetworkManager is not configured through `/etc/network/interfaces`.09:36
Aisonbrb, reboot server :-D09:44
Aisonlordievader, ok, everything works fine without network-manager.service ^^09:47
lordievaderGood to hear10:02
Aisonargh, why is mariadb logging everything...  just deleted a 500gb log file10:59
Aisonoh, somehow general-log was enabled....11:03
=== Wryhder is now known as Lucas_Gray
hallyncpaelzer: yeah, so qemu supported virtio-scsi-blk, but the eoan server livecd couldn't find the disk :(13:32
hallyni'm being lazy - haven't looked at the available kernel modules yet13:32
hallynjamespage: cpaelzer mentioned that rharper had suggested you switch to virtio-scsi, did you do so, and did you have any troubles?13:33
hallynoh you know what - never mind,13:44
hallyni using the $(*&^&(*#&$(*#&$(* "improved" qemu command line wrong13:44
hallynman i hate the -device crap.  and now, apparently, you have to use *3* pairs of arguments for one stinking drive.  lovely13:45
hallynbut, it's working :)  now to test discard13:45
cpaelzerIMHO the cmdline no more is meant to be a human interface13:46
cpaelzermore for machine generated strings13:46
cpaelzerI happen to use the most outdated (but easy to remember) arguments as well every now and then13:47
hallynyeah...13:47
hallyni bet there's a front-end out there that parses easier to remember cmdline to qemu cmdline :)  maybe i'll turn my 'kvm' script into one13:49
hallyn"-virtio-scsi-drive x.qcow2" -> if=none,id=hd,file=x.qcow2,format=qcow2 -device virtio-scsi-pci,id=scsi --enable-kvm -device scsi-hd,drive=hd13:50
hallynmeh13:50
rharperhallyn: just wait till you start allocating io-threads to each of your devices =)14:23
hallynrharper: i've always assumed this was all jsut an attempt to force us to use libvirt :)14:30
rharperhallyn: heh, no, that was when they stopped allowing folks to query features via the cli; wanted folks to use qmp to "discover" features;14:35
rharperhttps://bugs.launchpad.net/ubuntu/+source/qemu/+bug/171602814:36
ubottuLaunchpad bug 1716028 in libvirt (Ubuntu) "qemu 2.10 locks images with no feature flag" [Medium,Fix released]14:36
hallynhalf-lol :)14:36
=== Tornevall is now known as Guest64769
hallynrharper: so - all that, and discard is not working for me!  hm.17:19
hallynok, so i see - it doesn't shrink the file of hte qcow file, but it re-uses the discarded space (so create 1G, rm 1G, create 1g  doesn't take up 2 G)17:29
hallyn"could be worse"17:29
sarnoldit could also be better.. if those bits on disk really aren't needed it'd be nice to zero em out for rebalancing :(17:30
lordcirthsarnold, as a one-off, you can use qemu-img convert to produce a shrunk file17:40
sarnoldlordcirth: yeah.. bummer that it takes that kind of effort though :( if the vm actually went to the effort to issue a discard call, that information is already sitting there..17:41
rharperhallyn: what's your cli look like ?17:52
hallynkvm -drive if=none,id=hd,file=x.qcow2,format=qcow2 -device virtio-scsi-pci,id=scsi --enable-kvm -device scsi-hd,drive=hd  -m 4096 -drive if=none,id=hd2,file=y.qcow2,format=qcow2 -device scsi-hd,drive=hd217:53
hallynrharper: ^17:53
compdocI started using raw17:56
rharper you need:  -drive if=none,id-hd,file=x.qcow2,format=qcow2,discard=unmap,detect-zeroes=unmap17:57
rharperand you're running fstrim in guest and checking on host afterward ?17:57
rharperwell, at least the discard=unmap; I've not yet tested the detect-zeroes either, but I suspect that may be helpful for guests which zero block space17:58
hallyni thought about detect-zeroes, but my reading of the manpages suggested that all of that would default to what i wanted18:01
hallynoh, maybe not - maybe htat was seen as too much perf impact?18:01
hallynyeah, running fstrim in guest then checking host18:01
rharperhallyn: which version of qemu ?18:07
rharperhallyn: I would try being explicit; I see some references to enabling discard by default, but the man pages don't indicate the default discard mode on -blockdev or -drive, or if the defaults are the same;  =(18:12
hallynrharper: QEMU emulator version 4.0.0 (Debian 1:4.0+dfsg-0ubuntu5)18:32
hallyni added the discard and zeroing options, same behavior18:33
hallynmaybe i needed to wait longer? :)  that would make sense18:33
hallyni assume detecting zeroes takes some time18:34
rharperhallyn: I don't think so;  it should be immediate, fstrim in guest to host should result in a  punchole syscall to the file on the host ;  have to tried raw vs qcow2?18:41
hallynno18:43
hallyni suppose this could be qcow2 bogosity18:44
* rharper tries it out locally 18:46
hallynrharper: yes!  raw works18:54
hallynat least, with simple ext4, lemme try lvm now18:54
hallynrharper: yeah, even lvm thinpools shrink that way.19:02
hallynwhodathunk raw format works better for shrinking size than qcow2 :)19:03
hallyn(we all know - you would :)19:03
rharperhallyn: it's working for me (xenial qemu 2.x) on both qcow2 and raw;19:03
hallynthanks rharper19:03
hallynhm19:03
rharperext4 on both filesystems19:03
rharperlemme repeat on qemu 4.x19:03
hallynqcow2 doesn't work for me, but that's probably ok19:03
rharperhow is your qcow2 built ? base image or layered with a backing file ?19:04
hallynjust a base qemu-img create -f qcow2 x.qcow2 10G19:04
rharperyeah19:04
rharpersame here in my tests19:04
rharperhallyn: so, on qemu 4.0 I see almost *no* trim in the qcow2;  so I suspect there's some additional flags that need set  on the qcow2 -drive parameter19:20
rharperso that confirms what you see19:20
hallynin some circles that would be called a regression :)21:41
keithzg[m]Hmm, one VM at work (running on KVM) now fails to boot with 4.15.0-58-generic. Still fine with 4.15.0-38-generic, and even more weirdly, other 32-bit VMs using 4.15.0-58-generic boot just fine on the same host.22:55

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