Creating a loop device on Linux
Just a quick note so I don't forget in 2 minutes from now.
1. Create a file and specify the size for it - in this example the filename will be moosefs01.img and the size 800GB:
cd /root
truncate -s 800G moosefs01.img
Just a quick note so I don't forget in 2 minutes from now.
cd /root
truncate -s 800G moosefs01.img
Let me make something clear. I'm not a fan of systemd. I'm learning how to use it but I don't like it still.
So check this weirdness out. CentOS 7 comes with the iptables command in a default installation:
cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
Here's …
A few days ago I run into a situation where the ownership of a file would change unexpectedly.
Fearing the worse, I looked around for a Nagios check to ensure that I get alerted if that were to happen but I couldn't find one so I wrote my own.
The …
Hello internet,
A long time ago, I wrote about installing Jruby 1.7.3 on FreeBSD 9.1. Recently I was looking to build a small Sinatra application on CentOS 6.x.
Here's my notes on how I got it done.
I used …
Most folks are familiar with iSCSI. In a nutshell, iSCSI is a way to share a block device over the network. You can format the device and use it as if it were a local disk. But there’s also a way less popular alternative to iSCSI called NBD. Network …
In my last post, I discussed the performance gains on a multicore system when switching from MRI Ruby to Jruby.
However, in that post I used RVM to install Jruby and that in some cases may not be the best choice.
Here's how I installed Jruby in CentOS 6.x …
Hello internet,
Recently I was in a situation where I was asked to migrate a server to a different provider.
I figured this would be trivial so I started with the usual rsync in a screen copy. I checked a few hours later and rsync was frozen.
Further investigation revealed …
Hey folks,
Have you ever found yourself in a situation where you're trying to leave a hosting provider but you want to make sure that while migrating your VPS you leave nothing behind?
How sure are you that your data has been destroyed?
What do you do with a VPS …
Following my last post on how to install and create a database on PostgreSQL 9.3 on CentOS, we’ll take a look on the steps necessary to make PostgreSQL listen to all interfaces and control access to it using the pg_hba.conf.
A long time ago I wrote a post on how to install MySQL on FreeBSD. Lately I've had to work on more PostgreSQL installations so I've been trying to get more familiar with it, so I'm currently working on a series of posts on how to do the basics.
Here …