misterx.org
MisterX Tech » Blog Archive » Getting NBD (Network Block Device) Back in RHEL 7.x, CentOS 7.x, RHEL 6.x and CentOS 6.x
http://www.misterx.org/2013/03/05/getting-nbd-network-block-device-back-in-rhel-6-x-and-centos-6-x
Ramblings of yet another Sysadmin. Laquo; Quick Hack to email CPU lmsensors thresholds. How To find the model of a USB harddrive in a USB enclosure in Linux. Getting NBD (Network Block Device) Back in RHEL 7.x, CentOS 7.x, RHEL 6.x and CentOS 6.x. March 5, 2013, 3:25 pm. The quick and dirty way:. Download SRC rpm for kernel you want to build module for. Next go to your your kernel build directory `cd /root/rpmbuild/BUILD/kernel-$(uname -r sed ‘s/.x86 64/ ’)/linux-$(uname -r)`. I will be doing some testin...
misterx.org
MisterX Tech
http://www.misterx.org/page/2
Ramblings of yet another Sysadmin. 2014 – January CLI command of the month. January 17, 2014, 4:04 pm. This month we are checking out fallocate. This can replace dd as a superfast file creation tool. Here is a example:. Fallocate -l 1G /tmp/test.2. For a quick benchmark (time output abbreviated for brevity):. Usr/bin/time -vvv fallocate -l 1G /tmp/test.2. Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00. Maximum resident set size (kbytes): 2192. Voluntary context switches: 1. Fallocate -l 1G 1Gtest.
misterx.org
MisterX Tech » Blog Archive » Yum has error on primary.xml.gz or similar when behind squid. (clearing and reloading a URL in Squid)
http://www.misterx.org/2015/02/06/yum-has-error-on-primary-xml-gz-or-similar-when-behind-squid-clearing-and-reloading-a-url-in-squid
Ramblings of yet another Sysadmin. Laquo; Linux Brain Teaser – Fall 2014. Yum has error on primary.xml.gz or similar when behind squid. (clearing and reloading a URL in Squid). February 6, 2015, 10:44 am. Verify the entry is getting hit in your cache by watching your logs. TCP MEM HIT/200 1597 GET http:/ linuxdownload.adobe.com/linux/x86 64/repodata/primary.xml.gz – HIER NONE/- application/x-gzip (or similar). To reload this entry run. To clear this entry. Click here to cancel reply. CLI on the FLY.
misterx.org
MisterX Tech » Benchmarks
http://www.misterx.org/category/linux/benchmarks
Ramblings of yet another Sysadmin. Archive for the ‘Benchmarks’ Category. KVM Local Network VMs TCP Congestion Algorithm on CentOS 6.5. April 27, 2014, 12:48 am. First off I have no idea what made me want to test this…likely because it was easy to script and let run a few times while I went off and did other things. What I am doing is testing network bandwidth between two KVM VMs on a single system using a bridge, the virtio network driver, and CentOS 6.5 as the Client and Host OS. December 18, 2013, 3:4...
misterx.org
MisterX Tech » Blog Archive » 2014 – January CLI command of the month
http://www.misterx.org/2014/01/17/2014-february-cli-command-of-the-month
Ramblings of yet another Sysadmin. Laquo; cron and its limited enviroment…. Fixes for named (bind) errors. 2014 – January CLI command of the month. January 17, 2014, 4:04 pm. This month we are checking out fallocate. This can replace dd as a superfast file creation tool. Here is a example:. Fallocate -l 1G /tmp/test.2. For a quick benchmark (time output abbreviated for brevity):. Usr/bin/time -vvv fallocate -l 1G /tmp/test.2. Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00. Fallocate -l 1G 1Gtest.
misterx.org
MisterX Tech » Blog Archive » cron and its limited enviroment….
http://www.misterx.org/2014/01/17/cron-and-its-limited-enviroment
Ramblings of yet another Sysadmin. Laquo; Quick CLI Hack to set writecache on 3w-9xxx 9650SE on the cli. 2014 – January CLI command of the month. Cron and its limited enviroment…. January 17, 2014, 3:43 pm. If you ever see this from a crron script :. FILE RUN FROM CRON: line $LINE: $COMMAND: command not found Error: (CLI:043) Invalid shell command syntax. Forgot to setup a proper PATH in your script. Messed up something in a /etc/profile.d/ file. Likely more but …. Click here to cancel reply.
misterx.org
MisterX Tech » BASH Scripting
http://www.misterx.org/category/linux/bash-scripting
Ramblings of yet another Sysadmin. Archive for the ‘BASH Scripting’ Category. Cron and its limited enviroment…. January 17, 2014, 3:43 pm. If you ever see this from a crron script :. FILE RUN FROM CRON: line $LINE: $COMMAND: command not found Error: (CLI:043) Invalid shell command syntax. Forgot to setup a proper PATH in your script. You declared a variable but didnt use it or the file isnt in the setup PATH (ie set VAR1=/usr/local/bin/crazybinary but then just used crazybinary in the script). Would caus...
misterx.org
MisterX Tech » Blog Archive » Linux Brain Teaser – Fall 2014
http://www.misterx.org/2014/11/11/linux-brain-teaser-fall-2014
Ramblings of yet another Sysadmin. Laquo; Quick Hack to use DD to get LVM configs. Yum has error on primary.xml.gz or similar when behind squid. (clearing and reloading a URL in Squid). Linux Brain Teaser – Fall 2014. November 11, 2014, 10:18 pm. This was a fun problem exchanged with a coworker. The problem is simple run this :. Category: Linux Brain Teasers. Click here to cancel reply. Mail (will not be published) (required). Classy Old PC Hardware. CLI command of the Month. CLI on the FLY.
misterx.org
MisterX Tech » CLI command of the Month
http://www.misterx.org/category/linux/cli-command-of-the-month
Ramblings of yet another Sysadmin. Archive for the ‘CLI command of the Month’ Category. March 13, 2015, 8:45 pm. In my humble opinion when it comes to CLI tools `dd` ranks pretty high in my toolkit. Right there with `nc` and a few other ‘ole favorites. Today I wanted to show a quick hack on how to determine information about a block device using dd. This goes along the same path as previous post about using `dd` to get LVM configuration off devices. Well enough talk lets get down to the CLI:. Dd if=/dev/...