Archive

Posts Tagged ‘VMware’

Sizing your ESX LUNs

February 15, 2011 Leave a comment

I regularly get asked how LUNs should be sized for VMware..

Firstly, this is one of those ‘how long is a piece of string’ type questions.

It of course depends on the number of VMDKs you’ll be running, the storage available, the type of storage, the i/o of the storage, type of VMs etc etc etc,

Things to consider for example are, do you have storage that does de-duplication and is cost of storage a major factor (and so on)
Of course . . pretty much always, a cost savings equals a performance hit.

Anyway, as a very loose rule of thumb, I (in most cases) find that I size LUNs somewhere between 400GB and 750GB and seldom (if ever) have more than 30 vmdks per LUN.

Pretty much always, I redirect the request to the following resources:

first of all, the configuration Maximums:
http://www.vmware.com/pdf/vsphere4/r40/vsp_40_config_max.pdf

http://www.gabesvirtualworld.com/?p=68
http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1350469,00.html
http://communities.vmware.com/thread/104211
http://communities.vmware.com/thread/238199
http://www.yellow-bricks.com/2009/06/23/vmfslun-size/

and of course the composite created by Andrethegiant on the VMware communities

http://communities.vmware.com/docs/DOC-10990

Categories: VMWare Tags:

Purging old data from the database used by vCentre Server 4.x (2.5 also included)

February 14, 2011 Leave a comment

We had a failed VC today – seems our client managed to fill the SQL database and fill the storage.
It is a physical host, so expanding the disk is not so easy.

Time to clear the VC database up . .

Luckily, VMware have posted the how-to for this one (as they did before for 2.5)

The details are pretty thorough . . just watch out to make sure you stop your VC service before running this (and if you can, back up your database as you’ll be purging data from the database)

Linky here: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1025914

Note: Do not run the scripts attached to this article against a VirtualCenter 2.x database. For information about purging data in VirtualCenter 2.x, see
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1000125

Categories: VMWare Tags: ,

VMUG London Lowdown

February 11, 2011 Leave a comment

So,

I attended the VMUG in London yesterday. Unfortunately I missed the Enterprise round table, to sit on Alan Renouf’s PowerCLi session.
the session was pretty handy in terms of getting me to revert to the PowerCli again, but an hour is just not enough time to get your teeth fully stuck in – his focus was reporting (which I guess makes sense, as he’d hardly want us, deleting, configuring and moving things round in his lab – which he generously shared)
Either way, the hands on labs were a good opportunity to network with other local professionals.

Alaric did a great job of entertaining us as MC – (ask him about his juvenile moment and variable names next time you see him)

Warren Oliver from Veeam really lives and breathes his product. I had a chat with him at break time and have had him in my office a few times. he really is an asset to the company – I like what Veeam do, I like their product and like their attitude. You’ll have seen several references to their tools in my previous bloggings . .and you will see more as we currently rolling Veeam vPower out at a big client site (see you in 2 weeks Warren)

either way, the presentation was humorous, but professional and entertaining – the product looks amazing (I guess we know it is . . considering all the awards they have received at VMworld etc?)

As sponsors, they did a great job too – including donating an iPad as a prize (the usual business card draw . . I need to get myself some business cards . .)

Scott’s chat on certification was very handy – saved me doing a bunch of web trawling. (I will be going for a VCDX later this year . . though not because I want the certification, but rather because I like the appeal of building a design for something then having to defend it – thus testing my own knowledge) – I will post as I get on – I have an idea for my design though – and I need to find out whether I will be allowed to publish details of this once I have completed my VCDX (it is info that I want the community to be able to use . . so a certain aspect of the VCDX design I’d like to have publicly shared)
Either way – thanks Scott.

I enjoyed Gabrie’s Budget DR talk. Oddly, it is something I have done myself before, using PowerCli and some Netapps replication. His approach is almost identical to the one I used (though my design was active/active and used a VC hosted on a VM on the non-production site) -= I’ll explain later, as I will blog my scripts in a thread call ‘DR on a shoestring’ – it will no doubt be similar to what Gabe presents, but at least give those of you who would like to try it an alternative approach (speaking of which . . I’ll need some ‘test pilots’ with alternative storage technologies to test drive my revised scripts once complete)

Steve’s cloud discussion (11th hour step in for an automation session that I was looking forward to) caught me off guard – I have been a little slow to get hooked on the cloud side of things, so it was a good eye opener – looking forward to ‘clouds’ at the next VMUG.

To finish, Chris Dearden (in a nice subtle, slightly off pink shirt) presented a humorous account of Transatlantic Data centre migration and how to (or not to) actually get it done.
Seems like they had a big project on their hands and did a reasonable job of getting it completed, considering the rather tight constraints that they had – good effort! – The last slot of the day is always the hardest (the iPad had already been given away and the morning caffeine worn off, but at the end of his presentation it seemed everyone was still awake . . an achievement in itself)

I missed the drink up afterwards (had no choice – one day family visit from the states!) – either way, once I have done DR on a shoestring . .who knows, I may present at a VMUG?

Thanks to everyone who helped organise and played apart . . looking forward to the 12th of May when we convene again.

 

#LONVMUG @LONVMUG

Categories: VMWare Tags: , , ,

VMWare user Group London

February 10, 2011 Leave a comment

The blog will be dead today – I am off to the VMWare User Group in London. – http://communities.vmware.com/message/1687182#1687182

our schedule is as follows:

10.00 – 12.00 Roundtable Strategy Session with Martyn Storey and Mark Stockham; Enterprise Management – optional (spaces limited)
11:00 – 12:00 PowerCLI session with Alan Renouf – optional
12:30 – 13:00 Arrive & Refreshments
13:00 – 13:20 Welcome & News (Alaric)
13:20 – 14:00 Sponsor presentation (Veeam Systems)
14:00 – 14:30 VMware Certification – Preparing for Success (Scott Vessey)
14:30 – 15:00 Cheap Disaster Recovery using PowerShell scripts (Gabrie van Zanten http://www.gabesvirtualworld.com/)
15:00 – 15:20 Refreshment break
15:30 – 16:00 Advanced vCenter Alarming and Automation (Simon Long, VMware)
16:00 – 16:30 Transatlantic Datacentre migration (Chris Dearden, JFVI)
16:30 – 16:45 Close
17:00 Pub

I’ll be attending the PowerCli session with Alan renouf . . though I am slightly grumpy that that means I’ll miss the RoundTable strategy meeting,

Of course I will feed back here with anything I learn (which no doubt will be a whole lot)
These VMUGs are a great opportunity to find out what is upcoming in the virtual world and to offer your 2 cents worth – check the VM communites, there is bound to be one near you : http://communities.vmware.com/community/vmug/findgroup

Categories: VMWare Tags: ,

Adding Datastores to ESXi Hosts that have already been built

February 9, 2011 Leave a comment

DAS

Datastore addition when other DAS already exists

When attaching storage such as a MSA70 to an ESX3i host, ESX will not

automatically format it or create the relevant partitions automatically.

This

can however be done from an SSH connection – using the following

instructions.

1. Log on to the console or use putty to connect to the ESX host remotely. If

you have not created a user for yourself you will not be able to log in through

putty.

2. SU to root. This must be done using the su

root command. If you do not use the – then you will not get root’s path and thus

get error messages that say that commands cannot be found.

3. Run fdisk -l. This will give you a list of all of your current partitions.

This is important because they are numbered. If you are using SCSI you should

see that all partitions start with /dev/sda# where # is a number from 1 to what

ever. Remember this list of number as you are going to be adding at least one

more and will have to refer to the new partition by it’s number.

4. Run fdisk /dev/sda. This will allow you to create a partition on the the

first drive. If you have more than one SCSI drive (usually the case with more

than one RAID container) then you will have to type the letter value for the

device you wish to create the partition on (sdb, sdc, and so on).

5. You are now in the fdisk program. If you get confused type "m" for menu.

This will list all of your options. There are a lot of them. You will be

ignoring most of them.

6. Type "n". This will create a new partition. It will ask you for the

starting cylinder. Unless you have a very good reason hit "enter" for default.

The program will now offer you a second option that says ending cylinder. If you

press enter you will select the rest of the space. In most cases this is what

you want.

7. Once you have selected start and end cylinder you should get a success

message. Now you must set the partition type or it’s ID. This is option "t" on

the menu.

8. Type "t". It will ask you for partition number. This is where that first

fdisk is useful. You need to know what the new partition number is. It will be

one more than the last number on fdisk. Type this number in.

9. You will now be prompted for the hex code for the partition type. You can

also type "L" for a list of codes. The code you want is "fb". So type "fb" in

the space. This will return that the partition has been changed to fb (unknown).

That is what you want.

10. Now that you have configured everything you want to save it. To do so

choose the "w" option to write the table to disk and exit.

11. Because the drive is being used by the console OS you will probably get

an error that says "WARNING: Re-reading the partition table failed with error

16: device or resource busy." This is normal. You will need to reboot.

12. To reboot the server type "reboot" at the prompt.

13. Once you have rebooted you can now format the partition VMFS. DO NOT do

this from the GUI. You must once again log into the console or remote in through

putty.

14. Once you have su’d to root you must type in "vmkfstools -C vmfs3

/vmfs/devices/disks/vmhba0:0:0:#" Were # is the number of the new partition. You

shoulder now get a "successfully created new volume" message. If you get an

error you probably chose the wrong partition. Do an fdisk – l and choose the

number with the "unknown" partition type. Note: IF you have more than one SCSI

disk or more than one container the first 0 may need to be a 1 as well.

15. Go to the GUI and in configuration/storage select refresh. You should now

see your new VMFS volume.

Categories: VMWare Tags: ,

Monitoring VM Logs – Nearly real time monitoring – Script of the day

February 9, 2011 Leave a comment

Today’s Script of the day is not one of my own, but one I have used a few times in the past few weeks – and I figured I should post here as a reminder for when I next need it.

Written by the scripting wizard LucD, it is a tool that basicall ymonitors and displays VM logs . . almost as they happen.

http://www.lucd.info/2010/10/08/nearly-real-time-monitoring/

A great and very effective script for troubleshooting realtime VM issues.

ESX backup and monitoring for your home labs – FREE

February 8, 2011 Leave a comment

http://www.veeam.com/nfr/free-nfr-license

As a special holiday gift to VMware vExperts, VMware Certified Professionals and VMware Certified Instructors, Veeam is offering FREE two-socket licenses of their products for non-production use.

Just register here to receive the Veeam products of your choice for evaluation, demonstration and training purposes. You can choose one or both:

Veeam Backup & Replication v5 with vPower
Veeam ONE Solution

— Veeam Monitor Plus (with Veeam Reporter)
— Veeam Business View

Categories: Virtualisation Tags: , , ,