heXoughts - arco's braindumps & musings

In my quest for an answer to nature's existence, I wish to be an inter-galactic hitchhiker..

Recovering Encrypted LVM Based Partitions, After Accidentally Overwriting 'Em With 'Fio'!

| Comments

Disclaimer: Logging my experience of a quasi-success in executing $subject.


  • Partitioning scheme: LVM based encrypted partitions
  • Hardware - Lenovo T440p
  • OS (earlier) - Fedora 24 Gnome
  • OS (now) - Fedora 24 KDE

As if there aren’t enough cases already, this one found a grand entrance to the club of royally screwed ups, when it comes to messing up with your disk partitions.

Performance Engineering TILs - Part 1

| Comments

On Scale tests

..on distributed systems, in companies with a global, collaborative and distributed workplace setup

Before running a scale test, make sure to have the following items checked off your list:

  1. Is churn on product integrations, enough to simulate production environment?
  2. During the tests, is the product going to run with defaults? Is this about baselining with defaults or are we going to let the system bleed while increasing throughputs?
  3. Do you have exact expectations noted down prior to automating? (per se, monitoring enough parameters in the right way. This includes Telemetry, Logs and Configurations per iteration.)

Resizing an Xfs Partition on a Thin Provisoned Disk in a RHVM Env

| Comments

My postgres parition was full and I desperately needed to increase its size, in order to report some performance numbers.

I couldn’t afford to loose the data (and my shit). So I followed these steps to safely increase the size of that partition based on xfs, which existed on a logical volume already.

Self help commands and assumptions:

  • disk is /dev/vdb/
  • xfs is mounted on /dev/vg_pg/lv_pg
  • we grew the disk by 20 Gigs
xfs_info /dev/vg_pg/lv_pg -d 64G

#noteToSelf - Fix MariaDB-selinux Related Errors (Fails to Restart After Update)

| Comments


yum -y install MariaDB-devel  gcc gcc-c++ autoconf automake make libtool   zlib zlib-devel openssl-devel
yum install -y MySQL-server
# tried this, didn't work (where /home/native is the directory with mysql database is stored; configurable in my.cnf)
semanage fcontext -a -t mysqld_db_t "/home/native(/.*)?"
restorecon -Rv /home/native/
yum install selinux-policy
audit2allow -a
yum install yum-utils
# then tried this
yum provides sealert
yum install setroubleshoot-server
sealert -a /var/log/audit/audit.log
# this produces alerts from audit.log and provides hints as to what should be executed next..
# so i followed directions..
ausearch -c 'mysqld_safe_hel' --raw | audit2allow -M my-mysqldsafehel
semodule -i my-mysqldsafehel.pp

Satperf: A Satellite Performance Benchmarking and Automation Tool

| Comments

1. Intro

Satperf (link) is a Red Hat Satellite Performance Benchmarking & Automation tool that makes it super easy to quickly setup your own environment with satellite components and start running workloads. It uses ansible playbooks to manage remote execution and has built-in modules for various roles that Satellite Web UI has to offer. These are carried out with the use of hammer commands (read more on Hammer) as an equivalent of Satellite API.

Setting Up Collectd Plugins With Graphite and Grafana

| Comments


Installing collectd could be trivial, although setting up monitoring for continuous time-series metric collection should be simpler. This post is aimed at helping sysadmins setup collectd and connect it to a graphite instance, so that all those metrics could later be viewed from Grafana instance.

Setting Up Your Own Blog Hosted on Github

| Comments

I recently shifted from having a static page as my github.io link to making a blog out of the default .io page for my Github account. I found it pretty cool to be able to push stuff through markdown (although even that formatting is configurable under Rakefile of octopress source code).

So here’s a really short post on how to set it up.

First Post

| Comments

A test post

My intro page has now been moved to /intro

I’ve noted down a list of posts I’ve been waiting to blog about, for a long time now.. Finally I’ve got something better than free version of wordpress to try this out. My older blog was Arcolife’s Digital Sweat and is still active. This one’s a pure work related blog, or atleast, I plan to keep it so, for now.