Recently I had to upgrade the integration components on a lot of CentOS virtual systems running on a Hyper-V failover cluster. During the upgrade procedure I faced a couple of things, which I'd like you to be aware of. The version on the guest VM is CentOS 6.3, the Hyper-V failover cluster is running under Windows Server 2008 R2 SP1 and consists of 6 nodes.
Below is the output of LVM related commands before starting the upgrade of Linux IC:
Upgrade Microsoft Hyper-V Linux IC from 3.3 to 3.4
Eingestellt von
Unknown
Wednesday, December 5, 2012
16:34
Find differences in Public Folder replicas
This is a small piece of code to run it in EMS and to help you finding differences in item number in a public folder structure. The powershell script shows the number of elements in each sub folder for the both of Exchange 2010 servers, which public folder replicas are located on. Below is an example output of the script.
[PS] C:\>C:\scripts\get-pffolderdiffs.ps1
Path ItemCount_SRV1 ItemCount_SRV2
---- -------------- --------------
\PF1\VPC 0 0
\PF1\VPC\Exec 1739 1739
\PF1\VPC\Exec\2007 20406 20406
\PF1\VPC\Exec\2008 21952 21952
\PF1\VPC\Exec\2009 27804 27804
\PF1\VPC\Exec\2010 16888 16888
\PF1\VPC\Exec\2011 39021 1869
\PF1\VPC\Exec\2012 15734 15734
Please note that the script is provided AS IS without any guarantee:
$PF='\PF1'
$SR1='SRV1'
$SR2='SRV2'
Get-PublicFolder -Server $SR1 -ResultSize unlimited -Identity $PF -Recurse `
| Sort-Object -Property @{expression={$_.ParentPath + '\' + $_.Name}} |
ft @{label="Path"; expression={ $_.ParentPath + "\" + $_.Name }},
@{label="ItemCount_$SR1"; expression={ `
(get-PublicFolderStatistics -Server $SR1 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }}, `
@{label="ItemCount_$SR2"; expression={ `
(get-PublicFolderStatistics -Server $SR2 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }} -auto
[PS] C:\>C:\scripts\get-pffolderdiffs.ps1
Path ItemCount_SRV1 ItemCount_SRV2
---- -------------- --------------
\PF1\VPC 0 0
\PF1\VPC\Exec 1739 1739
\PF1\VPC\Exec\2007 20406 20406
\PF1\VPC\Exec\2008 21952 21952
\PF1\VPC\Exec\2009 27804 27804
\PF1\VPC\Exec\2010 16888 16888
\PF1\VPC\Exec\2011 39021 1869
\PF1\VPC\Exec\2012 15734 15734
Please note that the script is provided AS IS without any guarantee:
$PF='\PF1'
$SR1='SRV1'
$SR2='SRV2'
Get-PublicFolder -Server $SR1 -ResultSize unlimited -Identity $PF -Recurse `
| Sort-Object -Property @{expression={$_.ParentPath + '\' + $_.Name}} |
ft @{label="Path"; expression={ $_.ParentPath + "\" + $_.Name }},
@{label="ItemCount_$SR1"; expression={ `
(get-PublicFolderStatistics -Server $SR1 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }}, `
@{label="ItemCount_$SR2"; expression={ `
(get-PublicFolderStatistics -Server $SR2 ($_.ParentPath + '\' + $_.Name) `
| Select-Object -ExpandProperty ItemCount) }} -auto
Eingestellt von
Unknown
11:05
Check_MK check to show some data about Ex2010 mailbox databases
A few days ago I finished to test a new check for check_mk and published it as package at Check_MK Exchange. I named the check "Ex2010_MBDB_Info". In this article I'd like to share a couple of details about the check and its functionality.
The purpose of the check is to get the size of mailbox databases and the count of the mailboxes in each of them. The check package consists of the check itself, the plugin for check_mk agent, the perf-o-meter helper file and the pnp-template.
The purpose of the check is to get the size of mailbox databases and the count of the mailboxes in each of them. The check package consists of the check itself, the plugin for check_mk agent, the perf-o-meter helper file and the pnp-template.
Eingestellt von
Unknown
Wednesday, September 26, 2012
23:53
Extending a LVM partition in a Hyper-V guest VM running CentOS
Imagine a scenario like the following: you have a Hyper-V host and a CentOS 6.3 guest. The CentOS guest has Microsoft Integration Services for Linux 3.3 installed and running. A data file system on the guest is running out of the free space:
Although the partition is a part of LVM, but your entire disk is almost full. In the article I'd like to show how you can get rid of this without getting your services offline.
[root@myhost ~]# df -h /data/svn/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/data-svn 99G 93G 964M 99% /data/svn
Although the partition is a part of LVM, but your entire disk is almost full. In the article I'd like to show how you can get rid of this without getting your services offline.
Eingestellt von
Unknown
Wednesday, August 1, 2012
18:32
Lock and unlock an ActiveSync device
Assume, a mobile phone or tablet device with a buggy implementation of the ActiveSync protocol causes a lot of traffic or a heavy load in your Exchange 2010 infrastructure (see this article of mine for an example). You surely could disable the ActiveSync feature for the Mailbox user to disable the access for the user completely. A better way is however to disable only the device, which causes the troubles.
Exchange management shell offers cmdlets to manage ActiveSync devices:
Exchange management shell offers cmdlets to manage ActiveSync devices:
Eingestellt von
Unknown
Thursday, June 7, 2012
22:59
Exchange 2010 transaction logfiles grow very fast
A few days ago I had a problem with transaction log files on a Exchange 2010 SP2 RU1 mail server. They grown and grown and grown... I saw above 160,000 (one hundred sixty thousand !!!) files belonging to a single mailbox database. The mailbox database itself was ca. 30 GByte in size. It was then no surprise that the appropriate volume exceeded it capacity after only a couple of hours.
I wouldn't even have noticed the issue but the appropriate backup job that should flush transaction log files among other things failed and didn't run. Because of the failed backup job the transaction log files were not flashed and were not removed but grown.
I wouldn't even have noticed the issue but the appropriate backup job that should flush transaction log files among other things failed and didn't run. Because of the failed backup job the transaction log files were not flashed and were not removed but grown.
Eingestellt von
Unknown
Friday, May 18, 2012
15:37
Transport-Rule in Exchange 2010 to prefix the Subject
Assume, you'd like to prepend the subject of an e-mail with a prefix, if the e-mail has been sent from the certain computer and if it has a certain sender name. In this case you can create a new transport rule with Powershell.
For example, the subject should be prepended by the phrase '[Alert]', if the From address contains 'my_sender@company.com' AND if the computer's name, which the email is sent from, is 'my_computer.company.com'. The powershell command below configures this:
After the command has been executed the rule is active. It acts in the whole Exchange organization and is not restricted to a single server.
Please note that the argument for the parameter -HeaderContainsWords must contain the name, which the email program on the sender computer actually uses. If the new rule doesn't work as expected, look into the internet headers of a test e-mail and note the computer name, which is in the line Received.
For example, the subject should be prepended by the phrase '[Alert]', if the From address contains 'my_sender@company.com' AND if the computer's name, which the email is sent from, is 'my_computer.company.com'. The powershell command below configures this:
New-TransportRule -Name 'My_transport_rule' -Comments 'My comment' -HeaderContainsMessageHeader 'Received' -HeaderContainsWords 'my_computer.company.com ' -FromAddressContainsWords 'my_sender@company.com' -PrependSubject "[Alert] "
After the command has been executed the rule is active. It acts in the whole Exchange organization and is not restricted to a single server.
Please note that the argument for the parameter -HeaderContainsWords must contain the name, which the email program on the sender computer actually uses. If the new rule doesn't work as expected, look into the internet headers of a test e-mail and note the computer name, which is in the line Received.
Eingestellt von
Unknown
Thursday, April 26, 2012
15:10
Subscribe to:
Posts (Atom)