fredag 27. juli 2012

The VMware Paravirtual SCSI (PVSCSI) adapter, an eye opener



http://paulgrevink.wordpress.com/2011/12/18/the-vmware-paravirtual-scsi-pvscsi-adapter-an-eye-opener/

The VMware Paravirtual SCSI (PVSCSI) adapter, an eye opener

UPDATED VERSION 16-3-2012
Recently, I attended the 2011 Dutch VMware User Group meeting. I can recommend anyone to go to this meeting. To get the most out of it, some understanding of the Dutch language is highly recommended. J
This year Eric Sloof and Mattias Sundling presented their famous “Mythbusters goes Virtual” session. You can see a sneak preview here. In the session some old habits are presented, the question is, can you do better with vSphere 5?
For me, the most surprising fact of this session is the recommendation to configure a VM with the VMware Paravirtual SCSI (PVSCSI) adapter instead of the LSI Logic Controller. At the end of the session there was an audience question how to reconfigure a VM with the PVSCSI adapter. So let’s find out for myself.

VMware has published KB 1010398 Configuring disks to use VMware Paravirtual SCSI (PVSCSI) adapters. The KB states that “PVSCSI adapters are high-performance storage adapters that can result in greater throughput and lower CPU utilization. PVSCSI adapters are best suited for environments, especially SAN environments, where hardware or applications drive a very high amount of I/O throughput. PVSCSI adapters are not suited for DAS environments.” A matrix supported Operating Systems and instructions how to configure a PVSCSI adapter is also included in the KB.

Reconfigure a Windows 2008 R2 VM

This is the original configuration of a Windows 2008 R2 VM. Notice that the SCSI adapter is LSI Logic. In case we just changed the adapter type, the VM won’t boot. So that would not help us much. To change the adapter, we must use a trick. We will add a “helper” disk.

  • Add a disk
  • “Select a Disk” window, choose “Create a new Virtual Disk”,
  • “Create a Disk” windows, leave everything default
  • Under “Advanced Options”, under “Virtual Device Node”, default the next available ID on Controller 0 will be used. Now select Node 1:0.
    By choosing 1:0, a new SCSI controller will appear.
  • leave the other options to their default and Complete the creation.
  • As a result, this time, a new SCSI Controller has been added. Now we need to change the type from LSI Logic SAS to VMware Paravirtual
  • Select Change Type and change to “VMware Paravirtual”.
  • Results in this…
  • Now boot the VM and check the hardware. In the image, you see both storage controllers.
  • Shut down and return to the configuration.

    Now change the type for SCSI controller 0 and change to “VMware Paravirtual”.
  • Boot the VM
  • Final step, from a running Windows 2008 R2 VM, you can remove the temporarily added Hard disk and SCSI controller 1.
  • remove Hard Disk 3. Don’t forget to select “Remove from virtual machine and delete files from disk”.
  • Last step is to reove SCSI Controller 1.
  • Finished.

Creating a new Windows 2008 R2 server

The best option is to include the VMware Paravirtual SCSI (PVSCSI) adapter in a template. In case you would like a fresh Windows 2008 R2 server with the Paravirtual adapter included, follow these steps.

Create a new Windows 2008 R2 VM. After creation, Edit the hardware:
  • Change the SCSI controller type to Paravirtual;
  • Add a Floppy drive
Go to the Floppy device and check “Connect at Power On”.
Select “Use existing floppy image in datastore:”, browse to folder vmimages, floppies and select the correct floppy image, in this case: pvscsi-Windows2008.flp.
In case your Datastore browser does not show the vmimages folder, please read this VMware KB “Unable to mount a floppy in vCenter server”.

Boot the newly created VM and proceed to the “Where do you want to install Windows?” page. Notice that there’s no disk available.

Select “Load Driver” and select the floppy drive.

Select the driver and…

…if everything goes well, now the install disk is present. Now you can continue the installation.
I want to thank the VMware communities forum for providing this info. As always, I hope this post was useful, thank you for reading and do not hesitate to contact me.
Please, also read this post on a Critical issue with the PVSCSI on Windows 2008 (R2) Server , from blogger Michael Webster.



onsdag 21. september 2011

Launch Admin Tools from the Command Line

This list of .msc files will help you run admin tools from the command line.


Most admin tools in Windows Server 2003 are MMC consoles you can access from the Start menu. But you can also open these console from the command line if you know their .msc filenames. This can be especially useful if you log on to your admin workstation using a limited privilege account and use Runas to perform admin tasks. For reference, here's a list of admin tools with their associated .msc files. You can print this out and tape it on the wall beside your workstation until you memorize the ones you use most commonly.

http://www.windowsnetworking.com/kbase/windowstips/windows2003/admintips/admin/launchadmintoolsfromthecommandline.html
AD Domains and Trusts
domain.msc

Active Directory Management
admgmt.msc

AD Sites and Serrvices
dssite.msc

AD Users and COmputers
dsa.msc

ADSI Edit
adsiedit.msc

Authorization manager
azman.msc

Certification Authority Management
certsrv.msc

Certificate Templates
certtmpl.msc

Cluster Administrator
cluadmin.exe

Computer Management
compmgmt.msc

Component Services
comexp.msc

Configure Your Server
cys.exe

Device Manager
devmgmt.msc

DHCP Managment
dhcpmgmt.msc

Disk Defragmenter
dfrg.msc

Disk Manager
diskmgmt.msc

Distributed File System
dfsgui.msc

DNS Managment
dnsmgmt.msc

Event Viewer
eventvwr.msc

Indexing Service Management
ciadv.msc

IP Address Manage
ipaddrmgmt.msc

Licensing Manager
llsmgr.exe

Local Certificates Management
certmgr.msc

Local Group Policy Editor
gpedit.msc

Local Security Settings Manager
secpol.msc

Local Users and Groups Manager
lusrmgr.msc

Network Load balancing
nlbmgr.exe

Performance Montior
perfmon.msc

PKI Viewer
pkiview.msc

Public Key Managment
pkmgmt.msc

QoS Control Management
acssnap.msc

Remote Desktops
tsmmc.msc

Remote Storage Administration
rsadmin.msc

Removable Storage
ntmsmgr.msc

Removalbe Storage Operator Requests
ntmsoprq.msc

Routing and Remote Access Manager
rrasmgmt.msc

Resultant Set of Policy
rsop.msc

Schema management
schmmgmt.msc

Services Management
services.msc

Shared Folders
fsmgmt.msc

SID Security Migration
sidwalk.msc

Telephony Management
tapimgmt.msc

Terminal Server Configuration
tscc.msc

Terminal Server Licensing
licmgr.exe

Terminal Server Manager
tsadmin.exe

UDDI Services Managment
uddi.msc

Windows Mangement Instumentation
wmimgmt.msc

WINS Server manager
winsmgmt.msc

fredag 29. juli 2011

Find the Service tag or Serial number of VMware ESX host

There might be a few reasons that you would need to do this. But if you need to locate the Serial Number of server or Service Tag of your Dell server you can do this from the service console command line. In the past I have needed this to schedule service and also to confirm the identity of a server for the Vendor that was on site. In case you do not have a database to reference or maybe someone mistyped the digits you can always fall back to this method.
Type the following command from the command line on the service console and you will get some Vendor details and serial number information.

[root@host name]# /usr/sbin/dmidecode |grep -A4 “System Information”

onsdag 12. januar 2011

inetpub\logs\logfiles\w3svc1 getting very large

http://social.technet.microsoft.com/Forums/en/configmgrgeneral/thread/d989b249-0159-41fc-b78c-1f1d91ce8bb3

Logfiles can be deleted / trimmed with the following command which creates a scheduled task to do it :-


at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"

------------------------------------------------------
IIS logging is is enabled by default in IIs& ad IIS7.5 so I assume that you mean one of those: http://technet.microsoft.com/en-us/library/cc754631(WS.10).aspx.


Here we can disable the IIS log files


Go To IIS console -> and Right click WebSite Property and click web site TAB find the Enable logging Next Step ->Uncheck the Enable Logging and restart the IISADMIN services after restart the service IIS log files are disbled






--------------------------------------------------------------------------------

fredag 7. januar 2011

How to check Oracle version / hvordan sjekke Oracle versjon?

SQL> connect system/manager@ as sysdba;

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle9i Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production

SQL>

tirsdag 7. desember 2010

Fix på problem med ESX-host som har "disconnect" status i VirtualCenter

[root@tro-bl-esx02 root]# service mgmt-vmware restart
Stopping VMware ESX Server Management services:
VMware ESX Server Host Agent Watchdog [ OK ]
VMware ESX Server Host Agent [ OK ]
Starting VMware ESX Server Management services:
VMware ESX Server Host Agent (background) [ OK ]
Availability report startup (background) [ OK ]

[root@tro-bl-esx02 root]# service vmware-vpxa restart
Stopping vmware-vpxa: [ OK ]
Starting vmware-vpxa: [ OK ]
[root@tro-bl-esx02 root]#

torsdag 2. desember 2010

How to upgrade iLO Firmware on c7000 blades

1. Last ned fila CP013601.scexe fra HP >> CP013601.scexe
2. Logg inn som root på ESX-server
3.Gi rettigheter til å kjøre fila >> chmod +x CP013601scexe
4. Bekreft oppgradering av firmware.
5. iLO firmware er oppgraert :-)

-----------------------------

[root@tro-bl-esx01 tmp]# chmod +x CP013601.scexe
[root@tro-bl-esx01 tmp]# ./CP013601.scexe

FLASH_iLO2 v1.12 for Linux (Aug 31 2009)
Copyright 2009 Hewlett-Packard Development Company, L.P.
Firmware image: ilo2_201.bin
Current iLO 2 firmware version  1.70; Serial number ILOCZJ80504HC

Component XML file: CP013601.xml
CP013601.xml reports firmware version 2.01
This operation will update the firmware on the
iLO 2 in this server with version 2.01.
Continue (y/N)?y
Current firmware is 1.70 (Dec 02 2008 17:50:39)
Firmware image is 0x300000 bytes
Committing to flash part...
******** DO NOT INTERRUPT! ********
Flashing completed!                                  
Attempting to reset device.
Succeeded.
Waiting for iLO 2 to reboot...
iLO 2 reboot completed.
[root@tro-bl-esx01 tmp]#