XCP and Xenserver store their Virtual Disk Images on storage repository. To see how much space you have on your LVM or lvmoisci storage repositories from the commandline can be quite a chore so I wrote a df command for storage repositories. My dfsr command mimics the output of the Linux df command with the human readable flag set (-h). All values will be printed in Kilobytes, Megabytes, Gigabytes and so on. It shows the size of the repository, how much is used, how much is available, the percent used and the Storage Repository type.

I've mentioned before that XCP/Xenserver's xe command is great for scripting but not always that great for interactive use. Because XCP relies so much on using UUID's for identification it's not very human friendly. Also the xe help is quite bad leading to our team that's working on writing documentation for xe. Even so xe makes a great scripting tool.

To show the difference between xe's output and what I think it could be let me introduce my lstemplate.sh script available in the XCP Downloads Section of this website. The xe command has a tendency to show output on multiple lines which isn't very parsable and is sort of hard to read. I understand that it's easier to program though. I however, like as much info on one line as possible allowing me to send the output into awk/cut if I wish and also keeps formatting clean.

Below is the output from xe template-list

....

You can see the output doesn't wrap well and isn't that easy to read. My biggest irritation is trying to find the template for the OS I want to use. There are a lot of templates and I usually end up scrolling for quite some time to get the right one. My other choice is to pipe the output of xe template-list into grep -B1 to search for the name and print the line before the name-label which will show the UUID number. For instance xe template-list | grep -B1 'Red Hat'. As easy as that is I find myself scanning the output of xe template-list in order to know what to grep for which defeats the purpose of grepping.

To solve this I wrote a small script called lstemplate.sh (list template). Below is the output.

As I and the team are writing manpages for XCP's xe command and it's 361 sub commands I'm writing more XCP tools. Last night I hacked out lshostvms.sh and xcptop.sh.

The lshostvms.sh script gives a quick list of hosts and shows numerically how many VMs are currently running on each. This includes the Control Domain itself currently but I may change that in the future.

The xcptop.sh script gives a list of all hosts and for each CPU core shows the utilisation according to XCP.

In each of these cases I needed this functionality in a nice easy to use command. I also wanted the output to be parsable if possible ie. it needed to be line oriented and each field separated by white space.

There will be many more tools coming as I get time and I have needs. I'd love to have a tool that lists VM hardware (nics, disks, cds) in a nice manner, a tool to list disks and the srs they reside on with flags (rw etc..). Stay tuned.

The tools have been moved to github so the most convenient way to install them is to install git and do a git clone.

I was cooking sweet potatoes in a bed of salt the other night and I hear a pop from my oven. Thinking a sweet potato skin had popped I opened the oven door and it was in fact my glass lid to my Calphalon Saute pan. Yes, it shattered at 400 degrees. Thank you Calphalon, I'll remember that when I replace it.

With that in mind I wonder about the quality control of major brand names. You may recall that I had the "copper" core of my Emerilware made by Al Clad melt out and to my surprise find out the copper was in fact aluminum. Strange, it was even colored copper on the outside. I of course wrote an article and took pictures as well.

I didn't pay a ton for the Calphalon pan but Amazon is listing it at $175 and on sale for $75. I think for either price the lid should withstand normal oven temperatures.

Fat32 is a very poor filesystem and Nokia chose it for the n900's MyDocs directory so Windows users could view their files if the n900 is plugged into a Windows PC via USB cable. Those of us who use the n900 on Linux machines (or use SSH/SFTP to access files) have the flexibility to use a better filesystem.

I was wandering by the local Quality Food Store (QFC) recently and noticed that due to it being spring and everyone wanting to BBQ they had a nice display set up with a grill and many bags of charcoal brickets but something was off. Upon closer inspection the grill they decided to surround with brickets wouldn't even be able to use them... because it was gas. Maybe they have a package deal - if you buy the grill you get a free back of charcoal....

You just have to wonder sometimes what the left hand is doing. Especially if you're the right hand. I was browsing LivingSocial looking for great food deals and I noticed that there were 8 (count them) hits for Indian food so I clicked on it and I got this message. Last time I checked 8 was still a positive number.

Regular readers of the Man, the Myth, the Legend will know that I'm a big fan of pumpkins. See my previous pumpkin articles as proof. This year I did a Pumpkin Smackdown article on the best pumpkin varieties and tested based on flavor, texture, cookability, longevity and availability. As you may recall I rated the Rouge vif d'Etampes (Cinderella) pumpkin the winner. Most other pumpkins even if they have decent flavor fall down in one way or another. Since I refuse to use "pumpkin" from a can my pumpkin buying season is fairly limited to October and possibly some of November due to the popularity of pumpkins at Halloween for the humans and the somewhat related popularity of pumpkins as food for farm animals in November. I put quotes around the word pumpkin in the previous sentence because what's in the can is listed simply as pumpkin alone in the ingredients list and yet it's BROWN. Pumpkin is NOT brown as you'll see in the photo in this article and in fact it's very very orange. I'm not sure why a can of nothing but pumpkin ends up being brown but I'm skeptical that they found some unknown variety of pumpkin with brown flesh. Until that mystery is solved by Scooby and the gang I'll stick to fresh pumpkin that happens to be bright orange.

With that in mind you may recall from my Pumpkin Smackdown article that the Cinderella excelled on longevity. If left alone and their skin is not broken in any way they'll last up to 6 months. My daughter Natalya brought me several Cinderella pumpkins in late October. I cooked my last one tonight - 5 whole months later. A lot of people tell you that pumpkins need to be stored in dark cool places etc. but these pumpkins were stored in the front room under my Chippendale era Buffet at room temperature for 5 months. The trick is for the air to be dry (no garages) and to never break the skin. If you nick the pumpkin's skin you have to cook it within a day or two or it will rot. If the pumpkin is stored in a damp location it will rot. The longest I've ever kept pumpkins has been inside the house in a warm dry environment where they didn't get damaged.

This pumpkin was a very large one which is why I waited until the very last moment to cook it. Because of it's size it wouldn't fit on my half sheet pans thus I had to cut it across the poles (instead of around the equator) and cook one half at a time taking nearly 6 hours. The meat I was able to retrieve from it will probably get me another 6 loaves of pumpkin bread and maybe another pan of Pumpkin Lasagna.