/srv/irclogs.ubuntu.com/2017/10/26/#ubuntu-server.txt

drabthe 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 lock00:24
drabthat's quite annoying, then I have to wait for it to finish00:25
drabI'll probably remove it once I have ansible running nightly00:25
naccdrab: yeah that can get frustrating :)00:49
=== davidbowlby-afk is now known as davidbowlby
=== davidbowlby is now known as davidbowlby-bed
lordievaderGood morning06:06
=== el is now known as elky
=== elky is now known as el
dduvnjakis 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 locked08:43
friendlyguymorning! i am wondering where to install grub in a software raid 108:53
friendlyguyi am currently in the setup wizzard and just got asked where to install grub... and to be honest... i dont know :)08:55
friendlyguyone of the member disks... feels wrong08:55
lordievaderIs it hardware raid or software?08:59
friendlyguysoftware08:59
friendlyguyand giving both devices to the wizzard results in a error09:00
lordievaderThen all the members of the raid.09:00
lordievaderYeah, the installer is not very intelligent. You probably want to select one and do the rest manually.09:00
friendlyguyi tried to enter /dev/sda together with /dev/sdb but this results in a fatal error09:00
friendlyguyah, ok09:00
friendlyguyeven choosing a single one doesnt work09:02
friendlyguyand also not via the shell09:04
friendlyguygrub-installer fails09:04
friendlyguy/dev/sda/proc not a directory09:04
friendlyguyah, i think i need the --root-directory option09:05
friendlyguynot available09:07
friendlyguygrrrreat :)09:07
friendlyguywhat to do now?09:07
ikoniawhat exactly are you trying to do09:10
ikoniaas things like /dev/sda/proc make no sense09:11
friendlyguyyup, but this is what grub-installer gives when i run "grub-installer /dev/sda"09:11
friendlyguysame for sdb09:11
friendlyguyit seems like i cant install grub09:11
friendlyguyi am still in the setup wizzard of ubuntu09:12
friendlyguyi tried to install grub to one of the two member disks of a software raid109:12
friendlyguy(i also tried to install it to both with "grub-installer /dev/sda /dev/sdb")09:13
friendlyguybut nothing seems to work09:13
friendlyguyalso selecting the disks in the ncurses gui (the wizzard is a ncurses gui, right?) does not work09:13
friendlyguyi also read: https://help.ubuntu.com/community/Installation/SoftwareRAID09:15
friendlyguybut the command "grub-install" isnt available during install09:15
ikoniawhy are you trying to install grub09:17
ikoniawhat is the actual problem here ?09:17
friendlyguyi want the system to be able to boot?09:17
ikoniawhy is it not booting09:17
friendlyguyits a fresh system09:17
ikoniaright, why is it not booting09:17
friendlyguyi suppose it wont without grub09:17
friendlyguyi am still in the installer, so i didnt actually try09:18
ikoniathe installer will install grub09:18
friendlyguywhere?09:18
friendlyguyhow?09:18
ikoniawhy are you manually installing grub09:18
ikoniathe installer installs grub and configures it as part of the install09:18
ikoniajust follow the installer and when it reboots at the end, grub is there09:18
friendlyguybecause selecting one of the two member disks of the software raid1 does not work09:18
ikoniadefine doesn't work09:19
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 error09:21
friendlyguysda 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:22
ikoniaare you selecting sda/sdb for the grub install, or is the installer suggesting them09:23
friendlyguyi am selecting09:23
ikoniadoes it not offer the meta device09:23
friendlyguynope09:23
ikoniaso what does it offer09:24
friendlyguysda sdb and my flashdrive09:24
friendlyguy(flashdrive==install stick)09:25
ikoniaso is sda %100 the hard disk and not been reordered to be the hard disk09:25
ikoniato be the Usb disk sorry09:25
friendlyguyyes it is09:25
ikoniait is the hard disk ?09:25
friendlyguyshows the type (samsung-ssd) next to it09:25
ikonia(just to clarify)09:26
ikoniaok09:26
ikoniayou'll need to get the logs of what it thinks is failing09:26
ikoniaas the raid device actually started09:26
friendlyguywhere can i get them?09:26
ikoniasorry, my typing is shocking09:27
ikoniais the raid device actually started09:27
friendlyguyi guess09:27
friendlyguysystem setup went fine09:27
friendlyguyi have lvm on top of the raid, this worked fine as well09:27
friendlyguymaybe my first try with /dev/sda as well as /dev/sdb fucked it up09:28
ikoniaso can you see the meta device running currentyly09:28
ikoniafriendlyguy: please don';t swear, there is no need for it09:29
ikoniaa failed grub install will not break anything09:29
ikoniaso I doubt that has caused you a problem09:29
friendlyguyokay09:29
friendlyguyhow can i verify if its running correctly?09:29
ikonialook at the status of the meta devices09:29
friendlyguy/proc/mdstat shows md0 as active with sda as well as sdb09:31
friendlyguyah, sda1 and sdb109:32
ikoniaok, so thats good, so if you apply to md0 it should filter to sda and sdb09:32
ikoniahowever if it's not offering you that option thats a problem09:32
ikoniamanually applying to /dev/sda and /dev/sdb should work fine too09:32
friendlyguylike grub-installer /dev/md0?09:32
ikoniafriendlyguy: well no, you shouldn't really do that, the installer should offer it09:33
friendlyguyok, and if it doenst? :)09:33
friendlyguyapplying to sda and sdb doenst work either09:33
ikoniathats why I said you need to understand why the application to /dev/sda and /dev/sdb is not working09:33
ikoniawhat's causing that problem09:33
friendlyguyif i run grub-installer /dev/sda (or sdb) it fives /dev/sda/proc not a directory09:34
ikoniayou shouldn't be manually running that09:34
friendlyguyokay, what should i do09:35
ikoniaI'd be keen to see why the autoamted install to /dev/sda is failing09:35
friendlyguywhere can i find the corresponding log?09:35
ikoniathere should be logs in the sessions /var/log directory09:35
ikoniais /proc mounted in your installer environment09:36
friendlyguyit is09:38
friendlyguyok, from syslog09:39
friendlyguythere are several entries for grub-installer09:40
friendlyguyfile descriptor [3,4,5,6] leaked on vgs invocation09:40
friendlyguyalso /run/lvm/lvmetad.socket: connect failed: no such file or directory09:41
ikoniathe lvm stuff shouldn't matter09:43
friendlyguyah, found something about gpt09:44
lordievaderWhat did you find?09:45
friendlyguy"this09:46
friendlyguythis gpt partition label contains no bios boot partition, embedding wont be possible09:47
lordievaderAh, yes. That is true. Did you partition the disks yourself?09:47
friendlyguyerror: embedding is not possible, but this is required for raid and lvm install09:47
friendlyguyyes09:47
lordievaderAnd you didn't create the bios boot partition?09:48
friendlyguynope09:48
lordievaderThat is why the grub install fails.09:48
friendlyguyi didnt aim to use uefi09:48
friendlyguyi was planning on legacy boot09:48
lordievaderYes, uefi requires an esp partition. Bios on gpt requires a partition to be marked as bios_boot.09:49
friendlyguyso i MUST use uefi?09:49
friendlyguy... well then, start over again09:50
lordievaderNo, read what I am saying.09:51
lordievaderYou can use bios with gpt, but you need to make an additional boot partition and give it the bios_boot flag.09:51
friendlyguyhi there, back again10:08
friendlyguymy desktop just died10:08
friendlyguy:(10:08
friendlyguyits one of those days...10:09
friendlyguyabout gpt... why is gpt used anyway?10:09
friendlyguyi have 2 120gb ssds in this server10:09
friendlyguyand i dont want to use uefi boot10:10
friendlyguyhowever, it seems like i cant get a mbr partition table from the partmanager10:10
lordievaderGpt is newer and for uefi mandatory.10:51
lordievaderIt also has two backups wheras mbr only has one.10:51
friendlyguyok, i was planning on a raid1 with lvm on top and 2 lvs: root and swap10:54
friendlyguywhat i didnt get: can i create the additional partition within lvm or does it have to be on a "lower" level?10:55
lordievaderLvm creates block devices essentially, what you do with them is up to you.10:56
friendlyguyyeah, but about grub and the "missing" partition10:56
lordievaderOh, in your partition table you want something like: 1. 200Mb /boot. 2. x Gb mdraid10:58
friendlyguy:) thanks10:58
friendlyguyokay, 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 fat3211:02
friendlyguyi then created the raid1 with the free space on sda and sdb11:03
friendlyguyis that how it should be?11:03
albechanyone know where to place own filters for fail2ban, so they are not overwritten.11:03
friendlyguy(just to verify)11:03
lordievaderfriendlyguy: Oh, wait I'm making an error.11:06
lordievaderYou want 1. bios_grub 2mb, 2. /boot and 3. mdraid.11:06
friendlyguyi am wondering about /boot11:10
friendlyguyshouldnt that be on raid?11:10
friendlyguyto be honest, the complete layout is unclear to me11:19
friendlyguycan someone show me some docu how i have to partition that?11:19
friendlyguybecause having boot NOT on raid1 will result in one of the member disks being unable to boot11:19
friendlyguyi am pretty sure on that11:20
friendlyguyin the meantime ill try to have those bios_grub partitions as well as the raid, but no seperate boot#11:21
friendlyguytry and error ftw11:21
freakyywhat's the best tol to make backups?12:21
freakyy*tool12:21
andolIt all depends.12:22
freakyyi own a root server, and i want to backup onto my 1TB Backupspace server ;D12:23
andolDo 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:26
freakyyi 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 ;D12:27
andolhttp://duplicity.nongnu.org/ might not be a bad choice then.12:28
freakyyandol ok so can i just use duply? :D12:28
andolNo idea, I have never used it.12:28
freakyyok thanks :)12:31
friendlyguyerm... i just installed mariadb-server, but i didnt get asked for a root-pw... is this "normal"?12:38
rbasakfriendlyguy: yes Unix authentication is used by default now for localhost connections12:44
friendlyguyah, thanks :)12:44
friendlyguyi kept wondering about that12:45
ZenThiefI'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?14:56
ZenThiefJust a question for anyone here. I'm new to IRC. Can you see my messages? Please confirm.15:04
naccZenThief: yes15:04
naccZenThief: there is a test channel for such things15:05
ZenThiefThanks nacc, I'll search for it.15:05
rbasaknacc: sorry, my marking of Triaged for bug 1727590 was perhaps premature.15:24
ubottubug 1727590 in usd-importer "'git ubuntu build-source -v --sign --for-merge' uses Debian instead of Ubuntu containers" [High,Triaged] https://launchpad.net/bugs/172759015:24
shadoxxIs this a good question to ask a question about an MaaS issue I'm currently having?16:32
shadoxxerr, good place.16:32
dpb1there is a #maas channel, I think16:33
shadoxxSo there is. Thanks dpb1 !16:42
adacmy freshly installed ubuntu from iso is stuck with /dev/sda1 clean message17:26
adacinstalled it from iso onto KVM machine17:26
adacany ideas what might cause that?17:27
shadoxxadac: trying hitting enter on the kvm keyboard a bunch of times17:34
adacshadoxx, 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:42
shadoxxWell, I'm all out of ideas. I'm battling a similiar issue. Pretty sure it's interrupt related, since generated interuppts causes it to contiue17:43
shadoxxFigured it's probably getting hung up on the entropy generator17:43
shadoxxbut that's just a guess17:43
adacTJ-, shadoxx I'm using virt-manager and there i can enter the console17:43
adacBut 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 ?17:44
adacTJ-, hmm that combination does put my host into that mode not the KVM machine unfortunately18:01
adac:/18:01
kklimondaare there statistics on how much space does each  release take, split by components?18:07
adacTJ-, I can send a key via menu in the virt-manager18:09
adacnow I can login18:09
dpb1kklimonda: https://wiki.ubuntu.com/Mirrors18:10
dpb1kklimonda: that's the closest I know of18:10
kklimondadpb1: 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 amd6418:13
dpb1kklimonda: also, look at this and all the links off.18:15
dpb1https://insights.ubuntu.com/2017/08/31/running-an-ubuntu-mirror-with-juju/18:15
dpb1I'm not sure you'll get specifically the per-component break down you are interested, but you can probably get close.18:16
kklimondathanks, I'll take a look18:20
naccrbasak: do we wannt to resolve upload tags vs. hash in dsc and how both relate to the importer before 1.0?20:35
=== el is now known as elky
=== elky is now known as el
xnoxrbasak, 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
naccxnox: i'll file htat as a bug23:30
xnoxmeaning method=sftp login=lp_account_id23:30
naccxnox: as of right now, we don't wrap dput23:30
xnoxbecause e.g. even slangasek doesn't have it =/23:30
naccxnox: it's on the future roadmap, though23:30
nacc:)23:30
xnoxnacc, ack, will you one the bug, or shall i? and where is the bug tracker?23:30
naccxnox: filinng it now: https://bugs.launchpad.net/usd-importer/+filebug23:31
xnoxtah23:31
naccxnox: LP: #172788323:31
ubottuLaunchpad bug 1727883 in usd-importer "dput wrapping should use specific options" [Undecided,New] https://launchpad.net/bugs/172788323:31
naccxnox: feel free to flesh it out more, but i think i got the gist23:34

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