David Warburton
Updates
-
Steal iPhone data with a paperclip! http://t.co/XyjAWi4X
-
Staring at ICU monitors for what seems like, simultaneously, the blink of an eye and an eternity... http://t.co/vCTgTY6S
-
Any free time which I had (which wasn't a lot) is now being consumed by Mistborn! http://t.co/VOGkgszi2 weeks ago from web | Reply, Retweet, Favorite
-
Connect your Android device to SkyDrive with OneNote and other apps http://t.co/JleRPUVD via @windowsblog < finally, great to see it! :)
-
@SkyDrive and why can't I access my LiveMesh files on my WindowsPhone? :( We need one SkyDrive space available and syncing to all devices.3 weeks ago from web | Reply, Retweet, Favorite
-
Seriously @SkyDrive the difference between LiveMesh synced files with 5Gb storage and Web/WindowsPhone 25GB space really isn't clear enough.3 weeks ago from web | Reply, Retweet, Favorite
-
Viral Infographic: Apple's Cash Pile Explained (All of Greece and Canada Get iPads!) http://t.co/BxVGw4Pl
-
Apple’s Massive Numbers And Some Context http://t.co/XU8ILJgp < wow. Insanity!
-
Samsung Will Obliterate Apple with This Very Lame Super Bowl Ad [Video] http://t.co/17SHyuZ7 lol love it :-)
-
MPAA Directly & Publicly Threatens Politicians Who Aren't Corrupt Enough To Stay Bought (330 points) http://t.co/MNvsAx47
-
@warmo1 Mr Walmsley, I am not impressed by the standard of your twittering. Please up the ante or shall I be forced to unfollow ;-)5 weeks ago from web | Reply, Retweet, Favorite
-
BlueStacks brings App Player, 400,000 Android apps to Windows 8 (video) - http://t.co/df222uRX
-
@KermodeMovie help! I'm being dragged to see New Years Eve! In these exceptional circumstances is it permissible to break The Code?
-
Just so your Air owners aren't left out http://t.co/E3N70Uc2 #awesomemacbookcovers2 months ago from web | Reply, Retweet, Favorite
-
Got a MacBook Pro? Get yourself a cover that you deserve... the BookBook cover http://t.co/1u4VfjSv2 months ago from web | Reply, Retweet, Favorite
-
Union ponders Clarkson legal move http://t.co/qZpKf64J < good grief! Union leaders should be ashamed!!
-
RT @thurrott: Try the Windows Phone UI on Your iPhone or Android Handset http://t.co/aELBZb8Z
-
RT @verge: Microsoft reportedly launching Office for iPad in 2012 http://t.co/t67QbcxL < wonder if it'l get SkyDrive and Sharepoint features
-
Up to 8GB of free online sync'd storage with Dropbox http://t.co/DKFLUliJ Clients for WP7, Andriod, iPhone, iPad, Windows, Mac and Mobile!
Profile
Summary
Extensive knowledge of Microsoft SharePoint (WSS and MOSS), Netapp SANs, VMware ESX, TCP/IP networking, Powershell and VBscript scripting. Works well under pressure and finds it easy to relate and communicate to senior managers and colleagues alike.
Fluent in French. Currently studying towards VCP.
Experience
- Aug 2011 - PresentSolutions Architect, Data Centre Services / SCC
- Mar 2010 - Aug 2011Design and Implementation Specialist / SCCDesigned and built all major components (hosts, storage, SAN, network) of our new VMware vSphere 4.1 environment from the ground up. Migrated existing ESX 3.5 VM's to new infrastructure. Implemented SAN level backups of VM's to ease network congestion and allow flexible backup testing. Next job is to implement Site Recovery Manager...
Also currently doing a lot of work around SAN (EVA 8400, and 8100) performance optimisation for SQL 2008, Exchange and Oracle. Setting up inter-site SAN replication (using HP EVA Continuous Access over FCoE). Learning loads around SAN and SQL best practises...turning in to a bit of a storage geek. - Jan 2007 - Apr 2010Systems Engineer / Robert Half InternationalThis role began as 2nd line technical support for local and remote desktop users and also systems administration of over 300 servers in the UK and Belgium which served our 2000 employees across EMEA. Supported systems included Windows 2003 Terminal Services farms, Exchange clusters, Blackberry Enterprise Servers and Symantec Enterprise Vault.
My scripting skills and diverse experience meant that I progressed through the company to perform more senior/3rd line support, mentored junior members of the team and acted as technical lead on a number of projects - the most recent of which was a deployment of a disk-to-disk backup and DR solution which made use and expanded upon our existing Netapp infrastructure.
I was also responsible for creating and maintaining login scripts and created numerous automated scripts and processes to maintain and report on server health, provide secure functionality to the helpdesk with their limited user accounts, and report on backup status (from Symantec Netbackup - this script alone saved the business 1-3 man hours a day). - Jun 2005 - Jan 2007IT Manager / WAA LtdResponsible for all IT support, management and infrastructure.
- Sept 2002 - Jun 2005IT Manager / Parkway GraphicsImplementing new technologies (Windows Server 2003 AD, Exchange 2003), installing physical network infrastructure, website coding and design, OS 9 and OS X support
- Jan 1999 - Sept 2002Web developer / AonCame on board as a junior web developer to aid with the widely used intranet. Soon started work on client pension sites providing a lot of the back end ASP code. Hugely developed my JavaScript skills providing some unique approaches to form validation and submission. Started building and configuring development servers based on Windows Server 2000 and IIS 5.
- Jan 1999 - Sept 1999Web Developer / Safix Lt
Additional Information
Posts
So I’ve noticed a rather worrying feature of ESXi (I’m on 4.1 U1) in the configuration that I have. I’ve created our ESXi servers to use a vDS for VM traffic but for management, vMotion and FT I am sticking with the local vSwitch0. vSwitch0 has three active NICs and three port-groups, one for each of the above VMkernel tasks (management, vMotion and FT).
These port-groups have the NICs set to a specific order with only 1 active and 2 in standby ensuring that, although only 1 NIC is actively used for each portgroup, the two other NICs are there for failover. A few pics may explain this better….
vSwitch0 Overview
vSwitch0 vSwitch NIC configuration (click to enlarge)
Management port-group configuration
Management NIC configuration (click to enlarge)
It’s also worth noting here that, since we have Enterprise Licenses, I decided to make use of Host Profiles to help me set up other ESXi hosts. So I configured one ESXi server the way I wanted it and used it to create a baseline host profile. This profile was then applied to all remaining hosts. Nice, quick deployment of a standard config. Good times!
Server Down!
My problems started when I wanted to change the IP address or VLAN of the Management port-group. Actually problems arose when I made a change to ANY port group in vSwitch0. My most recent problems were when I wanted to change the VLAN that the vMotion port-group used. So I changed the VLAN and associated IP address for the vMotion PG and suddenly my host went offline!
What seemed to happen was that the new IP and VLAN I applied to the vMotion PG was actually applied to the Management PG!!! Seriously not good. Especially when your cluster has HA enabled which means that vCenter dutifully starts powering down VM’s and bringing them online to other hosts in your cluster! Queue lots of alerts and irate application owners.
After some digging around and finding some VMware Community posts I realised that the problem was due to an unconfirmed bug. It seems to be down to the way that Host Profiles are applied; specifically the order in which port-groups are created on the host.
If you look again at my first pic you’ll notice that the Management PG does not use the first vmkernel nic ‘vmk0′. This is actually assigned to the vMotion PG.
To me this is a massive problem and from my point of view, the “fix” is to make sure that the Management PG is using vmk0.
Reassigning vmk0
- The first thing you want to do is disable HA on your cluster. Otherwise when you make your change and temporarily loose connection to your host all your VM’s when vCenter detects that host has gone offline.
- Next, you’ll need either physical or ILO access to the DCUI. SSH won’t cut it as we’re going to loose network connection for a while. Once you’re on the machine hit ALT-F1 to go to the local TSM (assuming you have it enabled) and logon as root or admin user
- Now we want to remove all port-groups apart from the Management PG. We could do this via the VI Client, but lets do this at the command line being as we’ve made the effort to get here…List your vSwitch0 port-groups (and show vmknic’s):
Here, again, you can see that the Management port-group is using vmk3. This is bad, mmmkay? The other odd thing, and something I’m assuming is not good, is that the MAC shown for the Management PG is that of the physical NIC. This shouldn’t be the case. This should be a virtual MAC starting with the VMware specific range; 00:05 - The following commands removed my vMotion and Fault Tolerance port-groups. The affect of this is that their vmknics are destroyed:
esxcfg-vmknic -d vMotion esxcfg-vmknic -d 'Fault Tolerance'
Now the fun part. We run exactly the same command but on our Management PG. Yes. You will loose network connectivity to the host, but that’s why we’re using ILO, right?
esxcfg-vmknic -d Management
- After we’ve blown away our Management PG we can recreate it. When we do, it will automatically be given vmk0:
esxcfg-vmknic -a -i 10.32.202.11 -n 255.255.255.0 Management
You’ll also notice our new PG has a correctly assigned virtual MAC (starting 00:05). - At this point you’ll want to go back to the VI client and configure the new PG the way you want including adding additional pNIC’s to the vSwitch and setting failover order for the PG’s.
Now I’m able to make changes to my vMotion and FT port-groups without affecting my Management PG.
Let me know if you’ve been affected by this and how you’ve got around it.
My next step is to take another host-profile baseline and ensure that, when reapplying it to the other hosts, the vmknic assignments are consistent.
I’ve been plagued, for some time, by a really annoying problem in my home lab. Being as I run everything from the one VM host (ESXi) it is also home to my Windows 2008 domain controller.
Recently I had installed Veeam Backup and Replication to finally start backing up my VM’s (even though it’s my home/test environment I would be a broken man if I lost everything on there!). I installed Veeam on to the Windows 2008 DC – against all common sense of course, but RAM is low in my ML110 and I couldn’t afford to create another Windows VM.
I had configured Veeam to backup my guest’s using the vStorage API – Virtual Appliance mode. Backups of my other Windows guests ran well but I noticed some problems with the DC VM backup after a short while. It was around this time that I also noticed that the hard disks of this guest OS had automatically changed to Independant Nonpersistent! This would have been bad enough for any machine (as soon as the guest powers down you loose all changes), but for a DC – as you can imagine – it’s a nightmare!
This post on Experts Exchange confirmed – to some extent – that Veeam was the culprit and there wasn’t some other weird force at work: http://www.experts-exchange.com/Software/VMWare/Q_26310902.html
I disabled the DC backup via Veeam but the problem remained that my VM’s disks were Independant. The vSphere Infrastructure Client does not allow you to change disk modes on the fly so I was stuck – as soon as I shut my VM down to change the disk type I would loose all changes:
Thankfully, PowerCLI came to my rescue!
After connecting to my ESXi host using
connect-viserver <esxi_ipaddress>
All that was needed was a simple command:
Get-HardDisk -VM <vm_name> | Set-HardDisk -Persistence "Persistent"
Success!! At least partially. My primary (system) disk had successfully reverted to a persistent disk. However, my second disk had not and PowerCLI had actually errored :
CapacityKB Persistence Filename ---------- ----------- -------- 68157440 Persistent [localdisk01] vm_guest/disk1.vmdk Set-HardDisk : 04/11/2010 00:49:44 Set-HardDisk Another task is already in progress. At line:1 char:42
I haven’t yet figured out what task it is that is supposedly in progress, but I certainly can’t find one. It may be worth noting that my primary disk is on local SATA while the second disk is on an NFS share.
Now, at least, when I run Get-HardDisk, it shows that my system drive is Persistent:
This post has been sat in my WordPress Drafts folder for sometime since I no longer use local storage this way. I decided to post it however as (a) it’s a good learning curve for ESXi work and (b) others may have more luck that me.
I recently acquired three 1TB drives and decided to do something about my lack of storage at home. Always trying to make best use of existing kit (and save money) I decided to stick the drives in to my HP ML110 and try something in a VM instead of doing the sensible thing of lobbing them in to a dedicated NAS box.
After wasting a few hours I realised that the onboard SATA RAID controller of the ML110 just can’t do RAID5 and to make matters worse, when I gave up and created a RAID1 array with a hot spare, vSphere 4.1 didn’t recognise the array and instead saw the drives as 3 individual drives. I saw this as a chance to try out the WAFL-alike ZFS file system. FreeNAS had been my NAS of choice recently so I chose to try ZFS in that.
I point blank refused to create 3 1TB VMDK’s (one of each of the three drives) so I set about figuring out how to create Raw Device Mappings (RDMs) of the local SATA drives. There were a couple of posts on the net that got me a little closer, but no guide/article had the whole thing down, so that’s my aim with this blog post.
Step 1
Once you had your drives installed, SSH to your ESXi box (now even easier in vSphere 4.1) and go to the /dev/disks directory. There, if you perform a ls -l, you’ll see your drives listed:
Ignore the instances of your drives which show them as VM stores (vm1.*****). We want to look at the raw devices.
Step 2
Now move to the /vmfs/volumes folder. Here you can see your existing local datastore(s). If, like me, you had a solitary hard-drive, you’ll just see localdisk01 or whatever you chose to name the local datastore:
Step 3
Now we are going to use the vmkfstools utility to create our RDM’s. Remember that a RDM is just another VMDK, but instead of the VMDK pointing to a xxx-flat.vmdk file (which is the actual virtual hard disk), the VMDK points to our physical device. Being as we still need to create this VMDK file we need to save it somewhere. Since we just have the one local datastore, we are going to create the RDM VMDK files in it’s root.
The following command creates the RDM VMDK for us:
vmkfstools -z /vmfs/devices/disks/<name of RAW device from Step 1> <location to store VMDK>/<RDM name>.vmdk
In my personal example below, I am creating an RDM called rdm_WD2DWCAVU0477582.vmdk and it is being stored in the location /vmfs/volumes/localdisk01/ I chose the name of the VMDK to match the name of the serial number of the physical drive (and what is shown in Step 1) to help with troubleshooting in the future when I get an inevitable drive failure). You can call your RDM’s whatever you wish.
The name of the RAW device (t10.ATA____WDC_WD10EARS2D00Z5B1__________________________WD2DCAVU0477582 in my example) you will have noted from Step 1 when you listed all local devices attached to your ESXi host. This is why the tech Gods created Copy n Paste! You will want to copy the full device name as shown in Step 1 in to the vmkfstools command.
Step 4
Once you have repeated the steps for all of your local SATA drives, you can navigate to where you created the RDM’s (in my case /vmfs/volumes/localdisk01) and perform an ls -l *.vmdk to see the new VMDK’s you have created:
Don’t panic – the xxx-rdmp.vmdk files will reflect the size of the RAW devices they are mapping to, but rest assured it will be taking no more space than a few bytes on your local disk!
Step 5
You can now add your RDM’s to an existing VM. vSphere doesn’t recognise this as a true RDM (to a SAN) so you just browse the local disk datastore for the VMDK files that we created.
Edit the properties of an existing VM and click Add…
Step 6
Select Use an existing virtual disk and click Next >
Step 7
Click Browse. You now need to navigate your local datastore and select the VMDK’s that we created in Step 3).
Once complete you will be shown a confirmation window. Repeat Steps 5 through 7 to add additional RDM’s to your VM.
Step 8
You should now see your new Hard Disk’s in your VM and vSphere will correctly identify them as Mapped Raw LUN.
NOTE: One thing I forgot to show in the screen shots, is that you should create your RDM’s on a new SCSI controller! You do this by simply selecting a new SCSI ID starting with 1:x instead of 0:x. Existing VMDK’s should be on SCSI Controller 0. Your RDM’s should be on SCSI controller 1. Although my screenshot shows 0:3 this should read 1:3.
You can now save your VM configuration. Your VM will now access the RAW SATA drives and be able to use things like SMART to monitor its health.
See below; I am adding my three 1TB drive to FreeNAS to create a new ZFS pool.
Stay tuned for an upcoming blog post on FreeNAS and NexentaStor which may or may not put you off ZFS [in a VM] altogether!
This statement is becoming almost cliche in the blogging world, but this post is more for my own benefit to help me remember some of the work I’ve been doing on MSA lately:
The MSA 2000 series has a pretty dire web interface – when you compare it with other SAN’s – and to make matters work, it mixes and swaps terminology with HP’s own EVA’s (a vdisk on an MSA refers to a RAID array made up of physical disks. A vdisk on an EVA is a virtual RAID array which sits on top of the underlying RAID 0 structure). The web interface is challenging enough as it is when it works, but recently the web page of the management interface has been timing out.
Thankfully SSH access still works and responds well. I’ve been using…
restart mc a
…to restart the management interface which helped things for a short while but ultimately I found myself falling back to SSH more and more.
The following procedure follows the steps I took to rename and prevent a volume to a host.
To give a host a friendly name (from its WWN):
set host-wwn-name host <wwn> <friendlyHostName>
To rename a volume:
set volume <volName> name <new_volName>
To view what hosts a volume is currently presented to and what volumes map to what hosts:
show host-maps [<friendlyHostName>] show volume-maps [<volName>]
To actually present a volume to a host:
map volume <volName> [lun <lunID>] host <friendlyHostName> access rw
In theory the LUN ID can be left blank, but in practise I found that it would not map unless I specified an ID. Don’t forget to map both HBA’s for a host.
After presenting the volume to the Windows 2003 host I was dismayed when the Storage MMC could not see the new lun. Hitting F5, of course, was not enough. On the Disk Management section folder in the left hand side of the MMC window, right-click and select Rescan Disks.
I’ll update thist post if I use and feel the need to remember some other command line options for the MSA 2000 but hopefully we’ll be migrating off it to EVA soon!
Seems the Netbackup reporting script is in pretty high demand at the moment. Obviously lots of you just as frustrated with NBU reporting as I was! I’m really pleased that so many of you are finding it useful – though I am starting to wonder if letting it out in to the open without a license agreement (a free one, don’t worry) is a good idea.
I have placed the scripts in a public DropBox location which is linked to at the bottom of the original Netbackup Report Scripting post. In the mean time, please see the PayPal donation button to the right now. If you’ve used my scripts and find them useful – and certainly if you plan to use them in a business environment – please consider donation as much or as little as you can.
I also have some nice new blog posts ready to upload as soon as I can sort my image hosting out! Those of you struggling with EVA performance monitoring and tuning, stay…err….tuned!
I’ve seen Netbackup used in two completely different ways now. In my last environment all tapes rotas, movements and scratch tapes were handled manually. We had a spreadsheet showing tape sets (see below for an example), when these tapes were collected by Iron Mountain, which days of the months we defined as Monthly/Quarterly backups and so on. In this scenario each set of tapes is a number of tapes – on some days you may use less, on some days you may not have enough loaded.
In the new environment we let Netbackup dictate which tapes are in the scratch pool and free for re-use based on the expiration policy of the jobs written to those tapes. In theory this should mean that you only ever use as many tapes as you need for a given backup job. The problem with this set-up is that although it is, in theory, more efficient, you don’t always know which tapes you will need each night and how many you have free.
Each day guys were running NBU command lines to show which tapes were in the scratch pool, but having to manually sift through them to see which tapes were currently sat in drives/libraries and of the ones held off-site, which tapes were of which format (LTO2, 3 or 4).
The following script can be scheduled to email out a list of tapes in the scratch pool, which are in what library and also groups the offsite tapes by format. It was knocked up in a hurry so isn’t as parameterised or dynamic as it should be, but the comments should help you fix it for your needs…
Here’s the script and HTML header & footer…
scratch_list.ps1
$debugpreference = "continue"
#This "output" variable runs and stores the output of the NBU command line
#Be sure that this .exe is in your path, otherwise change the below to include the full path to the executable.
$output = vmquery.exe -b -pn Scratch
$htmlfile = ".\output.txt"
$today = Get-Date
#Arrays to hold and sort info about our tapes.
#NOTE: this script is hard-coded to work for LTO2 (HCART2), LTO3 (HCART3) and LTO4 (HCART) tape drives/libraries
[array]$aTapes = @()
[array]$aHOffsite = @()
[array]$aH2Offsite = @()
[array]$aH3Offsite = @()
#NOTE: this script is hard coded to include the specific names of tape drives attached (via various media servers) to the master server
$aRobots = @{"TLD0" = 0; "TLD1" = 0; "TLD2" = 0; "TLD3" = 0; "TLD4" = 0; "TLD5" = 0; "TLD6" = 0; "TLD7" = 0; "TLD8" = 0; "TLD9" = 0; "TLD10" = 0; "TLD11" = 0; "TLD12" = 0; "TLD13" = 0; "TLD14" = 0}
$emailBody = Get-Content "header.html"
$aOffsite = 0
#Function to send mail (currently configured to send via Exchange)
function sendEmail() {
$eServer = New-Object system.net.mail.smtpClient("exchange_server01")
$From = "netbackup@yourcompany.com"
$To = "nbu_reports@yourcompany.com"
$todayDate = [string] $today.day + "/" + [string] $today.month + "/" + [string] $today.year
$title = "Scratch tape list for $todayDate"
$Body = $emailBody
$eMsg = New-Object System.Net.Mail.MailMessage($From,$To,$title,$body)
$eMsg.IsBodyHTML = $True
$eServer.send($eMsg)
}
#Take output of NBU command line util, and for each line pick out bits of the string
#Chuck everything in to a new array called $aTapes
foreach ($line in $output){
if (($line.contains("HCART")) -and (-not $line.contains("A00"))) {
$tName = ($line.substring(0, 6)).trim()
$tType = ($line.substring(8, 6)).trim()
$tRobot = $line.substring(23, 5).trim() #this captures a wide area with some white space that needs trimming
$tRobot = $tRobot.replace(" ", "")
$aTapes += ,($tName, $tRobot, $tType)
}
}
#Go through the array we just created and then put the contents in to seperate arrays
#dependant on whether they are LTO, LTO2 or LTO3 tapes...
for ($j = 0; $j -lt $aTapes.length; $j++) {
$tapeID = $aTapes[$j][0]
$robot = $aTapes[$j][1]
$type = $aTapes[$j][2]
if ($robot.contains("-")) {
switch ($type ) {
"HCART" {$aHOffsite += ,($tapeID)}
"HCART2" {$aH2Offsite += ,($tapeID)}
"HCART3" {$aH3Offsite += ,($tapeID)}
}
} else {#If a library type does not contain HCART, HCART2 or HCART3 we must assume it's offsite (or in a safe))
$temp = "TLD$robot"
$aRobots[$temp] = $aRobots[$temp] + 1
}
}
#Take the contents of $aRobots (offsite tapes) and put it in to a variables ready to be dumped in to our html output
foreach ($element in $aRobots) {
$element > $htmlfile
}
#Start pipping everything out to the $emailBody variable which will make the body of our email
$emailBody += '<table><tr><td>Tape drive</td><td># scratch tapes</td></tr>'
foreach ($line in Get-Content $htmlfile) {
if ($line.contains("TLD")) {
$emailBody += "<tr>"
$robot = $line.substring(0, 5)
$count = $line.substring(31, 3)
$emailBody += "<td>$robot</td><td>$count</td>"
$emailBody += "</tr>"
}
}
$emailBody += '</table><br/><br/>'
$emailBody += "<b>Offsite tapes...</b><br/>"
$emailBody += "<b>HCART</b><br>"
foreach($element in $aHOffsite) {
$emailBody += "$element<br/>"
}
$emailBody += "<br/><b>HCART2</b><br>"
foreach($element in $aH2Offsite) {
$emailBody += "$element<br/>"
}
$emailBody += "<br/><b>HCART3</b><br>"
foreach($element in $aH3Offsite) {
$emailBody += "$element<br/>"
}
$emailBody += Get-Content "footer.html"
sendEmail
As per my other NBU scripts I use HTML files to store the CSS and opening HTML in order to easily format nice looking emails. See below for examples…
header.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Scratch tape list</title>
<style type="text/css">
body {
font-family: Calibri, Arial, Helvetica;
color: black;
font-size: small;
background-color: #FFFFFF }
p {
font-size: small }
.big {
font-size: small }
table {
font-size: small;
padding: 0px ;
border-spacing: 2px ;
empty-cells: hide ;
border: 1px solid #AAAAAA }
td {
background-color: #EEEEEE;
vertical-align: top }
th {
background-color: #EEEEEE;
vertical-align: top ;
text-align: left}
</style>
</head>
<body>
<p>*** This email is now automatically generated ***<br></p>
footer.html
<br/> <p>Regards,<br/><br/> </p> </body> </html>
Let me know if this helps you out at all or if you can suggest any improvements…
Some time ago I started using CrashPlan with CrashPlan Central to finally start backing up my family photos and important documents off-site. It’s been working pretty well, despite my frustrations over slow upload speeds. It’s pretty much a fire and forget solution.
Recently I’ve installed FreeNAS on to an old PC to (a) start getting some stability to my storage solution, and (b) play around with ZFS and iSCSI at home. I tried OpenFiler but it pales in comparison to FreeNAS. I’ve gone against my better judgement and I’m using some of the cooler plugins including the Torrent client, Dynamic DNS and I’ve even installed SABNzbd on it. FreeNAS comes with rsync built in and even Unison which is an interesting solution to cross platform backup/synchronisation, but I’ve payed for my CrashPlan Central plan so want to make use of it!Only problem now is backing up my data!
CrashPlan doesn’t support backing up from a network share – either mapped drive or UNC path. There is a work around on the CrashPlan site which works but is a little convoluted so wanted to post a nice, quick version here.
Read on after the break… The problem is simply that CrashPlan runs as a service using the SYSTEM account. To allow us to backup a network share we have a couple of options….
- Change the service to run as a standard user account (e.g. the one you’re logged in to your machine as)
- Map a drive under the SYSTEM account so that it is visible to CrashPlan
I’d recommend the latter but if you just plan on using this on a desktop machine and/or want a quick and dirty solution, here’s how you change the logon account for the service…
- Open up the Services MMC and find the CrashPlan Backup Service. Double-click it to open its properties
- Click the Log On tab and then select the This account radio button.
- Enter the username and password of a local/domain user account with full permissions to the network share you want to back up
- Click OK and then restart the service
- Relaunch the CrashPlan application and you’ll now be able to see drives that you currently have mapped as a backup selection as well as local drives
The preferred method is to map a drive as the SYSTEM account. That in itself is no big deal, the thing is getting the drive mapped as soon as the machine boots and doing it each and every time your machine restarts. To do this we simply make use of Vista/7′s Task Scheduler.
The batch script, which we’ll save as c:\mount.bat simply uses a NET USE command. The one drawback to this method is that the username and password need to be saved in the script. You must use a username which has permissions to the network share. This need not be a local username, in the case of FreeNAS, if you have it joined to a domain as I do.
Here’s the code:
net use M: \\freenas\media /USER:dave@mydomain.lan myP4ssw0rd
Once you have that saved open up the Task Scheduler…
Create a new task (I keep my tasks in a seperate folder to the default Windows ones simply for easier administration). Give your ask a name, for example Mount drive for CrashPlan. Select Run whether user is logged on or not, tick the Run with highest privileges box and then click Change User or Group…
Type system and then Check Names (it should capitalise and underline). Click OK.
Back in the Create Task window slect the Triggers tab and click New… Select At log on… from the drop down list and click OK to close the window.
Now select the Actions tab and, again, click New… leave the action as Start a program and then browse to your batch that we created above.
Click OK to close the New Action window and again for the Create Task window.
Job done! You can right click on the task and select Run to try it out.
A much more elegant solution would be to have a native FreeNAS (or just BSD) client for CrashPlan or to make use of rsync/Unison. This will do me for now though.
We had a few issues recently where SnapManager for Exchange and SnapDrive were failing to communicate properly which resulted in a weeks worth of missed snapshots before anyone realised what was going on.
I wrote this script to report on the status of snapshots. The filer name is passed as a variable and a list of volume names is stored as a variable at the top of the script. The output is nicely formatted email.
- The script uses SSH to connect to the filer (see my SSH guide for Netapp filers)
- For each vol listed in the array, the list of snapshots is returned
- Any line with “__daily” in is processed – all others are ignored (we only care about our nightly verified snapshots which are all named __daily)
- The snapshot name contains the date/time it was taken – this is read and if the date is within 24 hours of now a success is return (since reports are run the day after the verified job). If the date is over 24 hours a failure is returned.
- A nicely formated HTML email is sent out which looks a little something like this…
Please see below for today’s backup report.
| VOL Name | Status | Snapshot name |
| Vol_Exc02_DB | Success | 0% ( 0%) 0% ( 0%) Mar 02 01:44 exchsnap__exchange02_03-01-2010_23.00.14__daily (busy,backup[0],dump) |
| Vol_Exc02_LOG | Success | 0% ( 0%) 0% ( 0%) Mar 02 04:38 eloginfo__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc02_DB1 | Success | 0% ( 0%) 0% ( 0%) Mar 01 23:00 exchsnap__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc02_LOG1 | Success | 1% ( 0%) 0% ( 0%) Mar 02 01:27 eloginfo__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc03_DB | Success | 1% ( 1%) 0% ( 0%) Mar 02 00:50 exchsnap__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_LOG | Success | 0% ( 0%) 0% ( 0%) Mar 02 02:06 eloginfo__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_DB1 | FAILURE | 1% ( 1%) 0% ( 0%) Feb 26 23:00 exchsnap__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_LOG1 | FAILURE | 0% ( 0%) 0% ( 0%) Feb 26 00:32 eloginfo__exchange03_03-01-2010_23.00.13__daily |
See the script and HTML files after the jump…
Don’t forget to change the name of your mail server, your sending and recipient email addresses and, most importantly, the location of plink.exe and your DSA keys used to establish the SSH connection (although you could easily modify this script to use RSH instead).
snapReport.ps1 script
# ==============================================================================================
#
# NAME: Netapp filer snapshot reports
#
# AUTHOR: David Warburton
# DATE: 12/03/2009
#
# PARAMETERS: 1. $filer
# Specifies the name of the remote filer to connect to.
# example: snapReport.ps1 myfiler01
#
# ==============================================================================================
$debugPreference = "continue"
$errorActionPreference = "stop"
$filer = $Args[0]
$htmlFile = "D:\Logs\Exchange Snapshot Report\exchange_Snapshot.html"
$volumes = ("Vol_Exc02_DB", "Vol_Exc02_LOG", "Vol_Exc02_DB1", "Vol_Exc02_LOG1", "Vol_Exc03_DB", "Vol_Exc03_LOG", "Vol_Exc03_DB1", "Vol_Exc03_LOG1")
$header = get-content "header.html"
$header > $htmlFile
$today = get-date
function sendEmail() {
$eServer = new-object system.net.mail.smtpClient("mailserver.yourdomain.com")
$From = "youraddress@yourcompany.com"
$To = "backup_reports@yourcompany.com"
if ($checkType -eq "weekly") {
$title = "Weekly "
} else {
$title = "Daily "
}
$todayDate = [string] $today.day + "/" + [string] $today.month + "/" + [string] $today.year
$title += "Exchange snapshot Report for $todayDate"
$Body = get-content $htmlFile
$eMsg = new-object System.Net.Mail.MailMessage($from,$to,$Title,$body)
$eMsg.IsBodyHTML = $True
#$eMsg.cc.add($cc)
$eServer.send($eMsg)
}
function checkSnap($volName) {
$output = D:\Utils\PuTTY\plink.exe svc-ssh@$filer -i D:\Utils\PuTTY\id_dsa.ppk snap list $volName
$validsnap = $False
$snapname = ""
foreach ($line in $output){
if ($line.contains("__daily")) {
$sMonth = $line.substring(62, 2)
$sDay = $line.substring(65, 2)
$sYear = $line.substring(68, 4)
$sDate = [datetime] "$sMonth $sDay $sYear"
if (($sDate.date).addDays(1) -eq $today.date) {
$validsnap = $True
$snapname = $line
}
}
if ($validsnap) {
return $snapname
}
}
return $False
}
foreach ($vol in $volumes) {
$line = "<tr><td>$vol</td>"
$status = checkSnap $vol
if ($status -eq $false) {
$line += "<td><font color=red>FAILED</font></td>"
} else {
$line += "<td><font color=blue>Success</font></td>"
}
$line += "<td>$status</td></tr>"
$line >> $htmlFile
}
$footer = Get-Content "footer.html"
$footer >> $htmlFile
sendEmail
Here are the HTML bits for the header and footer of the email…
header.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Backup Report</title>
<style type="text/css">
body {
font-family: Calibri, Arial, Helvetica;
color: black;
font-size: xx-small;
background-color: #FFFFFF }
p {
font-size: x-small }
.big {
font-size: x-small;
font-weight: bold }
table {
padding: 0px ;
border-spacing: 2px ;
empty-cells: hide ;
border: 1px solid #AAAAAA }
td {
background-color: #EEEEEE;
vertical-align: top }
th {
background-color: #EEEEEE;
vertical-align: top ;
text-align: left}
</style>
</head>
<body>
<p>*** This email is now automatically generated ***<br><br><b>Please see below for today's backup report.</b></p>
<p>
<b>NOTE: </b><br/>
- Exchange and SQL snapshots are managed by SnapManager and are alerted independantly to this report.<br/>
- Not <u>all</u> snapshots are shown in these reports. Hourly snapshots are currently not reported upon.
</p>
<table>
<tr>
<th>VOL Name</th><th>Status</th><th>Number of Snapshots</th><th>Last snapshot taken</th>
</tr>
footer.html
</table> <br/> <p>Regards.</p> </body> </html>
Something I just remembered when performing a restore for a user.
When copying files from a CIFS snapshot using the hidden .snapshot directory NTFS permissions are lost. Instead they are inherited from the folder you are copying to.
To maintain permissions, use NDMPCOPY specifying the snapshot name in the source (first) parameter…
ndmpcopy "filer1:/vol/vol_A/qtree_A/.snapshot/nightly.1/MyDocs" "filer1:/vol/vol_A/qtree_A/MyDocs"
You can enclose the path in quotes if the path has spaces in.
Netapp have released their new version of their Rapid Cloning Utility – a vCenter plugin which allows you to provision and new datastores and clone hosts (including VMware View 4 VDI’s) with ease right inside of the Virtual Infrastructure Client. vCenter 4 is needed but it is compatible with ESX 3.5 and 4.
The great thing is that all the storage processing is offloaded from vCenter and is performed entirely on the filers. I’ve not had a chance to play with the RCU yet but this just looks utterly awesome! Check out this preview blog post and video from Netapp:
If you don’t have time to sit and read, then at least check out the video. I dare you not to be impressed!
Do any other storage vendors have similar tools?
Recent tracks
-
Breakn' a Sweat by Skrillex & The Doors2 days ago
-
Got 2 Know by Flux Pavilion2 days ago
-
Get Up! - feat. Skrillex by Korn2 days ago
-
A Brief Tutorial On Vip Production (Vip) - Vip by Dubba Jonny2 days ago
-
2 days ago
-
All In (Original) - Original by Dubba Jonny2 days ago
-
First Of The Year (Equinox) by Skrillex2 days ago
-
Got 2 Know by Flux Pavilion2 days ago
-
Breakn' a Sweat by Skrillex & The Doors2 days ago
-
Movement And Location by Punch Brothers6 days ago
Top artists
Top tracks
-
12 plays
-
10 plays
-
7 plays
-
7 plays
-
6 plays
-
5 plays
-
5 plays
-
4 plays
-
4 plays
-
4 plays
-
4 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
3 plays
-
2 plays
-
2 plays
-
2 plays
-
Smile by Lily Allen2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays
-
2 plays