/srv/irclogs.ubuntu.com/2017/03/02/#ubuntu-server.txt

=== unreal_ is now known as unreal
DammitJimis heartbeat still pretty popular to set up a high available load balancer like nginx or haproxy?03:35
JMichaelXjust upgraded server from trusty to xenial tonight, and mpd seems to no longer be working... at least it is not outputting sound. has anyone else here experienced this?04:01
ballDoes Ubuntu Server support running from a software RAID mirror?04:46
ball(will it let me create one for the installation?)04:46
jayjoif I'm trying to get a service to start and run on reboot (a systemd until file), and I've put the file in /etc/init.d/ - what are the remaining "steps"?05:12
sarnoldjayjo: I think you need to make multiuser.target or something "want" the file too06:11
sarnoldjayjo: search for multi-user.target on https://wiki.ubuntu.com/SystemdForUpstartUsers for the short version06:12
lordievaderGood morning.08:12
=== lordievader is now known as Guest96394
=== Guest96394 is now known as lordievader
=== lordievader is now known as Guest35409
=== lordieva- is now known as lordievader
sileht</111:01
leeyaahello14:28
leeyaaI have one Ubuntu Dapper server that I really need to upgrade to a non EOL release. (I need to keep it the way it is as I can't convert it or migrate it). is it still possible somehow to upgrade from dapper, to hardy, to precise and so on ?14:28
leeyaaI remember last year I did it for another server, but it is no longer working this way14:28
DammitJimI am so confused... for Ubuntu 16, do I need to be using systemd, upstart or else?15:04
ogra_DammitJim, systemd16:15
DammitJimthanks ogra_16:17
DammitJimman, what a mess... one upgrades one thing and all of a sudden, the project is huge!16:17
DammitJimit's my mess, though... not Ubuntus16:18
coreycbjamespage, beisner: newton-proposed is ready to promote to newton-updates when you get a chance please18:00
beisnercoreycb, jamespage - have we run the default.yaml against newton-proposed?18:01
coreycbbeisner, no, just next.yaml18:02
beisnercoreycb, we need to run against the stable bundle for -updates moves18:03
coreycbbeisner, sure i can do that.  fwiw with release last week the charms hould be basically the same right now.18:04
beisnercoreycb, true enough.  but i think we need to see stable bundle tests for stable package updates as a matter of course.18:04
coreycbbeisner, yep agreed18:08
coreycbbeisner, i'll holler back18:08
=== odc_ is now known as odc
coreycbzul, can you look into sponsoring Frode's patches in the mitaka stable release of horizon? bug 166682718:59
ubottubug 1666827 in horizon (Ubuntu Xenial) "Backport fixes for Rename Network return 403 Error" [High,Triaged] https://launchpad.net/bugs/166682718:59
zulcoreycb: yep19:16
coreycbzul, thanks, i updated the bug a bit.  one of the patches is included in the latest stable release.19:17
drabeeer, why is lxd depending on dnsmasq?19:27
drabanybody around here managing the packaging of lxd?19:27
jgrimmstgraber, ^^19:27
sarnoldwild guess, so there's something around on the bridge to do dhcp19:27
stgraberyup, lxd uses dnsmasq for dhcp and dns on its networks19:28
drabyeah, that's the intention, and maybe I'm missing something19:28
naccdrab: yes, in the default configuration, dnsmasq is spawned19:28
drabbut I already have dnsmasq runnign elsewhere and want that to provide ips for containers19:28
naccdrab: then you need to configure lxd for that (aiui)19:28
drabyeah, I will, the thing is, I wanted to get rid of dnsmasq on that host, don't like keeping stuff around I don't need19:29
drabbut I can't because lxd depends on it19:29
drabguess I can just /etc/default disable it19:29
draband prevent it from starting19:29
stgraberLXD depends on dnsmasq-base not dnsmasq19:29
stgraberdnsmasq-base doesn't have an init script so won't start the system service if you configure LXD to use another bridge19:30
draboooh, I had missed that, thank you very much for clarifying, appreciate the help19:31
sarnolddrab: btw there's an 'equivs' package that can fake up packages for the cases when you absolutely don't want a dependency. All the usual warnings about 'you get to keep both pieces' apply of course :)19:34
stgrabersarnold: yeah, not going to work so well with LXD as the daemon does dependency checking on startup and will just fail to start :)19:35
sarnoldstgraber: hehee :D19:36
sarnoldapparently you've met people like me before..19:36
stgraberyeah, we don't like surprises :)19:36
jgrimmsarnold, neat; i didn't know about that. thanks19:37
drabsarnold: thanks, will keep that in mind19:39
drabI'm getting pretty confused here and #linuxcontainer doesn't seem to be up...20:02
drabI've installed lxd20:02
drabvarious guides ref /etc/default/lxd-bridge, which no longer exists20:02
drabthere's instead a /etc/default/lxd-bridge.upgraded , which I guess is ok. that file references a bridge called lxdbr020:03
drabnotice the d20:03
drabhowever after installing from pkgs lx*D*20:03
sarnolddrab: hopefully helpful https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-explained/20:03
drabI've ended up with a bridge called lx*c*br020:03
drabso that seems inconsistent or maybe I'm missing something20:04
naccdrab: i think that's because the new package doesn't setup the bridge there anymore?20:04
drabthe bridge is up20:04
naccdrab: the .upgraded is a debconf/dpkg thing20:04
naccdrab: lxcbr0 is for lxc120:04
naccdrab: what ubuntu are you on?20:04
drabby default after installing the pkgs I end up with a bridge, altho that's not associated with any interface as far as brctl is concerned20:04
drabxenial20:05
drabI installed lxd from the stable ppa, running 2.1020:05
drabmaybe I had left over lxc's stuff from the default install?20:05
drabwhich would also explain why it seems lxd provices a sinble lxc binary but I still have an awful lot of lxc-something bins around20:06
nacclxc- is for lxc120:07
drabk20:07
drabso yeah, guess I have leftovers to clean up20:07
drabor not, lxd depends on lxc120:08
naccit depens on liblxc1 afaik20:08
naccand lxd-client (which provides `lxc`)20:08
draboh you'r right, I was apt-get remov'ing too much and catching liblxc120:09
draboh, that lxc bridge is gone20:10
drabok now it's a lot clearer, thank you, I couldn't tell what belonged to what anymore20:17
drabguess I should bootstrap from mini20:17
drabok, one more questions, I went through the init which configured the bridge and that's great20:21
drabI assumed, I geuss incorrectly, that those values would be saved in /etc/default/lxd-bridge.upgraded20:21
naccdrab: /etc/default/lxd-bridge.upgraded is just a backup of what was in /etc/default/lxd-bridge on the update20:24
naccsee /usr/lib/lxd/upgrade-bridge20:24
drabok, somehow I don't have /etc/default/lxd-bridge20:24
naccdrab: it uses 'lxc network' now20:24
naccdrab: right, you shouldn't with 2.1020:24
drabah, ok20:25
drabso where's all the config stuff stored? I couldn't find it in /var/lib/lxd20:25
draband there doesn't seem to be any /etc/lxd/20:25
drabI'm assuming lxd init wrote that stuff somewhere20:25
naccdrab: i think it's the lxd database now, but i'm not sure20:28
drabk20:28
drabthanks20:28
nacc /var/lib/lxd/lxd.db20:28
naccstgraber: --^ ?20:28
drabyeah, sqlite, looks like it20:28
skylitewill my disk I/O will be faster if I use ex. 6 disks in raid0? How much faster it would be?20:39
naccskylite: using raid doesn't change the speed at which your disks read or write. I think you want to rephrase your question to be more specific. Also "faster" is sort of vague. Do you mean read IOPS? write IOPS? throughput? latency? etc.20:54
=== JanC_ is now known as JanC
skylitenacc: im trying to run 10 vm's in a dell server for my students but the vms are too slow.  I think the bottleneck is disk speed21:02
skylitesince the whole thing is runing under 2 hard disks and its not in raid21:03
skyliteI think if I put more disks and put them in raid It would be faster. not super fast but not painfully slow21:03
naccskylite: reads will get faster with raid0 (depends on the benchmark as to how much) but i believe writes will get slower21:06
naccskylite: aiui, if your concern is speed, then raid is not exactly the solution -- get better disks :)21:07
naccskylite: but RAID0 implies risking your data as well, on single disk faliure21:08
nacc*failure21:08
naccskylite: err, taking back that write comment, it should speedup writes too21:08
naccskylite: how are you determining the IO speed is the bottleneck?21:09
skylitenacc: I just know :D just imagine 10 vm runing on the same disk21:13
skyliteI got 20 gigs of ram and 2xIntel(R) Xeon(R) CPU           E5410  @ 2.33GHz21:13
drabraid0 will improve reads and writes, but yeah, you're playing russian roulette with your data21:15
drabif you cannot get better disks there's a couple of choices21:15
beisnercoreycb, belated ack & thanks :)21:15
drabone way would be to create a ramdisk, if you have enough ram, and load the OS to ram adding some partition on the disk for persistance21:16
drabI've tried this in the past and ime it's really convoluted, but that's fundamentally what they do with squashfs for liveISOs, so it's doable21:16
skyliteaah no I need the ram for the vms its barely enough21:17
naccskylite: also, your IO controller may start to factor in at the scale you want21:17
skylitebut data loss is absolutely no problem21:17
drabthe other option would still require buying new hw, but cheaper maybe, by using a cache disk21:17
naccskylite: as in, yes, you'll get data striping, but you're not guaranteed to get the striping you want, afaik21:17
drabthis is what I do for my nas with zfs and it works pretty well21:17
drabbut you can also use dm-cache21:17
naccskylite: so it's still possible (albeit perhaps unlikely) to get VMs on the same stripe, so still IO bound on that disk21:17
nacc*VM data21:17
* nacc hasn't setup a RAID in a while, so maybe talking out his you know what21:18
drabwhat you might do if yuo know your number of VMs before hand is to partition the disk, one part for VM, and stripe those and tehn assign the md to the VM21:19
drabnot very flexible but shuold solve the problem nacc is mentioning, which is possible altho not necessarily an issue21:19
skyliteIm thinkig about using dell raid so I can save cpu time from the host and the VMs21:20
drabsince it doesn't really matter where the VMs are, what really bites you on spinning drive is seek time21:20
naccdrab: good point, seek time is not helped by RAID0 (afaict)21:20
drabnope, that's just hw, nothing to do there21:21
naccskylite: dell raid being BIOS raid or a dedicated controller?21:21
skylitebios raid I think21:21
naccskylite: generally, fake RAID is not worth it, and you either should jsut use swraid via mdadm or a dedicated controller21:21
drabso that's fake raid21:21
nacci don't know the specifics for that controller21:21
skyliteusually i would also use swraid but I think it would save cpu time if I used hwraid21:22
skyliteits a dell pe2900 btw21:22
drabis your time worth money to the school? because they are going to spend less by financing a $40 SSD tahn paying your for all the hrs to try to make this faster when it really has little chances to21:23
drabI mean it's just to learn stuff, an ubuntu VM won't need to be more than 15GBs even with lots of goodies on it21:24
skylitedrab: the server is mine I just offered it to the school so we can play with it21:24
drab10 VMs is 150GB, plus host, a 250GB SSD will do21:24
draband that's maybe $8021:24
skylitehm yea21:25
drabgot it, up to you, I've learned the hard way to spend less on aspirins than hw :P21:25
drabaltho these days I'm primarily volunteering for NGOs and it's all about $0 budget21:26
skylitebut I would try with the raid0+old 1TB HDDs first21:26
drabsounds good21:26
drabif data loss isn't a problem you may even toy with the sync timings21:26
drabso that data is flushed to disk less often, that might give you a boost21:27
axisysserver gets no network but when boot using a live CD network works21:51
axisysso may be something wrong with network driver?21:51
axisysis there a way to fix network driver on OS while on live CD?21:52
drabwhat hw is it? quite unusual for drivers to be missing21:52
drabyou can get a shell and check tho21:53
axisysdrab: I am on live CD and have a shell21:53
drabok, what does lspci say? or lshw -C Network if it's installed21:54
drabcan you see the card?21:54
axisysdrab: http://dpaste.com/3W0QZEA21:55
drabok that broadcom card, so the system sees it21:55
drabwhat's the output of ifconfig -a ?21:55
axisyshttp://dpaste.com/0N5M7GN (sanitized)21:56
drabespecially the intels nic should work out of the box with the e1000 module21:57
drabno reason not to, and they are listed as compatible in that module21:57
drabok, so they are all there21:57
draband enp0s10 even has an ip21:58
drabwhy are you saying you have no network?21:58
axisyshardware works.. I am on the network21:58
axisysdrab: when boot from OS21:58
axisysdrab: when boot from OS, it does not get netowkr21:58
draboh, I see. likely not a driver problem, probably an /etc/network/interfaces problem21:58
drabwrong nic set to auto, and the others aren't brought up or something21:59
drabif you boot from the OS and run ifconfig -a do you see  diff output?21:59
drabI'd boot from OS and repeat those two commands21:59
drabif you see the itnerfaces as in this case you hve no driver problem21:59
axisysok.. let me do that..21:59
draband just a config problem, likely like I said /etc/network/interfaces pointing to the wrong one22:00
axisyswhat is the command to eject the cd and reboot?22:00
axisyseject; reboot ?22:00
axisysit might suck the cd back in22:00
axisysI can go to the lab and take the cd out otherwise22:00
geniieject -T22:01
axisyshttp://dpaste.com/0S5NN5G22:01
axisysdid not work22:01
geniiBut yes, if the tray is out when it restarts, usually it sucks it back in during bootup22:02
axisysI will just do it from the lab..22:02
axisysgive me a sec..22:02
drabhttps://github.com/lxc/lxd/blob/master/doc/storage-backends.md22:02
drabthis page says "Restore from older snapshots (not latest)" on ZFS is no22:03
axisysPlease remove the installation medium, then press ENTER:22:03
drabam I understanding that right that I cannot restart from any arbitrary snapshots on zfs?22:04
drabless concerned about no nesting, but no arbitrary snaps is kind of a prob22:04
axisysdrab: mac address changed on me after last kernel update22:21
axisysneeded to chage it to eth3 and it is working now22:21
axisysI wish I could call it eth022:21
drabyou can, just create /etc/udev/rules.d/70-my-net-names.rules22:25
draband put SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:xx:xx:x...", NAME="whatever_you_wanna_call_it" in it22:25
draband it'll match the mac to the name and call it like that22:25
drabyou probably have alreadya  bunch of lines in it, which is why it's picking eth322:26
drabso in theory you could also just remove the old/other mappins and it'll pick up eth0 next reboot22:26
drabaxisys: ^^^22:26
axisysdrab: oh you mean by removing that file? gotcha22:34
axisysdrab: thanks a lot!22:34
drabaxisys: not removing the file, editing22:38
axisysdrab: gotcha22:38
drabyou will likely have entries in it that aren't being used or something, I can't tell, prolly because you have 3 interfaces22:39
drabso likely eth0 and 1 or whatever have been assigned to those22:39
drabor you had other cards in it and maps were left over22:39
ruben23guys any help i have installed ubuntu server 12.04.5 LTS 64 bit but when i do this command ------> apt-get update && apt-get upgrade && apt-get install linux-headers-server <----------------- getting this error --> http://pastebin.com/rTCVncYb23:03
ruben23any idea guys23:03
naccruben23: the errors are pretty clear23:03
naccruben23: it can't find the repository you've configured23:04
ruben23nacc:: how  do i reslved this somehow or workaround please23:06
ruben23please help23:06
naccruben23: why did you configure your system to use that repository?23:06
naccruben23: you can presumably use the default repositories instead, if you want23:06
ruben23 nacc: how to usd the default repo..?23:07
ruben23i want to used the default somehow23:07
ruben23nacc:: please help, any idea23:11
sarnoldruben23: deb http://archive.ubuntu.com/ubuntu/ precise main universe  \n deb http://archive.ubuntu.com/ubuntu/ precise-security main universe \n deb http://archive.ubuntu.com/ubuntu/ precise-updates main universe23:19
draburm, ok, I finally got to start the first container, and its fs is not created in the zfs pool.. mighty confused23:31
drabI did lxd init and picked zfs and it says it has it23:32
drablxc storage list shows the correct thing23:32
drab(tank0/lxd)23:32
draband the default profile shows "default" as "pool", which is what the zfs name is23:32
drabso everything matches23:33
drabbut when starting an new instance there's nothing in tank0/lxd and files appear in /var/lib/lxd/containers23:33
drabam I missing something?23:33
sarnoldcheck both the global template and the configuration for that specific container23:34
draburm, I ran mount just on a hunch and...23:35
drabtank0/lxd/containers/x1  899G  752M  899G   1% /var/lib/lxd/storage-pools/default/containers/x123:35
drabtank0/lxd/containers/x1 doesn't even exist...23:36
drabthere's nothing under tank0/lxd, it's an empty dir23:36
draboh, urm23:37
drabI guess I thought I wasn't giving a path when I did lxd init, but it sounds like I should had...23:38
drabthe storage profile source is tank0/lxd23:38
drabcould it be that should have been /tank0/lxd ?23:38
drablike mount point23:38
sarnoldgood question. I'd expect if it knew you were configuring zfs to use a dataset path rather than a directory path23:38
drabyeah, that was my guess, but as output of mount tank0/lxd makes not sense, ie a rel path23:40
draburm maybe there's something else I don't get about zfs23:41
drabI have these too in mount tank0 on /tank0 type zfs (rw,relatime,xattr,noacl)23:42
drabso tank0 I guess is valid23:42
drabtank0/lxd on /tank0/lxd type zfs (rw,relatime,xattr,noacl)23:42
drabor maybe that's screwed too23:42
stgraberdrab: zfs list -t all23:42
stgraberdrab: LXD will create filesystems under the dataset you told it about, but it will ALWAYS mount them under /var/lib/lxd/storage-pools/NAME/...23:43
stgraberdrab: so if you see lxd/* entries in "zfs list -t all", then LXD is using your zpool just fine, it's just not using your zpool's default mountpoint for its filesystems23:43
drabthat actually looks ok (output of zfs list): http://dpaste.com/05SNTDW23:43
stgraber(and in fact, only mounts just the bits it needs, keeping the rest unmounted to avoid stressing the kernel needlessly)23:44
drabthank you for explaining, very useful23:45

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