Posts

win32_clustershare

Took me quite a while to get this figured out, so might as well add to the pool of searchable Google results. Problem : You have a clustered print/file server running Server 2008/R2 and you must make NTFS security changes to each printer.  You want to allow the IT Helpdesk people to manage documents.  You have 200+ printers.  Doing them one-by-one leads you to thoughts of suicide or worker's comp from limb amputation. Solution : Quick little Powershell/subinacl combo! (see below) Key things I learned in this was that WMI is not really supported for clustering, win32_clustershare was accidentally left out of Server 2008 SP2, and that a cluster's 'shares' are only visible on the active node (obviously, in hindsight). Subinacl.exe :  http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23510 Hotfix :  http://support.microsoft.com/kb/971403 If anyone has suggestions to better the script, please post them.  I am pretty new to script...

vCenter database query - CPU ready

This came up when our team lead wanted a method for seeing global CPU ready values over a length of time to provide factual basis during performance audits.  The viclient performance tab only allows you to view one VM at a time, and compiling data from that manually is painful at best. We thought about it a bit, then realized that all these historical statistics are stored in the vCenter database, so why not do a DB query to pull the relevant info?  I looked into it, and similar things have been done before.  With those as a basis for my query, I dug in to what was in the vCenter database and how to best present it. What I ended up with is not as automated as I'd like, but good enough for being used once or twice a year for audits.   This one was a lot of fun! Full article on the wiki:  http://wiki.practicaltech.ca/index.php/VCenter_stuff

Manually updating a cluster.conf file - CentOS5 vs 6

If you want to do manual config changes/propagation (i.e. not using any GUI tools like Luci and system-config-cluster).  The reason why I don't want to use the GUI tools is this - I have NFS running as a cluster service with one client currently.  When I add two new clients and check the config file, there is a slight discrepancy - the original client setting is '1' while the new clients are set to 'on'.  The two new clients refuse to mount the NFS share stating 'access denied', except the are no /etc/exports files stating what clients can connect or not (or anything like that anywhere).  It's a long shot, but all I got!!  And I learned this, so not all is lost. Note the key difference - one requires a cluster shutdown, the other does not.  If you were not aware, having a different config version number on nodes is BAD NEWS BEARS like whoa.  Basically causes nodes to start freaking out, getting fenced, etc.  It's messy. On CentOS 5 Sh...

I accidentally the config file

Yes, today is the day that I made a fine boo-boo.  A shameful one, to be honest. I was deploying config files for the monitoring software and got lazy - I overwrote files instead of moving them or renaming them...all because I wanted to get that last little bit done before I left for the day. Of course it turns out that some esoteric command was in the files.  Not mission-critical, but I'll be spending time in the backup software tomorrow (assuming the servers were ever backed up) trying to figure it out.  Or re-writing the command from scratch.  Ouch. The amount of time it will take to rename the files versus restore from backup can be described in orders of magnitude.  Honest to goodness - at least this project is almost over. Lesson:  Even if you are 100% certain you'll be okay overwriting a file - move or rename it for insurance, because restoring from backup is tedious and painful and sometimes an endeavour in panic.   Sub-les...

VMware Workstation, ESXi VMs, and external iSCSI storage

From a post I made here:   http://communities.vmware.com/thread/342742?tstart=0 It started out simple, then got longer, and ended a saga.  The iSCSI saga.   I would paste the whole thing here...but I'd imagine the VMware communities will be around well after this article is rendered obsolete. Bottom line :  If your switchport is accepting tagged packets on VLAN10 only, and your physical adapter is tagging packets for VLAN10, setting the virtual machine networking (bridged to said physical adapter) to ALSO tag packets for VLAN10 will break stuff.  Leave the VLAN tagging for the physical devices. After the saga came to a close, I then tried to add the iSCSI targets to my workstation, but ran into this:   http://www.jeremycole.com/blog/2007/11/09/the-iscsi-name-specified-contains-invalid-characters-or-is-too-long/ Yes, my naming scheme was foiled by a subtle Microsoft...oversight.  This is what the Initiator does:  ( http://technet.micros...

VCP410 - take two

Well, misreading a forum post led me to book my VCP410 re-take for end of February - around the same time big things are happening.  So Lord-willing I'll pass it this time.  I have already begun studying in earnest, but definitely need to put effort into it. A number of people I've spoken to have said the '410 is focused on min/maxes, and after taking it  last spring, I'm inclined to agree.  Memorization has never come easily to me, so I'll really have to put all the spare time I have into this.  I had tried to go on working experience and book knowledge and got a 221 - pass is 300/400 - rather embarrassing.  Now, to be fair, I did not study at all, nor do any of the recommended lab exercises, so that probably didn't help.  Now, why did I wait so long to do a re-take?  The aforementioned 'big thing' and rebuilding our garage over the summer. I've been speaking to my employer about potentially taking the VCP5 course/exam, but would not be ...

Linux/CentOS templates in VMware ESXi

I am sure there are other posts like this out there, but last time I checked, there wasn't much info on this, so here goes. I want to use kickstart to deploy virtual machines.  Rather, wanted.  Forgot that kickstart requires ethernet right off the bat, and the vmxnet3 NIC doesn't work until vmware tools is active.  I could use the E1000, but then I'm still having to delete/reconfigure after the fact.  This method means VM rollouts that are probably just as fast as kickstart, and possibly a little easier.  I could probably write a script to do the hostname/network cleanup as well. Anyways, here's my attempt at vCenter templates for CentOS.  This is pulled from my wiki, posted here for searchability. CentOS vCenter template creation Created a new VM and gave it 1cpu/1GB RAM/40GB thin drive. Installed CentOS 6 x86_64. I configured LVM - do so according to your wishes. (I specifically added LVs for /var/log, /var, /tmp, and /home) Set passwords,...