Monday, June 5, 2017

Debugging Graphite + collectd

A great way to check to see if collectd is indeed logging to Graphite:
 ngrep -d eno16780032 -d lo ' '  -W byline port 2003

Use -d for as many devices as you want (-d any on CentOS 7 is broken) and the default Carbon port is 2003

Monday, July 18, 2016

RAID Fun

I have an older server that has the following problem:
Personalities : [raid6] [raid5] [raid4] [raid1]
md1 : active raid1 sdf1[0] sde1[1] sdd1[2](F)
      1953511936 blocks [2/2] [UU]

md0 : active raid5 sdc1[2] sdb1[1] sda1[0]
      1953519872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

Note that sdd1 has now failed and that a problem. Also note that sdd was only a 2TB drive. To fix the problem AND upgrade my storage I bought two 5TB drives and immediately slotted one of them into md1 to get the mirror fixed.

Since they are 5TB I can no longer use fdisk and must use parted and set the partition to GPT. Now you may be asking yourself why partition the disk at all if it's just a RAID device. I'm not sure I have a great answer beside it's what I've always done.

The problem I'm currently having is that my newly added sdf is not staying in the array past a reboot. I believe that is because I forgot to mark it as raid disk in the partition (think type fd Linux raid autodetect) although I was pretty sure that was no longer needed since the kernel would scan the disks. I've changed my partition creation to the below and once the rebuild has completed will reboot to verify that it was indeed the problem.

# Add in new disk
dmesg
# VERIFY NEW DISK IS /dev/sdg
parted /dev/sdg -a optimal
mklabel gpt
unit TB
mkpart primary 0.00TB 5.00TB
set 1 raid on
print
quit

Thursday, April 7, 2016

Google Calendar in Thunderbird

I'm a long time shared calendar person. In fact at this point I think I'd die if I didn't have my calendar available. People always laugh when they see my calendar on my computer because of the many blocks and many colors. Almost always, they ask "Is that your work calendar?" and I reply "Nope! Just life in general."

In my life, I have my gmail account which I pretty much use for calendaring and my personal email. I seem to be getting more and more invites to my personal email but I MUST have those on my gmail calendar. Fortunately, in Lightning (the Thunderbird calendar) there is a way!

One of the big puzzle pieces is that you need to add a plugin in order to two-way sync with Google. This plugin can be found here: provider-for-google-calendar. Once you install that it's as simple as File, New, Calendar, Google, your gmail account, selecting your calendars and you now have your Google calendars in your Thunderbird.

Stay tuned for how to ACCEPT an invite to your personal email into your Google calendar.

Friday, March 11, 2016

First post!

I got first post!! Oh..wait..this is my own blog...this is not off to a great start.