Tuesday, October 27, 2009

Troubleshooting RPC Endpoint Mapper

Troubleshooting RPC Endpoint Mapper errors using the Windows Server 2003 Support Tools:

http://support.microsoft.com/?id=839880

Registering Linux host using Navisphere Host Agent

On EMC KB site i found few articles which I compiled togather the information togather for my future references

If a Host shows up as unmanaged/unreachable in Navisphere.Or the Host does not register with the fully qualified host name and IP address, then you can follow these steps to fix the issue:

First step you need to Verify if port 6389 is open. Navisphere Host Agent uses the /etc/hostfile on a Linux host to create the HostIDFile.txt file. Navisphere uses the HostIDFile.txt file to register the host. In order for the host to register and show up as being managed the /etc/hostfile should contain the fully qualified host name and the IP address MUST be included in the hostfile.

Hostfile example:
# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost10.21.41.61 testvmesx1.test.com.au testvmesx1

If there are multiple entries, comment out all but the entries that you want the host to register to the CLARiiON with. (Once the host registers, the user can then uncomment the entries in the /etc/hostfile.) Once the appropriate changes have been made, cd into the /var/log directory. Locate HostIDFile.txt and delete it. Stop and start the Navisphere Host Agent.
Once the host Agent starts, a new HostIDFile.txt will be created. From Navisphere Manager, right-click the array and click Update Now. Then under the hosts tab, right-click the host, select Properties, and verify that next to Operating System the Agent is reporting the correct operating system.

How to stop and start Navisphere Agent on various OS

Logon to Service Console

From VMware:

/etc/init.d/naviagent stop
/etc/init.d/naviagent start

From Linux environment:

/etc/init.d/naviagent stop
/etc/init.d/naviagent start

From Novell NetWare:

load sys:\emc\agent\navagent -f sys:\emc\agent\agent.cfg
unload navagent

From Windows:

Go to "Services" (Click on Start ---> Run -----> services.msc), ENTER
Click STOP SERVICE,and then click START SERVICE ( or simply click the RESTART SERVICE).

Monday, October 26, 2009

Registering HBAs With the Storage System

The process of Registering Fibre Channel HBAs or iSCSI with the storage system enables the storage system to see the HBAs or NICs. To register HBAs with the storage system, require you to start or restart the Navisphere Agent on the host.

VMware server ESX 2.5 and above

For example:

Logon to Service Console with sufficient privileges and initiate the following command:

# /etc/init.d/agent stop
# /etc/init.d/agent start

Obtaining LUN pathing information for ESX hosts

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

Troubleshooting ESX Server and ESXi connectivity to iSCSI arrays using software initiator

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

iSCSI SAN Configuration Guide

http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_iscsi_san_cfg.pdf

ESX Server 3 Configuration Guild and VC 2.5

http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf

Friday, October 23, 2009

ESX Host Not Responding

In some instances when I login to VC and I find a particular ESX host status is displayed “host not responding”. This is something in most cases can be resolved by restarting the vpxa and the mgmt services by executing the following commands at Services Console:

Service vmware-vpxa restart

Service mgmt-vmware restart

Thursday, October 22, 2009

Setting Up Your First Domain Controller With Windows Server 2008

I found this really good web site and all the credits goes to ElMajdal. This is something that I'll be looking to perform in next few months . Our Domain functional level is Window 2000 native but since I decommissioned the last domain controller (Windows 2000), which was also running MS Exchange 2000 on it. Now that we upgraded our mail server to Microsoft Exchange 2007 CCR and there are no Windows 2000 domain controllers.

I'll be migrating from Windows 2003 to Windows Server 2008 and transfering the FSMO roles to Windows Server 2008.

I found ElMajdal's website very informative and posted the details on my blog for my future references:

Migrating Active Directory Domain Controller from Windows Server 2003 to Windows Server 2008

Also have a look at:
http://technet2.microsoft.com/windowsserver2008/en/library/f349e1e7-c3ce-4850-9e50-d8886c866b521033.mspx?mfr=true

More info about Windows Server 2008 at:
http://technet2.microsoft.com/windowsserver2008/en/library/246aa651-6858-4dc9-aade-6806065d0ea21033.mspx?mfr=true

How to Build and Deploy the First Domain Controller (Windows Server 2003)

Refer to Microsoft TechNet on the following Link:

Build and Deploy the First Domain Controller

Tuesday, October 20, 2009

Free VMware Tools Listing at Techhead

Simon Seagrace from Techhead created a great list with a lot of freely available VMware related tools.

http://www.techhead.co.uk/vmware-esx-tools

Unable to access a file since it is locked

Just before our Data Centre move, I consolidated most of our servers using virtualization technology, using P2V most of our servers were virtualised successfully. Except during this process I experienced 1 or 2 servers having a lock file issues.

When I started the VM on the ESX host and got an error message of: “Unable to access a file since it is locked”. After some investigation on the VMware community forums and so on, I found two solutions and I wanted to post them on my blog for my own future reference but also for all you out there for whom it might be helpful to.

All the credits go to Rob Bohmann & ctfoster for their contributions:

http://communities.vmware.com/message/964286#964286 http://communities.vmware.com/message/909582#909582

Best Practices for Designing VMware Infrastructure to Support SQL Server

VMware Tech Resources Posting:

http://www.vmware.com/files/pdf/solutions/sql_server_virtual_bp.pdf


VMware VMFS Volume Management

VMware Tech Resources Posting:

http://www.vmware.com/files/pdf/vmfs_resig.pdf

Unable to access the virtual machine configuration and unable to access file

This morning on one of our ESX server we had some hardware (RAM) issues. We replaced the faulty part and the server is now online but since then for some reason I can not perform VMotion on this server.

While i'm trying to resolve this issue and searching for answares, I came accross few articles on vmware website which deals with VMotion migration compatibility issues:

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

Monday, October 19, 2009

How to Set the MaxPageSize in Active Directory

The MaxPageSize value for the LDAPAdminLimits attribute controls the number of records that can be returned upon an LDAP query. If there are more then 1000 items returned for an LDAP query, then the Active Directory sees this maximum value of (1000) and return nothing.

This is due to by default in Microsoft Active Directory the query limit is set to 1000 objects per request. The parameter in Active Directory can be changed in different ways. It can be changed with the NTDSUtil.exe utility or with the ADSI Edit Snap-in.

The following LDAP entry needs to be changed.CN=Default Query Policy, CN=Query-Policies, CN=Directory Service, CN=Windows NT, CN=Services, CN=Configuration, DC=YOUR_COMPANY, DC=YOUR_COMPANY_TLD.

To start ntdsutil.exe:

Go Start and then click on Run.

At the command prompt, type ntdsutil and then press ENTER.

At the ntdsutil command prompt, type LDAP policies and then ENTER.

At the LDAP policy prompt, type connections and then ENTER.

AT the server connections prompt, type connect to server (DNS name of the Server or localhost) and then press ENTER.

But if you like to modify the default values, For Example the MaxPageSize (say to 2500), At the command prompt enter the following commands:

Type ntdsutil, then Enter

Type LDAP policies and then ENTER

Type Set MaxPageSize to 2500

To confirm the changes, use the Show Values command.

Once the values are confirmed then

Type Commit Changes, then Enter

Type q, then press ENTER to return to previous menu.

Type q again and then press ENTER to exit ntdsutil.

The changes are immediatly effective and if you have multiple sites you may need to force replication accross your network.

To use the ADSI Edit:

http://www.fots.nl/index.php/how-to/set-the-maxpagesize/

http://www.computerperformance.co.uk/w2k3/utilities/adsi_edit.htm

Friday, October 2, 2009

How to Reset Windows administrator Password

EBCD (Emergency Boot CD) which is a very useful tools that can reset passwords and also can be used for emergency boot CD in case of system failure. Myself, I have used and tested this tool many times. Whenever, I deployed an image from VC and the password had some corruption issues, then I had to use EBCD to reset Administrator password and also other accounts on local systems, such as Windows XP and 2003 Server Std Ed.

I never encountered any problems using the EBCD but if anyone want to use this utility or this Post for their personal references, then I won't take any kind of responsibility for their system failure or damages for using this utility.
STEPS:
1. Makesure XP/Windows 2003 Server is installed on first IDE drive(c:\).
2. Download EBCD
3. Extract and run makeebcd.exe, and then burn the ISO image to a compact media (CD).
4. Boot the computer with CD. Once you get to the boot menu option. Select option(5) NT password editor (Linuxbased) and press Enter.
5. Press Enter to continue.
6. You need to Press Enter again if you don’t keep Windows on SCSI drive or jus type ‘y’ if you want to load SCSI drivers.
7. Here you need to select which Drive/partition that contains Windows Operating system(OS). You can press Enter to accept the default value in bracket[]. In this step, the default value is [/dev/hda1]. This is partition in Linux format which you can ignore the detail if you have Windows OS installed on local drive(C:).
8. Press Enter again to accept value in bracket[].
9. Press Enter again.
10. In this step, it’ll show the change NT password menu. Press Enter to accept value in bracket [1] (Edit user data and passwords).
11. Select a Username you want to edit. By default the value is Administrator, so in this case just press Enter to select the default user.
12. Enter new password for Administrator. I would recommend to set the password to blank by typing ‘*’ and press Enter, you could change it to something else later when you logged in to the system.
13. This the step where it will ask your confirmation, so just Press Enter.
14. Type ‘!’ and press Enter to go back to change NT password menu if you finish change password.
15. Just Type ‘q’ to quit.
16. In this step it will lists all the things that you’ve done. Just Type ‘y’ to confirm and save those changes.
17. Type ‘y’ again and press Enter to confirm copy settings back to your Windows.
18. Finally, you’ve finished resetting the Administrator password. Now you need to reboot your pc and test the changes you made to administrator account by logging on with a blank password.

Notable KB Articles

AIX Quick Command Guild

I found these information on IBM website and posted on my blog for my future references. These commands can become very handy when you need to logon to the AIX box now and then!!

Filesystems
Default rootvg filesystems
hd1 -/home
hd2 -/usr
hd3 -/tmp
hd4 -/
hd5 -Boot logical volume
hd6 -paging space
hd8 -log device
hd9var -/var
hd10opt -/opt
hd11admin -/admin
Remove mount point entry and the LV for /mymount
rmfs /mymount (Add -r to remove mount point)
Grow the /var filesystem by 1 Gig
chfs -a size=+1G /var
Grow the /var filesystem to 1 Gig
chfs -a size=1G /var
Find the file usage on a filesystem
du -smx /
List filesystems in a grep-able format
lsfs
Get extended information about the /home filesystem
lsfs -q /home Create a log device on datavg VG mklv -t jfs2log -y datalog1 datavg 1
Format the log device just created
logform /dev/datalog1

Devices
List all devices on a system
lsdev
Device states are: Undefined; Supported Device, Defined; Not usable (once seen), Available; Usable List all disk devices on a system (Some other devices are: adapter, driver, logical volume, processor)
lsdev -Cc disk
List all customized (existing) device classes (-P for complete list)
lsdev -C -r class
Remove hdisk5
rmdev -dl hdisk5
Get device address of hdisk1 getconf DISK DEVNAME hdisk1 or bootinfo -o hdisk1 Get the size (in MB) of hdisk1 getconf DISK SIZE hdisk1 or bootinfo -s hdisk1 Find the slot of a PCI Ethernet adapter
lsslot -c pci -l ent0
Find the (virtual) location of an Ethernet adapter
lscfg -l ent1
Find the location codes of all devices in the system
lscfg
List all MPIO paths for hdisk0
lspath -l hdisk0
Find the WWN of the fcs0 HBA adapter
lscfg -vl fcs0 grep Network Temporarily change console output to /console.out swcons /console.out (Use swcons to change back.)


Tasks
Change port type of (a 2Gb) HBA (4Gb may use dierent setting)
rmdev -d -l fcnet0
rmdev -d -l fscsi0
chdev -l fcs0 -a link type=pt2pt
cfgmgr
Mirroring rootvg to hdisk1
extendvg rootvg hdisk1
mirrorvg rootvg
bosboot -ad hdisk0
bosboot -ad hdisk1
bootlist -m normal hdisk0 hdisk1


Devices
List all devices on a system
lsdev
Device states are: Undefined; Supported Device, Defined; Not usable (once seen), Available; Usable List all disk devices on a system (Some other devices are: adapter, driver, logical volume, processor)
lsdev -Cc disk
List all customized (existing) device classes (-P for complete list)
lsdev -C -r class
Remove hdisk5
rmdev -dl hdisk5
Get device address of hdisk1 getconf DISK DEVNAME hdisk1 or bootinfo -o hdisk1 Get the size (in MB) of hdisk1 getconf DISK SIZE hdisk1 or bootinfo -s hdisk1 Find the slot of a PCI Ethernet adapter
lsslot -c pci -l ent0
Find the (virtual) location of an Ethernet adapter
lscfg -l ent1
Find the location codes of all devices in the system
lscfg
List all MPIO paths for hdisk0
lspath -l hdisk0
Find the WWN of the fcs0 HBA adapter
lscfg -vl fcs0 grep Network Temporarily change console output to /console.out swcons /console.out (Use swcons to change back.)


Users and Groups
List all settings for root user in grepable format lsuser -f root
List just the user names
lsuser -a id ALL sed ’s/ id.*$//’
Find the fsize value for user wfavorit
lsuser -a fsize wfavorit
Change the fsize value for user wfavorit
chuser fsize=-1 wfavorit


Networking
The examples here assume that the default TCP/IP configuration (rc.net) method is used. If the alternate method of using rc.bsdnet is used then some of these examples may not apply. Determine if rc.bsdnet is used over rc.net lsattr -El inet0 -a bootup option
TCP/IP related daemon startup script
/etc/rc.tcpip
To view the route table
netstat -r
To view the route table from the ODM DB
lsattr -EHl inet0 -a route
Temporarily add a default route
route add default 192.168.1.1
Temporarily add an address to an interface
ifconfig en0 192.168.1.2 netmask 255.255.255.0
Temporarily add an alias to an interface
ifconfig en0 192.168.1.3 netmask 255.255.255.0 alias
To permanently add an IP address to the en1 interface
chdev -l en1 -a netaddr=192.168.1.1 -a netmask=0xffffff00
Permanently add an alias to an interface
chdev -l en0 -a alias4=192.168.1.3,255.255.255.0
Remove a permanently added alias from an interface
chdev -l en0 -a delalias4=192.168.1.3,255.255.255.0
List ODM (next boot) IP configuration for interface
lsattr -El en0
Permanently set the hostname
chdev -l inet0 -a hostname=www.tablesace.net Turn on routing by putting this in rc.net no -o ipforwarding=1
List networking devices
lsdev -Cc tcpip
List Network Interfaces
lsdev -Cc if
List attributes of inet0
lsattr -Ehl inet0
List (physical layer) attributes of ent0
lsattr -El ent0
List (networking layer) attributes of en0
lsattr -El en0
Speed is found through the entX device
lsattr -El ent0 -a media speed
Set the ent0 link to Gig full duplex (Auto Negotiation is another option) chdev -l ent0 -a media speed=1000 Full Duplex -P
Turn off Interface Specific Network Options
no -p -o use isno=0
Get (long) statistics for the ent0 device (no -d is shorter)
entstat -d ent0
List all open, and in use TCP and UDP ports
netstat -anf inet
List all LISTENing TCP ports
netstat -na grep LISTEN
Remove all TCP/IP configuration from a host
rmtcpip IP packets can be captured using iptrace / ipreport or tcpdump


Performance Monitoring
Make topas look like top topas -P
View statistics from other partitions
topas -C
View statistics for disk I/O
topas -D
Show statistics related to micro-partitions in Power5 environment
topas -L
• All of the above commands are availible from within topas
• Use mpstat -d to determine processor affinity on a system. Look for s0 entries for the best affinity and lesser affinity in the higher fields. Get verbose disk stats for hdisk0 every 2 sec

iostat -D hdisk0 2
Get extended vmstat info every 2 seconds
while [ 1 ]; do vmstat -vs; sleep 2; clear; done
Get running CPU stats for system
mpstat 1
Get time based summary totals of network usage by process netpmon to start statistics gathering, trcstop to finish and summarize.


Getting info about the system
Find the version of AIX that is running
oslevel
Find the ML/TL or service pack version oslevel -r –or– oslevel -s List all attributes of system
getconf -a
Find the type of kernel loaded (use -a to get all options)
getconf KERNEL BITMODE
bootinfo and getconf can return much of the same information, getconf returns more and has the grepable -a option. Find the level of firmware on a system
invscout
List all attributes for the kernel “device”
lsattr -El sys0
Print a “dump” of system information
prtconf


smitty FastPaths
Find a smitty FastPath by walking through the smitty screens to get to the screen you wish. Then Hit F8. The dialog will tell you what FastPath will get you to that screen. (F3 closes the dialog.) lvm -LVM Menu mkvg -Screen to create a VG configtcp -TCP/IP Configuration eadap -Ethernet adapter section fcsdd -Fibre Channel adapter section chgsys -Change / Show characteristics of OS users -Manage users (including ulimits) devdrpci -PCI Hot Plug manger etherchannel -EtherChannel / Port Aggregation

Thursday, October 1, 2009

ESX Host Uptime Command

To view the uptime status of your ESX Host:

Logon to Services Console
Execute the command: $ echo (uptime)

Using Dell OpenManage in an ESX Server Environment

To start, stop, or check the status of OpenManage services from ESX Server Service Console, issue the following commands respectively: $ srvadmin-services.sh start $ srvadmin-services.sh stop $ srvadmin-services.sh status

To access the OpenManage web page, type the following web address in a supported browser window from a client system to connect to the ESX Server system:

https://:1311 where, 1311 is the port used by the OpenManage web server.

Using OpenManage, you can check the system details such as the BIOS and BMC firmware version, monitor the system health such as power supply and fan status, perform power operations such as system reboot, shutdown, etc. and monitor and configure your storage. You could do all this from the OpenManage web page or from the ESX Server Service Console through the command line interface of OpenManage using commands such as these.

To check the version of OpenManage installed, execute:

$ omreport about

To view the system summary, execute:

$ omreport system summary

Installing Dell OpenManage 5.x onVMware ESX 3.x

Log on to Service Console with administrator privileges.


Make sure there is free disk space in the /root partition of your ESX Server service console. You can verify this by running the command of df –lh in the service console.


If you are using an OpenManage CD/DVD, then you need to mount the media and change the working directory with the following command:

$ mount /dev/cdrom /mnt/cdrom $ cd /mnt/cdrom/srvadmin/linux/supportscripts


Installing OpenManage by executing the installation script with the following command:

$ ./srvadmin-install.sh –b –w -s


To start the OpenManage services without rebooting the system, execute the following command:

$ srvadmin-services.sh start

To umount the CD/DVD and eject media execute the following command:

$ eject

To access the ESX server using an OpenManage web console, you need to open the ports used by OpenManage by using the following commands:

$ esxcfg-firewall -o 1311,tcp,in,OpenManageRequest

Running DSET Utility On ESX 3.5

  • Download the DSET utility for linux (.bin file)
    http://support.dell.com/dset
  • Installation:
    Browse to the location where you downloaded the file and open a console or command prompt. Run the DSET binary from the command prompt, eg: ./delldset_vx.x.x.bin.

  • Follow the wizard, Select the option 2) Create a DSET Report OnlyWhen prompted for log collection, Collect all logs with the exception of other operating system logs.