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

DammitJimI don't think there is multipath for fusionIO cards on a host00:08
sarnoldheh, yeah, there *better* be only a single pcie path to such a thing..00:09
DammitJimI'm not sure why _KaszpiR_ said that00:11
sarnoldbecause your bug reminded him of his bug..00:12
=== elsheepo_ is now known as elsheepo
rbasakcpaelzer_: are yo affected by the git-ubuntu libreadline problem?09:05
rbasakIf so, bug 1796017 and "sudo snap refresh --channel=edge/gawk-readline-fix git-ubuntu" to test the fix please.09:05
ubottubug 1796017 in usd-importer "git ubuntu build-source fails with missing libreadline.so.6" [Critical,In progress] https://launchpad.net/bugs/179601709:05
cpaelzer_rbasak: I have seen the bug but did not yet hit it myself09:31
=== cpaelzer_ is now known as cpaelzer
cpaelzerrbasak: but mostly because I never use build-source09:32
cpaelzerlet me try09:32
cpaelzerrbasak: the original reporter already tested your case btw09:35
cpaelzerhttps://bugs.launchpad.net/usd-importer/+bug/1796017/comments/1309:35
ubottuLaunchpad bug 1796017 in usd-importer "git ubuntu build-source fails with missing libreadline.so.6" [Critical,In progress]09:35
cpaelzerright?09:35
cpaelzerI have a similar but not the same fail trying it09:36
cpaelzerchecking the fix now09:36
cpaelzerrbasak: tested and confirmed, posted so on the bug09:38
rbasakThanks!09:41
rbasakThat's interesting.09:41
rbasakI wanted some wider testing because I wasn't sure my test/reproducer was exactly the same in all cases.09:42
rbasakI agree good to land now though09:42
computa_mikeHi people - I 'm having some issues trying to enable a self signed SSL cert on Nginx on ubuntu 16.04 - for some reason the server I have doesn't have the nice sites-enabled folders.  How can I troubleshoot TLS handshaking?  I've tried curling locally (on the server) and I get : curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.10:51
blackflowcomputa_mike: iirc you need special flags for curl to ignore invalid certs. self-signed is invalid in that context, unless you have the CA you signed it with, on the client side, and used. to debug these issues look closer into nginx logs, you can in crease verbosity. sites-enabled pattern is arbitrary and can be created if it doesn't exist.11:08
computa_mikeblackflow: - ok.. I can check that out - looking at the man page -k should be it11:14
computa_mikeblackflow: thanks for the help - still got a problem but I think it's an NGINX issue - probably one of these PICNIC errors...11:16
blackflowincrease verbosity for the nginx' error log. if oyu set it to debug, iirc, it'll spit out quite a lot of things, so don't do it on a busy prod server :)11:17
computa_mikeblackflow: good to know - this is a dev server we're testing some authentication stuff on.  We used to have Facebook authentication onto our site but they want like https endpoints to redirect to, and as this is a dev server I was going to throw a self signed cert on there - I was all like 'how hard can it be right?  I mean there's loads of guides about how to do this..'11:19
blackflowcomputa_mike: if that server is accessible over public internet, just shove a free letsencrypt cert in there. if you're testing, test as close as to real production env, which means proper certs, not self signed ones.11:20
computa_mikeblackflow: I did consider letsencrypt - but it's not a publicly accessible server.11:23
computa_mikeblackflow: I've found the nginx channel - I'll see if they have any ideas on how I can see why handshaking is failing.  I wonder if it's how I made the certs11:24
lordievadercomputa_mike: Do you have control over the DNS?11:38
lordievaderIf so, letsencrypt also supports challenges via DNS.11:38
computa_mikelordievader: I dont' have DNS - but there is a team that does - maybe I can get them to sort that out for us.11:39
computa_mikelordievader: thanks - that's good to know.11:39
tomreyncomputa_mike: i have no first hand experience with it, but i suspect all third party SSO systems such as facebooks' will (intentionally) fail to work for authenticating to a non internet resource11:43
computa_miketomreyn: We have been able to get it to work with Twitter - they currently still support http - and it works with our internal site so far - that will probably change in the future when they mandate that all endpoints are https - it's bound to happen11:45
tomreyndoh, twitter allows you to authenticate to resources they can't even verify exist? that's crazy.11:46
computa_miketomreyn: google do it too...11:51
tomreynweird, maybe i'm just not getting how this can be operated securely. and maybe it's a design flaw.11:58
tomreyn(probably and hopefully the former ;) )12:04
computa_miketomreyn: my understanding is that you pass some security tokens to - in this instance twitter - these tokens are unique to you, and are passed by https.  This redirects the browser to the user, and they are asked whether the application is allowed to log them in.  If they agree, then the application ID is stored against their twitter profile (so they don't have to agree again) and the application redirects to th12:07
computa_mikee address that is configured.  Twitter - i suppose - don't care where the address is.  Their job is to verify that the application ID and client secret that you presented securely are correct.  Facebook are now requiring that the address be an https address - they may also have other restrictions (like - google will only pass you back to an address that is 'real' - like it has a correct top level domain)12:07
tomreyni see, so google does care about it at least in parts.12:10
computa_miketomreyn: dns tampering could redirect the user back to some fake or different site, but if the site wants to do something then I still think they need the client and secret credentials to do stuff - but it would be an interesting exercise - like if you had a coffee shop and you provided DNS, could you stand up a fake application end point?  and if so what could you grab (name, email maybe) -12:10
computa_miketomreyn: thanks - you've given me an idea to explore the security of oauth within untrusted networks.12:11
tomreynmy pleasure :)12:12
tomreynthanks for discussing it.12:12
computa_mikehey people - just figured out what I did wrong.  The default site was listening on 443 without a cert and it was failing - It seems strange that if there's a specific site set up with a cert that you'd need to remember to disable 443 on default because it won't work otherwise12:26
computa_mikeso - it's lunchtime here so I need to disappear - thanks for all your help people on the #ubuntu-server channel/12:41
computa_mikecheerio12:41
a8oAnybody have a recommendation for doing office VM's on office Ubuntu server?  I'm wanting to do windows PDC's and some linux VMs.  I've got some running right now in VMWare ESX and later Virtualbox cause VMWare is limiting my CPU's and don't have the license money13:23
a8oWas debating keeping using Virtualbox or using KVM.  My main goal is to be able to do snapshots and backup VM's between machines and maybe do offsite backup.  not sure if virtualbox or kvm will be easier for that kind of hting13:23
sdeziela8o: I always do my VM snapshots offline so I don't know if that is what you are after. That said, those offline snaps are easy to send to remote machines/offsite when using libvirt backed by ZFS13:27
a8oDo you like suspend the machines to get the snaps?13:28
a8oI have 2 physical servers.  The idea is to backup vm's from one to the other so if I ever have a physical machine go down I can still run critical vms13:28
a8oI've used VM's forever but doing it with business ciritical stuff and backing up to another server is new to me.13:29
sdeziela8o: I don't suspend as I set it up to have a snapshot done on VM bootup13:29
a8oso everytime you reboot it does a snap.  That's pretty cool13:30
sdeziela8o: suspending should work. The snapshot shipping portion is only ZFS13:30
a8oI haven't done much with ZFS13:30
a8oso that'll be new for me13:30
a8oRight now I'm mainly trying to figure out if I should standardize on Virtualbox or KVM.13:30
a8oif one is easier to manage and backup than the other.13:31
sdeziela8o: I prefer KVM through libvirt but let's see what others have to recommend13:31
a8ovirtualbox is what I use day to day.  but that's for desktop stuff, not sure if it's up to snuff for business critical things13:32
lordievaderI strongly dislike Virtualbox. Oracle, blegh.13:33
lordievaderI use Qemu/libvirt for all my virtual machine needs.13:33
a8olordievader: Sweet!  Do you do any sort of backup/snapshots between machines?13:34
a8oI'm setting up a machine now on KVM. But the snapshot/backup between servers part is new to me.13:34
lordievaderI backup certain dirs on the vm's. But not entire images.13:34
a8ois it too space intensive?13:35
lordievaderMy vm's are not critical enough (mostly home use). Besides everything is managed by Puppet. If something does go down I can easily re-create it.13:37
a8ooh nice.  would love to do more with Puppet.13:37
a8oFor this office it's Windows Domain Controllers.  Keeping Active Directory and all that junk backed up for failure is why I wanted to do snapshots.  Can't really filesystem back it up.13:39
a8oI tried to setup LInux as a Secondary Domain Controller but they have a legacy AD setup that's a bit hosed so couldn't get stuff to work with Samba4.  So this will be next best thing I think13:40
lordievaderLibvirt does support making snapshots. But you need to have your disks in qcow2 format.13:41
sdeziela8o: there is a qemu-agent thing that should let tell the VM to make it's disk/fs consistent when you take a live backup/snapshot. This requires cooperation from the guest of course13:41
a8olordievader: oh that's good to know.  I've got the disks in vdi now so I'll convert to test.13:42
lordievaderhttps://www.cyberciti.biz/faq/how-to-create-create-snapshot-in-linux-kvm-vmdomain/13:42
a8osdeziel: Oh nice, I'll check that out.13:42
TJ-a8o: there's another AD alternative, freeIPA which uses 389-ds, which can be configured to do AD replication. e.g. https://directory.fedoraproject.org/docs/389ds/howto/howto-one-way-active-directory-sync.html13:45
a8oTJ-: oh really!  Have you tried to connecting it a old AD?13:45
TJ-a8o: how 'old' ?13:45
a8oI would totally love to have a LInux PDC13:45
a8olike 2003 or so old.  That's been upgrade to 2008 then 2012 then 2018.  Apparently the AD domain name is what messes it up for me cause it doesn't follow proper format13:46
a8ozentyal is what I tried using to connect to existing domain controller.13:47
TJ-a8o: Windows 2003 is well-supported in 389-ds; here's another guide about configuring sync which talks about 2003 tasks. https://www.port389.org/docs/389ds/howto/howto-windowssync.html13:49
a8oTJ-: thanks, reading it now...13:51
=== Futurian_ is now known as Futurian
DammitJimman, for those of you who remember my problem with the system crashing when formatting to xfs/ext415:05
DammitJimit turns out that we were supposed to wait for the raid 1 array to finish building15:05
DammitJimafter that, I had no issues formatting the LVs15:05
DammitJimI wish the system would give you a warning of some sort so that you don't format at this time or something...15:06
tewardthat's more or less "common sense" for RAID, just saying.15:09
tewardDammitJim: you usually need to let *any* RAID array build before you use it15:09
tewardfor best performance15:09
DammitJimit seems this is NOT an issue with CentOS, though15:09
tewardCentOS is weird :P15:09
tewarddon't compare CentOS to Ubuntu :p15:09
DammitJimI'm trying not to, but that's how this whole thing unwound15:10
DammitJimthey were doing it on CentOS so they expected Ubuntu to work the same way15:10
DammitJimbut gosh, crashing the system is pretty bad, I mean... I would expect some measures to not allow the system to do that?15:11
DammitJimbut maybe I'm expecting too much and that functionality is too hard to implement or there are reasons why it's the way it is15:11
tewardDammitJim: RAID is pain, whether it's Software RAID or done via a hardware RAID PERC card15:14
teward:P15:14
DammitJimunderstood15:14
tewardbest to build the array THEN mess with data :P15:14
DammitJimso, I have an Ubuntu VM and the swap is only 4GB16:47
DammitJimI need to make it at least 32GB (this server is running 64GB of RAM)16:47
DammitJimwhat is the best way to do that?16:47
compdocwhich version? 18.04 uses a file now, and not a partition16:49
tewardadd a swap file, presuming you have enough disk space allocated16:50
tewardlol ninja'd :P16:50
DammitJim16.0416:50
DammitJimI have space available in the volume group16:50
DammitJimno, crap, I don't have that much available in the volume group!16:50
DammitJimIt looks like I'm going to have to add another hard drive just for this16:51
compdocthe procedure is something like, turn swap off, grow partition, turn swap on16:51
sdezielDammitJim: you could maybe shrink a couple of LVs?16:51
compdocyou can use a swap file, even with 16.0416:51
DammitJimprobably not... my PV is 40GB and I was going to set up swap to be 64GB LOL16:51
sdezielwell file of LV doesn't change that space issue :)16:52
DammitJimnothing wrong with adding a virtual hard drive just for this, right?16:52
sdezielperfectly fine16:52
TJ-DammitJim: how about a zram swap block device?16:52
tomreynor you could just configure the service son this server so it doesn't need to swap16:52
DammitJimdoes it matter if I add the virtual hard drive to the VG?16:52
sdezielDammitJim: in that case you could also put the swap directly on the whole drive (/dev/vdb) and not worry about partitioning and such16:52
DammitJimoh no, IBM DB2's best practices say to have it16:52
DammitJimsdeziel, I'm starting to like that idea16:53
DammitJimwhen I do: sudo swapon -s, it says: Filename: /dev/dm-116:53
DammitJimwhat does that mean? where is this swap space coming from?16:53
TJ-DammitJim: "ls -l /dev/mapper | grep dm-1"16:54
tomreynor: dmsetup ls16:54
DammitJimlrwxrwxrwx 1 root root       7 Oct 11 22:10 ubuntutemplate16--vg-swap_1 -> ../dm-116:55
sdezielDammitJim: I don't know if you want this additional swap space to be on your RAID array but if yes, adding a single drive won't do it16:55
DammitJimwhy is it that df doesn't show this?16:55
sdezielDammitJim: df shows filesystem space usage, swap is no fs16:55
tomreyndf never shows swap16:55
DammitJimno, I won't have this on the raid array16:55
TJ-DammitJim: because swap is not a mounted file system16:55
DammitJimah, thanks for clarifying that16:56
DammitJimrookie16:56
DammitJimso, effectively in my case, swap is an LV?16:56
sdeziellooks like it16:56
tomreynlvs vg/swap-116:56
DammitJimhhhmmm... I wonder if I can just add the hard drive to the volume group and then just expand that LV16:56
TJ-DammitJim: should be able to16:57
DammitJimI think I'm going to do that16:57
sdezielDammitJim: why not just grow the disk?16:57
DammitJimbrb16:57
DammitJimsdeziel, grow the disk how?16:57
DammitJimI think when one "grows" the disk in VMWare16:57
DammitJimthen a new "drive" shows up in Ubuntu16:57
sdezielDammitJim: really?16:57
DammitJimand one has to fdisk it, then add it to the VG16:57
DammitJimright?16:57
tewardeh16:58
teward"it depends"16:58
DammitJimat least, that's how I understand it...16:58
DammitJimYIKES!16:58
tewardbecause VMware if you expand the disk and not add a second disk16:58
sdezielI don't like having a VG spanning across RAID and non-RAID disks16:58
DammitJimlearning a new thing today... yet again!16:58
tewardit'll just expand the existing disk volume16:58
tewardit depends on the VM's configuration16:58
DammitJimsdeziel, I don't have such a setup16:58
Epx998whats the channel for cosmic/16:58
Epx998?16:58
sdezielDammitJim: were you not using RAID?16:58
UssatNO......when you "grow" the disk in vmware, a new disk does not "show up"16:58
tewardEpx998: #ubuntu+116:58
DammitJimsdeziel, I was using RAID but only for the DB2 configuration16:58
tewardDammitJim: if you grow a disk in VMware no new disk shows up, you just see 'extra space' on the disk after you reboot the VM16:59
DammitJimUssat, when I do an: sudo dmesg | grep sd16:59
TJ-DammitJim: add the disk, pvcreate /dev/new-disk; vgextend VG /dev/new-disk16:59
tewardif you add an additional disk to the VM on its own volume store or such, then that's a different issue16:59
DammitJimI'll see a new sdc or sde16:59
tewardthen it shows as a second disk16:59
sdezielDammitJim: OK then simply grow the disk that's under your PV then you'll be able to grow the LVs as you see fit16:59
DammitJimsdeziel, yup, that's what I was going to do16:59
sdezielDammitJim: adding a disk is more complicated than simply growing the one you already have16:59
sdezielDammitJim: IMHO at least :)17:00
UssatTrust me on this, I have hundreads of *nix systems in Vmware esxi17:00
DammitJimUssat, I trust you and I'm going to do it now17:00
Ussatwhen you GROW a disk on vmware esxi it grows17:00
DammitJimugh, I have to delete my snapshots first17:00
sdezielUssat: will the guest notice  it live?17:00
UssatNo, the guest will not. You need to tell the guest it has a bigger disk then17:01
=== ShaRose_ is now known as ShaRose
DammitJimoh man, I can't do anything because of a backup that is taking 2 hours!!!17:01
Ussatand resize whatever you want/need17:01
DammitJimUssat, how do you tell it that it has a bigger disk?17:01
Ussathold on17:01
DammitJimI normally have to sudo fdisk17:01
DammitJimand then n, p, 2 (1 already exists), Enter, Enter, t, 8f, w, q17:02
DammitJim:D17:02
TJ-I think pvresize can be run on the 'disk' to detect the growth17:02
DammitJimOMG, that would be wonderful!17:02
DammitJimI knew it shouldn't be this difficult17:02
sdezieldepends on how things are laid out17:03
TJ-but if the disk is partitioned and the PV is a partition the partition needs to be extended first17:03
Ussathttps://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/17:03
Ussatis one way17:03
sdezielyou can put your PV on the bare disk or have it in a partition17:03
sdezielUssat: thx17:03
sdezielhaving the PV reside in a partition is more classical17:03
Ussatand yes, it depends o=n how it was origionally set up, is it a LV or not..etc17:03
DammitJimah, I see... so, using gparted... yeah, I get it17:04
sdezielhmm, I always move partitions boundaries while the VM is running17:04
Ussatsdeziel, you CAN do that17:04
sdezielfind it annoying to boot a liveCD just for that17:04
Ussatagain, it depends on origional setup and how carefull you are17:04
DammitJim+1 sdeziel17:04
TJ-DammitJim: if the disk grows, I'd use parted to add a partition to the end that uses all the new space, then "kpartx -u" or "partprobe /dev/sdX" then "pvcreate /dev/SDXy; vgextend VG /dev/sdXy"17:04
sdezielUssat: I was wondering what was the command to have the kernel re-check what kind of disk it had attached to it17:05
Ussatlots of ways to skin a cat17:05
sdezielpoor cats17:05
DammitJimTJ-, that's exaclyt what I do... I ADD a partition to the end17:05
DammitJimbut the original partition cannot be "grown"17:05
DammitJimI know, I'm allergic to them17:05
TJ-DammitJim: right, but that doesn't matter17:05
sdezielDammitJim: yes it can and should IMHO17:05
DammitJimbut I appreciate the conversation because I had forgotten we can boot gparted to do what you guys were talking about17:06
TJ-the original partition, if trapped by another immediately following it, cannot be grown17:06
DammitJimthanks guys17:06
DammitJimman, I really have big problems here17:06
TJ-DammitJim: I do this stuff online from the live system; no need to have to boot into something else17:06
DammitJimwhy is it my veeam backup is only running @ 75MB/s17:06
DammitJimTJ-, I don't think I can grow the virtual drive on VMWare while the VM is running17:07
DammitJimor is there a secret command to tell the VM to refresh whatever it is to know the drive now has 50GB more of space?17:07
TJ-DammitJim: I think that depends on the hyervisor17:10
DammitJimoh17:20
sdezielDammitJim: in the VM, try: echo "- - -" > /sys/class/scsi_host/host0/scan17:33
DammitJimwhen should I do that sdeziel17:36
sdezielDammitJim: once VMWare is done growing the VM's disk17:37
DammitJimah17:37
sdezielDammitJim: you can also do "echo 1 > /sys/class/block/sda/device/rescan" but not all device type have that rescan file (virtio disk don't have it here for some reason)17:37
DammitJimok17:39
sdezielDammitJim: I don't know VMWare at all but I just tested with QEMU/KVM/libvirt and resizing the guest disk followed by: virsh qemu-monitor-command squid --hmp "block_resize drive-virtio-disk0 12G"17:49
sdezielworked as the VM picked up the larger disk17:49
DammitJimwhat the what?17:56
compdocheh18:26
compdoche said all things are possible under the heavens18:29
DammitJimfor Him they are, but not for me w/o Him18:30
sdezielDammitJim: ?18:30
DammitJimdon't pay attention to me... I'm going crazy 'cause I can't do anything you guys mentioned until this backup is done of the server (the backup created a snapshot)18:31

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