admin
Comments Off on Adding a new server to a Mongo replica set

Ok, so you have a new mongo server setup and you want to add it to an existing replica set.  Lets just make this easy, we will talk authentication another time.  Assume this time you have your mongo server installed, you have the firewall setup to allow remote connections. edit the mongod.conf file – usually in /etc/mongod.conf make sure it is configured to listen on all interfaces, or the one you want… Make sure you add the same replica set name so that it can join the group. Login to your current primary mongo server execute this command to add it rs.add({“_id” : 3, “host” : “servername:27017”, “tags” : {“dc”: “dcname”}}) you can also add priority and such, but just keeping things simple here. Now the new server will sync the data and then it will be ready to go!

admin
Comments Off on O Coraid, Coraid, wherefor art thou Coraid?

Well, it is sad that coraid has gone… Sadder still that their support is gone. I was working on a coraid for a friend and they had two disks fail at the same time, good old raid 5 doesn’t like that too much.  The new one’s are raid 6, but how to recover data off these raid5 ones?  Old notes to the rescue! First your remove the lun: remove 1 Now you need to recreate the raid but make sure to keep one drive as missing so that it will not initialize the whole array.  (in this case we are leaving dirve 6 as missing and drive 0 as an optional spare – if we want to risk an attempt at a rebuild) make -r 1 raid5 2.1-5 missing 2.7-15 Now you need to online the lun in order to see it on the servers online 1 Now you can […]

admin
Comments Off on Installing Fusion-io/Sandisk ioDrive2 drivers on CentOS7 with LUKS encryption

I was working on a Mongo database server that was going to be running a Fusion-io/Sandisk ioDrive2 card for wicked speed, and also needed to do on disk encryption…fun task.  I am using CentOS7 and ioDrive2 drivers version 3.2.10.  I wanted auto mounting of the space, so I can have the services start on reboot (after putting in the LUKS password). 1. download drivers from https://link.sandisk.com/Home/SoftwareDownload (may need to make account first) (in this case v 3.2.10) 2. # tar xvf fusionio-files-*.tar 3. # uname -r (now check the binary available does it match your kernel? – mine did not) 4. # cd fusionio-files-*/ioDrive2/Linux_centos-7/3.2.10/Software\ Source 5. # rpmbuild –rebuild iomemory-vsl-3.2.10.1509-1.0.el7.centos.src.rpm 6. # cd ~/rpmbuild/RPMS/x86_64/ 7. # yum install iomemory-vsl-3.10.0*.rpm iomemory-vsl-config-3.10.0-*.rpm iomemory-vsl-source-3.2.10*.rpm 8. # cd ~/fusionio-files-*/ioDrive2/Linux_centos-7/3.2.10/Utilities/ 9. # yum install fio*.rpm 10. # yum install lib*.rpm 11. # mkdir /var/lib/mongo 12. # modprobe iomemory-vsl 13. # dmesg (to vierify that the […]

admin
Comments Off on I am now a Certified Ethical Hacker (CEH)

Well, I am not one mention something about myself. I am actually more proud of my family, my wife and kids and their hard work and accomplishments. Today, I took the CEH (Certified Ethical Hacker) exam and passed! I am now officially a Certified Ethical Hacker…oh how funny that sounds. What does that mean? Well, this is off the eccouncil.org website (They created the test): “The definition of an Ethical Hacker is very similar to a Penetration Tester. The Ethical Hacker is an individual who is usually employed with the organization and who can be trusted to undertake an attempt to penetrate networks and/or computer systems using the same methods and techniques as a Hacker.” so… basically I get to hack stuff, and get paid for it. Do you love your job?