/srv/irclogs.ubuntu.com/2019/07/22/#ubuntu-server.txt

=== SinaCutie is now known as siina
lordievaderGood morning06:21
mnms_Hi guys. Do you think Pentium n4200 can candle 1Gb link?10:38
sdezielmnms_: I would think so11:06
tomreynhttps://pcengines.ch/apu2.htm comes with https://www.amd.com/en/product/7426 and they can do gigabit fine. your https://ark.intel.com/content/www/us/en/ark/products/95592/intel-pentium-processor-n4200-2m-cache-up-to-2-5-ghz.html looks more powerful in all aspects which would affect network data transfer.11:18
tomreyn(not counting performance degradation due to microcode updates / CPU bug counter measures)11:19
mnms_tomreyn: Im also worried little about nic chipsets Realtek 8111G11:32
tomreynthat's a better reason to be worried11:57
mnms_tomreyn: I see I can buy apu2c2, what workloads do you have?12:25
mnms_cpu is heavily loaded? Do you use it as a router :)?12:26
tomreynmnms_: i don't have such hardware now, just used to play with it a little.12:35
tomreynbut they can be used as routers, yes.12:36
patdk-lapif it won't be doing tcp offload (routing) you need 1ghz per 1gbit12:36
patdk-lapif it's bidirection, that is 2gbit traffic per a 1gbit port12:36
patdk-lapthat is only a 1.1ghz cpu12:37
mnms_yee its not much12:37
patdk-lapI would go with something with less cores and more ghz12:37
mnms_hard to find this kind of sbc12:37
patdk-lapcause drivers don't always irq balance between cores good12:37
mnms_understand12:38
mnms_up squared has realtek chipsets but Pentium n420012:39
friendlyguyhi there! i am wondering if somebody has an idea: how could i "temporarily" extend the space of my /boot partition? i managed to maneuver myself in some unfortunate situation where i believe can get only out if i manage to increase the size of /boot13:28
rbasakfriendlyguy: you could copy everything to somewhere bigger and bind mount that bigger place back to /boot13:30
rbasakfriendlyguy: but perhaps easier to just move one probably-won't-be-touched thing out temporarily?13:30
friendlyguynah, i think apt wants to install dozens of old kernels, that wont fit in the 250mb partition13:31
rbasakWhy would apt want to do that?13:31
friendlyguygood question :) i managed to screw it up badly i guess13:32
friendlyguyi manually had to remove old kernels a bunch of times. i guess i just made an error13:33
friendlyguyokay, lets c if that works :) i attached another vhdx, created a partition and mounted that. ran rsync, unmounted /boot, mounted the temporary /boot and now running apt-get install -f13:53
friendlyguymight have been a good idea to create a snapshot first... but... already past that point#13:54
friendlyguyokay, i think that worked. now i am wondering why apt-get autoremove didnt remove the old kernels from there?14:05
friendlyguyokay... somehow things are screwed up even more: cant boot any more14:28
friendlyguygrub is entering rescue mode14:28
friendlyguyi think it "might" have used the uuid from the temporary disk or something14:29
rbasakYes you'll need to run update-initramfs manually etc.14:31
friendlyguyls in grub rescue only gives hd0, but no partitions?14:31
rbasakYou seem to have inferred far more than just my suggestion.14:31
friendlyguyi moved the content of boot to another disk and mounted that as boot, isnt that what you suggested?14:32
friendlyguycant i just tell grub to use /dev/sda1?14:34
friendlyguybecause the content is there14:34
muhahaIs there a kickstart file for cloud-init ubuntu image?14:45
friendlyguywhat a pain14:45
friendlyguyokay, ls in rescue mode gives me only hd0. if i try to ls hd0 i get unknown filesystem14:48
friendlyguywhats going wrong here?14:48
friendlyguysda1 only has two partitions: boot and root14:48
friendlyguyso shouldnt grub display it as hd0,[1,2]?14:48
friendlyguyhello?14:55
tomreynfriendlyguy: hello.14:59
tomreyndid you mean to say "sda only has two partitions: boot and root" (not sda1)?15:01
friendlyguy:) thanks tomreyn, at least now i know my messages still go through.15:01
friendlyguysda has two partitions, yes. sda1 and sda2. sda1 is /boot15:02
friendlyguythats why i was trying to tell grub to use sda115:02
tomreyncan you sum up what you're trying to do overall, and what has already been done?15:03
friendlyguyright now i try to unfuck it15:04
friendlyguyi had space issues with /boot (seperate partition, 250mb total). so i asked if somebody knows a good way to "temporarly" increase the size of /boot15:04
tomreynso you have a system which does not boot; grub loads but cannot find its configuration file and thus does not show the menu15:04
tomreynok, go on15:05
friendlyguyits trying to boot of a disk with a uuid that is wrong... i guess15:05
RoyKfriendlyguy: generally, you can't do that, since the boot partition is generally sandwiched between the start of the disk or EFI partition and the rest15:05
friendlyguyokay, going on...15:05
friendlyguyits legacy boto15:06
friendlyguyboot15:06
friendlyguyno efi partition15:06
RoyKfriendlyguy: next time, don't use a dedicated boot partition ;)15:06
friendlyguynevertheless its sandwitched15:06
RoyKot was needed earlier, but that's quite some time ago15:06
friendlyguyso rbasak came up with the idea to copy the content somewhere else and mount it as /boot15:06
friendlyguythats what i did: attached a second vhdx file to the vm, created partition and created fs on it, rsynced the content of boot to the temporary disk, mounted that disk15:07
friendlyguythan ran a apt-get install -f to fix the "initial" problem15:07
RoyKfriendlyguy: just copy it to the rootfs and remove the boot partition - should work - some grub meddling may be needed, though15:07
RoyKmodern versions of grub can boot from large partitions - earlier it couldn't15:08
friendlyguyi didnt want to move /boot permanently only temporary15:08
RoyKyou don't need it15:08
RoyKreally15:08
friendlyguywhat do i dont need?15:09
rbasakfriendlyguy: I did assume that you would put /boot back and weren't going to immediately reboot.15:09
rbasakThen it would fix itself on the next update.15:09
RoyKfriendlyguy: a separate boot partition. I never use it anymore. it really isn't needed15:09
rbasakYou can run (IIRC, check the manpage) "update-initramfs -u" to fix up the initramfs images in /boot when you have restored /boot to the real one that matches everything15:09
friendlyguyah, yeah. but thats an very old system. so its in there, and it was done with setup defaults back then15:10
nacc-u -k all, iirc15:10
friendlyguyso i guess there was a time it was a good idea15:10
=== Ussat-1 is now known as Ussat
tomreyni think /boot still goes to a separate partition with default paritioning on every current ubuntu installer15:11
friendlyguyokay, i now booted into the rescue system of some 16.04 iso15:11
friendlyguymounted the root, mounted the boot partition15:12
friendlyguyso, only run "update-initramfs -u" now?15:13
tomreynwhich ubuntu version do you have installed there?15:13
friendlyguy16.04.515:13
tomreynyou also need to mount virtual file systems15:13
tomreynproc sys dev ...15:14
friendlyguyisnt that being taken from root?15:14
tomreynhmm, i don't understand what you mean15:15
friendlyguyforget it. how do i mount the virtual file systems?15:16
tomreyni'm saying that if you're going to run "update-initramfs" to update the initrd on your existing on-disk installation, you'll need to chroot into this installation and make sure the environment is similar enough to that of the booted system.15:16
friendlyguyi thought thats what the rescue-system did15:17
friendlyguyi took an 16.04.3 ios, booted it and selected repair a broken system (or something like that)15:17
friendlyguyi then told it which is my root partition and mounted /boot15:17
friendlyguyso i "guess" the rescue system chrooted me in there?15:18
tomreynoh i see. i'm not sure how to work with this, always did it manually.15:18
friendlyguyjup, same here15:18
friendlyguyfirst try with the rescue system15:18
tomreynhttps://help.ubuntu.com/community/LiveCdRecovery#Update_Failure is roughly the manal approach15:18
tomreynso you'd mount / and any required fie systems of the standard system somewhere, say /target , then bind mount /proc /sys /dev /dev/pts onto the respective directories there and then chroot /target /bin/bash15:23
friendlyguyi think i found the issue: during the replacement of /boot with the temporary location my grub.cfg was modified15:35
friendlyguythe new grub config is pointing to the temporary disks uuid15:35
friendlyguyso i need to fix the grub config to point to the old disk again15:36
friendlyguyjup, that did the trick: the system is booting again15:39
friendlyguyit would be awesome if somebody could help me to figure out why there are still so many old kernels in boot15:40
friendlyguykernel 4.4.0-154 is currently used. but there are still kernels in /boot ... 4.4.0-93, or an initrd.img... 3.13.0-7015:42
friendlyguywould be nice to remove those15:42
friendlyguyi *could* remove it manually, but i`d prefer that apt cleans it15:42
rbasakfriendlyguy: try "apt --purge autoremove" - but check carefully when it prompts you15:44
friendlyguydidnt do anything15:45
rbasakI would remove them manually then.15:45
rbasakBe careful to avoid your currently booted kernel and also the latest kernel of course15:45
friendlyguywhat i dont get: i have different number of files for abi, config, initrd and vmlinuz15:46
friendlyguylike there are two files starting with abi, 8 or nine files starting with initrd, 3 vmlinuz,3 system.map15:46
rbasakuse "dpkg -S file" to see what package file comes from15:47
friendlyguythat doesnt work for those files15:52
rbasakSome may be generated15:52
tomreynthen they're not part of a package (or were generated during installation of a package and are not tracked)15:53
rbasakYes one of those two15:53
rbasakUsually I "dpkg -l|grep linux" and manually return the ones I don't need.15:53
rbasakAnything that's obviously a kernel version that I don't need.15:53
friendlyguywow15:54
friendlyguyi think thats the main problem15:54
tomreynto make auto-removal of kernel images (all but the latest two and the currently active one) work, you'll need to ensure that linux-generic and linux-image-generic are installed and that all the packages which contain a kernel version number as returned by    dpkg -l linux-\* | awk '/^i/ {print $2}'    are automatically, not manually installed.15:55
friendlyguylet me show you something :)15:55
friendlyguyhttps://pastebin.com/LJ4vicss15:57
friendlyguyrbasak: i assume that command normally doesnt give you 240 lines back15:57
tomreynthe /etc/kernel/postinst.d/apt-auto-removal  hook script runs whenever you install a kernel image and tracks (in /etc/apt/apt.conf.d/01autoremove-kernels) which kernel images (and initrds, headers) should be kept / removed15:58
tomreynthose 3.13 packages must be remainders from before your release upgrade to 16.0415:58
friendlyguyentirely possible15:59
=== MassDebates_ is now known as MassDebates
friendlyguyshall i just purge linux-image-extra-3*?15:59
rbasakYeah that's rather large15:59
friendlyguyas well as linux-image-3*16:00
tomreyni guess you can     sudo apt purge '^linux.*-3\.13\.0-.*'    but make sure you check the output before you confirm16:00
friendlyguyuuh:) down to 12716:03
tomreynis this system booted from disk now, or still chrooted in recovery?16:03
friendlyguybooted from disk16:03
tomreynwhich kernel is now running?16:04
tomreyncat /proc/version or uname -r16:04
friendlyguy4.4.0-15416:04
tomreyngood, that's not too far behind16:05
tomreynso you can then purge all linux-* 4.4.0 packages which have a 2 digit patch level16:06
friendlyguyi`m horrible with regex16:06
friendlyguy:)16:06
tomreynsudo apt purge '^linux.*-4\.4\.0-[0-9][0-9]-.*'16:06
tomreynagain, make sure you check the output before you confirm16:06
friendlyguysure16:07
naccbryce: how's it going?16:07
friendlyguylooking good to me, lets remove them16:07
rbasakI usually process the dpkg -l output by hand in an editor and then feed that to dpkg -P16:08
rbasakSaves doing regexes for a one off task and I get to confirm it's right16:08
friendlyguyinteresting: errors occured with linux-image-extra-4.4.0-93-generic16:08
tomreynprobably some leftover files?16:10
tomreynah no that'd been a warning16:10
friendlyguydepmod: ERROR: could not open directory /lib/modules/4.4.0-93-generic: No such file or directory16:11
friendlyguyso i guess i can ignore that16:11
tomreynif it prevents purging the package then you probably can't ignore it16:11
friendlyguydid it a second time: worked now16:13
friendlyguythats how it looks now: https://pastebin.com/1Atr59u316:16
tomreynso you may want to get a fresh list of reamining installed (or leftover configuration files) linux-* packages and sort out which ones you want to keep / remove, or just mark all of them as automatically installed.16:16
tomreynall of the versioned ones, that is.16:16
friendlyguycan you take a look at the link i posted, thats what is currently installed16:17
tomreyni did :)16:18
friendlyguylooking much better to me :)16:19
friendlyguythanks for your help so far!16:19
friendlyguydo you have an idea why it kept linux-headers-4.4.0-89 and 93?16:20
friendlyguymanually removing them worked16:22
brycenacc, heya, was away on vacation friday; will pick back up on php this afternoon or tomorrow I think16:23
friendlyguyanyhow. need to get home. ill try to join back later16:23
friendlyguythanks for the help of all of you!16:23
friendlyguyvery kind16:23
tomreynfriendlyguy: i don't know why it kept these packages, no16:23
friendlyguyi was just wondering why they were not catched by your regex16:24
tomreynfriendlyguy: you haven't prevented this issue from occurring again, yet16:24
friendlyguythought that they should have been catched16:24
friendlyguytomreyn: exactly!!! i would love to though16:24
friendlyguybut i have to go home now16:24
naccbryce: sounds good, thanks!16:24
tomreynoh my regex had a dash behind those numbers16:24
tomreynfriendlyguy: see you16:25
friendlyguyaaah, i c16:25
friendlyguy:)16:25
smoserahasenack: what is the process or is there one..17:51
smoserfor me to request a push of a tag for merge of https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/cloud-utils/+git/cloud-utils/+merge/37019417:51
smoseri just uploaded rafael's b26a5aa7736d4e64c19f66fa563a12808b1c4ebd17:51
smoseras upload/0.31-0ubuntu1.117:51
smoserbut i can't push there.17:52
smoser(pinging you because you're the only member of usd-import-team that is in current timezone normal working hours)17:52
Odd_Blokesmoser: Andreas is at Debconf this week, so he may not be around.17:57
smoserfair enough18:01
rafaeldtinocosmoser: hey18:03
* rafaeldtinoco reading18:03
rafaeldtinocoahh its for andreas, ok, ill warn him (in front of me)18:04
smoserrafaeldtinoco: well, i think the ansewr is "there is no answer"18:04
rafaeldtinocohe is coming18:05
rafaeldtinoco=)18:05
ahasenacksmoser: hi18:06
ahasenacksmoser: there is none, let me look at that and push it for you, if there is still time to win the race18:06
smoseryeah, i'd guess you can win the race18:08
smoseras it is stuck waiting for approval18:08
smoserso i think you're racing a human18:08
smoserand they're slow18:08
ahasenacksru18:09
ahasenackok18:09
ahasenacksmoser: done18:13
ahasenackadded info to the mp as well18:13
catbadgerhi. i have a 55GB database dump i need to move. I'm aware that compressing it might not be an option. should I just rsync it to the other server?19:36
lotuspsychje!crosspost | catbadger19:37
ubottucatbadger: 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:37

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