[09:04] <lordievader> Good morning.
[11:06] <eahmedshendy> Hi
[11:07] <lordievader> o/
[11:09] <eahmedshendy> When you manager asks you to look at this file /proc/tomcat-pid/limits from this link and asks you to increase all values for our tomcat, so that we need our tomcat to use our system efficiently, I know he does not know about administration very well
[11:09] <eahmedshendy> I am junior
[11:09] <eahmedshendy> How we come to this?
[11:09] <eahmedshendy> We have an issue "Too many opne files"
[11:10] <eahmedshendy> That was a response from tomcat7
[11:10] <lordievader> I don't know Tomcat, but blindly increasing values is allways a bad idea.
[11:11] <lordievader> The too many open files is more likely generated by the kernel. There is a limit on how many files a process may open. Above that it (likely) gets killed.
[11:11] <hateball> it's not a matter of ulimit ?
[11:11] <hateball> non-root users will have a limit, and hopefully tomcat is not running as root
[11:11] <eahmedshendy> The issue finished with this: http://paste.ubuntu.com/13784768/
[11:12] <eahmedshendy> lordievader, hateball: I need to read to be able to answer closer to you
[11:12] <eahmedshendy> What I topic I should read?
[11:13] <lordievader> Usually you need to know what the value means before you start changing it.
[11:13] <eahmedshendy> But after changing the value of /etc/security/limits.conf, cat /proc/tomcat7pid/limits, still have the low values
[11:13] <eahmedshendy> lordievader: yes, I just need to make the move on in testing then I will finish my readings
[11:14] <hateball> eahmedshendy: here is a nice read http://www.jayway.com/2012/02/11/how-to-really-fix-the-too-many-open-files-problem-for-tomcat-in-ubuntu/
[11:14] <hateball> eahmedshendy: adjust ulimit for the user that tomcat runs as
[11:15] <hateball> so if it runs as www, su www and set desired ulimit. the link above shows setting it in the init script
[11:15] <lordievader> Isn't it better to research why that limit is reached in the first place?
[11:15] <eahmedshendy> hateball: I read that link, so you see that It is better to do it like this?
[11:15] <hateball> lordievader: The problem is that it's tomcat/java :p
[11:16] <hateball> hard to get around!
[11:17] <eahmedshendy> lordievader: do you ask me that question? anyway I find that tomcat didn't affected with the changes I did in /proc/tomcat7-pid/limits
[11:18] <lordievader> eahmedshendy: Yes and no. It was more a general remark ;)
[11:19] <eahmedshendy> lordievader: :), I really do not understand what you mean
[11:20] <eahmedshendy> lordievader: I am doing research for that, but I prefer asking the professional about what I need to search for
[11:47] <eahmedshendy> hateball: do you know where to put the "ulimit" lines from the link you gave to me in /etc/init.d/tomcat7
[11:47] <eahmedshendy> http://paste.ubuntu.com/13785212/, http://paste.ubuntu.com/13785225/
[11:47] <eahmedshendy> and Also I tried in /etc/init.d/tomcat7, but with no change
[12:33] <bekks> eahmedshendy: The link he gave you states where to put it in :)
[12:33] <bekks> eahmedshendy: It is: /etc/security/limits.conf
[13:38] <Walex> bekks: note that 'limits.conf' applies at login time, not at dæmon startup time
[13:38] <Walex> bekks: it is quite unlikely that a dæmon startup script would use PAM
[15:26] <zertyuo> hi there
[15:27] <zertyuo> i try to install vsftpd
[15:27] <zertyuo> on my ubuntu server
[15:27] <zertyuo> i would like to know how to restrict access to one of my user on /var/www just only ?
[15:36] <david2> I'm trying to delete a partition that was used for LVM using the ubuntu server installer, but it's saying the partition is in use by the lvm group, and the installer doesn't seem to have fdisk/parted/etc
[15:41]  * CornishPasty = david2
[15:42] <david2> It does appear I fixed it by messing around with pvremove and then rebooting
[15:43] <Wamphyri> is there a way to take / which is currently ext4 and convert it to lvm+ext4
[15:44] <lordievader> Wamphyri: If you have multiple disk, dd.
[15:44] <Wamphyri> single disk
[15:47] <lordievader> Then it will be difficult, not impossible but difficult.
[16:44] <jamespage> hey smoser - any opinion on https://code.launchpad.net/~james-page/simplestreams/multihypervisor/+merge/278127 ?
[16:45] <smoser> i think loong ago i said somethign about that..
[16:45] <smoser> forget what it was.
[16:49] <smoser> jamespage, is 'hypervisor_type' a openstack documented thing ?
[16:49] <jamespage> smoser, it is
[16:49] <smoser> can it be a list ?
[16:49] <smoser> http://docs.openstack.org/cli-reference/content/chapter_cli-glance-property.html
[16:49] <jamespage> smoser, http://docs.openstack.org/cli-reference/content/chapter_cli-glance-property.html
[16:49] <smoser> right.
[16:49] <smoser> it woudlseem limiting for us to say 'qemu' when in all likelyhood that image shoudl run in xen at least
[16:50] <jamespage> smoser, I don't think so but I'll check
[16:50] <jamespage> smoser, yeah that was actually my concern about turning this on by default
[16:53] <rbasak> kickinz1_: could you take bug 1518440 please?
[17:02] <smoser> jamespage, well, i'll put that comment there.
[17:02] <smoser> but thats my only reservation
[17:08] <acmehendel> Can someone provide me with some info on how to set up a streaming video server?  Going up stream and down stream?
[17:08] <Wamphyri> lordievader, difficult sounds interesting
[17:08] <acmehendel> where there is a cam on one end somewhere remotely that streams to another end like a browser?>
[17:08] <Wamphyri> glad you said not imposable lol
[17:46] <lordievader> Wamphyri: You create a secondary partition large enough to hold the root. On that partition you build a pv. Put an lv on there for your root-fs. Dd your root-fs over. Then remove the original root-fs and enlarge the pv in someway. (Ofcourse all of this should be done in a live-cd after making a backup)
[17:46] <Wamphyri> it would all need to be done through a kvm
[17:47] <lordievader> Even better, you can do everything from the host.
[17:47] <lordievader> Assuming you have access to the host.
[18:27] <kickinz1_> rbasak, OK, I'll take it.
[18:51] <rbasak> kickinz1_: thanks!
[19:23] <fuzzywuzzy> Can anyone recommend a simple to use HID for Ubuntu server?
[19:25] <andol> HID, as in a keyboard? :)
[19:42] <fuzzywuzzy> host intrusion detection
[19:42] <fuzzywuzzy> =P
[19:49] <DammitJim> do you guys know the proper way of getting iptable rules to load upon a server reboot?
[19:49] <DammitJim> for some reason the rules I have added aren't getting set if I restart my server
[19:50] <DammitJim> but the bottom line is that it seems that if I add a new rule, I'll have to > my iptables-save to a file?
[19:53] <lordievader> DammitJim: Write a service that restores your iptable rules.
[19:53] <DammitJim> I was reading about iptables-persistent
[19:54] <DammitJim> my confusion is that every time I change my rules, I'm going to have to not only iptables-save, but also do what I described above... is that correct?
[19:55] <lordievader> What did you describe besided iptables-save?
[19:55] <DammitJim> iptables-save > /etc/iptable-rules
[19:55] <DammitJim> I don't know why it feels odd to have to create a service to deal with this
[19:55] <lordievader> For me that is the only thing I have to do to have it saved.
[19:56] <DammitJim> so, you didn't create a service as you had suggested?
[19:56] <lordievader> I did.
[19:56] <DammitJim> are you using iptables-persistent ?
[19:56] <lordievader> It loads ipset and then iptables and ip6tables. No, I do not use iptables-persistent.
[19:57] <DammitJim> yikes
[19:57] <DammitJim> ok, thanks lordievader
[20:18] <fuzzywuzzy> anyone using Apache 2 seen an issue with corrupted .htaccess?
[20:21] <patdk-wk> heh?
[20:21] <patdk-wk> what does one have to do with the other?
[20:26] <genii> fuzzywuzzy: the webserver doesn't write to those files, that would be a security problem
[22:51] <Luke> what do I need to do to ensure the group level permissions are always matching the parent dir on newly created files in that dir?
[22:51] <Luke> i have the dir as "2770" and the "2" bit preserves the group but not the group permissions
[22:52] <Luke> i want all new folders to be 770 and all new files to be 660 when they're created in that dir