/srv/irclogs.ubuntu.com/2014/07/30/#ubuntu-server.txt

=== cripperz is now known as CripperZ-
=== arrrghhh is now known as arrrghhhAWAY
=== arlen is now known as arlen_
=== CripperZ- is now known as cripperz
=== arrrghhhAWAY is now known as arrrghhh
=== arrrghhh is now known as arrrghhhAWAY
=== TDog_ is now known as TDog
lutchyHello, what is the easiest way to reconfigure the network? I just convert a VDI to VDMK and I was hoping that Ubuntu 14.04LTS would figure things out during boot time...05:00
=== thumper is now known as thumper-afk
lutchyPeople a sleep05:06
cfhowlett!patience05:09
ubottuDon't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. While you wait, try searching https://help.ubuntu.com or http://ubuntuforums.org or http://askubuntu.com/05:09
lutchyI didn't repeat the question :)05:15
lutchyAnyway, it doesn't appear there's a way from the debian mailing list05:15
sarnoldlutchy: server stuff doesn't expect much changes; see /etc/network/interfaces for what you need to modify06:00
smbhallyn, yes :)06:39
freezeveeI have a MAC OS X computer with two ubuntu-server-vm's in Virtualbox (doesn't really matter but I 'm just mentioning it). They are in the same subnet (192.168.56.4, 192.168.56.5) and they both have same kind of folder tree structure. The one is ubuntu 12.04 LTS and the other 14.04 LTS. How can I mirror my /var/www folder as is ?07:33
freezeveeI have read many things about rsync, will it work ?07:34
jamespagefreezevee, should do although I think the structure of /var/www changed a bit with apache24 in 14.04 - worth checking the 14.04 release notes07:52
freezeveejamespage: thanks, I'll check this out. IS there any significant change ?07:53
jamespagefreezevee, nothing major but worth reading the upgrade notes for apache - https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#Ubuntu_Server07:53
jamespagethe link to the package upgrade notes is bust07:54
* jamespage sighs07:54
apb1963ummm... 2.4 is very different in regard to configs08:04
apb1963or at least, different enough that it requires work to get it going.08:05
=== alb3rt0 is now known as a1berto
=== ming is now known as Guest28776
=== khaitanya is now known as Guest57044
rbasakjamespage: quick bit of advice on mysql, please?11:06
rbasakjamespage: there are various bits that I'm looking at all at once, but I'm thinking of doing this more incrementally.11:06
rbasakjamespage: so my plan is: 1) flip the bits to make 5.6 standalone (without depending on 5.5 binaries), including new mysql-common (with breaks/replaces the old one), etc.11:07
jamespagerbasak, sure11:07
rbasak2) remove those bits on 5.5.11:07
rbasakFor both of these to hit the archive (I'll try a PPA first).11:07
rbasakThen 3) analyse the Ubuntu delta and add apport, ufw as necessary.11:08
rbasak4) virtual-mysql-server etc.11:08
rbasakThis will mean that there will be a period that Utopic's mysql though functional will not be full featured.11:08
rbasakHow does this sound to you?11:08
rbasakOr maybe I can stage this all in a PPA first.11:09
rbasakAre there any other bits I'm missing here?11:09
jamespagerbasak, I'd probably do the delta first and then transition11:22
bagel`I'm running 14.04 and I ran apt-get update;apt-get upgrade -- one of the packages it wanted to update was grub. the machine is a software raid1 (with 2 TB x 2) so when it got to grub it asked me if i wanted to keep the local version of /etc/default/grub or if i wanted to overwrite with the maintainers version. so i chose to keep the local version. but now im at this prompt: http://i.imgur.com/HRtBgeK.png ? should i check box all 3 or just the last one11:26
jamespagesmoser, care to review https://code.launchpad.net/~james-page/software-properties/juno-support/+merge/228828 ?11:26
=== psivaa is now known as psivaa-lunch
progre55Hi guys. Any real-time log monitoring app recommentations that run commands on specific log occurrences? For instance, I want to monitor a log file, and send specific log lines to a redis cluster. Or what would be the best way to accomplish this?12:24
toyotapieIs there a command or parameter to ifconfig I can use to see if a network card is being used to packet sniff ?12:25
toyotapieI see that dmesg says "eth1 entered promiscous mode" but I don't see anything in ifconfig12:26
rbasakprogre55: logstash is pretty popular. I'm not sure how well it matches what you want though. And it requires Java, which seems pretty heavyweight to me.12:29
progre55rbasak: logstash seems a bit too much for this simple task. I just want to monitor logs and execute a script if a line matches. I could write some bash script myself, but then it wouldnt be as flexible, and would end up with duplicate entries, etc on a restart or logrotate..12:31
=== cripperz is now known as CripperZ-
rbasakprogre55: maybe rsyslog has something you can use?12:36
toyotapienetstat -i only shows the P ( promiscious ) flag when I use 'ip link set eth0 promisc on', but both 'ip link set eth0 promisc on' and  'tcpdump -i eth0' generates a 'eth0 entered promiscous mode' in dmesg. What am I missing?12:36
toyotapieRelevant discussion over at redhat https://bugzilla.redhat.com/show_bug.cgi?id=19997912:40
uvirtbottoyotapie: Error: Could not parse XML returned by bugzilla.redhat.com: HTTP Error 404: Not Found12:40
toyotapiefound the solution. I ned to read from  /sys/class/net/[net_if]/flags12:42
toyotapieand the definition for the flags are in ./include/linux/if.h in kernel source12:43
toyotapiethanks guys :)12:43
=== psivaa-lunch is now known as psivaa
progre55rbasak: thanks, I’ll have a look at rsyslog12:46
smoserjamespage, its fine with me other than i dont see why you'd drop the CA_ALLOW_CODENAME13:14
jamespagesmoser, ack - I'll tweak that back in13:15
weeb1eDoes anyone have any idea what could cause /proc/cpuinfo to report the wrong number of physical cores per CPU?13:38
weeb1emodel name      : Intel(R) Xeon(R) CPU           E5540  @ 2.53GHz13:39
weeb1ecpu cores       : 213:39
patdk-wkweeb1e, since /proc/cpuinfo doesn't report physical cores, heh13:39
weeb1epatdk-wk: It does13:39
patdk-wkno, it doesn't13:39
weeb1eI've already used `cat /proc/cpuinfo | grep "^cpu cores" | uniq` to measure physical cores13:39
weeb1eOn many different boxes in the past13:39
=== Ursinha is now known as Ursinha-afk
patdk-wkso by your definition, a hyperthreaded cpu is a physical core?13:41
patdk-wkand then, it gets really fucky on virtual systems13:42
patdk-wkthis is what one of my systems says13:44
patdk-wkmodel name: Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz13:44
patdk-wkcpu cores: 213:44
weeb1epatdk-wk: Virtual cores can be measured with `cat /proc/cpuinfo | grep "^processor" | wc -l`, but since hyperthreading is disabled, that reports 8, which is the correct number of physical cores (2x4)13:44
patdk-wkbut it's actually running on a X5660 with 6 cores13:44
patdk-wkand an E5345 has 4 cores13:44
weeb1eStrange, perhaps that is not actually the command I used in the past13:45
patdk-wkyou sure your not running as a vm?13:45
patdk-wkvirt-what?13:45
weeb1epatdk-wk: It's a barebone machine13:51
weeb1eI do not use VMs13:51
patdk-wkonly thing I can guess then is13:51
patdk-wkthe bios disabled some cores13:51
weeb1eThat seems unlikely13:52
weeb1eThe host would have had to disable half the cores, instead of hyperthreading13:52
patdk-wkdepends, it's a bios option in every computer I own atleast13:52
patdk-wkcores, 1, 2, all13:53
weeb1eMaking it hyperthreaded 2 core CPUs, instead of non hyperthreaded 4 core13:53
weeb1epatdk-wk: Using `cat /proc/cpuinfo | grep "^cpu cores" | uniq` on a machine with 1 physical CPU, 4 physical cores + hyperthreading returns 4, which is the correct number of physical cores13:56
weeb1eDoing the same on another box, which has no hyperthreading, 2 CPUs, each with 4 cores, returns 413:57
weeb1eSo I have no idea why this new box is reporting 2 :/13:57
=== Ursinha-afk is now known as Ursinha
NivexarrrghhhAWAY: doh! I was off a week. No engineering hangout today.14:10
t4nk306does anybody know how to install ubuntu server 14.04 offline?15:00
t4nk306i keep getting asked to choose a mirror15:00
patdk-wkdepends on *how* your installing it15:05
t4nk306how?15:05
patdk-wkyes15:06
patdk-wknetboot, pxe, iso, dvd, usb, ......15:06
t4nk306i used USB15:06
t4nk306but I've also used DVD in the past too15:06
patdk-wkcreated from what? the a full dvd?15:07
patdk-wkthen you likely can just skip that15:07
patdk-wkas it's just looking for updates15:07
t4nk306i downloaded the ubuntu.14.04-amd-64.iso image15:07
t4nk306and created a USB out of that15:07
t4nk306it wouldn't let me skip it15:07
t4nk306i'll try DVD again tomorrow15:07
=== arrrghhhAWAY is now known as arrrghhh
arrrghhhNivex, ah so it's next week?15:35
Nivexyeah. I think I may have found some of the holdup too: https://wiki.ubuntu.com/QATeam/ReleaseReports/TrustyPoint1TestingReport15:35
arrrghhhI see a lot of -desktop issues... nothing server specific tho?15:36
Nivexall the way at the bottom. update-manager15:37
=== Ursinha is now known as Ursinha-afk
arrrghhhoh 1348067 update-manager crashed with TypeError: pulse() takes exactly 1 argument (2 given)15:39
arrrghhhthat one?15:39
=== arrrghhh is now known as arrrghhhAWAY
=== Ursinha-afk is now known as Ursinha
patdk-wkheh? it says *fixed/closed*15:55
patdk-wkmore likely is like 1347721 134796415:56
=== daveops_ is now known as daveops
=== SpamapS_ is now known as SpamapS
=== Corey_ is now known as Corey
jamespagerbasak, smoser: http://people.canonical.com/~jamespage/server-sru/trusty-sru.html17:28
=== arrrghhhZ is now known as arrrghhh
ploo_how do i disable a service in ubuntu 14 server?18:03
sarnoldploo_: if it has an upstart job, echo manual >> /etc/init/servicename.override  -- see http://upstart.ubuntu.com/cookbook/#override-files for details18:11
cdb23axhello, can someone explain howto traffic shape between two ubuntu servers which are connected via a gre tunnel? if i shape on ubuntu2 gre server the upload from ubuntu1 changes? can someone help?18:26
cdb23axbut the uplaod from ubntu1 to ubuntu2 remains untouched?18:26
cdb23ax*but the download from ubuntu1 to unbuntu2 remains untouched i mean18:26
cdb23axeven if i setup on both side traffic shaping and shape upload to 512kbit its still 4mbit Download and 512kbit Upload on Ubuntu118:28
cdb23axbut i want 512kbit upload and 512kbit download on ubuntu1. how can i get this to work?18:28
patdk-wkyou can only shape outgoing traffic18:37
patdk-wkattempts to shape incoming, is a best effort, and can't be reliable18:38
cdb23axpatdk-wk yes, but if i enable nat on ubuntu2 then i can18:40
cdb23axwhy is it not possible without nat?18:40
patdk-wkwhat does nat have to do with anything?18:41
patdk-wkI thought we where talking about traffic shaping18:41
cdb23axlook if i just enable iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE on ubuntu2 with the same rules as before then upload of ubuntu1 remains untouched but download goes down to 512kbit/s18:42
cdb23axnothing changed except the nat rule18:42
patdk-wkthere is more than *just* that nat rule18:42
patdk-wkbut since I can't see any of it18:42
patdk-wkI cna't comment18:42
cdb23axtrust me, i have only added the nat command above and all works18:42
patdk-wkoh, I believe you *JUST* added it18:43
cdb23axbut as soon as i delete nat the traffic shaping is reversed to upload instead of download18:43
patdk-wkbut I don't believe you understand how that interacts with everything else that was already there18:43
patdk-wkcause that one line should have HUGE effects on the traffic shaping18:43
patdk-wkdepending on how you set it up18:43
patdk-wkyes, cause the traffic shaping rules you setup, are likely *not what you really wanted*18:44
patdk-wkbut what you think you wanted18:44
cdb23axi just wanted that my stupid sdsl line dont get congested18:44
cdb23axbecause 1 downlaod destroys latency 600ms18:45
cdb23axit works perfectly with nat so that certain applications gets priorized but without my upload which cannot be possible gets priorized18:45
cdb23axand even the udp/tcp ports gets priorized correctly?!18:45
cdb23axso patdk-wk tell me how would you setup just a simple internet connection without congestion?18:46
patdk-wkpersonally? using shorewall :)18:46
cdb23axi asked in some forums and they tell me to use tunnels18:46
patdk-wknot by ucing tc by hand, too much work18:46
patdk-wktunnels?18:47
patdk-wkI dunno what you want anymore18:47
cdb23axlike vpn, ipsec, gre18:47
patdk-wkat first it was gre traffic shaping18:47
patdk-wknow it's internet traffic shaping18:47
patdk-wkthen it's tunnels18:47
patdk-wkyou should be shaping EVERYTHING18:47
cdb23axlook 2 ubuntu server are connected via gre tunnels over the internet. ubuntu#1 is my home gateway18:47
patdk-wkjust shaping that single link between them, won't solve it18:48
patdk-wkyou need to shape everything18:48
cdb23axthe default route from ubuntu1 goes through ubuntu2 over the gre tunnel. 1 static route from ubuntu1 to the wan ip from ubuntu218:48
patdk-wkis there a purpose you route everything over the gre tunnel?18:48
cdb23axyes to control that what the sender sends me18:48
cdb23axotherwise i dont have a single control point18:48
patdk-wkyou will need to setup shaping on both ends18:49
lazyPower With this latest MongoDB merge (the monolithic refactor to charmhelpers) could you run an openstack deploy using the trusty mongodb charm and validate we are indeed g2g for the openstack use cases? My prelim test just validates that the config is written using the public address - as i'm no domain expert in ceilometer, i want to make sure I'm not breaking the charm again.18:49
lazyPowers/you/anyone18:49
patdk-wkjust setup proper shaping on each side18:49
cdb23axthis is my shaping script i have added to each ubuntu server: http://pastebin.com/C4Scq2rz18:50
cdb23axso whats not correct here can you tell me?18:50
cdb23axinstead of this dummy 10.0.x.x addresses my wan ips are there18:51
cdb23axi route a /29 subnet through the ubuntu218:52
patdk-wkI thought you wanted to limit to 4mbit?18:52
cdb23axno my connection is 4mbit/4mbit18:53
patdk-wkso you should se tthe cap to like no more than 3.6mbit18:53
cdb23axand if i limit on both sides or shape then on my side its 4mbit/512kbit18:53
cdb23axthe cap is set to 512kbit18:53
patdk-wkthe cap for what?18:53
cdb23axclassid 1:24 sorry its 256kbit18:53
patdk-wkexactly what did you TEST?18:53
cdb23axfor the ip address18:54
cdb23axfor my wan ip net18:54
patdk-wkhow exactly do you test an ip address?18:54
patdk-wknormally it requires sending data18:54
patdk-wkand you cant send data to an ip address18:54
patdk-wkyou can send it to a port though18:54
cdb23axtc class add dev eth0 parent 1:2 classid 1:24 htb rate 256kbit prio 218:54
patdk-wkyour making this pretty damned hard18:54
cdb23axiptables -A POSTROUTING -t mangle -s 212.27.84.48/29 -j MARK --set-mark 2418:55
patdk-wkwhy would you do that?18:55
cdb23axand as i said with nat enabled its set to 256kbit on that range18:55
cdb23axbecause i want to use this server for other things18:55
patdk-wkas it should be18:56
cdb23axand if i download something the server wont have enough bandwidth18:56
patdk-wkthe source of your gre tunnel is in that ip range right?18:56
patdk-wkso yes, it should be limited18:56
patdk-wkwhat did you expect?18:56
patdk-wkyoutell it to limit it, it did18:56
cdb23axthe remote address is in this range18:57
patdk-wkall those iptable rules need to go18:57
patdk-wkyou should be shaping all your traffic going ONLY over the gre  first18:58
patdk-wkif you only shape that, you should be fine18:59
cdb23axyou mean replace eth0 with tun0 in this script?18:59
cdb23axwell i have tried that, then no traffic shaping takes place18:59
cdb23axand some people say that you cannot shape with the gre interface you need to shape on your physical interface19:00
patdk-wkodd, maybe a limit of gre, never used it19:00
patdk-wkif that is the case your screwed19:00
patdk-wkcause you won't be able to prioritize traffic over the gre19:00
patdk-wkif that is the case, why do you have all those 10.0.0.0?19:00
cdb23axjust dummy ips19:01
cdb23axhave nothing to say19:01
patdk-wkyou will need to shape everything BUT your gre tunnel on eth019:01
cdb23axin the original script they are removed19:01
cdb23axin fact only the /29 stands there19:01
patdk-wkwhat you need to do, is download the wondershaper19:01
patdk-wkthen edit it, to exclude your gre tunnel from being shaped19:02
patdk-wkfor your external host19:02
patdk-wkfor your internal one, I guess yo uneed to shape only the gre19:02
patdk-wkor well, the whole internet interface would do it too19:02
cdb23axfor internal i can do normal ts with tc19:02
cdb23axit works well19:02
patdk-wkbut you loose all control of prioritizing outgoing packets19:03
cdb23axwell thats not true19:03
cdb23axon my side all is behaving normal19:03
cdb23axpatdk-wk how can i exclude gre interface in wondershaper?19:08
patdk-wklikely by setting the whitelist or exclude ip19:08
cdb23axwell in wondershaper i have done this wondershaper eth0 512 51219:11
cdb23axso there is no exclude tun019:11
cdb23axso what did you mean should i remove the gre port number from beeing shaped?19:12
cdb23axpatdk-wk even with wondershaper eth0 200 200 on both side nothing changes19:30
cdb23axexcept the upload19:30
cdb23axon my side19:30
RoyKhm... anyone here using LSI SAS controllers with supermicro SAS expanders? Seems smartctl can't report much from those drives. This is an LSI SAS 9207-4i4e19:38
patdk-wkroyk, works for me :)19:58
RoyKpatdk-wk: well, it somewhat works here as well, and -i identifies the drives and so on, and -a gives some data, but not the data I want. See http://paste.ubuntu.com/7907948/20:09
RoyKsda is directly connected to a local SATA thing. sdc etc is on the SAS expander20:10
patdk-wkroyk, your confused :)20:29
patdk-wkyour expecting sata output20:29
patdk-wkthe output for sdc is *NORMAL* for enterprise disks20:29
patdk-wkthat is the same output you would get using a FC, or SCSI disk also that is enterprise rated20:30
RoyKpatdk-wk: erm - how can I get proper output from a sata drive? I have seen that before20:33
patdk-wkheh?20:34
patdk-wkthat an enterprise disk though20:34
patdk-wkit has nothing to do with *proper* output20:34
patdk-wkthat is what the disk returns20:34
patdk-wkenterprise disks use that format20:34
patdk-wkthey have always been that way20:35
patdk-wkatleast since I started using enterprise disks, back in 200420:35
patdk-wkyou would have to swap out the firmware on the disk, to change it20:35
RoyKpatdk-wk: I've used enterprise disks that give proper output too. Also, the sda is an enterprise disk, but not connected to the SAS controller20:47
=== mjohnson151 is now known as mjohnson15
ploo_how do i disable a service in ubuntu 14 server?21:00
RoyKploo_: see update-rc.d or just remove the service from /etc/rc2.d/21:04
RoyKploo_: in /etc/rc2.d/ it's just symlinks for the services to start21:04
RoyKploo_: which service is this about?21:04
weeb1eHow can I execute a bash script in a new shell and have it not exit the shell when the script exits? I need to do that, so I can open that script in a new named screen session, and have it exit to a bash shell if the process running in screen exits21:13
weeb1eI'm really tired of having to start things manually because I don't know how to do the above21:13
rbasakweeb1e: that doesn't quite make sense to me. There are two things you can do here I think.21:15
waltzhey, i'm having some trouble with upstart. i keep getting 'invalid job class'21:15
rbasakweeb1e: look into the "source" command (also shortened to .). This runs the commands in the file as if you're typing them in, so when done you'll get a shell that's in the same environment those commands are in.21:15
rberg_Hi all, I am setting in etc/default/grub gfxmode=800x600 and grub comes up at that resolution. however after boot the resolution changes to 752x413 and I am not sure what is causing this.. any ideas?21:16
weeb1erbasak: I am specifically asking how not to do that21:16
rbasakweeb1e: or the second option is just to run another shell at the end of your script. Just have "$SHELL" (with the quotes) as a line at the end.21:16
rbasakSince when you're running a shell script, that's what happens - non-interactively.21:16
weeb1eAnd the reason I don't want to run another shell, is it will lose history and instead of having to press "up arrow -> enter" to restart the application, i will have to type out the full command line21:17
rbasakIf you then want it interactive, start an interactive shell.21:17
weeb1erbasak: So I am really hoping for a proper solution21:17
weeb1eI simply want to start a new shell, execute a command as if it was typed into the shell, and leave the shell as is afterwards21:17
rbasakMaybe that's something that screen can do for you. It's not a feature of the shell itself.21:18
rbasak(unless it's some newer thing I don't know about, or eg. zsh or something can do it)21:18
weeb1eI'm very surprised, as this seems like a rather big oversight21:18
rbasakI think most people arrange things so that it's just not needed. I've never needed it, for example.21:19
weeb1eYou don't use screen for programatically spawned processes then I guess21:19
weeb1eI require it for my use case21:19
rbasakNo, people generally don't do that.21:20
weeb1eSo I guess I will have to continue to manually start each application in a screen session after every reboot21:20
rbasakTHey fix the processes to not need to run interactively, so no need for screen.21:20
weeb1eOn 10 different boxes21:20
rbasakOr they wrap the command and add an init job, etc.21:21
weeb1eThe processes are under constant development, and although they support multiple remote interfaces for REPL interaction, they also have an interactive console at command line21:21
weeb1eInteractivity is not the reason I want this configuration however21:21
weeb1eAs I explained, I specifically want to be able to ctrl + c to exit the application, and use "up arrow -> enter" to restart it21:21
weeb1eThe inconvenience of having to type out the entire command line manually to restart the applications is far worse than having to manually start the screen sessions after every reboot21:22
rbasakMake the entire command line shorter.21:22
rbasakOr wrap the screen invocation, with the automatic "start session if session is not already running" thing.21:23
weeb1eIt can only be so short, and it's still an inconvenience21:23
weeb1eThat isn't an option, since on the very rare instance that the application crashes, if it exits the screen session completely, the console output would be lost21:24
rbasakI suppose you could even kludge the history.21:24
rbasakscreen can log the output21:24
weeb1eI am still really surprised bash lacks such a trivial feature21:24
rbasakGo ahead and suggest it to them, then.21:25
rbasakI'm surprised that you feel it's trivial, and aren't wondering what you're doing differently that nobody else has faced this problem before.21:25
weeb1eI guess it's pretty specific to screen, since executing the application using most other methods would be wrapped in a shell21:26
weeb1eI could approach the issue from many angles, but I'll probably just continue manually for now and deal with it later21:27
weeb1eI could even automate the TTY used to spawn screen21:28
qmanweeb1e: requiring such a setup is considered bad design, so there isn't much in terms of hacks to make it work, other than screen21:29
patdk-wkroyk, hmm, no, while seagate calls it enterprise, it's not a real enterprise disk, it's nearline21:30
patdk-wkI have never had a enterprise disk give me the output that normal ide/sata disk do21:30
qmanweeb1e: easy way out here is writing an init script (or just a regular script) that starts your app in screen, so its easy to stop/start/restart and maintain interactivity21:30
patdk-wkbut the *sata enterprise* disks I have do though, do that normal sata format21:30
patdk-wkbut none of my 10krpm or 15krpm disks, have EVER produce that output, but always that other *enterprise* format21:31
RoyKpatdk-wk: nearline or enterprise, it's the same thing21:31
patdk-wknot really21:31
weeb1eqman: That would mean any console output would be lost if the application was terminated badlyt21:31
weeb1e*badly21:31
patdk-wkthey have different hardware in them21:31
RoyKpatdk-wk: what sorts? why would el-cheapo drives report better than expensive drives?21:32
qmanweeb1e: you should make it log properly at the app level, but screen can also log21:32
patdk-wkroyk, no, it's cause of the different firmware21:32
patdk-wkon the cheapo's :) you have to manage the smart checks and tests yourself21:32
patdk-wkon the *enterprise one* it is always doing it's own checks and reporting back21:32
patdk-wkyou don't have to schedule checks21:32
patdk-wkit's just the different ways they do the smart stuff21:33
weeb1eqman: It does, but if it was terminated really badly, say due to a system function or something related to the kernel, that won't necessarily be enough21:33
weeb1eFor applications that require constant development, there is simply no more convenient setup than running in screen21:33
RoyKpatdk-wk: I've done some tests on those 'enterprise drives' as well and the ones I've tested worked with smart tests as well21:33
patdk-wkyes, you can manually do it21:34
patdk-wkand it will ignore or do them21:34
patdk-wkbut it also does them itself21:34
patdk-wkwithout you asking21:34
RoyKpatdk-wk: it's pretty hairy if an enterprise drive can't report simple smart data21:34
RoyKpatdk-wk: what sort of protocol?21:34
RoyKpatdk-wk: or is that something disclosed, only used for smartass systems?21:35
patdk-wkno, it's there in the output21:35
patdk-wkbut it doesn't give you those values your used to21:35
RoyKdoes recent smartmontools support that?21:36
patdk-wkI'm not sure, I haven't played with them in a system that I could use smartmontools on21:36
patdk-wkas I normally shove them on a hardware raid card, or an san system21:37
qmanweeb1e: then make your init script use screen, and tell screen to log21:39
=== arrrghhh is now known as arrrghhhAWAY
=== arrrghhhAWAY is now known as arrrghhh
waltzhey all, i'm looking for a hand with some upstart issues21:47
waltzwhat are the valid job types?21:48
waltzi keep getting an 'invalid job type' error21:48
waltzinitctl: Invalid job class:21:49
weeb1eqman: I ended up just automating the PTY to spawn the application in screen the same way I have been using it manually for years21:49
weeb1eIt gave me something different to do anyway, I've always wanted to automate a PTY app, but never had a good enough use case21:51
weeb1eHas the sudoers file format changed since 11.10?22:17
sarnoldweeb1e: I don't see anything in /usr/share/doc/sudo/{NEWS*,changelog*} files that anything big changed; a ton of little things but nothing along ht elines of "new format for sudoers'22:20
weeb1eI'll do a little more testing, but I seem to be unable to use NOPASSWD on a group or user without breaking the files parsing22:21
weeb1eEven using a Cmnd_Alias does not work :(22:22
weeb1eThis line fails to parse, with or without quotes around the second command:22:24
weeb1eCmnd_Alias PASSWORDLESS_CMDS = /usr/sbin/iftop, ruby /home/admin/process_manager/process_manager.rb22:24
sarnoldweeb1e: do you get any error messages from visudo?22:24
weeb1esarnold: visudo? That sounds visual, and this is a server22:25
sarnoldweeb1e: in the same way that 'vi' is the VIsual editor, compared to ed :)22:25
weeb1eAfter adding that line and attempting to use sudo, it says: >>> /etc/sudoers: syntax error near line 18 <<<\nsudo: parse error in /etc/sudoers near line 18\nsudo: no valid sudoers sources found, quitting\nsudo: unable to initialize policy plugin22:25
weeb1esarnold: Well I tried visudo, and that definitely looks like a safer way that using a second shell to restore the file, but it gives the same line 18 error :P22:27
sarnoldweeb1e: darn. I hoped it would be more verbose about what went wrong :(22:28
sarnoldweeb1e: the best part of visudo is that it prevents you from locking yourself out of sudo access by accident22:28
weeb1eYeah, if my SSH session was lost before I manually restored the file, I would get locked out22:28
weeb1eSo I will be using visudo in future22:28
weeb1eAlthough, in future, this updating will be scripted22:29
sarnoldweeb1e: try giving the full path to ruby?22:29
weeb1eThat is, as soon as somebody can tell me what is wrong with that above line22:29
weeb1esarnold: Surely that shouldn't be necessary?22:30
weeb1eEven ruby scripts use /bin/env instead of an absolute ruby path22:30
weeb1eSystems often have multiple ruby installations22:30
weeb1eAlthough, it would actually be very unsafe without an absolute path22:31
sarnoldweeb1e: I fear the sudoers file :) more specific is probably better...22:32
weeb1esarnold: That does indeed solve the issue22:33
weeb1eAnd fear of it is good22:33
weeb1eBut it is also sometimes necessary22:33
sarnoldwelcome to the cult :)22:33
weeb1eEspecially if you use iftop22:33
weeb1eWhich I believe every server admin should be using22:33
weeb1eMore specifically iftop -B :P22:34
sarnoldhehe, iftop++ -- the things it finds..22:34
weeb1eFirst thing I do when connecting to any box, is start htop and iftop -B, then use a third tab for actually doing anything22:35
=== arrrghhhAWAY is now known as arrrghhh
arrrghhhso, trying btrfs... and I'm getting some weird metrics on df.  so I heard running a newer kernel is a good idea for btrfs... so in my haste waiting for 14.04, I just forced that kernel to install - and now the btrfs drive won't mount22:49
arrrghhhthis is what dmesg says22:49
arrrghhhhttp://hastebin.com/vugepogoci.sm22:49
sarnoldarrrghhh: zfs sometimes gives non-intuitive results to 'df' as well -- compression, deduplication, etc. all kinda make ls vs du vs df give different results than people might be used to22:52
weeb1eSo this is rather odd, using that command added to sudoers manually works fine, but when run inside bash inside screen, it asks for a password22:55
arrrghhhwell available made sense...22:55
arrrghhhbut used / free did not.  345 avail, 207 used 18 free - doesn't make sense22:55
arrrghhhsarnold, but still how do I mount the drive now?  I've never seen an error like this where22:59
arrrghhh'mount' fails because there's not enough space ^^22:59
sarnoldarrrghhh: sorry, no idea there, I haven't spent any time looking at btrfs22:59
weeb1eNot sure what sudo depends on, in order to check users against the sudoers file23:00
weeb1eBut the only thing I can think of, is when screen starts bash, it must remove some environment variable that sudo depends on23:00
arrrghhhsarnold, ok.  I started using it because I thought I could build a RAID 0 "array" which could be built with different sized disks23:07
arrrghhhseemed to work, but maybe not... heh23:08
arrrghhhI managed to mount it ro23:12
arrrghhhbut not sure what happened exactly...23:12
arrrghhhhm.  there's a lot I don't understand about btrfs.  :D23:18
xnoxarrrghhh: that's ok, it hates you too =)))))))) *giggle* </joke>23:19
xnoxarrrghhh: different sized disks + btrfs as raid0 is not that good, as it would constantly would be rebalancing and deduplicating.23:19
xnoxarrrghhh: LVM2 would have been a better choice.23:20
arrrghhhhm.  I didn't need to set these up as RAID 023:21
arrrghhht'was just convenient.  I spose I'll blow them up and go back to ext423:21
xnoxarrrghhh: well LVM2 gives you a pool of storage, from which you can create volumes of any size and resize/snapshot them etc. Or just have one spanning the whole amount.23:22
arrrghhhya, I have my 4tb disk using lvm23:23
xnoxarrrghhh: with btrfs, there is no way to control pools much, thus all drives with btrfs end up in one =/ (unlike lvm2, or e.g. ext4) and then hallarious properties start to dawn on to you with time. Eg. with btrfs your IO throughput and performance will degrade with time, and with fullness.23:23
arrrghhhI'm just not sure that would be the best for 2 SSD's of different size23:23
xnoxarrrghhh: use them as dm-cache for even bigger spinny drives is the best =)23:23
arrrghhhI use the ssd's to try and decrease build times23:24
xnoxarrrghhh: well, I bought 32GB of RAM and build everythin in tmpfs =) that does decrease build times.23:24
xnoxarrrghhh: plus i have fsync disabled and eatmydata enabled.23:24
arrrghhhhah, if only RAM was cheap.  I only have 16gb23:25
xnoxarrrghhh: and builds on btrfs would be slower than xfs or ext4.23:25
weeb1eI can't figure this one out... If anyone knows why running sudo inside GNU Screen stops the sudoers file from being used, please let me know23:25
xnoxespecially a lot of throwaway builds and/or ccache23:25
arrrghhhweeb1e, I use sudo inside of screen all the time... no problems23:25
weeb1earrrghhh: I take it you do not use it in conjunction with a NOPASSWD entry in the sudoers file23:26
weeb1eThe NOPASSWD sudoers entry works fine from a shell under my user, even if I start a new shell with `bash`, but as soon as I start screen from my user, using sudo in that bash shell asks for a password23:27
arrrghhhoh yes I want sudo to prompt for psw23:29
weeb1earrrghhh: NOPASSWD is generally used when you want to run specific binaries with sudo without a password23:29
=== RoyK is now known as m40m
xperiahi all. small question. how do you make it possible to have two cascaded redundant web servers running where the second webserver on machine 2 takes over when the first webserver on machine 1 shutdown ? I have read round robin is no solution for such a case because it does not provide any cascade!23:35
=== m40m is now known as RoyK
weeb1experia: I'd recommend using a third server which will always be up as an nginx reverse proxy, which will monitor each of your upstream servers and route requests to one which is available23:39
xperiaweeb1e: thanks a lot for your rely. highly appreciate it. is there no other solution like having some heart beat exchange between two servers for monitoring and a takeover in case of a emergency?23:42
xperiareply23:42
axiom_1I'm new to ubuntu server, and with that being said, I'm wanting to setup a server to store all my files and also act as a backup server. Would I need to setup a database server or a fileserver?23:49
Patrickdkdepends23:50
Patrickdkmaybe both23:50
Patrickdkbut if your looking at the install screen still, probably none23:50
Patrickdkbut generally storing all your files + backups is not a good idea23:51
Patrickdkas it can't store the backups of all your files it's storing safely23:51
weeb1experia: Are the two servers are different physical locations?23:52
weeb1eIf so, a reverse proxy would not be the correct solution23:52
RoyKbackups are for cowerds - real men trust their drives23:52
xperiaweeb1e: yeah they are on total different physical location all over the world with different ip addresses also.23:53
axiom_1Patrickdk, well for starting out, I'll have 2 hard drives in raid 1 for now23:53
Patrickdkxperia, there is no solution to that, other than anycasted ip space23:53
RoyKreal men run 50-drive systems in raid023:53
Patrickdkwhat does having a raid1 have to do with this?23:53
weeb1experia: Some kind of heart beat based monitoring could work then, although you will likely get false positives from time to time due to routes between the servers going down23:53
Patrickdkraid1 doesn't help provide fileservers or backups23:53
Patrickdkit just provides space23:54
weeb1experia: What most people (including google) do in that situation is, use a roundrobin for the different IPs on your DNS, set the TTL to very low (not more than a few minutes), monitor the servers and when one goes down, script removal of that IP from the DNS23:55
weeb1eIf you use a very low TTL, the DNS update will propagate quickly23:55
Patrickdkthat assumes though, that your website is sessionless23:56
weeb1eIf your session is cookie based, there is no issue23:56
weeb1eIf the session is based on local server storage, that is more complex23:57
Patrickdkif all the session data is inside the cookie23:57
xperiaweeb1e: ahh yeah i have seen this behavior on the google side. i have already tried round robin and it works very well the thing is that it balance the traffic instead to cascade it. but yeah gues manipulating the dns entry in case of a emergency is best solution.23:57
weeb1eSession based cookies are very popular, it's easy to encode and store the users id in the cookie23:57
weeb1experia: You can do the same thing without a round robin if you want23:58
weeb1eIt'll just maximize any downtime23:58
weeb1eYou just leave only the first server as the DNS A record, and swap it with the other one if the first server goes down23:58
weeb1eIt's the only solution in this case23:58
Patrickdkif you need to balance traffic better23:59
Patrickdkyou can always use the same ip address multible times23:59
weeb1eUnless you want to have a third PC which loads an initial page and redirects to an available server23:59
weeb1eThat is also a possibility, if redirects are possible23:59
Patrickdkyou don't need a 3rd pc for that :)23:59
Patrickdkboth of the existing ones can do that23:59
weeb1eNot if one could go down...23:59

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