/srv/irclogs.ubuntu.com/2014/10/02/#ubuntu-server.txt

=== markthomas is now known as markthomas|away
=== Lcawte is now known as Lcawte|Away
iDealzAnyone have any experience rebuilding broken arrays in Mdadm?  I had a drive completely die and now when I boot it opens in an "initramfs" prompt.  I was told booting from a disc/usb would at least get me to root, but not sure how to safely rebuild array01:47
SachiruHow broken is broken?02:09
SachiruDegraded pr dead?02:09
Sachiru*or02:09
JanCmaybe it didn't start degraded for some reason?02:12
JanCnot automatically02:12
iDealzit is dead02:19
iDealztrying to load degraded array is ineffective02:19
iDealzjust brings me to initramfs prompt02:19
iDealzwhether I select y/N02:19
JanCso, you remove the faulty disk from the array and it still doesn't start if you tell it to start degraded?02:20
iDealzexactly02:20
JanCI hope you have backups...02:21
iDealzI have the OS on a SSD drive so not sure why that is02:21
iDealzI would think it would at least load to root even if it cant mount array02:21
iDealzoh no, that doesnt sound promising02:22
iDealzno backups LOL02:22
JanCwhat if you mount the SSD manually?02:23
iDealzfrom the initramfs prompt?02:23
iDealzI was thinking about trying to boot from a USB to get to root02:24
JanCBTW: did you try to exit from the initramfs prompt?02:24
iDealzdidnt know that was an option02:25
iDealzsaying I'm inexperienced in Ubuntu would be to put it lightly... my first run at Ubuntu and running an array02:26
iDealzwould I just do a change directory command to exit out of initramfs?02:27
JanCIME it will (try to) continue booting02:27
JanCno, you press Ctrl+D or you run exit02:27
JanCsometimes that works if you ended up at an initramfs prompt because of a time-out02:28
iDealzwill give it a shot real quick02:28
JanCobviously, it's not going to solve any RAID problems02:29
SachiruAssuming that this is ubuntu02:30
SachiruTry typing "exit" into the initramfs02:30
SachiruIt's probably dropping into initramfs because it's asking if you want to boot degraded and (being a server, assuming headless) you don't tell it to boot degraded fast enough and the operation times out02:31
iDealzI hit Ctrl+D02:32
iDealzits checking drives now02:32
SachiruUh02:32
SachiruDid you do the disk check02:32
SachiruOr is the disk check automatic02:32
iDealzautomatic02:32
SachiruIf you invoked the disk check CANCEL IT RIGHT THE FUCK NOW02:32
iDealzhow do you cancel?02:32
SachiruIf it's automatic, nevermind, let it run02:33
iDealzLOL wasnt an optino02:33
iDealzjust started checking02:33
SachiruConsidering that it's running I'm thinking that it's just degraded and not broken02:34
iDealzokay that brought me to root02:34
iDealzwas able to login with no issues02:34
SachiruOkay, so you're now at console I assume02:34
iDealzyes02:34
Sachirucan you do this command?02:34
SachiruWait, before executing commands02:35
SachiruWhat drives are on the system that are managed by mdadm?02:35
SachiruWhat is /dev/sd[X] where X are the drives in the RAID?02:35
iDealzthere are 3 2TB drives, sda1, sdb1, sdc1 I believe02:36
SachiruOk.02:36
Sachirufirst step, backup existing superblock02:36
SachiruPlease run the following commands: mdadm --examine /dev/sda1 >> raid.status02:36
Sachirumdadm --examine /dev/sdb1 >> raid.status02:37
Sachiruand mdadm --examine /dev/sdc1 >> raid.status02:37
iDealzunfortunately that is the issue, so I opened up the box to add more memory and low and behold when I rebooted it had a dead drive02:37
SachiruEven so02:37
iDealzso no memory available for backup02:37
JanCiDealz: so the SSD is sdd then?02:37
iDealzsdd isnt on array02:37
SachiruThe SSD is SDD I assume?02:37
iDealz*ssd02:37
SachiruThen save the superblock to wherever the SSD is02:37
SachiruIt's a very small file02:38
SachiruA 4 GB flash drive should be more than enough to save it02:38
iDealzah ok02:38
SachiruHell a 1 GB flash drive is more than enough to save it02:38
iDealzso run the examine commands first?02:38
SachiruNo02:38
JanCa 256 kB flash drive is ... (etc.)  :p02:38
SachiruMount the backup location02:38
SachiruThen run the command so that it saves the raid.status file there02:39
iDealzfollowing the logic, but dont know the commands02:39
iDealz<-- feels like an idiot02:39
Sachirumdadm --examine prints the contents of the metadata stored on the device02:40
Sachiru >> raid.status saves the printed metadata to a file named raid.status which will be saved in the current working directory02:41
SachiruSo what you'd do is mount the backup location (SSD, flash drive, whatever), CD to that backup folder, then run the commands02:41
iDealzokay so the command you gave above is backing up the superblock?02:41
SachiruBacking up to to rebuild the superblock, yes02:41
SachiruBacking up how to rebuild the superblock, yes02:42
iDealzthe SSD should be mounted automatically I would imagine02:42
SachiruYeah, you can backup to that02:42
SachiruThe advantage of backing up how to rebuild the superblock is that you see what commands went into building the superblock in the first place, which gives you an idea of how the system is configured02:42
iDealzokay so good to run mdadm --examine /dev/sdb1 >> raid.status ?02:42
SachiruAs long as your current directory is the SSD, sure,02:43
SachiruHmm.02:43
SachiruI think it would be better if you ran this command instead02:43
iDealzdoes it matter what directory I'm in?02:43
SachiruYes it matters02:43
SachiruBecause the current directory you are in would be the location of where the raid.status fill will be saved when you run that command02:44
SachiruThus if you're in the RAID array you're essentially saving the backup back to the array02:44
JanCyou probably want ">" instead of ">>" ?02:44
SachiruAnyhow, run this command instead: mdadm --examine /dev/sd[abc]1 >> raid.status02:44
SachiruSo that you run the command only once instead of three times02:45
iDealzokay02:45
iDealzand I'm not in the array so should be good there02:45
SachiruOnce it's done please open raid.status and pastebin the contents here02:46
SachiruIs it done?02:50
JanC"pastebin" meaning you put it on a sit like paste.ubuntu.com   :)02:51
iDealzyep, had to restart router... server wasnt connected02:51
SachiruAh02:52
iDealzokay so sda1 isnt connect atm due to it being dead02:56
iDealz*connected02:56
iDealzI get the following response:02:56
iDealzmdadm: no md superblock detected on /dev/sda102:57
iDealzdid it still run the examine?02:57
iDealzlooks like it file is there02:57
iDealzokay will pastebin02:57
iDealzblah, is there a quick way to pastebin from terminal?02:59
Sachiru@iDealz: So /dev/sda1 is the broken drive I assume?03:00
SachiruDo you have a spare drive that you can swap into sda1's slot?03:00
SachiruAs for pastebin from terminal, there's a package for that, sudo apt-get install pastebinit03:01
SachiruThen cat raid.stats | pastebinit03:01
iDealzyes @ the spare drive03:02
iDealzand sda1 is the broken drive03:02
SachiruOr you can also do cat raid.stats | curl -F 'sprunge=<' http://sprunge.us03:02
iDealzhmm it didnt like sudo apt-get install pastebinit03:04
SachiruOk, do the cat to sprunge instead03:04
SachiruTo pastebin from terminal (assuming you have curl installed), you can either do pastebinit or do  <command> | curl -F 'sprunge=<-' http://sprunge.us03:04
iDealzcat: raid.stats: No such file or directory curl: (26) couldn't open file ""03:05
Sachiruraid.status03:06
SachiruNot stats03:06
SachiruDon't worry, we make typos too03:06
iDealzokay now it just says curl: (26) couldn't open file ""03:07
iDealzdid it create the folder but not the file when it got hung up on the "no md superblock on /dev/sda1"?03:08
iDealzperhaps I should've left the drive connected03:09
iDealzhmm so the raid must be running in a degraded capacity as well... I can see this server and the raid contents on my network03:12
iDealzhopefully that is a good sign03:12
SachiruIt should create the file even if it hung up on /dev/sda103:23
SachiruBut to be sure, run it like this: mdadm --examine /dev/sd[bc]1 >> raid.status03:23
SachiruSorry about the gap, had to handle an incoming ticket03:23
SachiruAnyhow, once the superblock is backed up, please do the following:03:27
Sachirua) Insert the new, working disk into the array03:27
Sachirub) Run mdadm --manage /dev/mdN -r /dev/sda1 <-- Replace /dev/mdN with the name of the RAID array03:29
Sachirub) Run mdadm --manage /dev/mdN -a /dev/sda1 <-- Replace /dev/mdN with the name of the RAID array03:29
SachiruSorry, that should be C)03:29
Sachirud) mdadm --stop /dev/mdN <-- Replace /dev/mdN with the name of the RAID array03:29
Sachirue) mdadm --assemble --run --force --update=resync /dev/mdN /dev/sda1 /dev/sdb1 /dev/sdc1 <-- Replace /dev/mdN with the name of the RAID array03:30
iDealzSachiru: sorry had stepped away03:42
SachiruNo problem03:42
iDealzso I did nano raid.status and there is information in the file03:45
iDealzbut will run it with just bc as well03:46
iDealzstill the curl msg when I try to send it to sprunge03:48
iDealzwill hook up the new drive though and move ahead with your directions03:50
iDealzis there a way to double check the name of the array?03:51
iDealzwant to make sure I get this right LOL03:52
SachiruUh03:55
SachiruCould you do "ls -l /dev/ | grep [md]" and paste the output?03:55
SachiruSorry, grep md03:56
SachiruWithout the brackets.03:56
iDealzyep 1 sec03:57
iDealzbrw-rw---- 1 root          disk      9,   0 Oct  1 22:54 md003:58
=== thumper is now known as thumper-afk
SachiruOk04:01
SachiruSo your array is md004:01
SachiruNo other array on the system I assume?04:01
iDealznope04:02
SachiruOk, confirmed, your only array is md004:02
SachiruJust run in sequence, then after step E04:02
SachiruRun "cat /proc/mdstat"04:02
iDealzso replace mdN with md004:02
SachiruThat should show you the progress of the resync04:02
SachiruYep04:02
SachirumdN with md004:02
iDealzalright, need to shut the server down real quick to plug in new drive04:03
SachiruJust so you understand, step detaches sda1 from the raid array, step b attaches the new drive04:03
iDealzdoes it need to be formatted in an fashion before step a?04:03
SachiruI mean step b and step c04:03
SachiruNo04:03
SachiruNo formatting at all04:04
Sachiruthe resync (step e) will do the format.04:04
iDealzokay04:04
SachiruIf you format it beforehand you run the risk of breaking the array even further04:04
iDealzhmm perhaps sda1 is the SSD04:08
SachiruWait04:08
SachiruCan you paste in the contents of raid.status04:09
SachiruHere?04:09
SachiruSo that I can check?04:09
iDealzyes04:09
SachiruPlease do04:09
SachiruDid you already do step b? If so, stop04:09
SachiruAnd paste the contents of raid.status first04:09
SachiruBack in 15 minutes, lunch break04:09
iDealzno, havent started on the steps, just hooked up the new drive04:10
iDealzI'll be here04:10
SachiruOk04:11
SachiruPaste the contents of raid.status here via pastebin, while I eat lunch04:12
iDealzokay04:12
iDealzhttp://pastebin.com/QSHvXKA604:21
SachiruBack. Currently reading04:22
SachiruOkay04:23
SachiruYep, sda is the SSd04:23
iDealzok, to be sure I did "sudo mdadm --examine /dev/sd[abcd]1 >> raid.status"04:23
SachiruSo array members are sdb sdc and sdd04:23
SachiruSo which disk is the broken one?04:23
SachiruCould you please paste the output of "cat /proc/mdstat"?04:25
SachiruAnd "mdadm -D /dev/md0"?04:25
iDealzthis looks like the line that might be important04:26
iDealzoutput was long04:26
iDealzmd0 : active raid5 sdc1[1] sdd1[3]04:26
SachiruPaste complete output into pastebin please04:26
SachiruThen paste the pastebin link here04:26
SachiruIn the future, when I say "paste the output of X here please", I mean "upload the output to pastebin then copy the pastebin link here please"04:27
iDealzhere is the first one in its entirety04:27
iDealzPersonalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] md0 : active raid5 sdc1[1] sdd1[3]       3906763776 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU]04:27
iDealzwasnt that long afterall04:27
SachiruUnless the output is just one or two lines04:27
SachiruOk04:27
SachiruSo it appears that sdb is the broken drive04:27
SachiruAm I correct in assuming that the new unbroken drive is already in?04:27
iDealzyes04:28
SachiruOk, please run these commands in sequence: mdadm --manage /dev/md0 -a /dev/sdb104:29
SachiruJust that command04:29
SachiruWhat's the output?04:29
iDealzhere is from mdadm -D /dev/md004:29
iDealzhttp://pastebin.com/3aSnQ4sV04:29
iDealzwill do the last one now04:29
iDealzmdadm: cannot find /dev/sdb1: No such file or directory04:30
SachiruCould you please paste the output of "ls -l /dev/ | grep sdb"?04:30
iDealz brw-rw---- 1 root          disk      8,  16 Oct  2 00:09 sdb04:31
SachiruOk, please run this command: mdadm --manage /dev/md0 -a /dev/sdb104:35
SachiruSorry04:35
SachiruRemove the 1, should be /dev/sdb04:36
SachiruIs the command done?04:38
iDealzmdadm: added /dev/sdb04:38
iDealzwas the output04:38
SachiruOk04:42
SachiruPlease run the following commands in sequence04:43
iDealzok04:43
Sachirusudo mdadm --stop /dev/md004:43
Sachirusudo mdadm --assemble --run --force --update=resync /dev/md0 /dev/sdb /dev/sdc1 /dev/sdd104:43
SachiruThen paste the output here04:43
iDealzproblem with first command04:43
iDealzmdadm: Cannot get exclusive access to /dev/md0:Perhaps a running process, mounted filesystem or active volume group?04:44
SachiruAh.04:44
SachiruCould you unmount it first please?04:44
iDealzhow do I unmount?04:45
SachiruIs it actively in use?04:45
SachiruStop everything that uses it first04:45
iDealzahh it is in use04:46
iDealzso programs like sabnzb I need to stop prior to unmount?04:47
SachiruBefore stopping? Yes04:47
SachiruYou're not supposed to resync/reassemble a linux-raid drive while it is in use.04:47
SachiruThat's why I like ZFS so much04:47
iDealzhmm04:48
iDealzso I have a number of programs that start on boot04:48
iDealzI believe they all reside on the SSD and some write to the array04:49
SachiruCould you please paste the output of "cat /proc/mdstat"?04:50
SachiruAnd "mdadm --misc --detail /dev/md0"04:50
iDealz Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] md0 : active raid5 sdb[4] sdc1[1] sdd1[3]       3906763776 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU]       [>....................]  recovery =  3.6% (70843128/1953381888) finish=325.1min speed=96500K/sec  unused devices: <none>04:51
iDealzhttp://pastebin.com/vLC5pMy004:52
iDealzI'm somewhat at a loss on how to stop the programs though... sabnzbd was running and I paused it through its web portal04:53
SachiruAh good04:53
SachiruNo need to stop the programs04:53
SachiruIt's starting to do the rebuild04:53
iDealzokay04:53
SachiruIt should be done in about 5 to 6 hours04:53
iDealzthats it?04:53
SachiruCongratulations, you just fixed your first degraded RAID array!04:54
iDealzLOL you just fixed my degraded RAID array.  Thank you so very much Sachiru04:54
SachiruNo problem04:54
SachiruOne last recommendation04:54
iDealzyes?04:54
SachiruAfter 24 hours and during times of low to no usage04:54
Sachirurun a scrub on the array04:55
SachiruTo fully check the data on all drives04:55
SachiruJust to be sure.04:55
iDealzis running a scrub fairly simple?04:55
SachiruYes04:55
iDealzI'm sure I can google and find the commands I dont want to take up any more of your time04:55
SachiruIt's simply a matter of running "echo check > /sys/block/md0/md/sync_action"04:55
SachiruIt will be quite I/O intensive however and you should expect some slowdown while running the scrub, so schedule it for off-peak hours04:56
SachiruIt should also take around 5-6 hours to complete.04:56
iDealzokay, will start it before bed04:56
SachiruIf you're in the middle of a scrub and need to abort it, run "echo idle > /sys/block/md0/md/sync_action"04:56
SachiruAfter running the scrub you can do "cat /sys/block/md0/md/mismatch_cnt". That should show how many errors were detected and fixed by the scrub04:57
SachiruHave fun with your server! I accept paypal.04:58
iDealzThanks again Sachiru! and while you were likely kidding would be more than happy to paypal you a little token for your time05:00
SachiruNah it's cool05:00
iDealzLINUX guru and a standup guy05:01
iDealzthanks!05:01
iDealznow for sleep05:02
JanCsend him a postcard  ;)05:03
* JanC remembers back in the late 1980s / early 1990s some software was distributed as "postcardware"; you had to send the author a postcard of your town/area to be licensed to use it :p05:05
JanC(I bet most users didn't, but the author still got a huge postcard collection)05:07
ApplesInArrays1That sounds pretty cool05:34
=== kickinz1|afk is now known as kickinz1
lordievaderGood morning.06:23
eagles0513875hey all09:07
eagles0513875lordievader: hey09:07
=== thumper-afk is now known as thumper
schrodingerlo I'm looking for help with Landscape alerts. I looked at a landscape server today and it had a misconfigured MTA. The mailq was 0 but fixing the MTA caused >1000 emails to be sent to a ticketing system. It just never seemed to run out of steam. Everytime the MTA is started Landscape just keeps sending piles of emails all alerting the same thing.10:19
schrodingerIs this expected or is there an alerts queue I could acknowledge or clear in Landscape?10:19
RovanionWhen trying to install jenkins with apt-get I get the response that there is no candidate for that package. Is it not packaged for 14.04?10:31
=== Lcawte|Away is now known as Lcawte
pmatulismorning11:07
rbasakRovanion: yes, it looks like jenkins was packaged in 12.04 only.11:13
=== Lcawte is now known as Lcawte|Away
coreycbzul, jamespage: heat's out and I'm starting on it12:30
zulcoreycb:  cinder is out as well12:30
coreycbzul, k12:30
coreycbzul, cinder is done, jamespage did that12:30
zulcoreycb:  k12:31
zulcoreycb/jamespage: the tools/config/generate_config works ok?12:33
coreycbzul, yep, seems to12:33
=== Adri2000 is now known as Guest10811
=== Guest10811 is now known as Adri2000
Valduarehows it going guys14:45
Valduareshellshock a problem ?14:45
rbasakValduare: all the updates were promptly released by the security team. I'm not aware of any issue.14:46
Valduareok14:47
coreycbjamespage, were you doing anything with  getting a newer version of python-eventlet?14:49
jamespagecoreycb, I was trying to avoid doing that - the diff is 25k for the 0.13 -> 0.15.214:49
coreycbjamespage, ah right I recall you saying that14:49
jdstrandValduare: just apply your security updates like normal14:51
Valduareok14:53
ValduareI also use some smoothwall virt routers14:54
Valduarebut no patch on them yet….14:54
Valduarewhat does that mean for me14:54
coreycbjamespage, heat wants hacking>=0.8.0,<0.9 and 0.9.2 is in utopic14:58
coreycbzul ^14:58
zulcoreycb: patch the test-requirements.txt then14:59
coreycbzul, ok15:00
coreycbzul, jamespage: heat is ready for review juno https://code.launchpad.net/~corey.bryant/heat/2014.2-rc1/+merge/23691215:17
zulcoreycb:  you have merge conflicts15:17
coreycbzul, doh, fixing15:19
jamespagecoreycb, retarget that to /juno methings15:19
coreycbzul, this should be better- https://code.launchpad.net/~corey.bryant/heat/2014.2-rc1/+merge/23691615:25
zulcoreycb: + libpython2.7-stdlib ??15:28
coreycbzul, that's for argparse15:29
zuloh no you dont want argparse15:29
zuldoko will shoot you15:29
coreycbzul, heh -- ok15:30
=== markthomas|away is now known as markthomas
coreycbzul, heat's ready for re-review16:09
zulcoreycb:  k16:12
derfdref2Am I wrong in thinking that if bridge_stp is off in an /etc/networking/interfaces bridge stanza, there's no point in having _fd, _hello, _maxage etc. lines?16:53
=== donspaulding_ is now known as donspaulding
WodgeyDPlease help with a RAID issue (this is not an unubtu question but I am running Server 14.04)17:48
WodgeyDI have 4 ssd's in my server connected to 2 x 2port raid cards. I am 90% sure that I have set BOTH raid cards to see their 2 drives as a striped array, however my server see's 1 array and 2 separate drives.17:48
WodgeyD<<<--- PICNIC17:53
=== kriskrop1 is now known as kriskropd
=== bilde2910 is now known as bilde2910|away
=== markthomas is now known as markthomas|away
=== darkness is now known as Guest91880
=== mattgrif_ is now known as mattgriffin
=== mattgrif_ is now known as mattgriffin
=== kickinz1 is now known as kickinz1|afk
Phibsanyone runningt trusty using the official postgres apt repo?19:35
=== a1berto_ is now known as a1berto
=== Lcawte|Away is now known as Lcawte
=== kickinz1|afk is now known as kickinz1
=== kickinz1 is now known as kickinz1|afk
=== markthomas|away is now known as markthomas
=== krtaylor is now known as krtaylor_away
CodeVentWhen I boot my local server i am greeted with this message.  Incrementally starting RAID arrays  mdadm: CREATE user root not found  mdadm: CREATE group disk not found  Incrementally started RAID arrays. I have booted on live Debian mounted the raid insured it is still working and it is. Tried installing grub over again but it is missing the partition  table so it never installs. What should I do. There are 5 hdd in raid0 on22:49
voidstarCodeVent: if it doesnt have a partition table, you need to give it one22:52
voidstarassuming there isn't one already there that is broken22:52
voidstarCodeVent: man fdisk22:53
CodeVentwhat happens to the old data or old table?22:54
voidstar100% data loss22:55
voidstarfor the data and table22:56
CodeVentforgive my ignorance, if i can mount the raid, why do i need a new table?22:57
voidstarwith the live image correct?22:57
CodeVentyes22:58
voidstarand I assume you attempted the grub install with that right?22:58
CodeVentyes, it could not find the superblock? i can boot up shortly and say exactly whats wrong in a min22:59
voidstarthat information would be useful23:00
ApplesInArrays1Simplest way to mitigate denial-of-service attacks? Like AB?23:00
sarnoldApplesInArrays1: ask your ISP to block worst offenders at ingress and talk with packet sources to get them squelched23:02
ApplesInArrays1Sure23:03
ApplesInArrays1Here's another one:23:03
ApplesInArrays1Sometimes my MySQL goes offline and I have to login to restart it. Best way to deal with it?23:03
sarnoldanything in the logs say why it failed?23:04
ApplesInArrays1SegFault23:04
sarnoldinteresting; check dmesg for other segfaults, disk errors, etc23:05
ApplesInArrays1it has also failed due to AB testing before23:05
sarnolddoes it die on specific tasks?23:05
ApplesInArrays1for the segfault, I couldn't figure out why and I investigated23:05
ApplesInArrays1I tried to reproduce it, but couldn't23:05
ApplesInArrays1I had someone else look at the logs, they couldn't tell either.23:05
ApplesInArrays1Anyways, i'm interested in a way of having mysql 'revive' by itself.23:06
sarnolddang :/23:06
sarnoldmaybe install mcelog, you might find mahcine check exceptions getting logged..23:06
ApplesInArrays1It might be a band-aid, but it'd help out immensely with what I"m doing right now23:06
sarnoldmaybe run memtest86+ or other memory stressors...23:06
ApplesInArrays1i'm interested in a way of having mysql 'revive' by itself.23:06
sarnoldApplesInArrays1: yeah, makes sense, that might even make it easier to track down what specifically killed it23:07
ApplesInArrays1Alright, I can shut it down by AB testing with another machine.23:07
ApplesInArrays1and being offline until I wake up and figuring out what's wrong isn't really the best.23:07
ApplesInArrays1Is there a way to revive MySQL if it's not running?23:07
sarnoldApplesInArrays1: this is where service monitoring systems like runit can help, but you could script together something like a "while true ; do sleep 10 ; service mysql status | something && /etc/init.d/mysql restart  ; done23:08
ApplesInArrays1Sounds like a script is the way to go. thanks23:10
sarnoldgood luck :)23:10
ApplesInArrays1while true; do sleep 60; service mysql status | service mysql restart23:12
ApplesInArrays1; . Would that work?23:12
ApplesInArrays1service mysql status returns "mysql stop/waiting'23:13
sarnoldApplesInArrays1: no, you need to inspect the output of service mysql status to see if it is still running or dead; or, if the service mysql status output doesn't know when it dies, find something better for determining when mysql is alive or dead. (nagios is likely to have a mysql monitoring script available that you can steal)23:13
ApplesInArrays1mysql start/running, process 1104 = on. mysql stop/waiting = off23:14
ApplesInArrays1Ahh, I see23:14
sarnold.. just so long as it always -knows- when mysql has unexpectedly died. it probably does, but that might not always have been true..23:15
CodeVentvoidstar:23:16
CodeVent root@debian:/# grub-install /dev/md12823:16
CodeVentInstalling for i386-pc platform.23:16
CodeVentgrub-install: warning: File system `ext2' doesn't support embedding.23:16
CodeVentgrub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..23:16
CodeVentgrub-install: error: will not proceed with blocklists.23:16
ApplesInArrays1How would I go about sending 'service mysql start' every 5 minutes through bash?23:19
sarnoldApplesInArrays1: if it came to that, /etc/crontab23:19
cleptoim having issues with my samba setup on my headless file server. i had to change routers and now samba isnt working. nothing changed other then the hardware of the router. the configs are the same, heck even the internal ip's are the same. i have a pastebin of the testparm command could anyone help me figure out this issue? http://pastebin.com/v8D7wsx323:20
ApplesInArrays1I just typed that, now I'm stuck23:21
ApplesInArrays1user:root@scrapy2:/etc# crontab23:21
voidstarCodeVent: http://askubuntu.com/questions/420778/i-need-step-by-step-guidence-to-recover-grub23:21
voidstarfirst result on google23:21
voidstarmy search query was "ext2 ubuntu error: will not proceed with blocklists"23:22
sarnoldApplesInArrays1: try ^C23:22
sarnoldApplesInArrays1: if that doesn't work, try ^D23:23
CodeVentyes, I have followed this too23:23
ApplesInArrays1^C works for some reason. Strange.23:23
voidstarwhat is the output of fsck of that device?23:24
sarnoldApplesInArrays1: good good :) first, run "man 5 crontab", and then edit your /etc/crontab file :) hehe23:24
ApplesInArrays1*/15 * * * * /bin/bash /etc/cron.d/clear-mixtape-dir.sh 23:24
ApplesInArrays1I can follow this template.23:24
ApplesInArrays1I'd save "service mysql start" in file (/etc/cron.d/clear-mixtape-dir.sh )23:25
sarnoldoh, /etc/cron.d/ looks handy23:25
CodeVentWARNING: Re-reading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8)  Syncing disks.23:25
sarnolddo that instead, yes :) ignore /etc/crontab23:25
CodeVentwhen I reboot same error.23:25
ApplesInArrays1I also have a directory i should clear out every day23:25
ApplesInArrays1/var/web/html/img23:26
ApplesInArrays1i could use bash to clean out that folder once a day, yeah?23:26
sarnoldApplesInArrays1: yeah23:26
=== trifort_ is now known as trifort
=== Lcawte is now known as Lcawte|Away

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