/srv/irclogs.ubuntu.com/2014/04/19/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
=== peter is now known as Guest87665
pmatulishallyn: does do-release-upgrade work in recent LXC?02:10
pmatulis(ok, worked for me on Trusty)02:16
hallynpmatulis: yeah, i've used it pretty recently there02:18
arrithanyone ever RAID 0 three drives or see benchmarks for it? i've heard roughly double performance from RAID-0-ing two drives, so would RAID-0-ing three drives give roughly triple the performance?02:30
Guest67771Hi I need to mount an old hdd on Ubuntu 12.04 server. Google some info - but I get an error mount: wrong fs type. I'm using xfce as my desktop. Any chance of some advice please?03:54
sheptardso I've got 3 ssds05:27
sheptardmade a raid5 of them (still rebuilding)05:27
sheptardand I'm trying to mkfs on them, and it's taken 10-15 minutes so far05:28
sheptardany ideas?05:28
tonyyarussosheptard: 1) You haven't said what their capacity is, so it's hard to say if 15 minutes is unreasonable even when healthy, 2) Attempting anything like that before the rebuild is complete is going to take a minor eternity, 3) RAID 5 is probably a poor choice - it usually is.  :P05:32
sheptard120gb05:33
sheptardI blew the raid array away, and tried on just one, mkfs exited almost instantly05:33
arrithprobably the rebuild then05:37
arrithi would think SSDs wouldn't take *that* long to rebuild though05:37
arrithsheptard: i say backup to a spinning platter hdd, and raid 0 those three >:D05:38
sheptardhaha05:38
arrithsheptard: that's what i want to do in this laptop05:40
arrithjust need to order the parts and install. hopefully should be pretty fast05:40
lordievaderGood morning.07:24
dwarderwhat is the proper way to update ubuntu VPS ?08:34
dwardersudo apt-get update ?08:34
dwarderwhat the difference with sudo apt-get dist-upgrade08:34
cfhowlettdwarder https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf08:35
dwardercfhowlett: danke08:38
cfhowlettdwarder de nada08:38
cfhowlettdwarder bitte!08:39
dwardercfhowlett: do i need to restart my VPS after apt-get upgrade08:44
dwarder?08:44
cfhowlettdwarder sorry, no idea what VPS is ...08:45
dwardercfhowlett: virtual private server08:45
cfhowlettdwarder right/NEVER used one, don't know, sorry.08:45
dwardercfhowlett: i.e. vbox and vmware08:45
dwardercfhowlett: do you restart your box after apt-get upgrade08:46
cfhowlettdwarder umm, it can't hurt???08:46
dwardercfhowlett: the question is do i need it?08:46
cfhowlettdwarder I never restart after a dist-upgrade.08:46
Meerkatdwarder, if you got new kernels then, yes. Otherwise no.08:46
dwarderMeerkat: does it tell if i have new kernels?08:47
Meerkatit should display a list of packages that you have to press Y to install.08:47
dwarderMeerkat: so it restarts all the services upon apt-get upgrade , right?08:47
Meerkatno08:47
dwarderMeerkat: it restarted my apache08:48
dwarderMeerkat: not sure about the ssh service08:48
Meerkatdwarder, did you upgrade to a new release of ubuntu server? or simply updated it?08:48
dwarderMeerkat: i did apt-get upgrade08:48
Meerkatdwarder, what does 'lsb_release -r' return?08:51
dwarderMeerkat: 12.0408:52
Meerkatdwarder, to update ubuntu with the latest security and bug fixes you wanna enter: 'sudo apt-get update && sudo apt-get upgrade'08:54
Meerkatupdate will update the list of packages available and upgrade will start to download them. You'll have to press Y when asked, though.08:55
Meerkatdist-upgrade will update ubuntu to a new release (currently 14.04).08:56
cfhowlettMeerkat false.08:56
dwarderMeerkat: https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf08:57
cfhowlettMeerkat https://www.dropbox.com/s/msv95ijbb0uoeb4/Ubuntu%20Reference%20Sheet.pdf08:57
dwardercfhowlett: haha ;)08:57
cfhowlettdwarder good one!08:57
Meerkatcfhowlett, how is it false?08:58
cfhowlettdwarder just for that:   https://www.dropbox.com/s/7sqzo0wip1tlngh/fwunixref.pdf08:58
cfhowlettMeerkat dist-upgrade does NOT upgrade to a new release08:58
cfhowlettMeerkat that would be "sudo do-release-upgrade"08:59
Meerkatcfhowlett, according to your source it will. "apt-get dist-upgrade – upgrade with package replacements; upgrade Ubuntu version"08:59
cfhowlettMeerkat package within the same distro e.g. 12.04 to 12.04.108:59
cfhowlettNOT 12.04 to 14.0408:59
dwardercfhowlett: shoud i do apt-get dist-upgrade09:00
dwardercfhowlett: ?09:00
dwardercfhowlett: if i just want security upgrades09:01
cfhowlettdwarder I do so regularly for maintenance09:01
dwarderwell, not just ,but this is important09:01
dwardercfhowlett: on a production server?09:01
cfhowlettdwarder ah - no.  dist-upgrade will do ALL package upgrades, not security only09:01
cfhowlettdwarder I don't know how to restrict updates to security.  sorry09:03
dwardercfhowlett: you do dist-upgrade on production server?09:03
cfhowlettdwarder desktop ...09:03
dwardercfhowlett: i don't need to restrict. will dist-upgrade do security upgrades, or do i need dist-upgrade for that?09:03
cfhowlettdwarder dist-upgrade will include security in package upgrades09:04
dwardercfhowlett: my question?09:04
dwarder:)09:04
dwarderohh09:04
dwarderi meant09:04
dwardercfhowlett: i don't need to restrict. will 'apt-get upgrade' do security upgrades, or do i need 'apt-get dist-upgrade' for that?09:05
cfhowlettdwarder yes, apt-get DIST-upgrade will include security updates09:05
dwardercfhowlett: not apt-get upgrade?09:06
lordievaderapt-get upgrade should also include security updates, unless the package wants to pull in new dependencies or remove packages.09:06
cfhowlettdwarder ^^^ lordievader has a better grasp than I of the distinctions09:06
dwarderlordievader: thank you09:07
lordievaderapt-get upgrade may only upgrade packages, it may not install new or remove things. apt-get dist-upgrade may pull in new or remove packages.09:07
dwarderwill do apt-get upgrade only then on my production server09:07
lordievaderdwarder: No problem ;)09:07
lordievaderdwarder: Then you won't get kernel updates ;)09:08
dwarderlordievader: i worry about recent heartbleed issue09:09
dwarderlordievader: is it also kernel related?09:09
lordievaderdwarder: That was patched very fast in Ubuntu.09:10
lordievaderdwarder: No, openssl.09:10
dwarderlordievader: should i do apt-get dist-upgrade on a production server?09:10
bekksdwarder: OF course.09:10
bekksdwarder: that wikll not get you a new release but upgrade all packkages within a release.09:11
lordievaderdwarder: Every once in a while.09:11
dwarderbekks: what is 'wikll' ?09:11
dwarderok will do then09:11
bekksdwarder: a typo of "will".09:11
dwarderahh09:11
lordievaderdwarder: I've set it up here that apt-get upgrade is run automatically. With the cron mails I get I see if there are held back packages. Those can be installed with apt-get dist-upgrade.09:12
GeranerIs there an option to let the server automatically check for updates and automatically apply all security updates?09:23
bekksGeraner: you can confugure that using unattended-upgrades09:25
GeranerThanks, will look for that.09:26
Geranerjust found that on the internet http://askubuntu.com/questions/325998/how-to-enable-auto-security-update-in-ubuntu-12-04-server09:27
Geranerwriting also about unattended-upgrades.09:27
Geranerthanks09:27
bekksGeraner: https://help.ubuntu.com/10.04/serverguide/automatic-updates.html09:27
GeranerYea, or this one. since I'm running 12.04 LTS https://help.ubuntu.com/12.04/serverguide/automatic-updates.html09:28
Geranerlooks really easy an straight forward.09:29
Geranergood also that all automatically made updates are logged under /var/log/unattended-upgrades09:29
Geranerso the admin can check later what has been patched.09:30
Geranertrying to install but it tells me that it is already installed but set to manually.09:32
Geranerunattended-upgrades is already the newest version.09:32
Geranerunattended-upgrades set to manually installed.09:32
bekksAnd?09:33
bekksIt is installed already.09:33
Geraneryes, I'm now in the file /etc/apt/apt.conf.d/10periodic09:35
Geranerchecking the settings there.09:35
Geranerdo I need to restart any service after chaning the 10periodic file? Or are the changes recognized automatically and applied?09:39
bekksGeraner: you dont have to restart anything, since it is triggered by /etc/cron.daily/apt09:41
GeranerCool. :)09:42
GeranerI will install apticron as well and set my e-mail address in the /etc/apticron/apticron.conf to get an info every time an update is done.09:44
GeranerSounds like a cool feature. :)09:44
GordioHi.10:00
GordioHow restart uwsgi?10:00
Gordio# apt-get install uwsgi10:01
Gordio… installing ...10:01
Gordiouwsgi start/running, process 1280110:01
Gordiozsh: no such file or directory: /etc/init.d/uwsgi10:02
Gordiocentauri@gordio /var/www/gordio:master>/etc/init.d/uwsgi                    [2]10:02
Gordiozsh: no such file or directory: /etc/init.d/uwsgi10:02
Gordio$ service uwsgi restart - http://pastie.org/private/gdjkymcflkybya9stetbg (it's error?)10:03
bekksGordio: did you look at the package content yet?10:16
GordioHow?10:18
bekksGordio: by looking at packages.ubuntu.com e.g.10:19
Gordiopackages.ubuntu.com don't have valid version.10:20
* Gordio use Ubuntu 14.0410:20
bekksThen where did you get that package from?10:22
Gordiofrome here?10:22
GordioIn packages.ubuntu.com last version I can't find 13.1010:23
GordioI unstall package in ubuntu 14.0410:23
bekkshttp://packages.ubuntu.com/trusty/uwsgi10:23
bekksThere it is.10:23
GordioAnd don't have /etc/init.d/uwsgi (in 13.10 (on packages.ubuntu.com) i see this file)10:24
Gordiohttp://packages.ubuntu.com/trusty/amd64/uwsgi/filelist10:25
Gordiomy system: ls: cannot access /etc/init.d/uwsgi: No such file or directory10:25
GordioHow me check package file-list in system?10:26
GordioLike `equery f pkg_name`?10:26
bekksdpkg-query -L uwsgi10:27
GordioHm. /etc/init.d/uwsgi exist in files-list =\10:29
* Gordio sad10:29
Gordiobekks: thank you.10:31
Gordiorm -rf /* fix all my problems.10:31
bekksnot funny.10:32
GordioBut it's real :)10:35
GordioI restore basic system from image.10:35
Madkisscheers. i am trying to start a libvirt vm on a ubuntu 12.04 system ,and all I get is10:42
Madkisserror: internal error cannot load AppArmor profile 'libvirt-9647a43e-29b9-40f4-b088-f228f6648032'10:42
MadkissI tried uninstalling apparmor because I don't like that stuff anyway, but uninstalling apparmor means uninstalling libvirt10:42
Madkissso how do I get rid of this?10:42
=== Lcawte|Away is now known as Lcawte
Gordiohttp://stackoverflow.com/questions/12069297/create-virtual-machine-using-libvirt-error-related-to-apparmor11:15
GordioMadkiss: ^^^ (maybe this help you: "Replace type='host_device' with type='raw' in the xml definition.")11:15
dwarderi did apt-get dist-upgrade , do i need to reastart my server?11:53
lordievaderdwarder: Depends. Was there a kernel among the updates?11:56
lordievaderIf so, if you want to use it you should restart. (Or do kernel splicing, but I've heard that is rather tricky)11:56
dwarderlordievader: http://pastebin.com/92BGqsad11:57
lordievaderJup, new kernel.11:58
dwarderlordievader: on VPSs how should i restart? will shutdown -r now work?12:00
dwarderlordievader: or should i just power off / power on though the control pannel?12:01
lordievaderdwarder: No idea, I have no experience with VPS'es. If it is kvm-qemu clients are simply able to use 'reboot'.12:01
dwarderlordievader: dist-upgrade    upgraded my 12.04 to 13.0412:06
dwarderlordievader: is this ok?12:06
dwarderlordievader: that is what lsb_release -r shows12:07
dwarderlordievader: reboot worked ok12:07
lordievaderdwarder: That is not possible.12:09
lordievaderapt-get dist-upgrade doesn't do that.12:09
dwarderlordievader: well it does12:09
lordievaderdwarder: No it doesn't.12:09
dwarderhmm12:09
lordievadersudo do-release-upgrade does12:09
dwarderlordievader: maybe i confused myself12:10
dwarderlordievader: i have several vps's12:10
dwarderlordievader: and this one was 13.0412:10
lordievaderdwarder: That is a more logical explanation ;)12:11
dwarderlordievader: ok i now cheched on another box that it is 12.04 , gonna dist-upgrade on it12:12
dwarderlordievader: brb12:14
=== acrocity_ is now known as acrocity
dwarderi am back12:16
dwarder:)12:16
lordievaderWelcome back, dwarder12:18
dwarderlordievader: so it was true, one box was 13.04 :)12:28
dwarderlordievader: the box that was 12.04 stayd 12.0412:28
dwarderlordievader: thank you :)12:28
lordievaderdwarder: No problem ;)12:33
=== sz0 is now known as sz0`
=== sz0` is now known as sz0
=== sz0 is now known as sz0`
RealKillazhi there..14:56
RealKillazI have a question related to chkrootkit...14:56
RealKillazI have server 10.04 running..14:56
RealKillazand when I do o chkrootkit I get the following error: Checking `chkutmp'...                                       *** stack smashing detected ***: ./chkutmp terminated14:57
RealKillazand the following is shown in the messages log: http://paste.ubuntu.com/7284501/14:59
RealKillazShould I worry?14:59
maxbHard to say definitively, especially since chkutmp doesn't even seem to exist in 14.04 which is what I'm running, but yes, I'd be inclined to be a bit worried15:00
maxb10.04 is pretty ancient; I'd consider this an opportunity to reinstall from scratch15:02
pmatulisAison: i could not reproduce your slapd upgrade mess-up15:20
=== chmurifree is now known as chmuri
alaingI'm running ubuntu server on a spare machine at home16:58
alaingi'm having problems with permission with a CMS that I'm using16:58
alaingwhich made me wonder if my configuration is correct16:58
alaingI know my apache server is using user www-data and user group www-data16:58
alaingI've just noticed that my /var/www is displaying my username for both owner and group16:58
alaingis this correct?16:59
alaingshouldn't it be www-data?16:59
alaingmy username is part of www-data group16:59
alaingI've noticed the /var/www/ files and folders mainly have my username:group and some have root:root17:00
alaingdrwxrwxrwx+ 20 thelaings thelaings  4096 Apr 18 20:50 www17:03
alaingwww permissions17:03
bekksLooks wrong.17:05
bekks /var/www should be owned by root:root, as well as /var/www/html/17:06
bekksThe content, as needed, should be owned by www-data:www-data17:06
alaingshould it be 755 root?17:10
alaingi dont have a /var/www/html/17:11
alaingbekks: ^17:11
alaingI did a bit of googling and it seemed to be mixed views about whether it should be root or whether it should be www-data17:12
=== huats_ is now known as huats
Ben___hey,17:17
Ben___how can i install a package on a mount other than my default one that my OS sits on?17:17
bekksalaing: the document root should never be owned by the webserver user. never. that would allow an attacker to change everything - which is mostly unwanted.17:20
shaunoBen___: to clarify, you've a second system mounted on your current one? (eg, mounted from a rescue disk, etc)17:21
=== sz0 is now known as sz0`
Ben___shauno: yes, i mounted another disk17:22
arrithBen___: is there an install on that other disk?17:22
shauno--root= will work for that scenario, but not if you're just trying to install it somewhere it doesn't belong17:22
alaingbekks: yeah that makes sense17:22
Ben___arrith: what do you mean "install" ? i want to install with apt-get17:22
alaingshould it be 755 root?17:22
Ben___i'm trying to install a database17:22
shauno(as an option to dpkg I mean, not apt.  apt won't go far here, but can be used for --download-only to fetch the required packages)17:23
bekksalaing: And in < 14.04 there was a /var/www/html, in 14.04 there isnt. This is because of the configuration changes between Apache 2.2 (< 14.04) and Apache 2.4 (14.04)17:23
arrithdpkg is pretty neat in the stuff it lets you override17:23
Ben___shauno: so i need to install it manually?17:24
arrithused --force-depends recently to test some stuff, worked great17:24
alaingyeah i dont have that17:24
alaingthis cms needs 755 access17:24
shaunoBen___: I'd download it whatever way you feel most comfortable, and use dpkg -i --root=17:24
arrithBen___: you can store the actual database in a different place than the database managing/administration binaries17:25
shaunoyou may be able to change the paths apt uses, but I have no idea how - so I side with the option that makes me look less silly17:25
arrithBen___: when you create the database, after you install it, is when you decide where to put it. you should read a tutorial on making a database17:25
Ben___how did you know i'm creating a database?17:25
bekks"0419 192229 < Ben___> i'm trying to install a database".17:26
bekksWe didnt even need glass orbs.17:26
alaing:-)17:27
alaingbekks so shoudl my /www/ be 755 root:root?17:27
Ben___lol17:27
Ben___i must be drunk17:27
bekksalaing: Yes.17:27
arrith<Ben___> i'm trying to install a database17:27
alaingor just not drunk enough17:27
arrithoh yea17:27
alaingand subfolder/files?17:27
arrithBen___: don't drink and sysadmin17:27
alaingshoudl they be owned by www-data?17:28
Ben___so you mean that i can install my database on the default disk, but let it store its content on my mount?17:28
alaingmy user is part of www-data group17:28
arrithBen___: yes. google guides on like mysql17:28
Ben___its actually CouchDB :)17:28
arrithBen___: same process roughly17:28
Ben___i just thought that it may work better if the db sits in the same disk with the content17:28
arrithBen___: there is no distinction there, the db is the content17:29
arrithBen___: the only thing installed through like apt is the software, not the db datums17:29
arritha db is stored as a file generally17:29
Ben____sorry17:30
Ben____my internet got disconnected17:30
Ben____[20:28] <arrith> Ben___: same process roughly [20:28] <Ben___> i just thought that it may work better if the db sits in the same disk with the content17:30
Ben____this was the last thing i saw..17:31
Ben____can someone copy-paste?17:33
arrith<arrith> Ben___: there is no distinction there, the db is the content17:35
arrith<arrith> Ben___: the only thing installed through like apt is the software, not the db datums17:35
arrith<arrith> a db is stored as a file generally17:35
bekksThe last sentence is not correct in term of a raw device.17:37
Ben____yes i understood that17:42
Ben____arrith:17:42
Ben____but,17:42
Ben____doesn't it matter whether the database binaries sits in the same disk with the database content or not?17:42
alainghow do I chmod 0644 files only?17:42
alaingand 755 folders17:43
Ben____i just assumed it would be faster if it does17:43
=== sz0` is now known as sz0
arrithBen____: actually being on different disks would be faster since it can read/write to both of them at once. different seek positions17:43
arrithBen____: although if your root drive is really slow then that possibly could affect performance, but if that's the case then you should move your root to a RAID or SSD or 10k drive17:44
=== sz0 is now known as sz0`
Ben____cool, thanks!17:46
miseria"vamos por el mundo, odiando y rechazando, aspectos que creemos despreciable de los demas y de uno mismo" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival*18:32
=== sz0` is now known as sz0
=== a1berto_ is now known as a1berto
Aisonpmatulis, nice19:45
Aisonpmatulis, I hope your solution help others not to mess up their system19:45
aslaenhello, I'm trying to get cobbler working on ubuntu 12.04. I've got everything working, but when it tries to connect to ubuntu mirrors I am hitting this bug. https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/100021919:58
uvirtbotLaunchpad bug 1000219 in cobbler "cobbler does not recognise 12.04 server iso" [Medium,Confirmed]19:58
aslaenI tried the workaround of changing $suite to precise but then I get an error saying19:58
aslaen"mirror does not have any suite symlinks" and precise is not a recognized release20:00
aslaenanyone got this working?20:00
bekksaslaen: USe another mirror then.20:02
aslaenbekks: I don't think it's the mirror.. it seems to be a bug in cobbler. I'll try and use this PPA I just found https://launchpad.net/~pdffs/+archive/precise-cobbler20:03
roy_Hi, was upgrading ubuntu on server by ssh an the terminal froze, I managed to ssh back into the server but it was half way through a upgrade how do I get it to carry on with the server upgrade?22:16
Patrickdkyou don't22:19
Patrickdksee if it's still going22:19
Patrickdkif not, just do a normal upgrade22:20
Patrickdkwhy you shouldn't do it over ssh, except when using screen22:20
roy_It was asking me a question about php.ini before it froze22:22
roy_so the upgrade is still active but stuck on that question,22:22
roy_if I try to do normal upgrade it says locked22:23
Aisonhow can I rescue a ubuntu system, that failed during update and now no longer boots?22:44
AisonI mean the kernel fails at boot22:44
AisonI guess I simply have to boot and changeroot into the system and continue the upgrade22:50
timmoeHey guys ^^22:54
timmoeI think you "server guys" know more about software-RAIDs than the "desktop guys".22:55
timmoeI'm planning to install a Ubuntu with SW-RAID on a Notebook with a Core 2 Duo. Will I feel the CPU usage of the RAID or isn't it that dramatic?22:56
jrwreni'm told it is negligable22:58
pmatulisAison: i don't have a solution.  the problem could not be observed23:00
Aisontimmoe, depends on your raid23:01
Aisontimmoe, what kind of raid? 1, 5, 6?23:02
Aisonor how many drives?23:03
timmoeAison: I want a RAID 023:26
timmoeWIth 2 Drives23:26
* bekks doesnt23:32
Aisontimmoe, I don't think raid0 is a good idea23:35
Aisonthe point is, when one drive fails, the whole data of both drives maybe lost23:36
Aisonwhat is the reason for raid0?23:37
timmoeThe harddrives themselves aren't the fastest, so the main reason is speed23:37
Aisonwell, if you need it for caching (against an even slower storage), then you MAY think about raid023:38
Aisontimmoe, what do you plan to store?23:43
timmoeI had to replace the graphics card twice, so I think that if the system breaks, it's most likely that it's because of the graphics card23:43
timmoeI just want to use it as a normal notebook, no business stuff23:43
timmoeMaybe some things for school23:43
Aisonwell, but if your graphic card breaks, you don't loose any data23:44
Aisonso you screw out the hard drives and read them with a 2nd machine23:44
Aisonbut if one of your raid0 drives failes, then you lost all your data23:44
timmoeThat's the reason for a sw raid, because the notebook has a via raid controller in it23:44
timmoebut if the graphic card breaks, i won't replace it another time23:45
Aisonso your data on the notebook is completely unimportant?23:45
Aisonif you use your notebook just as mobile device for browsing and such and you do not store important data, then go with raid023:46
timmoeNot completely, but I can do some backups of the things that are important23:46
Aisonbut back to your question: raid0 requires almost no cpu time23:47
timmoeokay, that sounds great23:47
timmoewhich raid types require cpu time?23:47
Aisoneg. raid5,623:49
timmoeokay, thank you very much23:50

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