This is similar, but an enhanced version of my custom_mount.sh previously published here: Bash: Automatically Mount File Systems on Volume Group if Present. This previous version was just a simple init script. This updated version is designed for newer Linux distributions that use Systemd instead of Init. The Code The majority…
OVMCLI: Standardize the Naming of Virtual Disks
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…
OVMCLI: Standardize the Case of VM Names
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.…
Bash: Automatically Mount File Systems on Volume Group if Present
Update 09/16/2015 – I have published an updated article for this here: http://blog.allanglesit.com/2012/08/bash-automatically-mount-file-systems-on-volume-group-if-present/ 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…
Bash: Programmatically Add Entries in fstab
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…