Folgaizer – Tech blog by G. Folga

Error running tomcat on RHCS

September 23, 2009 · Leave a Comment

Starting tomcat as a resource of Red Hat Cluster Suite you get

==> /var/log/tomcat5/catalina.out <==

sudo: sorry, you must have a tty to run sudo

Solution:
Comment out the following line on /etc/sudores (using visudo)
#Defaults    requiretty
Then activate the service with:
clusvcadm -e <tomcat-service>
Additional notes:
Error message in syslog:
Sep 23 16:00:06 nodo2 clurgmgrd[3127]: <notice> status on tomcat-5 “tomcat5-res” returned 1 (generic error)
==> /var/log/tomcat5/catalina.out <==
sudo: sorry, you must have a tty to run sudo

→ Leave a CommentCategories: linux

Upgrading Exchange 2010 Beta to RC1

August 19, 2009 · Leave a Comment

Requirements for upgrading Exchange 2010 Beta to RC1 on Windows Server 2008:

Software pre-req.:

Configuration:

sc config NetTcpPortSharing start= auto

Upgrade Order:

1. Mailbox servers

2. CAS & Hub Servers

If you get this error opening Exchange Management Console:  ”Initialization Failed – The following error occured when getting role assignment information for <domain>\administrator: The role assignment method, User, isn’t recognized. It was running the command…” , then try removing Administrator account from Exchange Organiztion Administrators Group.  Ref.: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/375cf88d-4879-4dc9-a522-bcbf6bedc1b0

→ Leave a CommentCategories: Uncategorized

How to run vSphere Host Update Utility on Windows 7 x64

May 28, 2009 · 7 Comments

Follow these instructions to fix vSphere client on Windows 7: http://communities.vmware.com/thread/211440

xcopy “C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe.config”    ”C:\Program Files (x86)\VMware\Infrastructure\VIUpdate 4.0\VIUApp.exe.config”

Create bat file for VIUApp.exe:

 

SET DEVPATH=c:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib
“c:\Program Files (x86)\VMware\Infrastructure\VIUpdate 4.0\VIUApp.exe”  

SET DEVPATH=c:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib

“c:\Program Files (x86)\VMware\Infrastructure\VIUpdate 4.0\VIUApp.exe”

Without these changes, VIUApp.exe fails adding hosts with error “The type initializer for ‘VirtualInfrastructure.Utils.HttpWebRequestProxy’ threw an  exception.”

→ 7 CommentsCategories: VMWare · vSphere
Tagged: ,

“Failed to set basic mailbox information, will retry in 60 seconds” in move-mailbox cross-org

April 4, 2009 · 1 Comment

When running Move-Mailbox in a cross-org scenario you get ”Failed to set basic mailbox information, will retry in 60 seconds” 

The cause seems to be that the Mailbox Server and Move-Mailbox cmdlets are using different DCs. So making sure that both use the same DC will fix this error

Using a specific DC (on destination forest), with -DomainConrtoller & -GlobalCatalog switches

get-mailbox -DomainController ‘dcA.src.local’ -Credential $s -database ‘Server1\DatabaseA’ | move-mailbox -TargetDatabase ‘Server2\Database1′ -Identity ‘testMailbox1′ -SourceForestGlobalCatalog ‘dcA.src.local’ -GlobalCatalog ‘dc1.dest.local’ -DomainController ‘dc1.dest.local’ -NTAccountOU ‘OU=UsersOU, DC=dest, DC=local’ -MaxThreads 8 -SourceMailboxCleanupOptions DeleteSourceNTAccount -SourceForestCredential $s -TargetForestCredential $t -ReportFile “C:\Logs\migrationReport.xml”

Excluding specific DCs for Mailbox server role to use with -StaticExcludedDomainController

Set-ExchangeServer -identity Server2.dest.local -StaticExcludedDomainControllers:dc2.dest.local,dc3.dest.local.

Assuming that on destination forest exist 3 dcs: dc1, dc2, and dc3.

Another workarround is leave only one DC up and running, so replication will not be involved.

References:

http://support.microsoft.com/?scid=kb;en-us;298879&x=2&y=9

http://msexchangeteam.com/archive/2006/11/02/430289.aspx

→ 1 CommentCategories: Exchange 2007
Tagged:

Preserving ost files in a cross-org migration with Move-Mailbox

February 24, 2009 · 2 Comments

One of the most important features in an Exchange cross-org miration  is to preserve OST files. That is done by using “clone mode” on Exchange Migration Wizard  (mailmig.exe /m).

On Exchange 2007,  move-mailbox is the tool used to do Cross-org mgrations. Using -NTAccountOU parameter the “clone” operation is implicit. The -NTAccountOU option is mutually excusive with -AllowMerge option. 

More info at:

http://msexchangeteam.com/archive/2006/11/02/430289.aspx

http://technet.microsoft.com/en-us/library/aa997145.aspx

http://support.microsoft.com/?scid=kb;en-us;893706&x=18&y=9

→ 2 CommentsCategories: Exchange 2007
Tagged: , ,

Inexpensive virtualization with VMWare ESXi

February 13, 2009 · Leave a Comment

This is my recipe for an inexpensive lab with VMWare ESXi:

Enbale SSH access: use this procedure http://www.vm-help.com/esx/esx3i/ESXi_enable_SSH.php . Remember it’s not supported by VMWare, but who cares!

Install all your “base” VMs. Also known as templates

Clone VMs by copying vmdk files and using thin disk to preserve space; use this link http://www.virtually-challenged.com/?p=46

Extend your storage with openfiler. http://www.openfiler.com

→ Leave a CommentCategories: VMWare
Tagged: , , , ,

How to install VMWare tools on openSuSE guest

February 1, 2009 · Leave a Comment

zypper in gcc gcc-c++ make kernel-source

From the VI Client, opent the console VM, go to VM menu -> Install/Upgrade VMWare Tools

mount /dev/cdrom /media

rpm -Uvh /media/*.rpm

config-vmware-tools.pl

→ Leave a CommentCategories: OpenSUSE · VMWare · linux
Tagged:

Export/Import mail-enabled contacts with ldifde

January 27, 2009 · Leave a Comment

ADMT doesn’t support migration of contacts, so an alternative is to use ldifde to export and import contacts.

These are the main attributes needed to make the imported contact a mail-enabled one (At least for Exchange 2003)

cn,objectclass,samAccountName,legacyExchangeDN,

mail,mailNickname,proxyAddresses,displayName,targetAddress

And these are some general atributes that you may need to copy:

givenName,sn,name,physicalDeliveryOfficeName,description

Command line to export contacts:

ldifde -f file.ldf -s dc01 -d "ou=Contacts,dc=example,dc=com"
-p subtree -r "(&(objectCategory=person)(objectClass=Contact)(givenname=*))"
-l "cn,givenName,objectclass,samAccountName,mail,legacyExchangeDN,mailNickname,proxyAddresses,
physicalDeliveryOfficeName,displayName,name,description,sn,targetAddress"

Probably you are importing those contacts to a different domain/forest, so you need to replace the domain name (“dc=example,dc=com”) with the new one on the ldf file.

Command line to import contacts:

ldifde -i -f file.ldf

→ Leave a CommentCategories: Exchange 2003 · Microsoft
Tagged: ,

Downloading iso files with wget

January 27, 2009 · Leave a Comment

For some reason every time I try to download iso of openSuSE I get the wrong file size (363431936 bytes). The solution is to add –ignore-length

wget -c http://download.opensuse.org/distribution/11.1/iso/openSUSE-11.1-DVD-x86_64.iso –ignore-length

→ Leave a CommentCategories: OpenSUSE · linux
Tagged:

Hyper-V Update List

January 17, 2009 · Leave a Comment

First time you implement Hyper-V a question pop-ups, what are the hotfixes needed for Hyper-V? Besides KB950050 that is required to bring your Hyper-V to the RTM version, there are serveral updates that might apply to your environment. This url has the “live” list of updates:

http://technet.microsoft.com/en-us/library/dd430893.aspx

→ Leave a CommentCategories: Hyper-V · Microsoft
Tagged: