Archive for the ‘Script or Code’ Category

Today we are going over a script I wrote to utilize the ovmcli to rename all virtual disks to follow a understandable standard, in this case we will take the vmname and append a disk identifier to it.  The first disk (slot 0) will be appended with “_system.img” with all subsequent being appended with “_dataX.img” […]

Wednesday, February 6th, 2013 at 06:00 | Comments Off
Categories: Bash, How To, Oracle VM

So I have been working with the OVM CLI lately to try and fill in some holes in my knowledge and provide for some easily reproducible procedures, usually around consistency of the environment when performing frequent tear downs and upgrades.  So expect to see more OVM related scripts going forward. Today we are going over […]

Monday, February 4th, 2013 at 06:00 | Comments Off
Categories: Bash, How To, Oracle VM

In my laptop I have a solid state disk, and frankly I am way past addicted to solid state disks, but what you get in performance you lose in capacity.  As such I have had to be creative with how I can have the capacity and the performance that I need.  Lately the solution has […]

Thursday, August 2nd, 2012 at 06:00 | Comments Off
Categories: Bash, How To, Linux, LVM2

So I have found that it is rather easy to add entries into /etc/fstab while maintaining relatively legible scripts and making the changes with minimal user interaction… METHOD ONE This option is the simplest, we simply echo the line into the file as we want it to appear, then based on the >> it is […]

Tuesday, May 29th, 2012 at 06:00 | Comments Off
Categories: Bash, How To, Linux
Tags: , , ,

So I frequently find myself in a situation where I need to modify files on a fairly programmatic basis, so sed has become a friend of mine for a lot of these situations.  So lets start with some basic sed… If I have a file.. And I want to replace “teststring” with “productionvalue” then I […]

Tuesday, May 1st, 2012 at 06:00 | Comments Off
Categories: Bash, How To, Linux
Tags: , , ,
Page 1 of 3123
TOP