/srv/irclogs.ubuntu.com/2018/08/09/#ubuntu-server.txt

=== Fearful is now known as Guest12634
=== amurray` is now known as amurray
ruben23hi guys i have two user on my ubuntu server nick and vincent, nick has a default ssh keys setup already and i wanted to add for new user vincent also, how do i do that two user with there respective ssh keys.? any idea guys02:17
ruben23coz im confused either i put the public key on authorized_key or i will create a separate file for vincent also.? any idea.?02:18
ruben23anyone can help please02:19
cpaelzercoreycb: that is a change to python libvirt04:41
cpaelzerI added to my todo that I need to re-sync the new version after the new libvirt is in04:41
=== iliv_ is now known as iliv
olivier[m]7Good morning07:38
=== olivier[m]7 is now known as lordievader1
=== lordievader1 is now known as lordievader
=== Tuna-Fish is now known as Tuna
=== Tuna is now known as Tuna2
tobascocoreycb: was something just changed in bionic-rocky packages09:14
tobascoFailed to start sahara-api.service: Unit sahara-api.service not found.09:14
tobascowas eventlet sahara-api removed?09:14
tobascoif so, would be good with a heads up if something like this changes since all deployment tools usually break09:15
yossarianukhi - just trying out ubuntu server 18.04.1 - I was unable to use a KVM bridge with netplan - so I installed ifupdown and configured /etc/network/interfaces - config is here : https://pastebin.com/smQYsvgu09:35
yossarianukHowever on boot I have no networking09:35
yossarianukunless I use the command09:35
yossarianukifup br009:35
yossarianukCan anyone suggest how to get br0 to start on boot ?09:36
yossarianukalso09:36
yossarianukif I use09:36
yossarianuk# systemctl restart networking09:36
yossarianukThat also removes br009:36
yossarianuk18.04 + KVM don't seem to mix very well...09:37
yossarianukIt works 100% fine if I just use # ifup br0 thouh - thinking about removing 18.04 and using debain/centos...09:37
tobascocoreycb: assume this caused it https://launchpad.net/ubuntu/+source/sahara/1:9.0.0~b2-0ubuntu109:42
tobascois sahara-api systemd unit file not supplied anymore? is wsgi in for example apache forced?09:43
tobascooh and there is a 9.0.0~b3 available btw09:44
tobascosaw it now on releases.openstack.org09:44
yossarianukis anyone able to make ubuntu 18.04 work with a kvm bridge (and the bridge starts on boot)09:49
rbasakyossarianuk: you've not said "auto br0".09:53
yossarianukbasak: i.e I should add the line before the iface line ?09:58
tobascocoreycb: https://bugs.launchpad.net/ubuntu/+source/sahara/+bug/178621410:00
ubottuLaunchpad bug 1786214 in sahara (Ubuntu) "Unit sahara-api.service not found on bionic/rocky" [Undecided,New]10:00
coreycbtobasco: yes it's switched to run under apache as of b211:51
coreycbtobasco: sorry will include that in the release notes11:51
coreycbtobasco: i'm working through b3/rc1 this week11:51
tobascocoreycb: aight, pretty close to rocky release, it's impossible to add it back in?11:53
tobascowe need to build in wsgi support asap otherwise for puppet stuff11:53
coreycbtobasco: i believe it had something to do with eventlet and py3. we've been adding py3 support this cycle.11:56
tobascoso we cant? :(11:59
coreycbtobasco: i think it would be a move backwards to switch it back anyway12:00
cpaelzerhi coreycb, did you catch the bug I opened and subscribed you to?12:00
cpaelzerTL;DR - hit rebuild after my libvirt merge is complete12:01
cpaelzerI'll do that then12:01
coreycbcpaelzer: i did not but i'll look12:02
coreycbcpaelzer: ok so it'll be fixed soon is what it sounds like :)12:03
cpaelzeryeah, libvirt keeps on giving issues on testing as usual on a merge12:04
cpaelzerbut once that is resolved it will start to move12:04
coreycbcpaelzer: great, thanks12:04
cpaelzeralso there is no other fix than getting a new libvirt in, so the build dependency is fulfilled12:04
cpaelzerso there would be no alternative fast-path to this12:05
coreycbok12:05
cpaelzerother than pushing a broken libvirt faster - no that won't make it better :-)12:05
coreycbcpaelzer: fyi we have 3 weeks until rocky releases12:06
ahasenackI connceted to an autopkgtest vm with "socat - UNIX-CONNECT:/tmp/autopkgtest-qemu.fmuv1ubd/ttyS0",13:31
ahasenackand inside that I did a tail -f on a log file13:31
ahasenackproblem is that I can't ctrl-c that, because that will kill the socat, not the tail13:31
ahasenackso I'm stuck13:31
ahasenackany ideas?13:31
cpaelzerahasenack: it has also ssh up13:32
ahasenackcpaelzer: any ideas? ^13:32
ahasenackwell, that's the reason I used socat13:32
cpaelzerconnect via that and kill the cat process13:32
ahasenackssh wasn't letting me in13:32
cpaelzerarr13:32
ahasenackAug  9 10:32:14 autopkgtest sshd[3315]: error: maximum authentication attempts exceeded for ubuntu from 10.0.2.2 port 53548 ssh2 [preauth]13:32
ahasenackI don't know what failed in the ssh setup13:32
ahasenackwith socat I was able to login with ubuntu/ubuntu13:33
cpaelzerdoes it has a ttyS1 as well13:33
cpaelzer?13:33
ahasenackoh, it does, and immediate root13:33
cpaelzerI think on autpkgtest S0 is supposed be normal and S1 is auto-root13:33
ahasenackthanks :)13:33
ahasenackinteresting, this doesn't fail:13:44
ahasenack$ sudo aa-enforce /etc/apparmor.d/usr.sbin.squid313:45
ahasenackwhen the file doesn't exist, I mean13:45
ahasenackProfile for /etc/apparmor.d/usr.sbin.squid3 not found, skipping13:45
ahasenack$ echo $?13:45
ahasenack013:45
ahasenack        # Verify it loads ok13:45
ahasenack        ret, report = cmd(['aa-enforce', self.aa_abs_profile])13:45
ahasenack        expected = 013:45
ahasenackheh13:45
ahasenack"you were fooled!"13:45
ahasenackRan 7 tests in 267.713s14:04
ahasenackallright, progress14:04
wendicohello there. Im trying to install my first ubuntu server. i donwloaded and want to install on a motherboard with an array of disk in raid1.  i downloaded the last ubuntu server, burnt to my pendrive, i boot i go install i walla, my ubuntu server detects my drives alone an not my raid groups, why? what i must do so i can install on my array and not on just an alone disk18:38
tewardwendico: how did you create the RAID groups to begin with?  does your system have a standalone RAID card for the array, or does the BIOS see individual drives rather than a disk array?18:43
wendicoi set up my arrays on my BIOS, i have an integrated Intel Matrix Storage Manager (rom v5.6.2.1002 ich7r) wich i access with a set of commands on boot. There i set up 2 arrays18:45
wendicoI have 2 disk in raid1 where i want to install my server and 2 disk in raid0 for nas storage18:46
wendicoi dont know how to boot my ubuntu server to see those arrays and then install on the first one18:47
ChmEarlwendico, append `dmraid` to the cmdline18:47
wendicojust for example "live dmraid" ?18:47
ChmEarlhttps://help.ubuntu.com/community/FakeRaidHowto18:48
ChmEarldmraid=fakeraid18:48
ChmEarlwendico, that howto above will give you an idea of how the Intel raid devices might be named... its not obvious18:51
wendicoi am reading and so far assuming i dont even need to use that since anyways is a "fakeraid"18:52
wendicothey faked me18:52
wendicoif is not real hardware raid, should not just disable it and use ubuntu software raid?18:52
ChmEarlwendico, it might be fun to launch the installer, drop to the shell, run `dmraid -ay`, then look for the devices18:55
ChmEarlisw_aabbcc18:55
wendicoim on it18:56
wendicoChmEarl: ty, getting closer, dmraid was not in live, i sudo installed, then sudo dmraid -ay shows my 2 arrays not activated19:01
wendicohow can activate them to proceed installation on my array?19:01
ChmEarlwendico, not sure what to tell you, but from shell: `ls /dev/mapper/isw_*` might be of interest19:05
ChmEarlwhatever the prefix is nv_ or pdc_19:06
ChmEarllooks like Intel isw* raid uses this driver: dm_raid4519:08
wendicopuf, this ubuntu thing is frustrating19:15
wendicoim about to give up19:16
tomreynwendico: yes you should dsable the fakeraid and install with software raid19:46
wendicotomreyn: thank you, going on19:46
wendicoone last question, since im so tired of probing today, may i install server in one disk disabling all others and enable the raid functions later so i can have my server running soon, all day and still not have a server running19:51
wendicoi pretend to disconnect all drives, disable sata fake raid, and install ubuntu server on my only drive, afterwards and after playing with the sever, may i add the second disk to mirror my server for tolerance?19:52
sarnoldI've never tried converting but I have to imagine that's a lot more work than doing the install with raid from the start19:52
sarnoldjust skip the "I want to boot to either drive when the array is degraded" work until later19:53
wendicook, so is better to use both disk and define the software raid group on the instalation menus19:53
wendicook i go ahead, see if i finally got my server running in some minutes19:54
wendicostuck again with the mesage if i use all my disk in arrays there is no place to put the boot partition20:07
wendicolol20:07
wendicoi really dont understand, the boot partition cannot be mirrored?20:07
wendicothis raid thing is getting on my nerves20:08
wendicoOk, i have 2 identical disk 128gb and another 2 identical 250. i Want raid mirrored on my  128 disk to install server and raid stripped on the other two disk, how the heck do i do this on ubuntu. My set up is ready, my machine boots server live, im on the define software raid but i cant define those 2 arrays because says then i dont have a partition to install my boot. but if i dont even defined partitions im only setting arra20:11
tomreynwendico: your message was cut off after "but if i dont even defined partitions im only setting arra" due to the maximum line length on this IRC network.20:15
tomreynwendico: what you need to know about setting up software raid is that depending on how you'll boot (uefi vs csm / legacy bios) you may need a separate ESP partition (you need this with any OS if you use uefi)20:16
tomreynESP can't be on a software raid, OS independant.20:17
wendicotomrey, i understand, so in what boot mode do i not need a separate partition?20:18
tomreynwendico: also, it is recommended to have /boot on nothing but software raid (no further intermediate block device layers, such as LVM or full disk encryption), since it complicates the setup + booting.20:18
tomreynfor 128 GB disks you, can boot in legacy mode without ESP partitions, and with everything on msdos / MBR partitoned disks (instead of GPT, so you don't require a biosgrub partition)20:20
=== ptx0_ is now known as ptx0
tomreynis this what you want to do? probably not20:20
wendicoyes i think i want that to start,20:21
wendicoif not is to complex to learn20:21
tomreynthere should be an option for automatic partitioning with RAID and LVM. that's the easiest option really.20:21
wendicoso im gonna set my sata on "ide" mode, set all to legacy, disable anything about uefi20:22
wendicoand see if ubuntu dont complaint for not having a partition outside a raid group20:23
tomreynyou most likely want ahci, not ide20:24
tomreynthat's if you're refrring to the bios setting20:24
tomreynnote that ths is hardware specific configuration, it has nothing to do with ubuntu20:25
wendicook, so im there, no uefi and set to ahci20:26
wendicobooted ubuntu server live install20:26
wendicoim on the disk setup20:26
wendicoso now you sugest to use auto LVM and install on my first 128 disk?20:28
tomreynwendico: what does the option say exactly?20:31
wendicotomreyn, give me a min since i clicked install anyways, but it only ommited the word RAID. i had 4 options: use entire disk, use auto lvm, manual and someting else20:32
wendicoclicked auto lvm on my first 128 disk and parted for /boot and / (leaving bunch of free space)20:33
tomreynwendico: this installer is pretty new and i'm not so much into it, yet, so i'm not certain what the LVM option actually does. if it doesn't say "RAID" my guess is it doesn't do RAID.20:34
tomreynwendico: but i'm doing it in a VM now, so i see the options you discussed20:35
tomreynno mention of RAID there, so i dont think you're getting any20:35
tomreynso with the server-live-installer i think you need to use manual partitioning indeed20:36
tomreynif you want to go back to this point, i can guide you20:36
tomreynthis is shown as installation step 7 of 11 here20:37
wendicoyes please20:37
wendicolet me start over so u can guide me20:37
tomreynok20:37
tomreynkeep hilighting me since i keep switching channels20:37
wendicomy server is booting on hd, need few seconds to reboot live20:37
wendicotomreyn:ok20:37
tomreynsure, np20:38
wendicotomreyn: ok, im there on step 720:41
tomreynwendico: okay, do manual, then take a screen shot20:42
wendicotomreyn: wherever u are ready to guide me i wait with patience20:42
wendico!pastebin20:42
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.20:42
tomreynhere's mine http://i.imgur.com/QRr24LF.png20:42
tomreyn!screenshots | wendico20:43
ubottuwendico: Screenshots can be made with the [PrtScr] button. Want to show us a screenshot of your problem? Upload an image to http://imgur.com/ and link the created page here.20:43
tomreyni guess prtscr does not apply during the server installer20:44
tomreynso use some smartphone if you have one20:44
wendicohttps://imgur.com/a/TFOis6620:44
tomreynalternatively some form of out of band management from another computer can help, too20:45
wendicomobile and webwthatsapp is my faster trick hehe20:45
tomreynokay, we only care bout your first two disks for now, right?20:45
wendicoyes the others is for a stripped nas20:45
wendicothe first two for raid ubuntu server20:45
tomreyni think you mean 'striped', so RAID020:46
wendicono, for first two i mean tolerance, mirrored20:46
wendicoi want my server failsave20:46
wendicofor the second 2 disk i want my data stripped20:46
tomreynokay, i understood so much. just saying that it's correctly spelled (and spoken) striPed. but this doesn't matter now.20:47
wendicoah ok sorry, english bad for me hehe20:47
wendicothe problem i encounter if use create software raid, i define raid1 on my first 2 disk but cannot define raid0 on the other 2 disk coz i get the error nowhere to install boot loader20:48
tomreynwe need to partition before we create the md raid20:49
tomreynlet me try this here quickly to make sure this can work20:49
wendicocan be, even i probably have partitions and grubs and windows, and ubuntus on all those disks20:50
wendicothey were used on machines that now is garbage20:50
wendicohavent format or parted yet, i though it would do installing20:50
tomreynhmm okay this installer insists on creating a bios_brub parttion, so i guess we can't get around this20:51
tomreynit's only 1 MB, though, so you're not loosing too much.20:51
tomreynso move the cursor to the upportmost disk20:52
tomreynpress enter, then add partition20:52
wendicodone20:52
wendicosize, file format?20:52
tomreynfull size, leave unformatted20:53
tomreynthis new partiton is now listed on top, and on the bottom you have a partiton 1: bios_grub20:53
tomreyncorrect?20:54
wendicocorrect20:54
tomreynnow move to the second disk, make a parittion, 1 MB, leave unformatted20:54
wendicogoing20:55
tomreyn"1M"20:55
wendicotomreyn: done20:56
tomreynthen another partition on the second drive, ignore 'size', set formatting to leave unformatted20:56
tomreynthen take another screenie please20:57
tomreyni forgot to ask: you don't want LVM there, or do you?20:58
tomreynhere's what it looks like for me now: http://i.imgur.com/NNyWo5s.png20:59
wendicohttps://imgur.com/a/YISDm8r20:59
wendicoperfect, same for me20:59
tomreynlooks good, unless you want LVM21:00
wendicono i dont21:00
wendicoi will plug a usb3 nas to my server21:00
wendicoi dont care lvm21:00
tomreynnow select 'create software raid"21:00
tomreyntick 'partition 2' on top and on bottom. to tick press space bar21:01
tomreynon top is should say md0 for name and raid elevel 121:02
tomreynthen go on and 'create'21:02
tomreynhttp://i.imgur.com/HUGuNrn.png21:03
tomreynhttp://i.imgur.com/bDjVRgu.png21:03
tomreynwendico: still with me?21:04
wendicotomreyn: yes21:04
tomreynwendico: okay, where are you now?21:04
wendicoi did something wrong, repeating steps, give me a second21:04
tomreynwendico: we didnt write any changes to disk, yet, so you can just "reset" on the bottom21:05
wendicothat i did, i went over, i did all correcttly but21:07
wendicoDone at the botton is grey out, let me screen shot where am i21:08
tomreynit should be greyed out.21:08
tomreynbut a screen shot would be good, yes21:08
wendicohttps://imgur.com/a/0aVSUsa21:10
wendicohere i am tomreyn: ^21:10
tomreynlets see21:10
tomreynlooks good21:11
wendicoseems correct, and seems i could follow ahead and set my second array21:11
wendicobut why cant i continue?21:11
wendicoguess should i define mount points21:12
tomreynfor some reason it says "md/server" for you when it says "md0" for me. but i dont care too much21:12
tomreynoh did you name this md?21:12
tomreynwendico: it seems like you set "md/server" as a name21:12
wendicoses21:12
wendicoyes tomreyn, i used "server" as a name21:13
wendicois it wrong?21:13
tomreynwendico: this may work, but i'm not sure it will. we can try21:13
tomreynokay, that's probably fine21:13
tomreynit will be /dev/md/server in the final system21:13
tomreynlet me change this here quickly21:13
wendicookey, np21:13
tomreynnow , under AVAILABLE DEVICES, select md/server, then Format, then ext421:15
tomreynmount should remain /21:15
tomreynokay, i failed21:15
tomreynlets reset, we must have a separate /boot21:15
tomreynwendico: ^ sorry about that21:16
wendicoperfect no problem21:16
wendicoreset21:16
tomreynokay, on the first disk, create partition, 2G, leave unformatted21:17
tomreynon the first disk, create partition, do not set size, leave unformatted21:18
tomreynon the second disk, create partition, 2G, leave unformatted21:18
tomreynon the second disk, create partition, so not set size, leave unformatted21:18
tomreynand wrong again21:19
tomreynwendico: did you create partitons on the 2nd disk, yet?21:19
wendiconope21:19
wendicojust first finished21:19
wendiconeed 2g+1m partition?21:19
tomreynyes 1M, 2G, (blank) for sizes, all unformatted21:20
tomreynin this order ^21:20
wendicookeys going21:20
tomreynhttp://i.imgur.com/UDHsez7.png21:22
wendicoperfect done21:23
wendicowent ahead also and created my raid021:23
wendiconow im ready to set mount points21:23
wendicoi think21:23
wendicolet me screenshot in case21:23
tomreynsan i see it?21:24
tomreyn*can21:24
tomreynthanks21:24
wendicohttps://imgur.com/a/rB5N5CN21:25
wendiconote that my md0 is called server21:25
wendicoand md0 is actually my data stripped array21:26
wendicoi forgot to change name to my second array21:26
wendicoim goona create again to name DataNAS21:26
wendicomore clear for me21:26
tomreynyou can edit21:26
tomreynyou can select the 'md' device on top and select 'edit' to change the name21:27
wendicodone21:27
tomreynbut you need to also create a raid-1 across theose partition 221:27
wendicoso now i format ext4 my first array21:27
wendicook21:28
wendicofor the /boot?21:28
tomreyncorrect21:28
wendicook going on21:28
tomreynwhat you call md/Server is md/os_slash here and will be mounted at /. what you are just creating now is called os_boot here and will be mounted at /boot21:29
tomreynbut let me know what you named it so i can use the same names21:29
wendicook all done, here is the final screen shot:21:31
tomreynah great, i didnt want to ask ;)21:31
wendicohttps://imgur.com/a/SYcewpE21:32
tomreyngreat, i now have md/Boot and md/Server, too21:33
tomreynso lets assign mount points21:33
tomreynselect md/Boot21:33
tomreynformat ext4, mount /boot21:34
tomreyngeez it doesnt allow that21:34
wendicolol21:34
wendicoyeap, same problem21:34
tomreynthis installer is unfortunatley full of bugs21:34
wendicoi can see21:35
wendicoi guess it doesnt like a boot on a striped raid21:35
tomreynit's mirror raid21:35
wendicoyes sorry21:35
tomreynbut it doesn't seem to like it on raid at all21:35
tomreynsoftware raid21:35
wendicoyep, i clicked other and writed /boot and get error, bott must be on a partition21:36
tomreynwell, i'm sorry. i think with this installer we may only have a non redundant /boot partition21:36
mwhudsonhttps://bugs.launchpad.net/subiquity/+bug/178533221:37
ubottuLaunchpad bug 1785332 in subiquity "18.04.1 can't put /boot on SW RAID" [High,Triaged]21:37
tomreynthe proper installer, i mean the legacy installer, would have accepted this setup21:37
mwhudsonyeah, use d-i if you need this for now21:37
tomreynmwhudson: thanks for the link21:37
tomreynsomething tells me i should use debian in the future21:37
tomreynwendico: now, i think our options are clear? you can downlaod the other installer and we can redo it there or we can have a non raid-1 /boot21:39
tomreynwendico: what we can do is to install with boot on just one device now and fix it after installation21:39
wendicoyes that last option i prefer21:39
tomreyns/device/storage device/21:39
tomreyni think it's the best, too21:40
wendicoso i delete boot array21:40
tomreyncorrect, delete md/Boot21:40
wendicodone21:40
tomreynon disk 1, partitoon 2, format as ext421:41
tomreynmount at /boot21:41
wendicodone21:42
tomreynwendico: so on top we now have two file systems:21:43
tomreyn /, a software raid 1, ext4 format21:43
tomreyn /boot, partition of local disk, ext4 format21:43
tomreynmaybe you have a 3rd across your nas21:44
tomreyncorrect?21:44
tomreynadmit it, you're doing a screenie21:44
wendicoyep hehe21:45
wendicohttps://imgur.com/a/yTQoyrS21:45
wendiconow my "Done" is not grey out21:46
wendicois it all correct?21:46
tomreynwendico: looks good21:47
wendicoi mounted /home on my data raid0, /boot on primary ext4 first disk second partition and leaved 1m free space for grub21:47
tomreynwe're DONE with this21:47
wendicoTHANK YOU VERY MUCH!21:47
tomreynwell we're not done installing21:47
wendicoI OWE YOU A BEER21:47
tomreynlet's hope it works out ;)21:48
tomreynwe also need to fix the /boot raid, yet21:48
wendicogoonna click done lets see hehe21:48
wendicoshould i install the sugested popular snapsin¿21:50
wendicodont bother i just install all and later remove what not need21:50
tomreynup to you, i would not21:50
wendicooh ok, then i uncheck all lol21:50
tomreyninstalling snaps is quick later on, too21:50
tomreynand i'm not a huge fan of snaps, but that's personal preference, i guess21:51
wendicoi just want a firewall, proxy and nas21:51
wendicoi dont think i need all that21:51
wendicoi unchecked all21:51
tomreynright, you dont21:52
wendicoinstalling going on21:52
tomreynmine's done ;)21:52
wendicohehe i got old machine21:52
tomreynsweet - "fatal, no bootable medium found! System halted."21:54
wendicolol21:54
tomreyni dont think i made a mistake, but i'll try again quickly21:54
wendicomines still on installing kernel21:54
wendicodone installing, rebooting21:55
wendicoso far i only see a blinking cursor hehe, gonna check if booting from proper hd21:57
wendicook21:59
wendicotry to boot from the second drive, seems thats our mistake21:59
wendicoi switched to boot from drive 2 and ubuntu runned22:00
tomreynmaybe you had grub installed there already?22:00
wendicocould be22:01
tomreynlike before we did th einstallation. or did you say these are new disks22:01
wendicono all used22:01
wendicoused with ubuntu desktop and windows all them22:01
wendiconevertheless is taking ages to boot, seems is encountering problems, maybe arranging software raids for first time or something22:03
tomreynyes, it's to the initial raid sync in the background22:03
tomreynif these are old / slow disks, this can take a while22:03
wendicooh ok, i let it time then22:03
wendicono, ssd new22:03
tomreynonce it's booted and oyu're logged in you can see the progress with cat /proc/mdstat22:04
wendicois the only uptodate thing on this machine hehe22:04
tomreynhehe, well ssds ought to be faster22:04
wendicoi cant log in yet is halted on post22:05
tomreyn"fatal, no bootable medium found! System halted."22:05
wendicobut i can hear hds work crazy22:05
tomreynon post?22:05
wendicolet me take screen shot22:05
tomreyndid it say loading kernel yet22:06
tomreynoh maybe it wont says that. yes, screenie is good22:06
wendicohttps://imgur.com/a/LMnbKsT     The last line character is because i tiped a key to see if it was frozen22:07
wendicook my bad22:08
wendicoim logged on22:08
tomreynomg, yes it installs grub to the wrong disk22:08
tomreynaaaaaaaaaaaaaaaaah22:08
wendicohaha22:09
wendicothat did yes22:09
wendicoinstalled grub to my second disk22:09
tomreyni just booted off the second disk, tooo, and it boots up fine22:09
wendicoso what would u do?22:10
wendicowould u leave it like that22:10
tomreynjust the first, default diosk, which was also listed first in the installer, got no grub at all, at leats not anywhere where it'S triny gto boot it.22:10
tomreynwe can fix this quickly22:10
wendicoi follow you if you are in the mood22:10
tomreynbut this is a results of insufficient QA, or almost none22:10
wendicowhat is QA?22:11
tomreynwhich is inacceptable for minor release one of an LTS relase22:11
tomreynquality assurance22:11
wendicolol yes you are right22:11
tomreynanyways, we got them both booted, and are loggedin, right?22:12
wendicoyep22:12
tomreynfirst, install pending updates: become root or use sudo: apt update && apt dist-upgrade22:12
wendicogo for22:12
=== tobasco is now known as tobias-urdin
wendicoupdating,22:15
tomreynhere's my partition tables http://i.imgur.com/ojDxgOT.png22:15
tomreyn...22:15
tomreynat leats it did write grub to the bios_grub partition22:18
tomreyntell me when you're done22:20
wendicodone22:20
wendicolooks the same22:20
tomreynso updating worked, you have internet access, right?22:20
wendicoyep22:21
wendicoupdated working22:21
wendicobut my devices not same as yours22:21
wendicoi have sda, sdb, sdc22:21
tomreynof course, you have sda, sdb, sdc, sdd22:21
tomreyn4 physical disks22:22
tomreynthose remain visible to linux, since we'Re doing software raid, not hardware raid22:22
wendicoahhh of course22:22
tomreynalso we do software raid on partitions, not whole disks22:22
tomreynplease : apt install pastebinit22:22
tomreynoh thats already installed22:23
wendicoyep22:23
tomreynare you still physically working on the server?22:23
wendicoyep22:23
wendicogot the server online on a pc and a laptop beside with ubuntu desktop talking to u22:24
tomreynshall we install ssh there first so you can connect form a different computer and do easier copy and paste and screenies?22:24
wendicook22:24
wendicoplease show me how22:24
tomreynoh i got ssh already installe,d ok22:24
tomreynso you just ssh to it form the other computer22:24
tomreyndo you know its ip address?22:25
tomreynif not, ip a22:25
tomreynit is also listed when you log out and login again22:25
wendicogot it22:25
tomreynso you ssh to it form the other computer, where you should also chat from22:26
tomreyni guess you're doing this already22:26
tomreynyou ssh using the user you created during installation and its password22:26
wendicoi try but only ask me password, not user22:27
tomreynyou specify the username when connecting22:28
wendicolol ok22:28
tomreyneither using -l username22:28
tomreynor user@serverip22:28
wendicoconected22:29
tomreynpastebint /proc/mdstat22:30
tomreynpastebinit /proc/mdstat22:30
tomreynthe latter22:30
tomreynand tell me the http address, please22:30
wendicohttp://paste.ubuntu.com/p/3sVm5mzn5V/22:30
tomreynokay, thats weird. i need to see your disks22:32
tomreynare you working as your standard user or as root?22:32
wendicoi think standar coz i always have to tipe sudo22:32
tomreynok, i mean what you prefer foir now: working as your restricted user using sudo, or as root?22:33
wendicofor now better as root22:33
tomreyni think sudo is good, especially for beginners22:33
wendicooh then sudo22:33
tomreynbut its your choice22:33
wendicoim very begginer22:33
wendicohehe22:33
tomreynok, we do sudo22:33
tomreynsudo parted -ls | pastebinit22:34
wendicohttp://paste.ubuntu.com/p/rgQft7dNyH/22:34
tomreynand mine is http://paste.ubuntu.com/p/c4Gn8c7hdD/22:36
tomreynso that is interesting in that your disks now show up in a different order than they used to. look at the capacities22:37
tomreyn /dev/sda is the first disk, its 120 GB, that's fine, just ntfs is wrong of course.22:37
wendicothats coz i had to change order in bios to boot22:37
tomreynoh you changed that permanently there, ok22:38
wendicocoz grub wasnt on first disk22:38
tomreynright22:38
sarnoldPartition Table: unknown22:38
tomreynthat's actually correct since you created the NAS md across the entire disks22:38
tomreynso on the raw disks, like hardware raid, so therE's no partition tables there22:39
wendicoyes i did and i did not format or created partitions yet there22:39
wendicojust set it them as array22:39
wendicoo yes i did22:39
tomreynyou did create an ext4 file system on top22:39
wendicocoz /home is mounted there22:39
tomreynbut we can change this if you want to, np22:39
wendicoright22:39
tomreynbut first lets concentrate on fixing the installer bugs22:40
wendicoyes22:40
tomreynwe want to create a /boot raid1 across what is currently /dev/sda2 and /dev/sdc222:41
wendicoyes22:41
tomreynto do so, we need to umommunt /boot first, which is /dev/sdc2, since we want to reuse it22:41
tomreynbut before we do this, let's confirm what is mounted where using "mount"22:42
tomreynmount | pastebinit22:42
wendicohttp://paste.ubuntu.com/p/83yTrJR2tv/22:42
tomreynline 33 of this confirms what i just claimed22:43
tomreynwe need to umommunt /boot first, which is /dev/sdc2, since we want to reuse it22:43
tomreynsudo umount /boot22:43
wendicodone^^  no echo22:44
tomreynwhich means it succeeded22:44
tomreynjust to confirm things, and for a better overview: sudo lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT | pastebinit22:45
wendicohttp://paste.ubuntu.com/p/2cW9CCsc7k/22:45
tomreynnow prepare the raid devices: sudo mdadm --zero-superblock /dev/sdc222:46
tomreynsudo mdadm --zero-superblock /dev/sda222:46
wendicomdadm: Unrecognised md component device22:47
tomreynoh right22:47
tomreynso we can just skip this22:47
tomreynsudo mdadm --create --verbose /dev/md/Boot --level=0 --raid-devices=2 /dev/sda2 /dev/sdc222:49
tomreynwait22:49
tomreynwrong raid level22:49
tomreynsudo mdadm --create --verbose /dev/md/Boot --level=1 --raid-devices=2 /dev/sda2 /dev/sdc222:49
tomreynwendico: ^22:49
tomreynthen do "cat /proc/mdstat" and see it building / initially synching22:49
tomreyn(if you're fast enough)22:50
wendicodone22:50
tomreynthen, if there are no errors: sudo mkfs.ext4 -F /dev/md/Boot22:50
wendicoon first command i get this note:Note: this array has metadata at the start and22:50
wendico    may not be suitable as a boot device.22:50
wendicoby i clicked yes22:51
wendicothen i runned second command with no echo22:51
wendicoso my console look like this https://paste.ubuntu.com/p/wjrmwrd5kW/22:52
tomreynit went on to say "If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90"22:52
wendicoyep22:52
tomreynour bootloader, grub 2, AKA grub 1.99,  understands this newer md metadata, so this is of no concern22:52
wendicoawesome22:53
tomreynyou were meant to just run this in the end: cat /proc/mdstat22:53
tomreynnothe the text i wrote: " and see it building / initially synching22:53
tomreyn:)22:53
tomreynjust ctrl-c if you're still hanging there22:54
tomreynbut i guess it's not waitring for input, but you have a prompt22:54
tomreyndoes it look like you can enter new commands right now?22:55
wendicoyep done22:55
wendicoand cat proc shows now 3 raids22:55
wendicoseems worked22:55
tomreyncat /proc/mdstat | pastebinit22:56
tomreyni'm so curious22:56
wendicohttp://paste.ubuntu.com/p/7CnF3kHPXZ/22:56
tomreynloooks fine22:57
tomreynand its already in sync22:57
tomreynnow we need to update /etc/fstab, the file which configured which file systems are part of this ubuntu installation and how they should eb treated on boot22:58
wendicook22:58
tomreynbefore we do, we need to get the UUIDs of those partitions we have22:58
tomreynblkid | pastebinit22:58
wendicohttp://paste.ubuntu.com/p/jS6gM4ZfBC/22:58
tomreyndo you have a preferred console text editor, such as vim, nano, jed, pico22:59
wendicono22:59
wendicoim learning on it22:59
wendicoim just on default terminal22:59
tomreynare oyu into vim basics, yet?22:59
wendicoyes a bit23:00
wendicoi edited a file sometime23:00
tomreynso you know you need to type :q to quit, unless you made exits, then you need to user :x or :wq23:00
tomreyn*use, not useR23:00
tomreynwell, lets use nano for now, it's easier23:01
tomreynsudo nano /etc/fstab23:01
tomreynwait, this is missing one, because... we didnt create a file system, yet23:02
tomreynexit nano if you started it already23:02
tomreynwendico: sudo mkfs.ext4 /dev/md/Boot23:03
wendicolol, i can go out vim23:03
wendicoq doesnt work23:03
tomreynit's colon q23:03
wendicoim about to close terminal an open ssh again23:03
tomreyn:q23:03
wendicodone23:03
wendicoty23:03
tomreynand before that, in case you are editing, you need to hit escape23:03
tomreynok23:03
tomreynso do the mkfs23:04
wendicodone^^ with normal echo no errors23:04
tomreynthen, once again (my fault): blkid | pastebinit23:04
wendicohttp://paste.ubuntu.com/p/PJTbdzFy72/23:04
tomreynthis should not like the file system we just created on the /boot raid23:04
tomreynbut it doesnt23:05
tomreynwendico: are you sure you ran the "mkfs.ext4" command?23:07
wendicohttp://paste.ubuntu.com/p/VddpVf2PNj/23:08
tomreynokay this looks liek the output of this23:08
tomreynoh, sudo helps23:09
tomreynsudo blkid /dev/md/Boot23:10
tomreynsays what?23:10
wendico/dev/md/Boot: UUID="c6603bb0-a540-4060-9b1d-14f665169137" TYPE="ext4"23:10
tomreynwendico: okay, now: sudo nano /etc/fstab23:11
wendicoim there23:11
tomreynactually quit it again, the pastebinit /etc/fstab23:11
tomreynthen edit again23:11
tomreynnow look for the line which has "/boot" in it, and replace UUID=... by: UUID=c6603bb0-a540-4060-9b1d-14f66516913723:12
wendicoreplaced and saved file23:15
tomreynto explain this a little: each file syytem has a 'universally uniquie ID' assigned to it, that's one of these garbled strings. they can be used for mounting at boot. it's an alternative to using these /dev/sd... device IDs, which, as we learnt during this boot where you changed the order of disks on the bios, can vary.23:15
tomreynbut the UUIDs always point to 'the right thing'23:15
wendicoi understand23:16
tomreynso even when you change the bios boot order, as long as grub loads, it will know where to keep booting from23:16
tomreyni dont think you posted /etc/fstab23:16
wendicoi see23:16
tomreyncould you do it now?23:16
tomreynto exit nano, press ctrl-x23:17
wendicohttp://paste.ubuntu.com/p/Xjhbp6wHzq/23:19
wendicosoz had some problems hehe23:19
tomreyn'soz'?23:19
wendicofile opened by root and by user, then tryint to paste an empty document to pastebin23:19
wendicothats why took so long for last paste23:19
wendicosoz=sorry23:19
tomreynoh ok, glad it worked, let me proof read this quicklky23:20
wendicook np23:20
tomreyni'm comparing to http://paste.ubuntu.com/p/PJTbdzFy72/23:20
tomreyn / in fstab has UUID 08d55fa0-9c1e-11e8-82c0-001a92eb6f5c23:20
tomreynuui in your "blkid" output is /dev/md12623:21
tomreynwhich is the raid-1 across sda3[0] sdc3[1]23:21
tomreynso this should be the md/Server23:22
tomreynwhich is then fine23:22
wendicook so we fixed the raid1 /boot partitions23:23
wendicoshould we now move grub to the proper drive?23:23
tomreynfstab says /boot is UUID c6603bb0-a540-4060-9b1d-14f66516913723:23
tomreynyou said above that this UUID is /dev/md/Boot23:23
tomreynso thats fine23:23
tomreynfstab says /home is UUID 11799c98-9c1e-11e8-82c0-001a92eb6f5c23:24
tomreynand "sudo blkid" and http://paste.ubuntu.com/p/jS6gM4ZfBC/ say that this is /dev/md12723:24
tomreynand according to "cat /proc/mdstat" and http://paste.ubuntu.com/p/7CnF3kHPXZ/ md127 is the raid-0 spun across sdb and sdd, so the NAS storage23:25
tomreynwendico: so, yes, this looks good.23:26
tomreynthere is another change we need to make to /etc/fstab thanks to another installer bug23:26
wendicoawesome, you are the master hehe23:26
tomreynso "sudo nano /etc/fstab" it again23:26
wendicogo ahead, im all ears (eyes)23:26
tomreynin the line which is about the / munt point, change the trailing 0 into 123:27
wendicoim on nano23:27
tomreynin the lines which are about the /boo and /home mount points, change the trailing 0 to 223:28
tomreynthen ctrl-x  and save23:28
tomreynthen: pastebinit /etc/fstab23:28
wendicothere are two 0 in each line23:28
wendicoall line ends with double 023:29
wendicowich one of those 0 have to switch to 123:29
tomreynyou only edit those in the last column23:29
wendicoperfect23:30
tomreyni can confirem this once it's on pastebin23:30
wendicohttp://paste.ubuntu.com/p/kFbfNGsJkN/23:31
tomreynand while you're at it: pastebinit /etc/mdadm/mdadm.conf23:31
wendicohttp://paste.ubuntu.com/p/XTnfbJZrrP/23:31
tomreynokay fstab looks fine23:31
tomreynmdadm.conf is the main mdadm configuration file, which tells the system which raid arrays there are.23:32
tomreyndoes it look good to you?23:33
wendicono, no /boot array23:33
tomreyni agree23:33
tomreynrun: sudo mdadm --detail --scan23:34
tomreyndo you know what to do next?23:34
wendicohttp://paste.ubuntu.com/p/7CnF3kHPXZ/  this showed we had 3 arrays23:34
wendicoreboot?23:35
tomreynnonno.23:35
wendicomdadm scan show 3 arrays23:35
tomreynsudo mdadm --detail --scan | pastebinit23:35
=== precise|pedant is now known as precise|MD
wendicothe boot uuid array dows not match23:35
tomreynokay it shows three arrays NOW, but the system may not know about this at boot23:35
wendico?23:35
tomreyndoes not match waht?23:36
tomreynalso if you would boot now you would not have a kernel to boot. since this needs to be on /boot, which is currently an empty new file system23:36
wendicoARRAY /dev/md/Boot metadata=1.2 name=servertronica:Boot UUID=d5b6fc5c:9a7dfc93:dd6e08a9:eac5746e23:37
tomreynthis was returned by "sudo mdadm --detail --scan"?23:37
wendicoyes23:37
tomreynokay then addi it to mdadm.conf23:37
tomreynand tell me when you're done23:38
tomreynso we got mdadm prepared for booting, we got fstab prepared for booting, but we need yet to re-populate /boot. /boot needs to contain our kernel image and initrd, without it linux (the kernel) cant boot23:39
tomreynwendico: how are you coming23:40
tomreyni'll brb, 3 minutes23:40
wendicohttp://paste.ubuntu.com/p/BfPfQGkMcx/23:41
wendicoadded23:41
wendicois that ok^?23:41
tomreyni dont know your "sudo mdadm --detail --scan" output, but so i cant guarantee23:44
tomreynbut it seems to be in the right format23:44
wendicohttp://paste.ubuntu.com/p/JjTG9WX7Qc/23:45
wendicoi see a problem there though23:45
wendicothe lines i have not added i can read "Ubuntu-server" but my server name is correct only in the line i added "servertronica"23:46
wendicowhy is it that? should i edit the other first 2 line to match my server name?23:46
tomreynthis is fine, as long as it matches the mdadm --detail --scan output23:46
tomreynthis information is not only stored in mdadm.conf but also written to the raid arrays themselves23:47
wendicook i understand23:47
tomreynso the hostname you see there is the one which was valid by the time the raid array was created23:47
tomreyntwo of these arrays we created from the installer23:47
wendicoexactly23:48
tomreynwhich had this "ubuntu-server" hostname23:48
tomreynokay, now lets fix /boot23:48
wendicoperfect23:48
tomreynsudo mount /boot23:48
wendicodone23:48
tomreynnow we need to getthe kernel and initrd installed there again23:49
tomreynforst of all we need to find out which kernel should be installed / was installed on /boot before we deleted it23:49
tomreyndpkg -l linux\*23:49
tomreynthose lines which start with ii are packages which are currently installed23:49
tomreynwe only care about those linux-image-4.15... packages for now23:50
tomreynwhich ones do you have there=?23:50
tomreynwendico: meep meep23:51
wendico4.15.0linux-image-4. 4.15.0-29.3123:51
tomreynoh this is cut off23:52
wendicoalso 30.3223:52
tomreynyou'd need to increase the size of your terminal or use something like23:52
wendicolet me pastebin better, many lines there23:52
tomreynCOLUMNS=200 dpkg -l linux\*23:52
wendicohttp://paste.ubuntu.com/p/Rwy7xwd5xz/23:52
tomreynokay, great, so we only care about the 'Name' column for now23:53
tomreynand there only about those linux-image-4... packages23:53
tomreynthose are the ones which were on /boot previously and which we eradicated23:54
wendicoi see23:54
tomreynand which we now need to reinstall23:54
tomreynso which packages is this?23:54
=== cryptodan_mobile is now known as cryptodan
tomreyni'm tryin got make you understand and learn things a bit,. if you'd prefer to be done soon we can do it a little faster23:55
wendicono i prefer this way23:55
wendicoim learning23:55
tomreyncool23:55
wendicolinux generic 4.15.0.30.32  ??23:56
tomreynjust look at package names23:56
=== cryptodan is now known as cryptodan_mobile
=== precise|MD is now known as precise
tomreynyou loolked at the Version column as well23:56
sarnoldbtw rather than COLUMNS=... stuff, I prefer dpkg -l whatever | cat23:57
sarnoldthat's enough to get dpkg to just show the output23:57
wendicoso only linux-generic23:57
tomreynthanks sarnold, good hint23:57
tomreynso we're looking for the linux-image-4.... something packages23:57
tomreynthose with a veriosn number in the package name23:57
tomreyni know it's a bit itrritating thatthose have version numbers in their name23:58
wendicobut i have many of those lines23:58
wendicolinux-image-generic23:59
tomreynwendico: you don't . in the first column, there are those 'ii' and 'un'. we only want those which are 'ii'23:59
tomreynin the second column, yuo have the package names.23:59

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