/srv/irclogs.ubuntu.com/2015/09/09/#ubuntu-server.txt

=== markthomas is now known as markthomas|away
=== trabbit_ is now known as trabbit
=== G_ is now known as G
robert45thanks03:27
robert45hi guys, my software RAID6 failed and Im unable to start it, can someone help me how to fix this? http://pastie.org/1040642903:27
sarnoldwhat "possibly out of date" mean? that sounds ominous03:30
robert45sarnold thanks. well I dont have a clue what does that mean03:31
sarnoldrobert45: have you seen this yet? https://raid.wiki.kernel.org/index.php/RAID_Recovery03:34
robert45sarnold In fact, yes. I tried the Event fix but didnt work, Im scary to try the recreate process since it may destroy the data03:35
aroonido you folks typically run a repository for .dotfile configurations like .vimrc .tmux.conf that you'd like to keep up to date on all the machines you use them on?04:36
=== kickinz1\afk is now known as kickinz1
=== Lcawte|Away is now known as Lcawte
=== CiPi is now known as cipi
lordievaderGood morning07:26
jamespagezul, guh - I keep hitting this - https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/149379710:47
ubottuLaunchpad bug 1493797 in lxd (Ubuntu) "lxd unix socket not accessible reliably" [Undecided,New]10:47
shoaibhi11:09
BeliqMy hosting provider recently changed their VPS service, double the performance and significantly cheaper. However,  they still charge me for their old service. Didn't automatically scale me up nor offered transition. I am right to be disappointed ?11:17
shoaibwhat is the use of having server computers at home?11:18
=== MrPPS is now known as Guest80338
zuljamespage: i think you are hitting this https://github.com/lxc/lxd/commit/593b4c0e50e87189fbf8e658855d9fdad870eb5011:25
jamespagezul, yeah - I saw that and I think you are correct - I've tried a deploy from git one and it appears OK11:25
jamespagemaybe11:25
zulack11:26
jellyshoaib: servers provide services.  Sometimes you want to have some services available at all times, even in a home environment.  For example, a file server to access media from various devices.11:26
Teduardohas anybody been able to get sendmail to work after the logjam fix?12:28
jpdsTeduardo: https://twitter.com/sadserver/status/63074553010089984012:30
Teduardoso the answer to my question i guess you are saying is no?12:35
=== dannf is now known as dannf2
Aethenelleanyone install a CAS server on ubuntu successfully?14:09
Aethenellemore precisely, when I run tomcat under systrace as root or tomcat8, the jaas config is read fine. when by systemd, it fails. I can't seem to get java.security.debug to work either.14:11
Aethenelleany ideas?14:11
notafadslooking for help getting a raid 10 install up and running14:40
notafadscan tip im also willing to pay if completed dont know if that changes anything14:41
Picinotafads: I'd start by looking at https://help.ubuntu.com/lts/serverguide/advanced-installation.html14:46
notafadswell i got hardware raid available via  http://www.newegg.com/Product/Product.aspx?Item=N82E16813182959 and no concept how to access the intel storage manager14:47
pmatulisnotafads: what's the storage manager? anyway, use hardware raid or software raid, not onboard (fakeraid)15:03
patdk-wkheh? onboard fakeraid == software raid15:07
notafads?15:09
notafadspmatulis, honestly i do not know i am having trouble locating it hence the issues15:25
pmatulispatdk-wk: you say that b/c mdadm now can interface with onboard raid?15:35
patdk-wkheh?15:36
patdk-wkthere is no onboard raid15:36
patdk-wkdmraid is the software implementation that uses mdraid parts to do the work15:36
patdk-wkthe only part that is onboard raid, is a simple helper to let the bios boot15:37
pmatulisonboard raid, i meant onboard raid controller15:39
patdk-wkI origionally used it, back on 10.0415:44
patdk-wkthat lasted a few months, dmraid just annoyed me to no end, due to it's write buffering15:45
patdk-wkand changed to mdraid15:45
pmatulispatdk-wk: why did you say "onboard fakeraid == software raid" ?15:49
patdk-wkcause there is no raid support with fakeraid15:50
patdk-wkit DEPENDS on and uses software raid15:50
patdk-wkfakeriad is raid boot support only, not raid at all15:50
patdk-wkjust a boot helper15:50
pmatulisok, by 'software raid' i meant 'mdraid (mdadm)'15:50
notafadsthe motherboard i linked15:50
patdk-wkmdraid is software raid, but your left to having the bios boot a usable disk yourself15:50
notafadsdoes do hardware raid?15:50
pmatulispatdk-wk: right, so we agree ;)15:51
patdk-wknothing is worse than a disk the motherboard thinks it can boot, and doesn't work :)15:51
pmatulisnotafads: so i reiterate, use mdraid (madam) or a real hardware raid controller15:52
notafadspmatulis, with ubuntu install it wont do raid 1+015:53
notafadsnatively15:53
pmatulisnotafads: your fakeraid/motherboard won't give you the raid you want?15:54
notafadspmatulis, i cant seem to even figure it out on the mobo i cant find smart storage in the bios only have the option to turn raid feature on for esatas and satas15:54
notafadssorry i am quiet new to this kinda everything fell into my lap15:55
pmatulisnotafads: just another reason to disable it then15:55
notafadsgenerally i am use to seeing a ctrl+S for storage options15:55
notafadson boot15:55
pmatulisnotafads: probably for hardware raid15:55
notafadsbut that option is not there15:55
pmatulisnotafads: that's b/c you don't have h/w raid!15:56
notafadshttp://www.newegg.com/Product/Product.aspx?Item=N82E16813182959   b-but it says sata raid 0/1/5/1015:56
notafads;_; ugh15:56
sarnoldmost of those "sata raid" things are thin shims toget a boot loader running15:57
sarnoldit's best to not trust them much15:57
sarnoldoh, heh, Isee pmatulis and patdk-wk have you well covered :)15:57
quanticnotafads: there's a difference between software/BIOS RAID (aka FakeRAID) and an actual hardware RAID controller.15:57
notafadsquantic, i am aware of that much but thank you15:57
quanticnotafads: then you're aware of the problems inherent in FakeRAID. Cool, I won't say anything more.15:58
patdk-wkyou do not want to use motherboard supported raid, unless there is a VERY VERY specific reason why, unless it's a real onboard raid card, like an lsi15:58
patdk-wkand even then, those normally don't have options for a battery, or write cache, so are painfully slow in raid mode also15:59
notafadsquantic, no i know there is a difference not that i fully understand the issues15:59
quanticnotafads: ahh, gotcha. Misunderstood.15:59
notafadsquantic, sorry if my tone came off frustrated it is because i am just not at you guys just the issue in general.16:00
quanticnotafads: FakeRAID solutions generally just offload the RAID calculations to the CPU, and don't have any "real" RAID features, like write-caching, battery backup, etc.16:00
notafadsim trying to take advantage of an opportunity dropped in my lap and all i have done is continually hit walls.16:00
quanticnotafads: They're also somewhat proprietary. You won't be able to start the RAID set in any motherboard other than the exact model you're working with, for the most part.16:00
quanticnotafads: What are you trying to do?16:01
notafadsoh ok16:01
notafadsbuild a raid 10 in ubuntu install16:01
quanticnotafads: Oh, so exactly what I do.16:01
notafadslol16:01
quanticnotafads: Don't use the motherboard RAID. Disable it. Use mdadm, works great.16:01
notafadsthats software?16:01
quanticnotafads: How many drives and how big?16:01
notafads4x 3tb16:01
notafadshot swappable16:01
notafadsso i can quickly replace as needed and have a led indicator when i have issues16:02
quanticnotafads: Big, fat drives. Okay, you'll have a few gotchas. 1. You MUST use GPT. Disks are too big for MBR partitioning.16:02
quanticnotafads: Create the following partitions in the installer: a. 1MB - reserved BIOS boot partition. 2. 1G - RAID partition. 3. The rest of the disk, RAID partition.16:02
quanticnotafads: On each disk.16:02
patdk-wkif you want the led's to work, you will want hardware raid16:03
notafadsleds are essential so its dummy proof for the most part on my behalf16:03
patdk-wkyou can make led's work with software raid, but it is a lot of work, and different on every system16:04
notafadsquantic, your saying software raid?16:04
quanticnotafads: Yup.16:04
notafadspatdk-wk, i will have to go with a hardware raid controller i need those leds16:04
quanticnotafads: If you want hardware raid, buy a raid controller. If you want to use what you have and make a functional system, use mdadm.16:04
notafadsquantic, ^16:04
quanticnotafads: With basic configuration, no, you don't. Mine emails me if a drive fails.16:05
quanticbut hey, its your system.16:05
notafadsquantic, thats actually pretty cool16:05
patdk-wkdepends on the usage16:05
patdk-wkemailing is needed either way :)16:06
patdk-wkbut not having someone pull the wrong disk when actually at the rack, is helpful16:06
notafadspatdk-wk, thats what i am afraid of16:06
=== markthomas|away is now known as markthomas
notafadsim kinda being forced into being a system admin on this server and i got someone to help me set it up and everything however i do need to get around this hurdle first16:07
pmatulisnotafads: get a real raid controller then16:07
patdk-wknow for the next question :)16:07
patdk-wkwhat kind of performance do you need?16:07
pmatulisheh heh16:08
patdk-wkwill you need a real raid card, with bbwc, or just a hba that *kindof* does raid16:08
patdk-wkbbwc makes writes very fast :)16:09
patdk-wkbut your talking like $250 vs $75016:09
notafadsthats way to much16:10
patdk-wkboth?16:11
patdk-wkreally though, software raid is going be better than the lower cost option16:12
patdk-wkbut led's will have to be done manually, if it is even possible16:12
patdk-wkpossible depends on the hardware16:13
patdk-wknormally the best idea for that, is just to pound the disks, and remove the one that isn't blinking :)16:13
sarnoldhaha :)16:14
patdk-wkit works on kids too, remove the one that doesn't yell16:15
sarnoldhahahaha16:16
pmatulispatdk-wk: i would prolly try to take a pulse but you're business ;)16:29
pmatulis*your16:50
=== suresh is now known as Guest49556
blizzowI have a server with 256GB RAM, I'd like to set aside 32GB of RAM as a ramdisk mounted at /myramdisk on every boot. How would I do that in trusty server or vivid server?17:56
tarpmanblizzow: a line in /etc/fstab of type tmpfs with a size option17:59
jrwrenblizzow: you CAN do that, but likely you don't need to. linux bufcache is REALLY good.17:59
jrwrenblizzow: anyway, we call it tmpfs. files in it may get swapped out.18:00
blizzowHere's the kicker, I have no swapfile.18:06
jrwrenblizzow: should be fine still.18:09
=== Lcawte is now known as Lcawte|Away
RoyKblizzow: really, use swap, it'll help you use physical memory better18:11
RoyKblizzow: not sure how much with a quarter of a terabyte of RAM, but it all depends on the load18:11
blizzowRoyK: The server hosts a bunch of VMs. The out of memory killer kills a VM once in a while, and I believe it's because there is no swap.  The problem is, I have to be absolutely sure the VM processes do NOT hit our swapfile.18:13
RoyKblizzow: the linux memory manager is very good at spotting pages not in use and swapping those out - better allocate a truckload of swap and you'll se it's using a small amount of it and leaving the left RAM usable for something useful18:16
RoyKblizzow: linux swapped out whole processes sometime in the mid ninetees - it doesn't do that anymore18:17
RoyKblizzow: why don't you want pages of the VMs swapped out, btw?18:18
blizzowBecause it's super hard to tell if a VM is having performance issues because the hypervisor has swapped out part of the VM process, or there is a problem in the underlying VM.18:19
jrwrenblizzow: you can get dynamic swap instead of using swap partition by installing swapspace package.18:19
RoyKblizzow: let linux do the job, please. you can adjust vm.swappiness (how rapidly swap is used) with sysctl18:19
RoyKblizzow: default is 60 (out of 100). set it to 1 if you're very nervous. probably the default is good. it's always better for a VM to be slow than to be dead18:20
jrwrenthere are good tools which will tell you swapped out pages for a process, if you need.18:20
RoyKjrwren: you rarely need those18:21
RoyKpeople are too afraid of swapping - it's not like win95 swaps :P18:21
jrwrenRoyK: maybe when you want to tell if a VM is having performance issues because its swapped out.18:22
RoyKjrwren: then you'll see that on the i/o numbers on the host - it's that simple18:22
RoyKjrwren: and a VM is *never* swapped out - just the pages it didn't use much18:23
RoyKjrwren: if you have too little memory - get more - don't stop swap - it's a lifesaver18:23
jrwrenRoyK: how can I tell that a VM is having performance issues because pages of it are swapped?18:24
ciscamUsing virtualbox 4.3 two of my ubuntu servers are behaving differently. one is a default installation via .iso and the other is an openvpn-as prepared .vhd. Now when I suspend both of them, on resume the default ubuntu server (15.04) has the correct time in a few seconds and the openvpn-as prepped server (14.04.1 LTS) continues at the time when it was suspended, until I 'ntpdate time.nist.gov' it18:24
RoyKjrwren: you'll see it by the swap usage on the host18:24
blizzowif one VM is busy hitting I/O and another VM has chunks that are swapped. It's camouflaged.18:25
jrwrenRoyK: so you are syaing don't swap?18:25
jrwrenRoyK: so why have a pagefile?18:25
RoyKjrwren: please - it's been 24 years of development on linux and everyone in the kernel developer gang says "use swap!"18:25
RoyKjrwren: you may want to try without it, but you may as well trust the experts18:25
RoyKjrwren: I'm saying swap is nice, because it sorts out the bits of allocated memory not in use are swapped out for the rest of the memory to be used efficiently18:26
RoyKjrwren: just trust those nerds, please18:26
ciscamWhat I found out is that ntp is not installed on the default ubuntu server and the command hwclock returns that it's not accessible via known means. Does somebody know how it synchronizes the time anyways? The openvpn-as servers ntp is configured with 'tinker panic 0' and hwclock returns the time when it was suspended, identical to date. the time only syncs with a manual ntpdate.18:27
RoyKciscam: why virtualbox?18:28
jrwrenRoyK: i'm only asking questions. I can either keep asking becuase I don't understand you, or I can stop. What do you suggest?18:28
ciscamit's available as a preconfigured jail for freenas18:28
ciscamneither of those servers has the guestadditions installed18:29
jrwrenblizzow: I'm curious what solution you use. Let me know, please?18:33
RoyKjrwren: just use swap, ok?18:37
jrwrenRoyK: *sigh*18:37
jrwrenRoyK: it depends. ;]18:37
RoyKno, really, it doesn't18:37
RoyKsetup swap and set swappiness = 1, and it'll only use swap when it's critical18:37
jrwrenRoyK: i'm ok with no swap on some small VMs and certain other applications.18:38
jrwrenRoyK: i'm ok with no swap on rpi18:38
RoyKwell, justr trying to help, I've been using Linux for >20 years, you're on your own18:39
jrwrenRoyK: i'm almost always leary of absolute prescriptions.18:39
jrwrenRoyK: >20? wow!18:39
jrwrenRoyK: Any advice on monitoring an applications pages being swapped out?18:40
blizzowjrwren: I tried to mount -t tmpfs -o size=2048M tmpfs  /swapspace  Then I made a swapfile in there and when I tried to swapon -a /swapspace/swapfile, I get "swapon: /swapspace/swapfile: swapon failed: Invalid argument"18:40
jrwrenblizzow: a swap file on tmpfs? WTF are you doing? don't do that.18:41
blizzowI wanted to use a ramdisk for swap. :(18:41
jrwrenblizzow: it literally makes zero sense. :)18:41
tarpmano_O18:42
tarpmanblizzow: what's the difference between a swap file backed by RAM, and no swap at all?18:42
tarpmanblizzow: suggestion: apt-get install zram-config18:42
RoyKblizzow: that's nice, if you're low on RAM, send the data through several layers of complexity to RAM :D18:42
blizzowI'm trying to avoid VM processes from EVER touching disk based swap. This is so I NEVER have to worry about a swap as a variable for VM performance. A problem arises in the hypervisor activates an OOM killer and kills VMs when there is no swap given to the hypervisor.18:45
sarnoldblizzow: sounds like what you really want is to make sure the sum of all memory on all VMs on the system is ~two gigabytes less than the amount of RAM installed in the machine18:52
blizzowI'm trying to eliminate hypervisor swap access as a variable for VM performance. That's all.18:52
blizzowsarnold: That's part of the problem.  Having no swap seems to activate an out of memory killer even when the sum of all VMs on the system uses 50GB less RAM than is available to the system.18:54
blizzowI'd be fine without the ability to overcommit RAM to virtual machines, but only being able to commit <60% of RAM to VMs seems wrong.18:56
jrwrenblizzow: you can set swapiness per cgroup. start each VM in a cgroup with swapiness 118:56
sarnoldblizzow: that's gotta be wrong somewhere. please file a bug.18:59
sarnoldblizzow: with that kind of memory I wonder about numa memory placement but .. even that shouldn't invoke the OOM killer.19:00
blizzowsarnold: When the OOM killer gets invoked, in NUMA node 0, the largest page the kernel has available is 8kb.19:02
sarnoldblizzow: ouch. :/19:02
blizzowcgroups/cgmanager documentation is worse than trying to read stereo instructions from Ikea. How do I ensure that any qemu-kvm processes have swappiness set to 0 or 1?19:26
DoyleDo values set in /etc/default get loaded on service reload, or just service start/restart?19:27
Doyle./etc/default/whatever19:28
sarnoldDoyle: hopefully all three19:28
DoyleI suspected. Thanks sarnold19:29
Aethenelleanyone know how I can get java's securitymanager to actually output debugging info under ubuntu's install of tomcat?19:35
=== markthomas is now known as markthomas|away
=== xachet_ is now known as xachet_away
=== Lcawte|Away is now known as Lcawte
iurygregoryHello jamespage, I'm making puppet modules for openstack and I have a pythonlib called pysaml2 (which is installed using pip) it is possible to have a repository to be used apt-get?21:23
=== markthomas|away is now known as markthomas
=== xachet_away is now known as xachet_
Kallishi there, i was wondering if anyone could help me please, I am running this command to copy from a server to a local directory rsync -r -t -v --progress -s /run/user/1000/gvfs/smb-share:server=192.168.15.101,share=ac /tage-data/ac when the items copy they are dropped into a directory on the local system called cmb-share:server=192.168.15.101,share=ac but i want the files to overwrite or resume from the remote ac22:41
Kallisfolder to the local ac folder22:41
sarnoldKallis: try adding a / to the end of both the source and destination22:42
Kallisok i will try that now22:42
sarnoldKallis: /run/user/1000/gvfs/smb-share:server=192.168.15.101,share=ac/ /tage-data/ac/22:43
Kallisthat did it22:43
Kallisderp22:43
Kallisbeen playing for hours lol22:43
sarnoldrsync is brutal that way :)22:44
Kallisthank you again :D22:44
sarnoldor maybe _subtle_ is better description...22:44
Kallisheh22:44
sarnoldanyway, I know i'v elost hours to that one too. hehe.22:44
Kallisi don't feel quite so derp now lol22:44
Kallishow to make acls work and i can go to bed :D22:45

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