/srv/irclogs.ubuntu.com/2014/06/07/#ubuntu-uk.txt

=== Lcawte is now known as Lcawte|Away
mappshmmmmmmmmmmmm]07:36
MartijnVdShttp://www.estofex.org/cgi-bin/polygon/showforecast.cgi?text=yes&fcstfile=2014060806_201406062211_1_stormforecast.xml08:49
brobostigonmorning boys and girls.09:29
foobarryfinished my massive lancaster in time for d-day09:56
foobarryhttp://i.imgur.com/YzSsD5e.jpg09:56
foobarryhttp://i.imgur.com/D16flk6.jpg09:59
bigcalmGood morning peeps :)10:07
=== ikonia_ is now known as ikonia
NET||abusequick question, i have an external disk, what's the fastest fs to run for a backup, offloading my backup files from laptop, about 100GB worth, and updating :)14:02
NET||abuseso i want to put ext4 on the disk, but there are options, eg, btrf, xfs, fat32... just being informed from the dropdown on gparted14:03
daftykinsNET||abuse: "KISS"15:13
=== iceflatline is now known as Guest40453
foobarryhilarious bing advert thread on facebook15:52
foobarryread the comments https://www.facebook.com/BingUK/posts/84248684576609315:53
daftykinsthere aren't any15:54
daftykinsrequires login to see perhaps?15:54
foobarrymebbe16:05
bigcalmpopey: ping16:59
popeyyo17:09
bigcalmArgh19:32
penguin42argh?19:32
popeyARGH!19:33
bigcalmdf shows that /tmp is at 100% usage with 1.9GB19:33
bigcalmdu -chs /tmp shows 136K19:33
bigcalmThis is on a client's server19:33
bigcalmWhere /tmp is its own mount19:33
ali1234foobarry: the really hilarious thing is when you go to bingiton.com and click "learn about the study" at the very bottom of the page19:33
penguin42bigcalm: Is it a real /tmp or is it a shmfs?19:33
penguin42bigcalm: One thing that causes that is a deleted file that's still open19:33
bigcalmFrom mount: /dev/mapper/vg_root-lv_tmp on /tmp type ext3 (rw)19:34
bigcalmI see19:34
penguin42nod, ok, so probably a deleted file that's still open19:34
bigcalmHow would I find such a file? :)19:34
penguin42bigcalm: You could try lsof | grep deleted19:35
penguin42bigcalm: Deleted files don't free the space until every user closes them19:35
bigcalmTa19:36
bigcalmWow, that's a lot of open files19:37
bigcalmAll of them by mysql :)19:38
bigcalmScrew it, I'm going to stop mysql and see what breaks19:40
bigcalmThat's what weekends are for, right?19:40
penguin42bigcalm: but you greped for deleted ?19:40
bigcalmpenguin42: yes19:41
bigcalmpenguin42: http://discworld.cuth.eu/dump/deleted.txt19:44
penguin42wth is cuth?19:45
bigcalmIt's me :)19:45
penguin42bigcalm: mysqld     3353        mysql  253u      REG              253,2  1902923776         23 /tmp/ML9IzY9V (deleted)19:45
bigcalmYep19:45
moreatibigcalm: mario?19:45
bigcalmHeh, hiya moreati :)19:46
bigcalmmoreati: how was the barcamp?19:46
penguin42bigcalm: You got some type of dump/backup script that does crazy things like that?19:46
moreatigood thanks19:46
ali1234you can view the file contents through /proc19:46
ali1234if you haven't already restarted it19:46
bigcalmI know what the content is. I'm trying to make things usable again19:47
bigcalmIf I stop mysql, I'm guessing that the /tmp files will become visible or actually get deleted?19:47
ali1234they get deleted yes19:47
ali1234all you really need to do is make mysql close that file19:47
bigcalmKnow how?19:48
ali1234well, what's in the file?19:48
bigcalmOh, um19:48
bigcalmHow do I "view the file contents through /proc"? :)19:48
ali1234look in /proc/3353/fd with root19:49
ali1234that's all the file descriptors opened by mysql, by fd number19:49
ali1234it will be one of those19:49
bigcalmTa19:49
ali1234possibly 23? not sure how to read the output of lsof19:49
ali1234yeah 2319:51
bigcalm /proc/23 doesn't exist19:52
ali1234/proc/3353/fd/2319:52
penguin42bigcalm: do an ls -l /proc/3353/fd  it'll show you what fd is19:52
penguin42bigcalm: for pid 335319:52
bigcalmI seriously don't understand what I'm doing now :)19:55
ali1234it's probably a temporary file for a query19:56
ali1234try 'file /proc/3353/fd/23'19:57
ali1234or hexdump -C19:57
bigcalmali1234: that would make sense as things broke when I tried to run a query to delete a lot of data from a table19:57
ali1234did you do a massive join?19:57
bigcalm# file /proc/3353/fd/2319:57
bigcalm/proc/3353/fd/23: symbolic link to `/data02/mysql/mysql/tables_priv.MYI'19:57
bigcalmNo, I did a massive delete19:58
ali1234hmm that's the wrong fd then19:58
bigcalmThe table in question is currently over 15GB19:58
bigcalmI'm trying to delete some of it so that the server's hdd doesn't get full and break the client's website19:58
ali1234what query did you do?19:59
bigcalmDELETE FROM tb_mass_email_recipient WHERE enu_status = "sent" AND dat_sent < @archive_date;20:00
bigcalmOh, and this before it:20:00
bigcalmSET @archive_date = DATE_SUB(NOW(), INTERVAL 30 DAY);20:00
ali1234hmm...20:00
ali1234well, most likely you'll have to restart mysql20:01
bigcalmI need to sort out the server so that I can start again and set the interval to be 365 days and slowly work towards now20:01
ali1234is that query still running?20:01
bigcalmNo, it broke after 2 hours20:01
ali1234ah... well, that's definitely the problem then20:01
bigcalmAnd now I can't view any table because /tmp is full20:01
bigcalmHere goes20:02
ali1234restart it, and try running the query with a limit clause20:02
ali1234i dunno if that will help, but it might20:02
ali1234i mean maybe it's trying to do the delete atomically20:02
bigcalmI've just issued stop, it's taking a while20:03
bigcalmYay, /tmp is showing 1.8GB free now20:03
bigcalmThere are 2.2 million rows in this table I'm trying to archive20:04
bigcalmGreat, crashed tables. Why am I not surprised?20:08
ali1234well yeah.20:08
bigcalmI may regret having issued REPAIR TABLE from my SQL client20:09
bigcalmNow I know to keep an eye on /tmp20:11
bigcalmWhom ever designed this one table - I wish them harm20:18
ali1234caching outgoing email into a table seems like a common design pattern20:23
ali1234amusing when someone moves the website to another server and doesn't realise it requires a cronjob to actually send the email20:24
bigcalmBut wasn't a job to clear out the cached data once the emails had been sent20:30
ali1234yeah that's low priority :(20:33
bigcalmCrikey, I'm having to run the query at most 10 days at a time. Might even have to drop it to 1 day per query21:38
bigcalmWell, query set21:38
bigcalmI'm also running OPTIMISE TABLE after the delete to free up space21:38
Armag3dd0n24what is the best mobile network for free Internet?21:44
Armag3dd0n24obviously in the UK lol21:44
ali1234bigcalm: maybe try DELETE QUICK, see http://dev.mysql.com/doc/refman/5.0/en/delete.html21:44
ali1234or add a limit clause21:44
bigcalmali1234: will give it a go, ta21:45
ali1234"If you are going to delete many rows from a table, it might be       faster to use DELETE QUICK followed by       OPTIMIZE TABLE. This rebuilds the       index rather than performing many index block merge operations."21:46
bigcalmTa21:46
bigcalmThough it's also about freeing up space on the HDD21:46
ali1234yeah, the optimize should do that21:46
bigcalmAh, still use the optimize then, goodo21:47
ali1234if you just delete a row it would just leave a gap in the table file21:47
ali1234so it has to remove that gap... that's probably the bottleneck if you just use regular delete21:48
bigcalmI have a feeling I should run optimize on some other client's tables :)21:48
bigcalmI see21:48
ali1234i'm uncompressing 120000 tar.bz2 files, each one is about 1MB and contains around 50-100 files... the whole thing is on a XFS filesystem using deadline schedule... guess how long it will take?21:50
bigcalmA while?21:51
penguin42so 120GB of data uncompressed or compressed?21:51
penguin42so ok 120GB of data but dominated by small files - which ain't XFSs strong point mind21:52
penguin42ali1234: I'll toss my bet in at 15mins21:52
ali1234yeah, and deadline optimizes for reading... and it's a 5400 rpm drive21:53
penguin42ohhhhh21:53
ali1234it's been going for over a day and it's done about 30%21:53
penguin42ouch21:53
ali1234i changed it to cfq and it's going much faster now21:54
penguin42wow that big a difference?21:54
ali1234seems about 4x faster21:54
ali1234still freezes up the computer every now and then21:55
penguin42probably when it realises it's filled RAM up with stuff to be written21:55
ali1234yeah... i've got about 8GB in the disk cache and 1GB used on swap21:56
ali1234once i've decompressed it all then i'm going to run findup -m on it and recompress it into larger archives, this should give a 10x decrease in compressed size if my experiments on a small sample are correct21:58
ali1234how do i check the free inode count on xfs?22:00
penguin42xfs is always a bit of a mystery to me22:00
ali1234df -i apparently22:00
ali1234i forgot this drive was xfs...22:00
ali1234should have reformatted it before i started22:00
penguin42oh df -i is just the standard22:01
ali1234hmm. only used 8% of inodes... should be okay22:01
bigcalmI'm considering setting up a rack in my garage once I move house. That said, I don't know where to start in sourcing parts. Should I just buy something from HP/Dell/eBay or build something from scratch?22:10
ali1234you mean the actual rack itself?22:10
ali1234you can build a rack fairly easily, you just need some L-bar and some DIY skills22:11
bigcalmBoth rack and server to go in it22:13
ali1234it depends how fancy you want it really22:13
bigcalmI need a powerful set-up for running multiple VMs at the same time. The HP Proliant microserver I have isn't up to the job.22:14
bigcalmIt'll basically take over the job of my dev server22:15
ali1234you could just purchase one of those ubuntu cloud boxes ;)22:15
shaunoI'm curious why you're aiming for a rack?  they only really make sense where you require the density22:16
ali1234yeah, i'd just go with a tower for this22:16
shaunoalmost any other scenario a tower is going to be more machine for less money22:16
ali1234also i wouldn't put computers in a garage, they will rust22:18
ali1234been there done that22:18
ali1234same goes for cellars22:18
ali1234i'd get a tower, put one of these in it: http://www.scan.co.uk/products/icy-dock-mb996sp-6sb-6-sata-hot-swap-525-bay-backplane-raid-cage and a load of these: http://www.scan.co.uk/products/960gb-crucial-m500-25-sata-iii-6gb-s-slim-7mm-ssd-marvell-500mb-s-read-400mb-s-write-80k-iops22:20
ali1234lots of RAM, and i5 or i722:21
bigcalmI either need a quiet yet powerful machine (my laptop is just about up to the job, but I don't want to have it as my dev server). Or a not so quiet machine that I can stick somewhere out of the way22:21
ali1234that would be quiet if you go i5 ^22:21
ali1234and get lots of fans instead of one huge one22:22
ali1234not silent mind, but you wouldn't hear it from another room22:22
bigcalmThinking about it, the new house has a utility room that is more part of the house than the garage22:22
penguin42ali1234: I have a crucial v4 on my desk with bad sectors and less than a year old22:24
ali1234v4 is like 2 generations old though22:25
penguin42hmm22:27
bigcalmHotel booked for the RAT \o/22:28
bigcalmLooking for bare bones machines, keep being shown ultra compact bricks22:53
bigcalmI'm really out of the game22:54
ali1234don't buy a barebones22:57
ali1234why would you even do that?22:57
ali1234you'll get a crappy loud case with noisy fans and a rubbish PSU if you do that22:57
bigcalmOkay, looking at other things now22:59
bigcalmhttp://www.ebuyer.com/581296-hp-proliant-ml310e-gen8-724160-03522:59
bigcalmThough I have no idea what Xeon CPUs are like22:59
shaunoif your laptop is ordinarily up to the job, xeon's likely to be overkill.  and they rarely hit a nice bang/buck ratio unless you actually need that overkill23:00
bigcalmSo they are generally higher performance than the 4th gen i7 I have in this laptop?23:01
ali1234laptop i7s aren't the same as desktop i7s23:02
penguin42bigcalm: The single socket xeons are very close indeed to the equivalent spec i723:02
shaunonow that I think of it, I'm not actually sure what a xeon's selling point is.  it used to be dollops of cache, but desktop processors have caught up with that pretty well23:03
penguin42I thought it was ECC memory23:10
penguin42although it looks harder to compare these days - no 100% matches to the same model as the xeon23:15
popeyevening all23:31
popeyuh, morning all23:31
penguin42hey Popey23:31
popeyhows tricks?23:31
penguin42yeh ok, yourself?23:31
bigcalmMorning popey23:31
popeytickety boo23:32
bigcalmpopey: hotel booked23:32
popeywhich one?23:32
bigcalmGood question23:32
popeyholiday inn?23:32
bigcalmYes, that one23:32
bigcalm£59 quid with Expedia23:33
bigcalmAnd 8% cash back via quidco23:33
popeyoh nice23:33
popeygood deal23:33
bigcalmYeah, lot cheaper than getting a room in Farnham23:34
popeyinteresting hotel23:34
bigcalmHow so?23:34
popeySo, Queen Victoria used to get the train from London to Farnborough23:34
popeyThen a carriage from the station to that hotel23:34
popeyShe would stay there23:34
bigcalmI've used Holiday Inn else where in the country. Hopefully the quality is standard23:35
bigcalmCool23:35
popeyAnd then inspect the troops on the nearby parade grounds23:35
popeyit has a lot of history23:35
popeywe looked at that place for our wedding reception23:35
bigcalmBig place23:37
bigcalmQuite looking forward to it now23:37
popeyyay23:38
bigcalmNext need to book a hotel for oggcamp23:39
bigcalmWhich might be the Holiday Inn as well :D23:39
bigcalmKnow if anybody has booked hotels yet?23:40
bigcalmI can hear movement up stairs23:41
bigcalmMight be time to go to bed23:41
bigcalmToodles23:41
popeyi have no idea about hotels for oggcamp23:44
dutchiesurely the venue itself is the obvious choice23:51
popeyyeah, bit spendy though23:52
dutchiei wonder if there are any guest houses in wolvercote23:53
dutchiei guess there are the travelodge and the holiday inn right there23:54
* dutchie could probably just stay with postgrad friends in central ox though :D23:55
=== Lcawte is now known as Lcawte|Away

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