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

=== veebull_away is now known as veebull
=== solarfly_ is now known as solarfly
tewardis there a way to stop /etc/resolv.conf from getting DHCP dns nameservers added to it?  I'm using /etc/network/interfaces to set a static IP and it's still adding the DHCP-obtained DNS nameserver entries to resolv.conf02:51
=== CripperZ- is now known as cripperz
TJ-teward: see https://help.ubuntu.com/12.04/serverguide/network-configuration.html#name-resolution02:59
=== cripperz is now known as N0DE`
tewardTJ-, that doesn't answer my question03:05
tewardnor does it assist in this case03:05
tewardTJ-, i'm well aware that the file can get overwritten03:05
tewardthe goal is to STOP it from adding the unnecessary nameserver entry to the gateway IP, because it needs to only be able to query 127.0.0.1 (there's a bind9 forwarder going out to 8.8.8.8 for this)03:05
TJ-teward: What is setting the nameserver from DHCP?03:05
tewardTJ-, apparently, based on your article, DHCP client hooks, but does that make sense when in /etc/network/interfaces is explicitly defined as static and not DHCP?03:06
TJ-teward: No, it doesn't. Is there another interface defined as 'dhcp' in 'interfaces' ?03:07
tewardnope03:07
tewardonly entries are lo and eth003:08
tewardand the only dns-nameservers line in there is 127.0.0.103:08
TJ-teward: So what interface is DHCP running on?03:08
TJ-teward: Is the server running Network Manager as well as using 'interfaces' ?03:09
tewarddoes default 12.04.4 server have network manager with it?03:09
tewardoh hello............. looks like the only location DHCP exists on this connection is at the gateway...03:09
teward... I forgot to mention this is a VM inside of VMware, didn't I...?03:10
tewardthe net interface on it does DHCP, but the VM is set for static03:10
tewardunless that's the cause, then i don't know why it's still adding the nameserver entry for the gateway (192.168.186.2, which is the gateway line for the DHCP server on that net interface)03:11
* teward shrugs03:11
tewardlemme test something on that...03:11
TJ-teward: So lets' get this clear. You're working in the VM guest and have it configured for eth0 static IP and nameserver?03:11
tewardcorrect03:11
TJ-teward: It sounds to me as if the VMware host doing DHCP is passing in the resolver to the guest03:11
tewardit might be although i just disabled the DHCP on that net03:12
teward... the heck just shut down the server03:12
tewardo.o03:12
tewardone moment...03:12
TJ-teward: But I don't see how that could happen if you've got a static nameserver defined in 'interfaces'03:12
tewardi wonder if it never took the config03:12
TJ-teward: Is the "/etc/resolv.conf" showing "nameserver 127.0.0.1" or something else?03:12
tewardTJ-, nameserver 192.168.yada.yada  and nameserver 127.0.0.103:13
tewardone sec while i check after a restart03:13
tewardokay, apparently it needed a reboot03:13
* teward shrugs03:13
tewardTJ-, it's no longer showing that after a reboot...03:14
tewardwhich is odd...03:14
* teward shrugs03:14
tewardVM weirdness, I guess03:14
TJ-teward: Did you do an ifdown && ifup on eth0 after editing 'interfaces' ?03:14
tewardmhm03:14
tewardi wonder...03:14
* teward tweaks the net interface again03:14
tewardi dunno... *shrugs*03:16
tewardTJ-, i did do sudo ifdown eth0 && sudo ifup eth0 after editing `/etc/network/interfaces` and it didn't take03:16
tewardnow it seems it's taking the conf changes and keeping it, whether DHCP is on the net or not.03:16
TJ-teward: DHCP won't enter into it, as long as ifup isn't calling dhclient03:17
tewardTJ-, if i'm not mistaken, it should refresh the configuration information when it brings up eth0, no?  (during ifdown && ifup eth0)03:17
TJ-teward: Yes, 'interfaces' is read by ifup03:17
teward'cause it's in there as 'static'.03:18
tewardhttp://paste.ubuntu.com/7801526/ is the /etc/network/interfaces file03:19
TJ-teward: looks correct03:20
tewardbased on that it SHOULDN'T be doing any DHCP hooks, even with ifdown && ifup eth003:21
teward(it's functioning CORRECTLY now that the guest has been rebooted)03:21
Abhijithi. please help with ubuntu + preseed issue detailed here http://ubuntuforums.org/showthread.php?t=2234480&p=13073762#post1307376204:53
Abhijithi. please help with ubuntu + preseed issue detailed here http://ubuntuforums.org/showthread.php?t=2234480&p=13073762#post1307376205:45
pdsmanaged to write a preseed file, wondering how i can pxe boot ubuntu server and point to it07:02
pds|2managed to wwrite a preseed file, wondering how i can pxe boot ubuntu server and point to it07:16
bekksProvide the kernel option preseed/url= ... when booting, e.g.07:25
=== pds|2 is now known as pds
Abhijitpds|2, i am facing issues with preseed ubuntu. details here askubuntu.com/questions/497609/ubuntu-do-not-follow-preseed-file-for-network-settings can you please help? pds07:26
Abhijitbekks, ^07:26
pdsAbhijit: alot of people are having issues with automating the process of installation you are not alone07:27
Abhijitpds, ok. i just thought you might know.07:28
pdsbekks: how do i netboot a ubuntu-server and use a preseed file to automate it07:32
bekkspds: Provide the kernel option preseed/url= ... when booting, e.g.07:32
pdsbekks: i guess i can use a minimal iso but how do i provide the kernel option07:33
bekkspds: add it to the kernel line in your pxe configuration.07:34
pdsbekks: realy now following anymore07:36
Abhijitpds, at grub press tab or e it will show you kernel options at the end write preseed/url etc end press enter07:39
pdsAbhijit: thnx07:40
pdsAbhijit: will try07:40
pdsneed to do something else07:41
Abhijitok07:41
pdsfor now07:41
pdssolving ssl problems :)07:41
Abhijitnp.07:41
maxbAbhijit: You can't preseed network settings in a preseed/url= preseed07:41
maxbBecause the network needs to be configured before the installer can access the URL!07:42
Abhijitmaxb, that was not what i was telling him. that was what bekks was telling him. i was telling him about adding kernel parameters to os while booting07:42
maxbOh, you reposted the question in a way which made it look like you were asking it yourself07:43
Abhijit:-(07:43
maxbAnyway, if interface selection isn't working for you, you probably want to preseed which interface to use07:45
Abhijitmaxb, i even tried to use kickstart instead of preseed, and there manually made it select eth1 and still it asks me to manually select07:46
pdstried kickstarting to failed at mirrors07:46
Abhijitmaxb, i asdo did this in d-i netcfg/choose_interface select eth1 preseed07:47
Abhijitalso*07:47
Abhijitin preseed*07:47
maxbAbhijit: Stop and consider... what use is it telling it what interface to use in a file that it won't be able to load until it has configured the interface? :-)07:47
maxbAs I said, You can't preseed network settings in a preseed/url= preseed07:48
Abhijitmaxb, :-o07:48
Abhijitmaxb, oh. you are confusing again!!07:48
Abhijitmaxb, pds  and I, both are talknig about two different preseed issues!07:49
Abhijitmaxb, that preseed/url at grub issue belongs to pds07:49
Abhijitmaxb, my issue with details here http://askubuntu.com/questions/497609/ubuntu-do-not-follow-preseed-file-for-network-settings07:49
Abhijitkindly help if you can.07:49
maxbYes, I'm answering you, not pds07:49
Abhijitmaxb, did you read the askubuntu question?07:50
maxbyes07:50
Abhijit:-o07:50
Abhijitmaxb, what can i do to solve this?07:50
maxbThere are a variety of ways to set preseed options earlier than preseed/url does, but you probably want to pass them on the kernel command line07:51
Abhijitmaxb, since cobbler has successfully booted ubuntu on that interface, that mean that interface is configured for dhcp server right? that mean the dhcp server has already assigned ip to that interface. so ubuntu should just accept that ip and move on?07:51
=== psivaa-off is now known as psivaa
Abhijitok. let me try setting network option at kernel07:52
maxbThe DHCP server assigned an IP to the preboot PXE client software. Ubuntu doesn't know about that, so has to talk to the DHCP server again07:53
maxbAnd before it tries to talk to the DHCP server, it wants to know which interface on which to do so07:53
Abhijitmaxb, what shall i write at the kernel parameter? --network?07:53
lordievaderSeems a bit impossible to reconfigure the network connection when the os resides on a network file system.07:55
maxbUm, no, kernel parameters never use a -- prefix07:55
Abhijitokey. will check myself.07:56
maxbWhat you actually probably want to do is to use pxelinux's 'IPAPPEND 2' configuration option07:56
Abhijitlordievader, this whole setup works with centos. why not with ubuntu?07:56
Abhijitmaxb, ok. let me dig more into that.07:56
maxbThat will cause pxelinux to pass a hint on the kernel command line which the installer can use to know which interface it was just pxe-booted via07:57
pdsk so download mini iso07:58
Abhijitmaxb, ok07:58
pdsdownloaded ubuntu server iso booted it08:06
pdsasking for languages08:06
pdsdarn it08:08
pdsAbhijit: ok mounted the ubuntu server to a vm now what?08:11
Abhijitpds, at the grub prompt when you boot the os08:11
pdsdirectly ask for installing08:12
Abhijitthere after selecting linux entry with arrow key, then press e and then you type the kernel parameters08:12
Abhijitdirectly asking for installation of what?08:12
pdsso i created a new virtual machine - attached the default ubuntu server iso file to it08:13
pdsbooted it08:13
Abhijitpress shift at boot time then it will show you the grub entries08:13
FrEaKmAn_hi all.. I'm using ubuntu 12.04 as a server and sometimes it just restarts08:17
FrEaKmAn_are there any ways for me to identify what it restarted?08:17
FrEaKmAn_I'm reading last reboot08:17
FrEaKmAn_but is there a way to output the reason for restart?08:17
pdsAbhijit: wait a second do you actually have to install ubuntu to see the grub?08:17
lordievaderFrEaKmAn_: Read the logs.08:18
Abhijitpds, no. thats just press shift.08:18
pdsit's a vm :)08:19
Abhijitstill.08:19
Abhijitinside vm press shift!08:19
pdsshift is already complaining i'm smahing it08:20
Abhijit:-p08:20
FrEaKmAn_lordievader: can you please be more specific? or on which log should I focus08:21
Abhijitpds, then try pressing esc. because grub is not installed, maybe it wont show.08:22
Abhijitpds, http://ubuntuforums.org/showthread.php?t=217924308:22
Abhijitpds, press F6 to enter boot options in ubuntu live cd. are you using live  cd?08:24
pdsdownloaded ubuntu server from http://www.ubuntu.com/download/server and used that in my vm so i'm using a live cd08:26
pdsf6 doesn't seems to register08:26
pdsbrb08:26
Abhijitpds, at the screen where it asks to select language, after that press f608:27
pdsAbhijit: one step closer08:28
Abhijit:-)08:29
pdsAbhijit: now what - pretty new to this stuff :)08:29
Abhijitpress f6!08:29
pdsAbhijit: f6 has been pressed what option do i choose i guess expert mode ?08:29
pdsnvm :)08:30
Abhijitpds,  it will ask you with prompt called "boot" and _____________________________ in front of it. type your kernel parameters there!08:30
pdsBoot Options 'preseed/ubuntu-server.deed vga=788 initrd=/install/initrd.gz quiet--08:31
pdsso i guess i can pressed/ubuntu-server.seed08:32
pdsby preseed/url=<link here>08:32
pdswell url08:32
Abhijitpds, now that part you have to consult with kernel documentation, regarding which option to give.08:32
pdsAbhijit: thnx for the help, asking to much questions just to be 100% sure :)08:34
Abhijitnp.08:34
pdswill send you a little gift soon08:34
* Abhijit losts in imagination of latest mac book air!08:34
pdsnope :p08:35
* Abhijit comes down to ground!08:35
pdsjust some reading material regarding preseed stuff08:35
lordievaderFrEaKmAn_: Syslog, kern, messages, etc. If logs show corruption you probably have hardware errors.08:35
Abhijit:-)08:35
pdsAbhijit: check your query08:36
Abhijitpds, thanks.08:36
pdsyw08:36
pdsfound it: https://help.ubuntu.com/10.04/installation-guide/i386/preseed-using.html08:40
pdswill try it now08:43
punkgeekcan i ecrypting ubuntu like android?08:56
punkgeekno body know?08:58
ashdpunkgeek: exactly what do you mean?09:00
ashdpunkgeek: you can encryp file systems - whole disks - home folders09:01
punkgeeksee, when we settings password on android, we cant delete password without factory reset09:01
punkgeekcan i do this work on ubuntu?09:01
ashdpunkgeek: you can encrypt connections between machines - and between web servers and people09:02
punkgeek(when we forgoting password, we cant delete password without factory reset)09:02
ashdpunkgeek: you can boot into linux in single user mode - so long as the boot loader is not password protected - and the disks are not encriptyed - and reset your password09:02
pdsAbhijit: testing now with Bootoptions preseed=url=<some url here> vga=788 initrd=/install/initrd.gz09:03
ashdpunkgeek: or get a system admin to re-set your password09:03
pdspds: and fail09:03
maxbpds: Not preseed=url=<some url here>, just url=<some url here>09:14
pdsmaxb: just figured that out09:15
=== hxm is now known as Guest92834
pdsmaxb: seems to start but than fail on language09:25
pdswill probably have to provide it manually ?09:25
maxbFail? Or just prompt?09:25
pdsprompt09:25
maxbOK, so that's just the first instance of a value you need to preseed if you want the installation to run non-interactively09:26
pdsmaxb: i know give me a sec09:26
maxbAh, but if you're using url-type preseeding, some questions like language get asked before the network setup by default. You'll want auto=true on the kernel command line to make the installer delay processing language and keyboard settings until after network setup09:27
pdsd-i debain-installer/language string en d-i debain-installer/country string BE d-i debain-installer/local string be_nl.UTF-809:27
pdslet me try once again09:28
pdsgetting closer and closer09:28
pdshere is my seed file / http://dpaste.com/3DEE4Z3 there a lot of commented out becuase it's the first i'm doing this and i'm just testing/ messing around with it :)09:29
cariboujamespage: Any chance to have some eyes on this old MP : https://code.launchpad.net/~louis-bouchard/charms/precise/nova-cloud-controller/lp1313602-multiline-known-hosts09:32
cariboujamespage: (the nova-cloud-controller SSH migration one)09:32
pdsmaxb: still prompting for language09:33
maxbpds: It's 'debian' not 'debain'09:33
pdsbonged up? in seed file09:34
pdsgod damn you dyslexia09:34
Abhijitdebain = debrain = without brain!09:34
pdsAbhijit: sigh09:35
Abhijit;-)09:35
jamespagecaribou, still seeing two test failures09:35
jamespagedue to uid->unit rename09:35
cariboujamespage: ok, let me look at this, I thought I had fixed them09:36
cariboujamespage: sorry about that09:36
jamespagecaribou, np09:37
Chris_hubuhi guys09:39
pdsAbhijit: maxb: getting closer09:42
cariboujamespage: fixed & pushed to bzr09:42
Abhijitpds, deliver!09:42
pdsAbhijit: i'm am it booting installing automatically right now will probably prompt for hostname soon09:45
Abhijityay!09:45
pdsAbhijit: boom hostname09:45
pdsand asking for language hmm09:46
pdsd-i debain-installer/language string en09:47
pdsd-i debain-installer/country string BE09:47
pdsd-i debain-installer/local string be_nl.UTF-809:47
pdshmmm09:47
pdsAbhijit: ding lv up ubuntu administration lv 509:49
Abhijitpds, http://what-if.xkcd.com/13/09:49
pdswill reed when i'm at home09:50
Abhijitpds, good luck. bye.09:57
=== Guest92834 is now known as hxm
makarahi. Is there a better way to route TCP connections than using xinetd?09:59
pdsmaxb: hmmm seems you can't define a root pass10:04
maxbYes you can10:05
maxbOh, wait, maybe that's only in Debian, perhaps Ubuntu doesn't run that part of the installer10:05
pdsmaxb: yeah tried with d-i passwd/root-password10:06
pdsbut that didn't seem to work10:06
maxbDo you really want/need a root passwod?10:09
pdsmaxb: would be usefull10:10
pdsmaxb: but then again if you create your user in the installer10:11
cariboujamespage: thanks very much !10:11
pdsyou can sudo to root10:11
maxbQuite, that's what the Ubuntu install has been set up to encourage10:11
pdsis there a way to pass a post install script that run when the ubuntu server has been preseeded10:12
pdsgo go preseed all the way :)10:21
maxbd-i preseed/late_command string \ preseed_fetch late_command.sh /target/root/late_command.sh; \ in-target /bin/bash /root/late_command.sh10:23
maxb(add the appropriate line breaks)10:23
maxbpreseed_fetch is a helper that gets relative to the URL of the fetched preseed file10:24
=== N0DE` is now known as CripperZ-
jamespagegnuoy, feedback on that logutils MP for you - thanks!10:52
pdsmaxb: go this11:18
pds#d-i preseed/late_command string \11:18
pds#    in-target wget <somefancyurl here/preseed/posinst.sh> -O /root/postinst.sh11:18
pds#    in-target /bin/bash /root/postinst.sh11:18
pdsis there a way to add an extra repo to preseed like epel11:22
maxbUh, Isn't EPEL a Red Hat thing?11:23
maxbIn any case, additional repositories are mentioned in https://help.ubuntu.com/14.04/installation-guide/example-preseed.txt11:24
gnuoyjamespage, thanks for the review. I've updated the mp with your recommendations11:42
MrPPSHey guys, having an issue with what looks like a "circular dependancy" with dpkg - I've pasted output here:  | curl -F 'sprunge=<-' http://sprunge.us11:44
MrPPSoops, sorry11:44
MrPPSPasted output here: http://sprunge.us/cUcM11:44
MrPPSI'm still googling, but if anyone has any advice, I'd appreciate it11:44
histoMrPPS: do you have any ppa's enabled?11:47
MrPPShey histo, no PPA's at all as far as I remember11:47
MrPPShisto: fixed most of it by changing my python symlink back to 2.711:57
MrPPSexcept lsb-release is now broken :(11:57
maxbChanging your python symlink? That sounds like an unwise idea12:02
maxbYeah, you *really* shouldn't mess with the definition of /usr/bin/python, or you tend to break the entire distro-provided Python stack12:03
=== psivaa is now known as psivaa-lunch
=== CripperZ- is now known as cripperz
=== Lcawte|Away is now known as Lcawte
rbasaksmoser: (for a friend) is there an easy way to make cloud-init be very verbose to the console? I can't find a way that is readily documented.13:24
rbasakBut I suspect there is13:25
pdspreseeding rules13:26
ToAruShiroiNekohi13:28
smoserrbasak, /etc/cloud/cloud.cfg.d/05_logging.cfg13:28
ToAruShiroiNekoI am trying to configure network on this new ubuntu server installation13:28
smoserchange handler_consoleHandler to be13:28
ToAruShiroiNekoit seems to fail and I am unsure as to why13:29
ToAruShiroiNekois there a way to order it to configue network automatically? Like in setup?13:29
=== cripperz is now known as N0DE`
smoserrbasak, http://paste.ubuntu.com/7803470/13:30
rbasakThanks, I'll try that.13:31
pdspreseed works however my time settings aren't correct13:35
pdsand clue?13:35
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== hallyn_ is now known as hallyn
=== psivaa-lunch is now known as psivaa
K4kPatrickdk: Hey, you around this morning?14:58
patdk-wkdefently not14:58
K4k:)14:58
K4kI was reading up on corosync a little since we spoke yesterday and I'm running in to a problem setting it up. When I run "crm_mon --one-shot -V" I get a cluster connection failed error... not sure where I went wrong14:59
K4kI was following along with this http://clusterlabs.org/wiki/Debian_Lenny_HowTo14:59
K4kOH! I think I missed a step :P15:01
K4kyup, didn't start pacemaker >_<15:07
patdk-wkwhat ubuntu version?15:10
patdk-wklots of things changed in 14.0415:10
patdk-wkit only took me a few weeks to fix my setup15:10
patdk-wkmainly cause I gave up on it for awhile :)15:10
frank31need help with this please, pastebin here: http://payloge.com/?ref=161215:27
K4kpatdk-wk: I was missing the service {} line in the corosync.conf to start pacemaker. Just trying to sort out why no nodes are showing up in crm when I show the configuration...15:38
patdk-wknot sure, I upgraded mine, that caused a whole lot of issues15:38
patdk-wkI haven't done a new install yet, on that version15:39
lordievaderpds: Are you times off 2 hours?15:43
pdslordievader: yes15:58
raubif I have two interfaces each of them in a different network using distinct dhcp/dns servers, how do I specify the default gateway?15:58
raubAnd nameserver order?15:59
lordievaderpds: That would be utc ;)16:05
pdslordievader: indeed16:05
lordievaderpds: Your timezone is wrong.16:05
pdsweet ik16:05
pdstis fixen e :)16:06
roaksoax4/win 416:09
lordievaderpds: What's in /etc/timezone?16:11
pdsmja had Belgium/Brussels16:12
pdsen moet waarschijnlijk Europe/Brussels zijn :)16:12
lordievaderpds: Jups16:12
pdstada ^^16:12
lordievaderpds: And by the by, this is an English channel.16:12
pdso lol thought i was in ubuntu-nl my bad16:13
=== kickinz1 is now known as kickinz2
=== kickinz1` is now known as kickinz1
=== tgm4883_ is now known as tgm4883
=== jdowdle is now known as jdowdle|away
=== jdowdle|away is now known as jdowdle
=== justizin_ is now known as justizin
=== Chris_hubu is now known as Chris_bbq
zartooshHi I have installed ubuntu 14.04 on my system. I do not see the file /etc/udev/rules.d/70-persistent-net.rules created. Previously running ubuntu 12.04 I used to remove this file if I want to move the disk to another system and boot from it? thx18:51
e^0is anyone having the official ubuntu server book 3rd edition ?18:52
K4kpatdk-wk: Sorry to keep bothering you. Do you have experience with the corosync/pacemaker failback options? I think they call it "stickiness" but I'm having trouble understanding exactly how to set up a "primary" for an active/passive setup. Was hoping you might have done that before and could lend a hand.19:30
patdk-wksetting up a primary is the default19:31
patdk-wksticky means, there is no primary, it stays where it is19:31
K4kOK... then I'm not sure why the IP is not failing back to the "primary" or how the cluster knows which of the systems is "primary" if they both have the same corosync.conf file.19:31
=== alexisb is now known as alexisb_lunch
patdk-wkwhere is your config?19:32
K4k/etc/corosync/corosync.conf. You want me to paste it somewhere for you?19:32
patdk-wkthat IS NOT your config19:32
K4kThen what config do you mean?19:32
patdk-wkyour resources19:33
patdk-wkwhere are your primitive and location commands?19:33
K4kOh, I just set them in the crm console for now. I wasn't even aware they could be in a file...19:33
patdk-wkwho said config file?19:33
K4koh19:33
K4kThen I've set the config options on (live)19:34
K4kif that's what you mean19:34
patdk-wkyes, post it somewhere19:34
K4kk19:34
K4kpatdk-wk: https://gist.github.com/k4k/952115aabee607c96d9419:37
=== Solution-X|AFK is now known as Solution-X
patdk-wkadd:19:42
patdk-wkgroup group-name ClusterIP19:42
patdk-wklocation perfer-node01 group-name 50: node01-domain.org19:43
patdk-wkyou likely want to group19:43
patdk-wkI guess if you only car eabout that one ip, you can go without it19:43
patdk-wkbut atleast I move multible things together19:43
patdk-wkcause htey work together19:44
patdk-wkactually, hmm19:45
patdk-wklocation perfer-node01 group-name 150: node01-domain.org19:45
patdk-wkmight work better19:45
K4kprefer-node01 or perfer-node01?19:46
patdk-wkwhatever you want to call it19:46
K4koh, ok, it's a name. Got it19:46
K4kbrilliant19:47
K4kso... what did that location setting do exactly?19:47
patdk-wklocation name Resource score node19:49
patdk-wkhighest score wins19:49
patdk-wkI am not sure what the default score is, likely 50 or 10019:49
patdk-wkso 150 would mean node1 would ALWAYS be perferred19:49
patdk-wkunless you added scores of that resource to other nodes too19:49
K4kok19:49
K4kright now it's only a two node setup19:49
patdk-wkor, you use -inf: score :)19:49
patdk-wkthat means ONLY this node, EVER19:50
patdk-wklocation l_fence_director01 p_fence_director01 -inf: director0119:50
patdk-wklocation l_fence_director02 p_fence_director02 -inf: director0219:50
K4kI saw that inf: setting in a few examples online but could not get them to work because they were using HAProxy and I'm not and it wasn't clear what they were doing with their settings19:50
patdk-wkit means runs p_fence_director01 on director01 and NEVER on anything else19:51
K4kok19:51
patdk-wkso, not what you want19:51
K4kYeah. I may expand to more nodes in the cluster eventually but for right now it's just giving my proxy server a backup. Thankfully having services always on is not super important here but for some things having a place to failover is nice19:52
K4kThanks for the explaination! I obviously have more documentation to read :)19:53
smoserhallyn, lxc-execute -n my-container /bin/bash20:03
smosershould that work ?20:03
smosera.) container is overlayfs clone20:03
smoserb.) container is not running20:03
smoseri think i've asked this before. i want something that sets everything up for me and then runs he command i provided20:05
hallynsmoser: by "sets everything up" you mean including set up networking using dhcp?  then no.20:13
hallynlxc-execute uses the lxc-init, not upstart.20:13
hallynso what you want is 'lxc-start -n mycontainer; lxc-attach -n mycontainer /bin/bash'20:14
smoserno. thats not really what i wanted.20:16
smoseri didn't want to start it20:16
smoseri just wanted it to set up mounts20:16
smoseri think lxc-start -n t1 -- /bin/bash20:17
smoseris sort  of what i want20:17
smoserwell, except i wanted to do this:20:17
smoser sudo lxc-start --quiet -n t1 -- /bin/bash -s < foo20:17
smoserbut that doenst work.20:17
=== byte__ is now known as byte-
=== Chris_bbq is now known as Chris_hubu
smoserhallyn, essentially this gets me what i wanted21:10
smoserhttp://paste.ubuntu.com/7805632/21:10
=== Lcawte is now known as Lcawte|Away
K4kpatdk-wk: seems like application clustering is a whole other beast... IP clustering is working well now but trying to get apache to work is just unknown exec error after error22:12
cloudmanHi, problems with an update this evening, any ideas whats going on?  http://pastebin.com/Zuxd641s22:16
dasjoecloudman: "gzip: stdout: No space left on device" looks like a pretty good hint at what's going on22:17
cloudmanyeah but why should that happen though suddenly22:18
dasjoecloudman: is your /boot/ on a separate partition? Is that full?22:19
dasjoeClean up some old kernels, then :)22:19
cloudmanwill check but its 500mb but I regulary run apt-get autoremove and clean etc22:20
cloudmancurrently using Linux 3.2.0-58-generic but I can see 59 60 61  63 64 65 & 67 there?22:24
zartooshHi I have installed ubuntu 14.04 on my system. I do not see the file /etc/udev/rules.d/70-persistent-net.rules created. Previously running ubuntu 12.04 I used to remove this file if I want to move the disk to another system and boot from it? thx22:46
sarnoldzartoosh: then you may not need to worry about it :) check for other *persistent* files in that directory22:48
cloudmandasjoe: can I purge multiple kernels?22:50
sarnoldcloudman: yes, just be sure to keep at least two -- the one you're running now and the newest. if that's the same kernel, keep an older one, too, to make sure you always have two :)22:51
cloudmanty22:51
cloudmanI dont get it, the system upgrades to kernel 3.2.0.67.79 but remains at 65 yet the 67 is there??23:14
sarnoldcloudman: have you rebooted since? :)23:16
cloudmanah23:17
cloudmanI thought boot was needed when recompiling stuff23:17
Jeeves_Mosshow do I add a subinterface to my server?23:18
Patrickdkwhat is a subinterface?23:21
Jeeves_Mossto add more than one IP per NIC23:21
Patrickdkno such thing exists23:21
Jeeves_Mosslies!!  it was working before I reinstalled the server!  LOL23:22
Patrickdknot a *subinterface*23:22
Patrickdkyou can setup an additional ip23:22
Patrickdkjust add it in /etc/network/interfaces23:22
sarnoldJeeves_Moss: I think the 'best' way is to add 'up' or 'post-up' commands 'ip link add .. ..' commands to the /etc/network/interfaces file23:22
Patrickdknic:x23:22
Patrickdkor you could use ip addr directly :)23:22
Jeeves_Mossit should be something like init eth0:2, etc23:23
Patrickdkdepends if you want to be able to remove it indivitially or not23:23
Patrickdkyep23:23
Patrickdkyou can either do23:23
Patrickdkauto bond0.423:23
Patrickdkiface bond0.4 inet static23:23
Patrickdkor you can do23:23
Patrickdkup route add -net 224.0.0.0 netmask 240.0.0.0 bond0.423:23
Patrickdkoh opps23:24
Patrickdkauto eth0:423:24
Jeeves_Mossthanks23:24
Patrickdkiface eth0:4 inet static23:24
Patrickdkodd, it cut my label23:25
Patrickdkup route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 label eth0:423:25
Patrickdkthe label is what makes it what you are expecting23:25
Patrickdkwithout the label, it's invisible, but works fine23:25
Patrickdkjust the old depressiated ifconfig doesn't see it23:26
Jeeves_Mosshttps://wiki.debian.org/NetworkConfiguration#Multiple_IP_addresses_on_One_Interface23:28
hallynsmoser: you could also do that using the python api.  but in general that looks useful.  perhaps worth shipping with lxc23:29
smoseryeah, i figured i could do it with the python api, but subprocess and tty allocation is often a pita23:29
smosermaybe not.  but it always seems more complicated in python to do the equalent23:30
=== N0DE` is now known as CripperZ-
=== alexisb_lunch is now known as alexisb
mgriffinif someone asks how to reset mysql root password in this channel, is there an faq response or maybe send to #mysql?23:39
mgriffini have an faq response in #mysql for ubuntu root password reset23:39
mgriffinmysql -u$(awk '$1 ~ /user/ {print $3}' /etc/mysql/debian.cnf | head -1) -p$(awk '$1 ~ /password/ {print $3}' /etc/mysql/debian.cnf | head -1) -e"set password for root@localhost = password('foobar');"23:39
mgriffinjust sharing23:39
mgriffintldr, cat /etc/mysql/debian.cnf and you now have a valid account23:40
Patrickdkthere is none23:40
Patrickdkbut you can attempt to teach it to ubottu23:40
mgriffin!help23:41
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience23:41
mgriffin!mysqlroot is cat /etc/mysql/debian.cnf for a usable account23:43
hallynsmoser: if you were feeling bored, as i'm sure you must be, you could submit htat script to lxc-devel :)  i really like it as far more useful than lxc-execute.23:51
smoserfor the moment: https://gist.github.com/smoser/49444542158f2e5f88f123:52

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