Available in Classic and VPC
Preliminary tasks describe what to do before creating resources.
The cases where you need to perform preliminary tasks and the tasks that should be performed depending on the circumstances are as follows:
- The case where you use Windows server to create resources: Windows settings.
- The case where you cannot use the root/Administrator accounts to install the agent: Server ID settings.
- The case where you use the server created from a server image with the agent installed or the server with the previously installed agent: End backup process and delete related directory.
If the above cases do not apply, you can create the resource immediately without performing any additional tasks. For more information about resource creation, see Resource creation.
Windows settings
To create resources through Windows servers, follow these steps:
- Setting a fixed port for WMI (required)
- Enabling Remote Registry (required)
- Setting ACG rules (required)
- Enabling ADMIN$ shares (required)
Setting a fixed port for WMI (required)
To set a Windows Management Instrumentation (WMI) fixed port 24158, follow these steps:
-
Press [Windows] + [R], and enable the Run command.
-
Enter cmd and [Ctrl] + [Shift] + [Enter] together.
- The cmd window opens with administrator privileges.
-
Enter the following commands and run the WMI service automatically:
# winmgmt -standalonehost -
Enter the following commands and stop the WMI service and restart it:
# net stop Windows Management Instrumentation # net start Windows Management Instrumentation -
Enter the following commands and add the outbound rule for Windows firewall:
// the rule to allow for the access to the port 24158 # netsh firewall add portopening TCP 24158 WMIFixedPortExample:

Enabling Remote Registry (required)
To enable Remote Registry, follow these steps:
- Press [Windows] + [R], and enable the Run command.
- Enter control and press [Enter].
- When the Control Panel window appears, click System and Security > Administrative Tools > Services in order to run Services.
- Double-click Remote Registry to open the Remote Registry Properties (Local Computer) window.
- You can also right-click Remote Registry and click Properties.
- Select Automatic from Startup type dropdown menu.
- Click [OK].
- Click
at the top of Services page to run Services.
- Remote Registry services are enabled.
To prevent Remote Registry from being disabled again, edit the registry as follows:
- Press [Windows] + [R], and enable the Run command.
- Enter regedit and press [Enter].
- Registry Editor opens.
- Go to the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RemoteRegistrypath. - Double-click DisableIdleStop.
- You can also right-click DisableIdleStop and click Modify.
- When the popup window appears, enter 1 into Value Data and click [OK].
Setting ACG rules (required)
When you use Backup services in Classic, see ACG settings and set up the ACG rule as follows:

- Protocol: TCP
- Access source (IP range): 10.0.0.0/8
- Allowed ports: 135, 139, 445, and 24158
Enabling ADMIN$ shares (required)
While managing the server remotely, view whether ADMIN$ shares as the currently used resource are enabled and enable it.
View whether ADMIN$ shares are enabled
To view whether ADMIN$ shares are enabled, follow these steps:
- Press [Windows] + [R], and enable the Run command.
- Enter cmd and [Ctrl] + [Shift] + [Enter] together.
- The cmd window opens with administrator privileges.
- Run
net shareto view whether ADMIN$ shares are enabled.

Enable ADMIN$ shares
To enable ADMIN$ shares, follow these steps:
- Press [Windows] + [R], and enable the Run command.
- Enter regedit and press [Enter].
- Registry Editor opens.
- Go to the
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameterspath. - Right-click Registry Editor window and click New > DWORD (32-bit) Value in order.
- Enter AutoShareServer and press [Enter].
- Add AutoShareWks in the same way.
- Double-click AutoShareServer.
- You can also right-click AutoShareServer and click Modify.
- When the popup window appears, enter 1 into Value data and click [OK].
- Set AutoShareWKS in the same way.

- Set AutoShareWKS in the same way.
- Reboot the server.
Server ID settings
To install the agent through servers, use the root account for Linux and the Administrator account for Windows. When you cannot use the root/Administrator accounts, create an account for the agent installation and assign the root/Administrator privileges to use it. However, after the completion of the agent installation, remove the root/Administrator privileges from the account.
Linux
To create an account for the agent installation and assign the root privileges to the account, follow these steps:
-
Access the server with the root account.
- See Server access (VPC) or Server access (Classic) based on the environment you are using from NAVER Cloud Platform.
-
To create an account for agent installation, enter the following commands:
- When you have an existing account for the agent installation, you do not need to create an account.
adduser {account name} // example // adduser test01 -
Run the following commands:
vi /etc/sudoers -
Enter the content below to assign the root privileges to the account for agent installation:
"The name of account for the agent installation" ALL=(ALL) NOPASSWD: ALLExample:
[root@backup-linux01 ~]# vi /etc/sudoers ## Allow root to run any commands anywhere root ALL=(ALL) ALL test01 ALL=(ALL) NOPASSWD: ALL -
After the completion of agent installation, delete the content that was entered into at step 4 to remove the root privileges.
Windows
To assign the Administrator privileges to the account for agent installation, follow these steps:
- Access the server.
- See Server access (VPC) or Server access (Classic) based on the environment you are using from NAVER Cloud Platform.
- Press [Windows] + [R], and enable the Run command.
- Enter netplwiz and press [Enter].
- When the popup window appears, click the account for the agent installation and click [Properties].
- If you do not have any accounts for agent installation, click [Add] to create a new account.
- When the popup window of Properties appears, click the [Group Membership] tab.
- Select Administrator and click [OK].
- After the completion of the agent installation, delete the account or change the privileges of the account back to Standard user.
End backup process and delete related directory
If the server intended for resource creation meets all of the following conditions, you must end the currently running backup process and delete the directory related to the agent stored on the server:
- A server created from a server image with the agent installed.
- A server that has a history of agent installation and still contains agent-related files.
Before creating resources, perform preliminary tasks according to the OS of the server you will use to create resources.
Linux
When you create the resource in the Linux server with the existing backup agent installed, follow these steps:
-
Access the Linux server you will use to create resources.
- See Server access (VPC) or Server access (Classic) based on the environment you are using from NAVER Cloud Platform.
-
Enter the following commands with the root privileges and end the backup process installed on the server:
- When the commands do not work, exit the backup process by following step 4.
commvault stop -all Redirecting stopping service for Instance001 to systemd ... Running "systemctl stop commvault.Instance001.service" ... Stopping Commvault services for Instance001 ... All services stopped. -
Enter the following commands to check for any remaining backup processes on the server:
- Backup processes you have to view: cvlaunchd, cvd, cvfwd, and ClMgrS.
ps -ef | grep -i "cvlaunchd|cvd|cvfwd|ClMgrS" -
Use kill commands to exit the backup process.
- When the commands do not work at step 1 or the backup process continues running afterward, perform the above step.
-
View the following path and delete the directory related to the agent:
- Default path: folders starting with /opt and commvault.
- Example: /opt/commvault, /opt/commvault1, /opt/commvault2.
- Log path: folders starting with /var/log and commvault.
- Example: /var/log/commvault, /var/log/commvault1, /var/log/commvault2.
- Registry route: /etc/CommVaultRegistry (single folder).
NoteWhen the agent has not been installed in the default path, delete the home directory of the account used for installation.
Example:
- Default path: folders starting with /opt and commvault.
When the agent is installed in the ncloud directory, its location is under /home/ncloud/ and the path is as follows.
- Default path: /home/ncloud/commvault.
- Log path: /home/ncloud/var/log/commvault.
- Registry path: /home/ncloud/CommVaultRegistry.
:::
Windows
When you create the resource in the Windows server with the existing backup agent installed, follow these steps:
When deleting the directories related to the agent, you have to observe the procedure. If directories are deleted individually, they may not be completely removed, which can cause issues during resource creation.
- Access the Windows server you will use to create resources.
- See Server access (VPC) or Server access (Classic) based on the environment you are using from NAVER Cloud Platform.
- Search for Commvault Process Manager in the taskbar and run Process Manager.
- Click the [Services] tab.
- Click All Services from the tree menu and click
.
- You can also right-click All Services and click Stop.
- If there are any running backup processes, end them individually.
- Click the backup process that is still running and click
, or right-click the process and click Stop.
- Click the backup process that is still running and click
- Search for Add or remove programs in the taskbar and run it.
- After clicking Commvault ContentStore, click the [Uninstall] button.
- After viewing the popup window, click the [Uninstall] button.
- When the COMMVAULT popup window appears, click and select Uninstall all packages in the instance and press [Enter].
- View the content you want to delete and press [Enter].