Extend a LVM btrfs partition

Recently I had the issue, that my root partition (/ or slash) was a bit too small for some update. So I had to look up how to resize the root partition. Luckily with LVM/btrfs this works like a charm (if you added enough free space):

 

foobar2000 File Operations Setup

As I said in the previous posts, I’ve reorganized my music library. That included creating sub directories based on the first letter of the artists name (say for example AC/DC would be sorted into the folder A, Iron Maiden would be sorted into I).

So here’s the file name pattern, that I’ve used to accomplish this:

 

PowerCLI: Delete all snapshots by name

I have the issue that we use a cloud automation software, which for whatever reason failed to delete the hypervisor snapshots.

Now I was looking into a quick way to delete all those 520 snapshots with PowerCLI, and I found something pretty quick.

 

Based on that, I came up with my own quick PowerCLI one-liner, that’ll list all VMs and their snapshots:

Now, I could use another one-liner to delete all snapshots, that’ll look like this:

However, this will either crash an ESXi host (because the amount of the snapshots is too much) or overwealm the storage. So in the end I used a script like this:

This’ll limit the maximum amount of snapshots to delete at times to 5 (or 10 if you change the $maxtasks value).

Quick-Add a bunch of Virtual Machine Port-Groups from CSV

Well, I’m currently migrating between different cluster layouts, and I had to create the new PortGroups on the old hosts, in order for me to switch between old and new hosts.

 

And the corresponding CSV would look like this:

 

ViMbAdmin and mod_rewrite

Well, I use ViMbAdmin for the mail box administration of my users (and aliases) on heimdaheim.de. After I while (well, over half a year I guess), I decided to look at it again. However it didn’t work. Well this was a multi-part problem.

  1. ViMbAdmin has been updated to require PHP composer (which populates the vendor/ folder)
  2. the application.ini was outdated

After I fixed all that, ViMbAdmin was working again. However I decided to replace my mod_rewrite stuff (I had in my apache config from the previous version) with the one from the Documentation and that actually made things worse. So I ended up *redigging* into mod_rewrite (again *sigh*) and rewrite the Rewrite Rules… This time I’m documenting it.

Keep in mind, this is part of my apache config, not a .htaccess file.

Adjust album list display in foobar2000

Well, as I said earlier I’ve been playing around with my Sonos (and in that regard cleaning up my music library). Now, I started setting up my foobar2000 to ignore articles (The, A) when moving/copying file to my music library.

For example, previously the structure would have looked like this:

Now, after implementing the file operations adjustments (I’ll post them later), the structure looks like this:

However the Album View will display the album artist as it’s presented in the MP3’s %album% tag. So, I needed to modify the Album List’s view. For that repeat these steps:

  1. Goto Preferences (Ctrl+P or File->Preferences)
  2. Extend the Media Library node
  3. Switch to Album List

I wanted to adjust the “by artist/album” view (since I only use that). The default code for that is as follows:

As with everything in foobar2000, that is configurable and uses the Title Formatting. After a short peek into the Foobar2000 forum, I found what I was looking for.

 

Display MusicBrainz info in foobar2000

I’ve been cleaning up my music library the past few days (well, I bought a Sonos :D), so here’s how you display for example the tagging field MUSICBRAINZ ALBUM TYPE in foobar2000’s default metadata view.

 

  1. Goto preferences (Ctrl+P or File->Preferences)
  2. Navigate to Advanced
  3. Extend the Display node, extend Properties Dialoge node
  4. There you’ll find the option for Standard fields
  5. Change it to the following:

After changing the Standard fields option, the metadata view will look like this:

foobar2000-metadata-view

OpenELEC on CuBox i – Update to latest snapshot

Here’s an easy way to update the OpenELEC running on a CuBox-i easily:

 

diskinfo

Get a list of all disks and show the serial numbers

 

idle3 wrapper

Another wrapper (like mdstat), that’ll look through my Western Digital disks and fix any disk not having the head parking timeout set to a configured value.