/srv/irclogs.ubuntu.com/2014/09/27/#ubuntu-server.txt

Seanniethanks sarnold. I feel a lot better now.00:03
sarnoldyou're welcome Seannie :) have  a good weekend00:03
lkthomashey guys, if I want to setup nfs server as public share folder, what should I aware for the permission part ?00:10
RiotBlasto__I actually prefer Open Media Vault over Ubuntu for NFS, at least for personal use.00:13
lkthomasRiotBlasto__: we are running single sign on, and we need to do something special on NFS server itself00:14
RiotBlasto__@lkthomas: I haven't setup an nfs in 3 or 4 years so don't remember. NFS servers are usually simple setup and go with minor changes.    If you haven't gone through this yet already, check out the link below. You should be good if you cover everything in it + all the resources linked in there:  https://help.ubuntu.com/community/SettingUpNFSHowTo00:23
=== markthomas is now known as markthomas|away
=== talves is now known as Guest17182
=== Guest15658 is now known as igurd
Phibsis there an elegant way to get the dpkg -l output to show me what repo the package was installed from04:54
lkthomasPhibs: there is something call apt policy..etc, maybe Google it05:27
Phibsyeah, I wanted a single cmd05:28
Phibsfound that though, thanks05:28
lkthomas:)05:38
lordievaderGood morning.07:56
=== Lcawte|Away is now known as Lcawte
zune^hey anyoner who is has used a nis setup on multiple vm's with ubuntu in a home envirement.09:15
Castboundhello, I have Ubuntu 11.04 \n \l , is it possible to upgrade from command line without reimage?09:54
cfhowlett!eolupgrade | Castbound09:55
ubottuCastbound: End-Of-Life is the time when security updates and support for an Ubuntu release stop, see https://wiki.ubuntu.com/Releases for more information. Looking to upgrade from an EOL release? See https://help.ubuntu.com/community/EOLUpgrades09:55
=== talves is now known as Guest13922
=== Lcawte is now known as Lcawte|Away
tiblockHi. When shellshock was discovered, i upgraded and rebooted mine 3 servers, but then second update released, i again installed and rebooted mine servers with online users on it, now i see new update. Do i need repeat it again?14:41
cfhowletttiblock, yes14:42
ThumpxrIs there a way to automount multiple smb:// shares at boot/logon? User/Password protected.14:42
Thumpxrdamn wrong channel14:42
tiblockcfhowlett, can i see test exploit to see how it works for second update?14:43
=== talves is now known as Guest84358
cfhowletttiblock, over my of understanding.  the 2nd patch fixed the shortcomings of the 1st patch, as I understand it.14:44
tiblockcfhowlett, but now 2nd patch hacked too and now heres is 3rd patch. Where i can get exploit for 2nd patch to test it on other linux distros?14:45
cfhowletttiblock, I don't know such things.  sorry.14:45
cfhowletttiblock, ##linux would probably know14:46
tiblockHere is exploit for second patch if somebody need to test http://pastebin.com/2RMmjpCh it will execute "echo date" if it works14:46
tiblock*for first patch14:48
bilde2910Hi! My 14.04 server doesn't want to apt-get upgrade. This is the error I get: http://paste.ubuntu.com/8441170/ - given the "gzip: stdout: No space left on device", here's the output of df: http://paste.ubuntu.com/8441181/ - any help on this? I'm afraid to restart my system in fear that it might not boot.15:50
bilde2910/boot seems to be filled with a lot of old files, but can I delete any of them safely? http://paste.ubuntu.com/8441203/15:53
cfhowlettbilde2910, yes.  sudo apt-get autoremove15:54
cfhowlettbilde2910, that will remove all but the two most recent kernels15:54
bilde2910Thank you, cfhowlett, I will try that15:55
cfhowlettbilde2910, also         sudo apt-get clean will clean out your .cache of downloaded .debs15:55
bilde2910This worked great! Saved my day16:02
bilde2910Thanks16:02
NorlanderAnyone knowledgeable in ubuntu-vm-builder error messages? I don't16:24
Norlanderunderstand why the creation of my VM guest is failing... :S16:24
=== ayr_ton is now known as ayr-ton
=== kriskrop1 is now known as kriskropd
=== dasjoe_ is now known as dasjoe
=== tgm4883_ is now known as tgm4883
=== the_ktosiek is now known as ktosiek
=== Phibs_ is now known as Phibs
iDealzAnyone have any experience with recovering a RAID 5 array with one failed drive using MDADM?  It asks me if I want to boot into a degraded raid environment but whether I hit y/N it seems to do the same thing.  Loads an initramfs prompt21:08
qman__you could try rebuilding from a live environment21:09
qman__it's possible your failed drive contained your /boot21:10
iDealzI should preface this with my skill level; Noob21:10
iDealzshouldnt21:10
iDealzhave os on ssd drive21:10
qman__it's also possible that the bit that tries to ask you what to do is broken21:10
qman__I've had a lot of trouble with it in the past regarding fsck questions21:10
hurinhi everybody21:10
qman__anyway21:11
iDealzdoesnt sound promising21:11
qman__you could boot any live linux environment and use mdadm within it to add a new drive to the array21:11
qman__then let it rebuild21:11
qman__then attempt to reboot21:11
iDealzhow do you boot it live?21:12
qman__a live USB or CD or DVD21:12
qman__like you did when you installed in the first place21:12
iDealzah21:13
qman__only instead of isntalling, drop to a shell, and use mdadm21:14
iDealzthat wont effect data on existing array?21:14
qman__that depends on what you do within that environment21:14
qman__merely booting it won't do a thing21:14
qman__adding a new disk to the array will cause it to rebuild21:14
qman__following the install procedure would overwrite your data with a new install (not what you want)21:15
iDealzdo you need to do anything to remove the broken disk?21:15
qman__if mdadm is complaining at boot time, it's already removed21:15
qman__logically speaking21:15
qman__make sure you have the right one21:16
=== bilde2910 is now known as bilde2910|away
qman__another thing you can try is booting to "recovery mode" from grub21:17
qman__though that may or may not work21:17
qman__the idea here is you need to get a working linux environment from which to run the mdadm tools21:17
iDealzmakes sense, wasnt sure what I could do from the initramfs prompt so I just powered off21:18
qman__can't do much from there21:18
qman__if recovery mode gets you to a root shell, it'll work21:19
qman__if not you'll have to boot from CD/DVD/USB/network/whatever21:19
iDealzty qman21:19
iDealzonce I get to the point of being in the root I'll probably be back with more questions =)21:19
qman__I personally prefer SystemRescueCD for that sort of thing, as the recovery shell in the ubuntu installer is kind of awkward21:20
qman__sure21:20
qman__but the ubuntu one will work21:20
iDealzfrom what I've read you really only get one shot at recovering the array21:20
iDealzso dont want to mess it21:20
iDealz*up21:20
qman__pretty much21:20
qman__RAID 5 is not particularly robust21:21
iDealz4TBs of data lost would be sad to say the least21:21
iDealzmay need to reconsider setup21:21
qman__if you're lucky enough that only one drive failed, it's probably going to recover ok21:21
qman__but the fact that it won't boot isn't promising21:21
iDealzlooks like just one, only shows 3 drives in boot menu21:22
iDealzso one is completely hosed21:22
iDealzprobably why they recommend not using cheap drives for RAID set up21:23
iDealzthink the one that dies was WD Green21:23
qman__the reason desktop drives shouldn't be used in RAID is because, in the event of an error, they can sit there lagging out forever and drop out of the array21:24
qman__drives designed to be used in a RAID will give up after 7 seconds21:24
iDealzahh21:24
qman__the generally low quality doesn't help much either21:24
qman__but that's the specific reason not to do it21:25
iDealzany drive you recommend?21:25
iDealzmy others are WD Reds21:25
qman__I've had good luck with WD reds21:25
qman__they're not fast but they are pretty reliable21:25
qman__and they are designed to be used in RAID21:25
iDealzthis is my first attempt at Linux and a RAID setup so its a bit daunting21:25
iDealzhavent used a command line os since DOS21:26
qman__I don't recommend RAID 5 at all though, it only still works in niche cases21:27
qman__for some good reading on the reasons why, check this out: http://community.spiceworks.com/topic/356486-why-is-raid5-so-bad21:29
iDealzdo you recommend 6?21:29
qman__not particularly21:29
iDealzoh LOL21:29
qman__raid 6 fixes some of the reliability problems of raid 5 at the expense of a drastic performance decrease21:30
=== Lcawte is now known as Lcawte|Away
qman__if you want reasonable performance and reliability, I recommend raid 1021:30
iDealzhow many redundant drives in raid 10?21:30
qman__raid 10 is striping across mirrored pairs21:31
qman__so the result is, the "wrong" two drives can take you out, but the "right" N drives won't21:31
iDealzI've been debating if I even need RAID... it seems like for my purposes it might be more trouble than its worth.  Although I like have some type of redundancy21:34
qman__well, it's important to note that RAID is not backup21:35
qman__RAID is for uptime and convenience21:35
qman__and in some cases performance21:35
qman__if uptime isn't that important to you, it may be better to spend the money on backup drives instead21:36
iDealzsolid advice21:36
iDealzI just use my server for backing up my desktop and laptops and as a media server21:37
iDealzbefore I went RAID just having separate drives worked fine but I got to worry about a drive failure21:38
iDealz*worrying21:38
qman__well, as you saw, all drives will fail eventually21:38
iDealzindeed21:38
qman__a simple two-disk raid-0 for speed, and a couple backup drives you rotate, may be a better solution for you21:39
iDealzhow do you mean rotate?21:39
qman__or even just a few disks without any RAID21:39
qman__rotate, as in, you back up your data to one disk, unplug it and store it elsewhere, and plug in the other one21:40
qman__next week, switch them21:40
qman__repeat21:40
iDealzah21:40
iDealzthis will be the dumbest question you hear all day, but for backing up you need the exactly the same size space right... 1GB to 1GB ratio?21:41
qman__that method only works well for volumes of data that fit on a single external hard drive, though21:41
qman__yes, for everything you want backed up21:41
qman__there are ways of compressing or deduplicating your data to get a little more out of it21:42
qman__but generally that's how it goes21:42
iDealzwell I guess the silver lining is the price of drives are almost back down to reasonable prices21:42
iDealzso I guess I can get a 4TB drive, fix my array backup to the 4 TB drive and then wipe the array drives?21:43
qman__you could do that21:44
qman__I would make sure to do some testing on that new drive before you do the wipe21:44
qman__keep in mind also that as long as it's plugged in, that external drive could just as easily fail, so the idea is to keep a copy turned off21:44
qman__and preferably unplugged, in a box, in some other room or building21:45
iDealzI do have an external 4 TB drive, but it seems like it would take an eternity to move the data from the array to the external drive21:45
iDealzmotherboard doesnt have a USB 3.0 out unfortunately21:46
qman__that will probably take a long time the first time21:46
qman__the good news is that if your data doesn't change a ton day to day, you can use a tool like rsync to simply 'update' the backup copy21:47
qman__which would normally have a lot less data to transfer than a full backup21:47
iDealzyes21:47
iDealzdoesnt change a tremendous amount21:47
iDealzalright, sounds like i have to go dig up my boot disc21:48
iDealzthanks again qman21:48
dasjoeI'd recommend either raid6 or, as an (unsupported but still "production ready") alternative, taking a good look at ZFS21:49
qman__ZFS is very cool, but it has some hefty hardware requirements21:50
dasjoeIt's okay, I'm running it on a laptop from 2010 right now21:51
qman__I would not attempt to run ZFS without server grade hardware top to bottom21:51
=== igurd is now known as Guest73224
hurinhi o/23:03
hurini'm on a ubuntu 14, triyng to set up a virtual host, without success, could anyone give me some hints here ?23:04
hurini already checked my log, without seing anything, whatever i do, i keep getting only my default page,...23:04
tewardhurin: virtual host for..?23:06
hurinmy apache2 server23:06
hurini followed this tutorial => https://help.ubuntu.com/14.04/serverguide/httpd.html23:07
hurinand this one too => http://blog.code4hire.com/2011/03/setting-up-virtual-hosts-for-apache-on-ubuntu-for-local-development/23:08
hurinhere's the configuration of my virtual host (in /etc/apache2/sites-available/test.com.conf ) => <VirtualHost *:80>         ServerAdmin admin@test.com         ServerName test.com         ServerAlias www.test.com         DocumentRoot /var/www/test.com/public_html          LogLevel warn          ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined  </VirtualHost>23:10
hurini'm really lost here, i don't know what i did wrong, i'm usually working on a centOs, and never had any problem with apache or any virtual host, i really don't knwo what to do >___<23:11
hurinwell, i don't know exactly why, but i made a service apache2 stop and a service apache2 start, instead of doing a service apache2 restart as usual, and that's working O_o23:19
hurinok, i think i'm starting to understand what i did wrong, if i let the 000-default.conf, and, even if you make a a2dissite 000-default.conf, you have to make a service apache2 restart (and not a reload), and then, it's working :)23:23
maxbhow odd, that shouldn't be neccessary23:26
=== bilde2910|away is now known as bilde2910

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