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

CarlenWhiteIs the ubuntu repository acting slow for anyone else?01:20
sarnoldCarlenWhite: hrm, I don't see anything particularly surprising on our bandwitdh pages..01:23
sarnoldCarlenWhite: what specifically is going slow?01:23
CarlenWhiteTrying to install a package but there might be some interference outside the scope of my desktop and router. Wasn't expecting slow network and browsing normally seems fine. I'll have to poke around.01:26
CarlenWhiteI guess the Chromecast is active...?01:29
sarnoldnetflix apparently says 4k 60hz video takes ~25Mbps01:31
sarnoldso depending uponm what you're doing with chromecast, maybe it is or maybe it isn't a factor..01:32
CarlenWhiteWe rural. Max we get here is 15Mbps down over DSL.01:32
sarnoldaha, then chromecasting something might have a very real impact on what you can get from the ubuntu archive servers01:34
CarlenWhiteI think my QoS setting might be acting weird. A bolt on page for DD-WRT is reporting 500KiB as 30% used capacity.01:34
CarlenWhiteActually after I said that it's down 130KiB. I'm getting conflicting reports on different pages of my router.01:36
CarlenWhiteAs much as I love DD-WRT, it really could use a built in method to help figure out which device is being overzealous.01:39
CarlenWhiteThen again, any router would be better with that information.01:39
sarnoldI'm surprised ddwrt doesn't already have that01:41
sarnoldit almost seems like the first thing that would have been implemented :) hehe01:41
CarlenWhiteYou can bolt something on but it hasn't been maintain for a few years and takes ~30s until it collects enough information to show usage and refreshes slowly. Not exactly ideal for finding bursts of when slowdowns happen.01:43
* CarlenWhite is apparently at war with the various internet connected devices in his home.01:44
CarlenWhiteTesting upload speed.................................................. Upload: 0.00 Mbit/s01:47
CarlenWhiteThat isn't good.01:47
sarnoldthat's enough to make me think it's busted entirely :)01:49
sarnoldtry https://fast.com/# -- after the primary test you can click on the upload portion to see your upload speed01:49
CarlenWhiteI guess the speedtest-cli is being weird.01:50
CarlenWhiteOh I guess I could also open the Home app and see that one of the Chromecasts is indeed being used for Netflix.01:52
CarlenWhiteThat could've been a more sane course of action.01:52
CarlenWhiteProbably made my sister's viewing experience become a mess of pixels from trying to figure out what was going on.01:52
CarlenWhiteWell good knowing the QoS settings are doing it's job. It has effectively made my network go at a snails pace for anything that isn't video streaming.01:56
sarnoldCarlenWhite: hah, poor sister.. "why does it look like 64x48 at 2hz?!?" :)01:58
CarlenWhiteWell actually if it worked correctly, she should notice little quality loss.01:58
=== JanC_ is now known as JanC
=== JanC is now known as Guest80969
=== JanC_ is now known as JanC
=== kallesbar_ is now known as kallesbar
zzarrhello!11:09
zzarrI have installed Ubuntu server on a machine with LVM11:10
zzarrhow do I resize the root partition?11:12
blackflowzzarr: using your filesystem specific tools (eg. resize2fs for ext*), offline (not booted into that root). don't forget to resize the LV too, after you've resized teh filesystem. Of course, back up all the data first.11:16
zzarrI meant to resize the LVM partiton11:17
blackflowzzarr: you need to specify what you mean as "LVM partition"?  The underlying pv? The vg? the LV for the root fs?11:20
zzarrohh, sorry, I'm new to LVM's11:21
zzarrthe LV11:21
zzarrI wish to make /dev/mapper/ubuntu--vg-ubuntu--lv bigger11:22
blackflowso then exactly what I said :) you first need to resize the fs, then the LV under it11:22
blackflowoh bigger, then you enlarge the LV first, then the fs on it. To enalrge the LV look into lvextend command11:22
zzarrI resize the fs first?11:23
blackflowyou enlarge the LV first, then the fs11:23
blackflowyou shrink the fs first, then the LV11:23
zzarrthat's what I thought11:23
zzarrcan I list GV's and LV's?11:23
blackflowsure. lvscan, vgscan.11:24
zzarrnice, that's my biggest problem, not knowing the names11:25
blackflowthere are plenty of LVM primers online, if you need one to get through all the concepts and commands ;)11:25
zzarryes, I have been reading the official LVM guide, but I felt that I didn't get the hang of it11:27
zzarrI just realized the machine I got have 4 GB RAM, not 2 GB as I thought11:28
zzarrsuccess, the root partition is now 60GB instead of 4GB11:29
zzarrnice, thank you11:29
zzarrfs resized as well, it's easy when I understand :)11:31
blackflowzzarr: if you're still learning these concepts, I wholeheartedly suggest you to look into ZFS. it's so advanced and integrates filesystem, raid and volume management, into one technology. it is a pooled FS, so it behaves like LVM when it comes to provisioning PVs.11:32
zzarrZFS is nice, but I don't have any interesting hardware to use it on11:34
blackflowzzarr: you have a server, right? :)11:38
zzarryepp, but only one drive (240GB SSD)11:38
blackflowso? you won't need the raid capabilities, but there's still: pooled fs, snapshots, data checksums, compression.11:39
blackflowalthough... zfs on linux still doesn't support TRIM, if that's important to you, so that might be a deal breaker.11:39
zzarrwouldn't that require a reinstall?11:40
blackflowit would, yes. plus the installer can't do zfs, so you'd have to debootstrap it from liveusb11:40
zzarrI need trim11:40
zzarrI see, I might buy some other hardware to do that with11:41
blackfloware you sure? modern SSDs do wear leveling just fine. TRIM was important in the past, not so much today.  but okay, if you don't want ZFS, I'm not trying to coerce you :)  just saying ZFS is worth all the trouble to get it under your (important) data ;)11:41
zzarrby the way, is single system image possible in a cluster of Ubuntu server machines?11:42
zzarrI'm planing on building a Ceph SAN later11:43
blackflownot sure what you're asking11:44
blackflowone SAN-based rootfs shared by multiple compute nodes?11:44
zzarryes it will be shared among many nodes11:46
zzarrI have one of these http://www.banana-pi.org/r2.html it will make my SAN look like a NAS from the outside11:48
blackflowwell... not sure. Me and Ceph are not uh.... on good terms :)12:00
blackflow*Ceph and I12:01
zzarrI see, I have not tested it yet, but I have a friend that works with it and he can help me12:05
zzarrnot sure if you answered my question about single system image12:06
zzarris it possible in Ubuntu server?12:06
blackflowzzarr: oh I answered, I'm not sure because I'm not good with Ceph. We don't talk. :)12:19
blackflowotherwise I don't see why not. if by system image you mean the rootfs, I suppose it can be easily shared in read only mode.12:20
zzarrsingle system image have nothin with ceph to do12:20
blackflowwell there are a lot of aspects to SSI, and I'm guessing you're asking about the rootfs (since you mentioned ceph - which is storage, and not, say, IPC shared in teh cluster)12:21
zzarrsingle system image is a type of cluster12:22
blackflowyeah, I know. But I don't know how well ubuntu supports it. as for shared rootfs, which I initially commented for, it should be doable.12:23
zzarrI see12:23
zzarrsingle system image is more then just sharing filesystem, it's a cluster which if you log in to it your shell ends up on one node and if you start an application it might end up on another depending on load12:27
=== chiluk_ is now known as chiluk
jak2000hi all14:33
jak2000anyone here have experience with mysql?14:33
blackflowjak2000: maybe, ask and wait if someone might know. there's also #mysql, if your problem is not ubuntu specific.14:34
jak2000sorry and escuse me:    always that i restart my server with: shutdown -r now      after restarted if i try access to mysql i get the error: "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" and i need type: sudo mysqld_safe --tc-heuristic-recover=COMMIT    because i cant connect immediatly, why? (need stop the service before the14:34
jak2000restart?) any advice?14:34
blackflowjak2000: is the mysql service running, on boot? which ubuntu is this?14:36
rbasakjak2000: also, how did you install MySQL? Are you using the package shipped with Ubuntu, or are you using a third party package?14:45
compdocan update once broke my mysql. had to mess with the .conf files and put them in the right places14:48
jak2000installed: apt get install mysql14:50
jak2000how to check i if is running on boot?14:51
blackflowjak2000: systemctl status mysql.service     (or whichever the service unit name is)          (I'm asuming Ubuntu 16.04 or newer)14:57
jak2020blackflow thanks15:03
sandstromI installed the package `1.14.0-0ubuntu1` a few weeks ago on 18.04, worked smoothly. Then I spun up a new Ubuntu 18.04 machine today and tried the same thing. Didn't work, because of this error:15:06
sandstromThe following packages have unmet dependencies:15:06
sandstrom nginx-extras : Depends: libnginx-mod-http-auth-pam (= 1.14.0-0ubuntu1) but 1.14.0-0ubuntu1.1 is to be installed15:06
sandstrom[…}15:06
rbasakjak2020: if you can reproduce, please could you show us (pastebin) /var/log/mysql/error.log straight after a reboot, and straight after a manual start attempt following the reboot? Please identify the time of the reboot so we know where that happened in the log.15:07
sandstromAnyone know what has caused this? Seems like the dependencies are somehow pointing at the wrong thing now?15:07
rbasakjak2020: the "pastebinit" command is handy :)15:07
mybalzitchrbasak: I do enjoy that command with a few arguments15:08
rbasaksandstrom: have you tried an "apt update"?15:08
sandstromYes15:08
sandstromIt works if I change to the package name with extra `.1` at the end15:09
sandstrom"1.14.0-0ubuntu1.1"15:09
rbasakAre you confusing package names with package versions?15:09
rbasakI don't follow what you're doing exactly.15:09
sandstromPerhaps :)15:09
rbasakWhat command are you typing?15:09
sandstrom`sudo apt install nginx-extras=1.14.0-0ubuntu1`15:09
rbasakWhy are you forcing the version string there?15:09
rbasakWhy not just "sudo apt install nginx-extras"?15:10
sandstromTo avoid updates that we aren't aware of15:10
rbasakYour problem is that you've already picked up something that wants 1.14.0-0ubuntu1.1 - probably you already have an update that you aren't aware of.15:10
sandstromThis is for a provisioning script, so if we are spinning up many machines over the course of 1-2 months we want them all to run the same version15:10
rbasakDon't use apt then.15:10
rbasakIf you want them all the same, get all the debs and throw them at dpkg -i directly.15:11
rbasakOr manage your own repo15:11
sandstromI thought apt could handle version-pinning, but perhaps I've misunderstood something15:11
rbasakIt can but only if you don't give it an impossible to fulfil request, which is what you've managed to do.15:12
sandstromHehe :)15:12
rbasakGenerally apt tries to keep you up to date.15:12
sdezielwith security patches you know :)15:12
rbasakIf you don't want to be up to date against what you're pointing it to then you don't need apt.15:12
sandstromI'm fine with allowing minor updates, but would like to ensure that the major isn't bumped15:12
rbasakSee https://wiki.ubuntu.com/StableReleaseUpdates15:12
rbasakThat's what we try to do for stable releases.15:12
rbasakYou can see actual updates as they are published here: https://lists.ubuntu.com/archives/bionic-changes/15:13
rbasakOr you can enable the security pocket only, disabling the updates pocket. Then you'll get security updates only.15:13
blackflowapt-get changelog <packagename> is very valuable too. I use that before running upgrades15:13
rbasak(though security updates are based on the latest SRUs, so if there's a security update in a package that has been SRU'd, you'll end up with SRU + security update)15:14
sandstromThanks for explaining. My primarily knowledge about dependency management and repositories is node packages and ruby gems, where it's fairly straight-forward with version-pinning.15:14
rbasakIt's also fundamentally broken :)15:14
blackflowsandstrom: yeah but you can't do that with a integrated system like Ubuntu Linux distro is. can't pick'n'choose package versions.15:14
rbasakThe problem comes when you have a complex dependency tree with versioned dependencies15:14
sdezielI'd recommend setting up apt-listchanges, will show you the changelog related to the update you are about to pull and ask you to proceed or not15:14
blackflowif you need that, a custom repo and build from srcdebs is your only sane choice15:15
rbasakYou absolutely can pick'n'choose package versions, but you'll find it extremely difficult to not end up in an impossible situation.15:15
sandstromHehe :) Great input, this is helpful15:15
sandstromI'll look at disabling the updates pocket and then drop the versions altogether.15:15
blackflowrbasak: sure you can but only from list of versions in the repos, not the entire version range form upstrea,15:16
blackflow*upstram15:16
blackflowohgodawfulkeyboardthing15:16
sandstromThen we'll just rely on the stable to be just that. And hope that machines provisioned over the next year will work even though they may use slightly different versions of nginx (and other packages)15:16
blackflowsandstrom: why wouldn't they?15:17
blackflowthe "slightly different" is mostly about security and bugfixes. the base version of a package is baked in for the duration of LTS, withsome rare exceptions15:18
blackflowbut anyway, at any point in time, all your installations would have the same version (if you keep them all up to date)15:18
blackflowyou should really trust the S in LTS, it helps a lot in maintaining the packages in a stable fashion, so your own testing should be minimized (compared to running everything yourself straight from the upstream)15:20
sandstromblackflow makes sense!15:22
sandstromWe're very happy with Ubuntu, it's just that some concepts around versioning strings for the packages are new to me.15:22
sandstromIt's different from what I'm used to with ruby/node/rust15:22
rbasakWe're much more rigid than the language-specific module communites on stable meaning stable.15:23
blackflowruby/node/rust don't have that versioning scheme, because they're the origin15:23
rbasakWe also welcome participation in testing updates before they're released.15:23
rbasakThey appear in the proposed pocket, and if it breaks you and you tell us, we won't release the update.15:24
rbasakSee https://wiki.ubuntu.com/StableReleaseUpdates for all the details.15:24
jak2020thanks.... all for help15:27
jak2020rbtask, when have the problem i check the log file, thanks15:27
tewardahasenack: if you're around do you have the bug number or link for the repositories enablement problem?17:35
teward(that was present in the ISOs)17:35
powersjteward, https://bugs.launchpad.net/subiquity/+bug/1783129 that one?17:45
ubottuLaunchpad bug 1783129 in subiquity "Only "main" component enabled after install" [High,Confirmed]17:45
tewardpowersj: yep that one, thanks18:07
=== altmasteroman is now known as masteroman

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