[00:24] <drab> the only thing that bugs me about unattended upgrades is when the job is running at the same time I need to run ansible and any apt related task fails because of the lock
[00:25] <drab> that's quite annoying, then I have to wait for it to finish
[00:25] <drab> I'll probably remove it once I have ansible running nightly
[00:49] <nacc> drab: yeah that can get frustrating :)
[06:06] <lordievader> Good morning
[08:43] <dduvnjak> is there any way to simulate a dpkg lock on /var/lib/dpkg/lock? something like run an apt-get command that will wait and leave the file locked
[08:53] <friendlyguy> morning! i am wondering where to install grub in a software raid 1
[08:55] <friendlyguy> i am currently in the setup wizzard and just got asked where to install grub... and to be honest... i dont know :)
[08:55] <friendlyguy> one of the member disks... feels wrong
[08:59] <lordievader> Is it hardware raid or software?
[08:59] <friendlyguy> software
[09:00] <friendlyguy> and giving both devices to the wizzard results in a error
[09:00] <lordievader> Then all the members of the raid.
[09:00] <lordievader> Yeah, the installer is not very intelligent. You probably want to select one and do the rest manually.
[09:00] <friendlyguy> i tried to enter /dev/sda together with /dev/sdb but this results in a fatal error
[09:00] <friendlyguy> ah, ok
[09:02] <friendlyguy> even choosing a single one doesnt work
[09:04] <friendlyguy> and also not via the shell
[09:04] <friendlyguy> grub-installer fails
[09:04] <friendlyguy> /dev/sda/proc not a directory
[09:05] <friendlyguy> ah, i think i need the --root-directory option
[09:07] <friendlyguy> not available
[09:07] <friendlyguy> grrrreat :)
[09:07] <friendlyguy> what to do now?
[09:10] <ikonia> what exactly are you trying to do
[09:11] <ikonia> as things like /dev/sda/proc make no sense
[09:11] <friendlyguy> yup, but this is what grub-installer gives when i run "grub-installer /dev/sda"
[09:11] <friendlyguy> same for sdb
[09:11] <friendlyguy> it seems like i cant install grub
[09:12] <friendlyguy> i am still in the setup wizzard of ubuntu
[09:12] <friendlyguy> i tried to install grub to one of the two member disks of a software raid1
[09:13] <friendlyguy> (i also tried to install it to both with "grub-installer /dev/sda /dev/sdb")
[09:13] <friendlyguy> but nothing seems to work
[09:13] <friendlyguy> also selecting the disks in the ncurses gui (the wizzard is a ncurses gui, right?) does not work
[09:15] <friendlyguy> i also read: https://help.ubuntu.com/community/Installation/SoftwareRAID
[09:15] <friendlyguy> but the command "grub-install" isnt available during install
[09:17] <ikonia> why are you trying to install grub
[09:17] <ikonia> what is the actual problem here ?
[09:17] <friendlyguy> i want the system to be able to boot?
[09:17] <ikonia> why is it not booting
[09:17] <friendlyguy> its a fresh system
[09:17] <ikonia> right, why is it not booting
[09:17] <friendlyguy> i suppose it wont without grub
[09:18] <friendlyguy> i am still in the installer, so i didnt actually try
[09:18] <ikonia> the installer will install grub
[09:18] <friendlyguy> where?
[09:18] <friendlyguy> how?
[09:18] <ikonia> why are you manually installing grub
[09:18] <ikonia> the installer installs grub and configures it as part of the install
[09:18] <ikonia> just follow the installer and when it reboots at the end, grub is there
[09:18] <friendlyguy> because selecting one of the two member disks of the software raid1 does not work
[09:19] <ikonia> define doesn't work
[09:21] <friendlyguy> "install the grub bootloader on a hard disk" -> install grub to the mbr? - yes -> device for bootloader installation: - /dev/sda -> force grub installation to the efi removable media path?" - no -> "executing "grub-install /dev/sda" failed". this is a fatal error
[09:22] <friendlyguy> sda as well as sdb are member of a software raid1 (mdadm, not some pseudo hardware raid stuff)
[09:22] <friendlyguy> (nor real hardware raid)
[09:23] <ikonia> are you selecting sda/sdb for the grub install, or is the installer suggesting them
[09:23] <friendlyguy> i am selecting
[09:23] <ikonia> does it not offer the meta device
[09:23] <friendlyguy> nope
[09:24] <ikonia> so what does it offer
[09:24] <friendlyguy> sda sdb and my flashdrive
[09:25] <friendlyguy> (flashdrive==install stick)
[09:25] <ikonia> so is sda %100 the hard disk and not been reordered to be the hard disk
[09:25] <ikonia> to be the Usb disk sorry
[09:25] <friendlyguy> yes it is
[09:25] <ikonia> it is the hard disk ?
[09:25] <friendlyguy> shows the type (samsung-ssd) next to it
[09:26] <ikonia> (just to clarify)
[09:26] <ikonia> ok
[09:26] <ikonia> you'll need to get the logs of what it thinks is failing
[09:26] <ikonia> as the raid device actually started
[09:26] <friendlyguy> where can i get them?
[09:27] <ikonia> sorry, my typing is shocking
[09:27] <ikonia> is the raid device actually started
[09:27] <friendlyguy> i guess
[09:27] <friendlyguy> system setup went fine
[09:27] <friendlyguy> i have lvm on top of the raid, this worked fine as well
[09:28] <friendlyguy> maybe my first try with /dev/sda as well as /dev/sdb fucked it up
[09:28] <ikonia> so can you see the meta device running currentyly
[09:29] <ikonia> friendlyguy: please don';t swear, there is no need for it
[09:29] <ikonia> a failed grub install will not break anything
[09:29] <ikonia> so I doubt that has caused you a problem
[09:29] <friendlyguy> okay
[09:29] <friendlyguy> how can i verify if its running correctly?
[09:29] <ikonia> look at the status of the meta devices
[09:31] <friendlyguy> /proc/mdstat shows md0 as active with sda as well as sdb
[09:32] <friendlyguy> ah, sda1 and sdb1
[09:32] <ikonia> ok, so thats good, so if you apply to md0 it should filter to sda and sdb
[09:32] <ikonia> however if it's not offering you that option thats a problem
[09:32] <ikonia> manually applying to /dev/sda and /dev/sdb should work fine too
[09:32] <friendlyguy> like grub-installer /dev/md0?
[09:33] <ikonia> friendlyguy: well no, you shouldn't really do that, the installer should offer it
[09:33] <friendlyguy> ok, and if it doenst? :)
[09:33] <friendlyguy> applying to sda and sdb doenst work either
[09:33] <ikonia> thats why I said you need to understand why the application to /dev/sda and /dev/sdb is not working
[09:33] <ikonia> what's causing that problem
[09:34] <friendlyguy> if i run grub-installer /dev/sda (or sdb) it fives /dev/sda/proc not a directory
[09:34] <ikonia> you shouldn't be manually running that
[09:35] <friendlyguy> okay, what should i do
[09:35] <ikonia> I'd be keen to see why the autoamted install to /dev/sda is failing
[09:35] <friendlyguy> where can i find the corresponding log?
[09:35] <ikonia> there should be logs in the sessions /var/log directory
[09:36] <ikonia> is /proc mounted in your installer environment
[09:38] <friendlyguy> it is
[09:39] <friendlyguy> ok, from syslog
[09:40] <friendlyguy> there are several entries for grub-installer
[09:40] <friendlyguy> file descriptor [3,4,5,6] leaked on vgs invocation
[09:41] <friendlyguy> also /run/lvm/lvmetad.socket: connect failed: no such file or directory
[09:43] <ikonia> the lvm stuff shouldn't matter
[09:44] <friendlyguy> ah, found something about gpt
[09:45] <lordievader> What did you find?
[09:46] <friendlyguy> "this
[09:47] <friendlyguy> this gpt partition label contains no bios boot partition, embedding wont be possible
[09:47] <lordievader> Ah, yes. That is true. Did you partition the disks yourself?
[09:47] <friendlyguy> error: embedding is not possible, but this is required for raid and lvm install
[09:47] <friendlyguy> yes
[09:48] <lordievader> And you didn't create the bios boot partition?
[09:48] <friendlyguy> nope
[09:48] <lordievader> That is why the grub install fails.
[09:48] <friendlyguy> i didnt aim to use uefi
[09:48] <friendlyguy> i was planning on legacy boot
[09:49] <lordievader> Yes, uefi requires an esp partition. Bios on gpt requires a partition to be marked as bios_boot.
[09:49] <friendlyguy> so i MUST use uefi?
[09:50] <friendlyguy> ... well then, start over again
[09:51] <lordievader> No, read what I am saying.
[09:51] <lordievader> You can use bios with gpt, but you need to make an additional boot partition and give it the bios_boot flag.
[10:08] <friendlyguy> hi there, back again
[10:08] <friendlyguy> my desktop just died
[10:08] <friendlyguy> :(
[10:09] <friendlyguy> its one of those days...
[10:09] <friendlyguy> about gpt... why is gpt used anyway?
[10:09] <friendlyguy> i have 2 120gb ssds in this server
[10:10] <friendlyguy> and i dont want to use uefi boot
[10:10] <friendlyguy> however, it seems like i cant get a mbr partition table from the partmanager
[10:51] <lordievader> Gpt is newer and for uefi mandatory.
[10:51] <lordievader> It also has two backups wheras mbr only has one.
[10:54] <friendlyguy> ok, i was planning on a raid1 with lvm on top and 2 lvs: root and swap
[10:55] <friendlyguy> what i didnt get: can i create the additional partition within lvm or does it have to be on a "lower" level?
[10:56] <lordievader> Lvm creates block devices essentially, what you do with them is up to you.
[10:56] <friendlyguy> yeah, but about grub and the "missing" partition
[10:58] <lordievader> Oh, in your partition table you want something like: 1. 200Mb /boot. 2. x Gb mdraid
[10:58] <friendlyguy> :) thanks
[11:02] <friendlyguy> okay, now i have 2 disks(sda and sdb) and i created 1 partition on each of those, its 200mb /boot and both have a boot flag and are formatted fat32
[11:03] <friendlyguy> i then created the raid1 with the free space on sda and sdb
[11:03] <friendlyguy> is that how it should be?
[11:03] <albech> anyone know where to place own filters for fail2ban, so they are not overwritten.
[11:03] <friendlyguy> (just to verify)
[11:06] <lordievader> friendlyguy: Oh, wait I'm making an error.
[11:06] <lordievader> You want 1. bios_grub 2mb, 2. /boot and 3. mdraid.
[11:10] <friendlyguy> i am wondering about /boot
[11:10] <friendlyguy> shouldnt that be on raid?
[11:19] <friendlyguy> to be honest, the complete layout is unclear to me
[11:19] <friendlyguy> can someone show me some docu how i have to partition that?
[11:19] <friendlyguy> because having boot NOT on raid1 will result in one of the member disks being unable to boot
[11:20] <friendlyguy> i am pretty sure on that
[11:21] <friendlyguy> in the meantime ill try to have those bios_grub partitions as well as the raid, but no seperate boot#
[11:21] <friendlyguy> try and error ftw
[12:21] <freakyy> what's the best tol to make backups?
[12:21] <freakyy> *tool
[12:22] <andol> It all depends.
[12:23] <freakyy> i own a root server, and i want to backup onto my 1TB Backupspace server ;D
[12:26] <andol> Do you want to push or pull? Which of the servers do you trust more? How much data do you have which needs to be backed up?
[12:27] <freakyy> i have around 300GB per full backup. i need space for 2 i think? backups should be encrypted. i think i want to push. the backup server has no pull capabilities ;D
[12:28] <andol> http://duplicity.nongnu.org/ might not be a bad choice then.
[12:28] <freakyy> andol ok so can i just use duply? :D
[12:28] <andol> No idea, I have never used it.
[12:31] <freakyy> ok thanks :)
[12:38] <friendlyguy> erm... i just installed mariadb-server, but i didnt get asked for a root-pw... is this "normal"?
[12:44] <rbasak> friendlyguy: yes Unix authentication is used by default now for localhost connections
[12:44] <friendlyguy> ah, thanks :)
[12:45] <friendlyguy> i kept wondering about that
[14:56] <ZenThief> I'm learning Ansible and remotely created a non-root user on ubuntu. I see examples deleting root password afterwards. Why would I want to do this?
[15:04] <ZenThief> Just a question for anyone here. I'm new to IRC. Can you see my messages? Please confirm.
[15:04] <nacc> ZenThief: yes
[15:05] <nacc> ZenThief: there is a test channel for such things
[15:05] <ZenThief> Thanks nacc, I'll search for it.
[15:24] <rbasak> nacc: sorry, my marking of Triaged for bug 1727590 was perhaps premature.
[16:32] <shadoxx> Is this a good question to ask a question about an MaaS issue I'm currently having?
[16:32] <shadoxx> err, good place.
[16:33] <dpb1> there is a #maas channel, I think
[16:42] <shadoxx> So there is. Thanks dpb1 !
[17:26] <adac> my freshly installed ubuntu from iso is stuck with /dev/sda1 clean message
[17:26] <adac> installed it from iso onto KVM machine
[17:27] <adac> any ideas what might cause that?
[17:34] <shadoxx> adac: trying hitting enter on the kvm keyboard a bunch of times
[17:42] <adac> shadoxx, tried that, does not help :/
[17:42] <TJ-> adac: fo you mean KVM as in Keyboard/Video/Mouse or as in Kernel Virtual Machine?
[17:43] <shadoxx> Well, I'm all out of ideas. I'm battling a similiar issue. Pretty sure it's interrupt related, since generated interuppts causes it to contiue
[17:43] <shadoxx> Figured it's probably getting hung up on the entropy generator
[17:43] <shadoxx> but that's just a guess
[17:43] <adac> TJ-, shadoxx I'm using virt-manager and there i can enter the console
[17:44] <adac> But enter does not help :/
[17:44] <TJ-> Does booting with "debug" or "systemd_loglevel=debug" help with more info?
[17:44] <TJ-> adac: how about the "Ctrl+Alt+F1 through F7 combinations to switch ttys ?
[18:01] <adac> TJ-, hmm that combination does put my host into that mode not the KVM machine unfortunately
[18:01] <adac> :/
[18:07] <kklimonda> are there statistics on how much space does each  release take, split by components?
[18:09] <adac> TJ-, I can send a key via menu in the virt-manager
[18:09] <adac> now I can login
[18:10] <dpb1> kklimonda: https://wiki.ubuntu.com/Mirrors
[18:10] <dpb1> kklimonda: that's the closest I know of
[18:13] <kklimonda> dpb1: well, the 1.1TB is probably right, but that's whole archive - the 4.4GB for xenial sounds like size of CD/DVDs and not archive - e.g. xenial universe is >50GB for amd64
[18:15] <dpb1> kklimonda: also, look at this and all the links off.
[18:15] <dpb1> https://insights.ubuntu.com/2017/08/31/running-an-ubuntu-mirror-with-juju/
[18:16] <dpb1> I'm not sure you'll get specifically the per-component break down you are interested, but you can probably get close.
[18:20] <kklimonda> thanks, I'll take a look
[20:35] <nacc> rbasak: do we wannt to resolve upload tags vs. hash in dsc and how both relate to the importer before 1.0?
[23:30] <xnox> rbasak, i'm not sure if you are the right person to ping, the new git-ubuntu stuff, could it please setup by default .dput.cf to upload things to "ppa" and launchpad over sftp?
[23:30] <nacc> xnox: i'll file htat as a bug
[23:30] <xnox> meaning method=sftp login=lp_account_id
[23:30] <nacc> xnox: as of right now, we don't wrap dput
[23:30] <xnox> because e.g. even slangasek doesn't have it =/
[23:30] <nacc> xnox: it's on the future roadmap, though
[23:30] <nacc> :)
[23:30] <xnox> nacc, ack, will you one the bug, or shall i? and where is the bug tracker?
[23:31] <nacc> xnox: filinng it now: https://bugs.launchpad.net/usd-importer/+filebug
[23:31] <xnox> tah
[23:31] <nacc> xnox: LP: #1727883
[23:34] <nacc> xnox: feel free to flesh it out more, but i think i got the gist