Archive for the ‘Bash’ 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” [...]
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 [...]
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 [...]
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 [...]
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 [...]
