/srv/irclogs.ubuntu.com/2019/01/17/#ubuntu-server.txt

lunaphyteTJ-: i had to give up on making a bootable recovery flash drive for now01:57
lunaphytei was just hitting too many roadblocks, and for some reason the install process was painfully slow, so each time i'd try again with a different method, it was costing me a ton of time01:58
TJ-lunaphyte: you've not had any luck!01:58
lunaphytei'm keeping the complaints to myself - but i am beyond irritated :)01:59
lunaphyteright now i've just booted to a rescue shell, using the traditional server installer, and have a crude environment functioning, if you've got any interest in where things last left off02:00
lunaphytei think you had suggested including some logging to validate the driver that might still be missing for the usb keyboard?02:04
lunaphytejust reading back through the channel logs02:04
lunaphyteat least now with this installer, and nomodeset, i have a functional remote console02:06
lunaphyteah, right.  "add a verbose script that displays the loaded modules and hardware and waits so you get time to photograph its output"02:07
lunaphytelet me see what i can find on doing that02:08
lunaphytethis is what's logged to dmesg when plugging in the keyboard: http://dpaste.com/1WNK0F7.txt02:21
lunaphytei see usbhid.ko and hid-generic.ko.  if i am understanding the dmesg info right, it may be using hid-generic?02:23
lunaphyteaccording to lsinitramfs, the initrd has usbhid.ko, but not hid-generic.ko.  i'll try adding that02:24
lunaphytetime to cross my fingers02:26
lunaphyteomfg02:33
lunaphyteit's working02:33
lunaphyteand now it's booting02:34
lunaphyteor at least trying to02:34
lunaphyteTJ-: success!02:36
lunaphytei have some issues to sort out, but it boots :)02:36
lunaphyteat initramfs, i had to activate the volume groups.  it seems that the initrd didn't do so?02:37
TJ-lunaphyte: OK, so you've solved the keyboard issue! Time to party :D02:37
lunaphytehuge progress, yes - thanks to you :D02:38
lunaphytelots of questions to come back to, but for now the next thing i need to figure out is why i have to active the volume groups manually, instead of the initrd doing it02:39
lunaphyteis lvm a kernel module, like the usb/hid stuff?02:40
=== yokel_ is now known as yokel
=== SJrX is now known as SJr
TJ-lunaphyte: lvm hooks should be installing the lvm tools in the initrd, AND the scripts should run "vgchange -ay" automatically03:15
lunaphytehmm, ok03:20
=== lotuspsychje__ is now known as lotuspsychje
ahasenackgood morning10:19
maeudHi, is anyone familiar with gnome and kerberos? I'm trying to mount shares using pam_mount and krb5i. It works fine for SSH logins but using the desktop environment it fails with error: "mount error(126): Required key not available"10:57
maeudbut if I open a terminal in the desktop environment and run klist, I have a ticket10:58
maeudgot it working, I had to add "user=%(USER),cruid=%(USER),uid=%(USERUID),gid=%(USERGID)" to the pam_mount volume option for each share11:08
=== TheHonorableKitt is now known as THKitten
theGoati just spun up an ubuntu 18.04 vm,  and i have the IP and DNS configured in netplan (50-clout-init), but the system keeps setting the dns server to 127.0.0.5314:44
sdezieltheGoat: that's the default way14:54
sdezieltheGoat: 127.0.0.53 is systemd-resolved and it's the one who received the real nameservers14:54
theGoatok, just wanted to make sure..  things have really changed ;-)14:55
sdezieltheGoat: you can confirm with "systemd-resolve --status"14:55
sdezieltheGoat: yeah, indeed. Introducing a local caching resolver by default is slightly disruptive14:55
sdezielI for one welcome the change, even if I'm not a huge fan of resolved... I'm sure it will get better over time14:56
theGoati'l just need work with 18.04 more, to get use to all the changes14:58
lunaphyteduring a do-release-upgrade, this sort of thing happens from time to time:  http://dpaste.com/0ZQNT29.txt15:40
lunaphytewhat's the correct way to proceed in a scenario like this?15:41
TJ-lunaphyte: what were the starting and target release versions?15:46
lunaphyte16.04 -> 18.0415:47
phaidrosehlo, hown can I disable a network device in a netplan yaml config?16:06
tomreynlunaphyte: with 3rd party packages / repos? which?16:06
tomreynall of those are in "main" if they'Re the original packages16:10
cyphermoxphaidros: just remove the configuration from the file16:13
lunaphytetomreyn: i do have a couple of third party repos, but they're just for some other software like vnc, prosody, etc.16:15
lunaphyteall of the standard stuff is all from the distribution repos16:16
lunaphytei'm just wanting to know what the right way to proceed is with this16:16
lunaphyteit's like a half installed upgrade16:16
phaidroscyphermox: hm, not very deterministic, but works .. thanks :)16:16
lunaphytelsb_release now says 18.04, but it hasn't done cleanup yet, hasn't done the reboot yet, etc16:17
lunaphyteand it's also said "The upgrade has aborted. Your system could be in an unusable state. A16:17
lunaphyterecovery will run now (dpkg --configure -a)"16:17
shubjerolol16:17
lunaphyteso what does that mean?  what state is it in now?  should i be trying to do do-release-upgrade again?  should i just be doing like an apt-get install for the packages that failed and work my way through to get them installed successfully one at a time?16:18
phaidroslunaphyte: I would run: dpkg --configure -a and then another apt update/dist-upgrade (provided that sources.list(s) are set to bionic yet)16:22
tomreynsame16:22
tomreynrunning do-release-upgrade again is *not* what you want to do in this situation since it would then try to initate an upgrade to next release.16:24
cyphermoxphaidros: it's meant to be that way -- no config, interface isn't touched16:27
cyphermoxphaidros: if OTOH you mean you want to keep a config, but say "hey, I want this one to be kept offline until I say so"; then that will be a feature in the future, but not yet16:28
lunaphytephaidros: just to double check, you said i should expect sources.list to not be set to bionic?16:29
sarnoldlunaphyte: I think I'd do what phaidros recommends, perhaps an apt-get install -f  as well16:29
lunaphytesarnold: makes sense, thanks.  just wanted to be sure i'm understand right about the sources.list16:32
sarnoldlunaphyte: you may be right that you would need to fix it up by hand..16:33
tomreynlunaphyte: ensure that apt sources point to bionic, then apt-get install -f; apt-get upgrade; apt-get full-upgrade; apt-get autoremove # maybe with --purge16:33
tomreyn/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py contains the code run by do-release-upgrade if you'd like to take a closer look at what it missed.16:34
lunaphyteok, great, thanks16:35
rbasakkstenerud: https://dep-team.pages.debian.net/deps/dep8/ is the canonical location of the dep8 spec16:36
tomreynlunaphyte: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/bionic.tar.gz is the actual upgrader16:39
tomreynlunaphyte: have a look at demoted.cf.xenial, you want to remove these packages if installed.16:42
lunaphytedemoted.cf.xenial is inside bionic.tar.gz?16:43
tomreynyes16:44
lunaphyteok, thanks16:44
LopeA guy on another channel claims that luks'ing a hard drive directly, without any partition table, will misalign data with respect to the hard drive's 4k block size. Is that true?16:46
tomreynlunaphyte: and maybe use https://github.com/tomreyn/scripts#foreign_packages (or the other utilities mentioned there) to identify other packages you should remove (should only be relevant if you had ppas installed and removed them but not packages installed from there)16:46
lunaphytetomreyn: i use deborphan heavily - thanks, i didn't know about the others16:49
sarnoldLope: that feels pretty plausible to me but can't confirm or deny it16:54
Lopesarnold, ok16:57
tomreyn      --align-payload=SECTORS           Align payload at <n> sector boundaries - for luksFormat16:58
sarnoldtomreyn: awesome! :)16:58
tomreyni guess you set this to 4 then16:59
tomreynLope: ^16:59
TJ-tomreyn: surely 8 ?17:00
tomreynerr, right17:00
tomreynthanks17:00
Lopetomreyn, wow, cool, but unfortunately I've already formatted it.17:02
Lopetomreyn, how will luks normally align data?17:02
tomreynLope: probably in 512 byte blocks, but i'm only guessing17:03
TJ-Yes, it specifically uses 512-byte sectors as its base measurement17:03
Lopetomreyn, check this out: https://unix.stackexchange.com/questions/421587/dmsetup-luksformat-creating-an-alignment-inconsistency17:03
TJ-" --align-payload <number of 512 byte sectors> "17:04
LopeI've googled the issue and seen that it can be a false warning, especially when using a USB enclosure, (as I am doing)17:04
LopeIt's a 500G mechanical HDD in a USB enclosure)17:04
TJ-Lope: that is possible if the USB<>SATA bridge chip is faking it17:04
Lopedevice mapper says: device-mapper: table: 253:0: adding target device sda caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=209715217:04
TJ-Lope: is it presenting as 4096/4096 (logical/physical)17:04
TJ-Lope: OK, so 512/4096 - that's probably passing through the drives native translation17:05
LopeSince 4096/512 ^ 4 = 0, perhaps I should not worry?17:05
LopeOops17:06
LopeI meant to say: Since 4096 % 512 == 0, perhaps I should not worry?17:06
TJ-Lope: check with (set X appropriately): "sudo hdparm -I /dev/sdX | grep 'Sector size' "17:06
Lopebrb17:06
TJ-Lope: The best arrangement is to align with the device's underlying physical block size, since that is the minimum bytes the drive can read/write. Alignment means that it can avoid having to read/write 2 blocks (16 x 512-bytes) if they straddle the alignment border and then discard some of them.17:09
tomreynif you have 4k physical / imposed (by some translation) sector size then you want 4k everywhere or you'll introduce unneccessary overhead.17:09
Lopetomreyn, fair enough. Can I change ext4 to be 4k block size?17:12
Lopeokay, the block size of my ext4 is already 4k17:13
LopeSo it's all good.17:13
LopeAlso, I'm using the disk to store big files, so it wouldn't be an issue anyway, even if there was a 512/4096 mismatch.17:14
sarnoldmisalignment is terrible enough that the only use case that could tolerate it "I never use this filesystem"17:15
tomreynthere's -I and -E stride=stride-size17:16
tomreyn(to tune2fs)17:16
Lopesarnold, I've realized that the USB HDD enclosure probably imposes a 4k block size. I've checked my filesystems have 4k block sizes. So I'm not going to worry. I only use the fs for storing big files anyway.17:17
Lopethanks tomreyn17:18
tomreynyw17:20
TJ-sarnold: try saying that for shingled drives!17:24
sarnoldTJ-: "the only use case that could tolerate shingled drives is 'I never use this filesystem'" :)17:25
TJ-:D17:25
tomreynis rasdaemon the right tooling to detect ecc ram errors?17:30
tomreynwith 18.04, that is17:30
sarnoldtomreyn: I believe so, yes17:32
tomreyni have this issue with "No dimm labels for" (my (Desktop-like) mainboard): http://paste.ubuntu.com/p/nYzJcjNrmV/17:34
tomreynthis is ecc ram, i'd like to make use of it, and the platform (ryzen 7 1800X) can do it, at least for detecting 1-bit errors17:36
sarnoldtomreyn: interesting, I'd never noticed that in my logs before; both my laptop and supermicro server have the same message (though only the supermicro has ecc)17:36
tomreyndetect + correct that is17:36
tomreyni *think* it means that detection wont actually happen, unless the hardware handles it fully17:37
sarnoldit was my assumption that the hardware would handle it but also write the event to a log that rasdaemon can read. hmm.17:37
tomreyns/hardware/firmware/17:37
tomreynyes, thats how it should be, and that's what you'd expect for server hardware17:38
tomreynnow... this is not not server hardware, i'd need the OS / user space to help it out there to powerdown on 2-bit errors17:38
tomreyni.e. the ryzen platform doesn't come with firmware which handles 2-bit errors.17:41
tomreynhttp://www.hardwarecanucks.com/forum/hardware-canucks-reviews/75030-ecc-memory-amds-ryzen-deep-dive.html17:41
sarnoldtomreyn: once in a while I'm reminded just how little I understand... :)17:46
tomreyn:) same issue here17:47
shubjeroHey all, I'm using Ubuntu cloud images on Openstack in kvm and I've noticed that with 14.04 and 16.04 that I can deploy very large instances (5+TB disk) and they work but if they are rebooted they are dumped at the grub rescue and unable to boot. I do NOT have this issue with the 18.04 cloud image. Any guesses?18:09
lunaphytei'm looking at demoted.cfg.xenial in http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/dist-upgrader-all/current/bionic.tar.gz - what does demoted mean?20:33
lunaphytei see things like makedev, and ntp listed, which seems a little bit odd20:33
lunaphytehttps://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=makedev&searchon=names seems to indicate that makedev is part of 18.04?20:34
sdeziellunaphyte: ntp was replaced by chrony if you really want a ntp daemon, otherwise the default is now to use systemd-timesyncd as ntp client20:34
tewardsdeziel: i think they're asking more about what the demoted part mean20:34
tewardand IIRC that' means no longer in 'main'20:34
tewardbut i'm not the expert there :p20:34
sdezielchrony is in main now ;)20:35
tewardsdeziel: i know *that* but I meant in response to "what does demoted mean?" which was asked by lunaphyte20:35
tewardwho was asking about ntp, makedev, etc.20:35
teward:P20:35
sdezielteward: ah, OK20:35
lunaphytesdeziel: using the ntp example - replaced in what way, exactly?20:36
lunaphyteboth ntp and chrony are present and valid packages in the repo, right?20:37
sdeziellunaphyte: what teward says seems to make sense. I took a quick look at that demoted.cfg.xenial file and it seems to list packages that were in main before but are now in universe20:37
lunaphyteoh, ok20:38
sdeziellunaphyte: yes, present and valid but main vs universe refers to the support of those packages20:38
sdeziellunaphyte: packages in main are supported by Canonical, those in universe by the community20:38
sdezielof course, the community can also provide support for packages in main20:38
lunaphyteso would that then seem to imply that if makedev isn't in main any longer, your typical system shouldn't need it?20:39
sdeziellunaphyte: that's a correct interpretation20:39
lunaphyteok20:39
lunaphytethanks20:39
sdeziellunaphyte: a default/stock install/image only have packages coming from main, it's a policy at Canonical I think20:40
lunaphytemakes sense20:41
tomreynnow the really interesting question there is: does the upgrader uninstall those packages if it finds them installed.20:43
tomreyni previously claimed it does, but haven'T actually checked that20:43
tomreyndoes anyone know this OTOH?20:45
sdezieltomreyn: in the past I found that I needed to cleanup after the upgrader. At least my Puppet manifest takes care of purging ntpdate-debian from boxes that went from 14.04 to 16.0420:45
tomreyni've also had such situations, but during the 16.04 -> 18.04 desktop upgrade i went through the upgrader did actually purge ntp for me.20:46
tomreyn...i think20:46
tomreyn(so that's package "ntp", not "ntpdate*"20:48

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