Interrupt CAS VM clone process

2023-12-21 09:31:29 Published
  • 0 Followed
  • 0Collected ,733Browsed

Network Topology

CAS cluster


Problem Description

The customer selected full clone for virtual machine operating system backup.

 Due to the data disk of the customer reaching 2TB, the backup process took too long, and they want to cancel the full clone process.


Process Analysis

In the CAS front-end page, once the task starts, the front-end page cannot terminate the task. You can only enter the command line through ssh in the CVM background to query the corresponding clone process and delete the process to interrupt the process.


Solution

The operation process is as follows: 

 1. Find the clone process ID based on the cloned virtual machine name. In this case, the virtual machine name is "clone".

root@cvknode:~# ps -ef | grep  clone

root     100219  46328 18 18:30 ?        00:00:07 cp -f /vms/12q/clone /vms/images/clone_clone

root     100651 107476  0 18:31 pts/2    00:00:00 grep --color=auto clone

2. Record the corresponding ID number and terminate the process using the kill command in the terminal.

root@cvknode:~# kill -9 100219

-bash: kill: (100219) - No such process

3. Use the ps command to check if the process still exists:

root@cvknode:~# ps -ef | grep  clone

root     101174 107476  0 18:31 pts/2    00:00:00 grep --color=auto clone

4. Restart Tomcat and refresh the front-end page.

root@cvknode:~# service tomcat8 restart

* Stopping Tomcat servlet engine tomcat8                                                          [ OK ]

 * Starting Tomcat servlet engine tomcat8        


Please rate this case:   
0 Comments

No Comments

Add Comments: