RedPlug's Tory

Enterprise Vault 백업 진행 시 VaultStore와 Index를 BackupMode로 변경한 후에 다시 원복진행을 하여야 합니다만

버그인지 간혹 돌아오지 않는 경우가 있어 BackupMode체크할 수 있도록 만든 스크립트 입니다.

Import-Module EnterpriseVault
$EVServers = "ev1","ev2"
#Set Mailing parameters
$sendMailMessageParams = @{
    Smtpserver = "mail.redplug.com"
    To         = "redplug@redplug.com"
    From       = "noreply@redplug.com"
}

# HTML Body 
$head = "" | Out-String
$VSName = "VSName"
$EVServerName = "EVServerName"
$Queue = get-vaultstorebackupmode -Name $VSName -EVServerName $EVServerName -EvObjectType vaultstoregroup | where-object {$_.BackupMode -eq $True} | Select @{N=’Name’; E={$_.VaultStoreName}},@{N=’ID’; E={$_.VaultStoreEntryId}}, BackupMode
$Queue2 = foreach ($EVServer in $Evservers) {get-indexlocationbackupmode -EVServerName $EVServer | where-object {$_.BackupMode -eq $True} | Select @{N=’Name’; E={$_.IndexRootPath}},@{N=’ID’; E={$_.IndexingServiceId}},BackupMode}

if (($Queue -eq $Null) -and ($Queue2 -eq $Null)) {
Send-MailMessage -Subject "Enterprise Vault BackupMode Alert" -Body "All Backup Mode False" -BodyAsHtml @sendMailMessageParams
}else {
## 백업모드가 실패가 아닐 경우 중요도 높음 설정 및 리스트 표기
$body = $Queue + $Queue2 | ConvertTo-Html -Head $head | Out-String
Send-MailMessage -Subject "Enterprise Vault BackupMode Alert" -Priority High -Body $body -BodyAsHtml @sendMailMessageParams
}

 

해당스크립트를 Task로 등록할 경우 x86 Powershell로 등록하여야 하기 때문에 프로그램 주소를 하기로 설정 필요

%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe

백업모드에 자동으로 원복이 필요할 경우 

 

해당 스크립트 하단에 clear-IndexLocationBackupMode / clear-VaultStoreBackupMode 명령어를 추가하여 원복 가능.

(서버네임 입력 필요)

Problem

The Enterprise Vault Indexing service fails to start and logs error Event ID 41335 in the Symantec Enterprise Vault event log.

 

Error Message

[Symantec Enterprise Vault event log]

Event ID: 41335

Description: An error occurred while trying to start indexing engine.

 

 

[Dtrace]

A Dtrace of the EVIndexAdminService will show the following line:

EVIndexAdminService) <7092>  EV-H  {VELOCITYSTARTSTOPINDEXINGENGINE.EN_US} Some of the processes did not start, shutdown indexing engine.

Cause

One or more files of the Indexing Engine are corrupt.

Solution

This can be rectified by re-installing the indexing engine using the Indexing Redistributable supplied with the Enterprise Vault Install Media.

 

1.     Stop the Enterprise Vault Indexing Service on the affected Enterprise Vault Server.
 

2.     Stop the World Wide Web Publishing Service on the affected Enterprise Vault Server.
 

3.     Launch IIS Manager and delete the EVIndexing virtual Directory.
 

4.     Following the deletion of the Indexing virtual directory, delete the EVIndexingPool application pool.

NOTE: Do not delete any other virtual directories or application pools as doing so will damage the Enterprise Vault installation.
 

5.     Using windows explorer, navigate to the Enterprise Vault installation Directory and delete the EVIndexing subdirectory

NOTE: If Enterprise Vault is clustered the IndexMetaData folder (which is usually found under the EVIndexing subdirectory) may be held in a different location and will need to be deleted separately in addition to deletinig the EVIndexing folder in Step 5. To locate this folder run the below SQL query:

USE EnterpriseVaultDirectory
SELECT CE.ComputerName, ISE.MetaDataLocation
FROM ComputerEntry CE, IndexingServiceEntry ISE
WHERE CE.ComputerEntryID = ISE.ComputerEntryID

6.     Reinstall the Indexing Engine, using the Symantec Enterprise Vault Indexing Redistributable.msi. The redistributable file is located on the Enterprise Vault Installation Media, in the following location: "Server/EVTmp"

NOTE:
If any indexing hotfix has been applied to the affected Indexing Server, this must be uninstalled before re-installing the Indexing Redistributable. This is done by completing the following steps:

a. Locate the installation msi used to install the hotfix
b. Right-click on the msi and select uninstall
c. The hotfix will be removed and the Indexing Redistributable can now be run
d. Following the re-installation of the Indexing Server, please ensure to reapply any hotfixes that were previously removed.
 

7.     Restart the Enterprise Vault Indexing Service

NOTE:
It may take a while for the Indexing service to become fully operational following the reinstallation of the Indexing Engine, as a full Synchronization between Enterprise Vault and the Indexing Engine will be automatically triggered. The commencement and completion of this process will be marked by the following entries in the Enterprise Vault Event Log:

Event ID: 41372
Indexing Service has started the synchronization of index volume metadata between the indexing engine repository and the Directory database.

Event ID: 41377
Indexing Service has completed the synchronization of index volume metadata between the indexing engine repository and the Directory database.
Total index volume(s) whose metadata was created: x
Total index volume(s) whose location was updated: y

 

출처: <https://www.veritas.com/support/en_US/article.TECH212179

The following roles have permissions to perform backups:

Server Role : sysadmin
DB role : db_backupoperator, dbo_owner
The following roles have permissions to perform restores:
Server role : sysadmin, dbcreator
DB role : db_owner (if the database exists)