Jump to content
Welcome to our new Citrix community!
  • 0

WARNING: disk is shared by other VMs when doing backup


robert wild1709160729

Question

hi all,

 

im getting warnings when im running backups -

 

Operation failed. Error: (Sys_error
  "/run/sr-mount/e4497404-baa7-c26f-49b1-266fd1f89e5f/engineering/xen/backup/lon-p-xrdp130_02-23-01-2020-vm.xva: File exists")
The following items are about to be destroyed
VM : a4332b4e-c5c2-ab91-c9a5-1153f32c957b (lon-p-xrdp130_02-23-01-2020-ss)
VDI: f1664ab7-96b3-47c6-bb8e-1af6ef6301c5 (lon-p-xrdp130 0)  ** WARNING: disk is shared by other VMs
All objects destroyed

 

all my other backups are running just fine just this vm

 

but why should another vm use this VDI disk, i dont understand

 

is there anythink i can do about this?

 

i really dont understand why it says file already exists for the export as that file doesnt exist at all!!!!!!!!!

 

and its still exporting it so it still exports the file fine

 

this is what the backups should look like -

 

Export succeeded
The following items are about to be destroyed
VM : 13fdae08-93de-3116-ed48-67de138e4ffc (xoa02-23-01-2020-ss)
VDI: ccc26fd2-e8ae-4bb5-a8f0-e1e19a6b5cde (xoa02 0)
All objects destroyed

 

thanks,

rob

Link to comment

12 answers to this question

Recommended Posts

  • 0

this is my script and i know it works as i ran it at home on my XCP-ng at home and now running it on my xen server at work -

 

#!/bin/bash

uuid="/scripts/uuid.txt"
date="$(date +"%d-%m-%Y")"
path=/run/sr-mount/e4497404-baa7-c26f-49b1-266fd1f89e5f/engineering/xen/backup

#list UUIDS of all running VM's
xe vm-list power-state=running is-control-domain=false is-a-snapshot=false | awk '/uuid/{print $5}' > "$uuid"

while IFS= read -r line; do

name=`xe vm-list uuid="$line" | awk '/name-label/{print $4}'`

snap=`xe vm-snapshot uuid="$line" new-name-label="$name-$date-ss"`

xe template-param-set is-a-template=false ha-always-run=false uuid="$snap"

xe vm-export vm="$snap" filename="$path/$name-$date-vm.xva"

xe vm-uninstall uuid="$snap" force=true

done < "$uuid"

 

Link to comment
  • 0

just out of interest, why so many domains?

 

[root@lon-p-xenserver01 ~]# list_domains
id |                                 uuid |  state
 0 | 1f927d69-8257-4f23-9335-7d007ed9ab86 |     R
 5 | 66916c6a-7f26-819a-4e16-d11f2f1c19e1 |    B H
 7 | b61c7e8a-26ad-eab7-99ee-1c069549d0cf |    B H
11 | 5eff1d6a-68fc-0d7c-9a13-a5aaa7d292e0 |    B H
13 | faee5b45-fdd3-351c-8071-f23879227939 |    B H
15 | 81deb006-cc71-ec44-c650-f0b00ccf7379 |    B H
16 | 3b647463-366a-2918-09eb-81a31ba3a7eb |    B H
17 | 0cb32826-3f99-2c5a-6a5b-6d7c665472b0 |     RH
18 | 70924878-7a2b-ff93-6c87-3cdc578dddc7 |    B H
19 | ccf35f0a-04ea-437c-2836-a8c790074e60 |    B H
20 | 70a2e04d-2bf7-ba53-9988-7616034ba4f9 |    B H
21 | efeea73a-ac70-406d-0574-a0399bbc6958 |    B H
28 | b80fc05f-6dcb-c4ff-145b-09984a83b75b |    B H
41 | d3a008f4-855d-d4d0-0eca-71b16f691202 |     RH
43 | 94bab262-bfe4-f635-a4e8-abda64babce4 |    B H
47 | 805ba092-882d-d577-a5d1-b6756ce7edb6 |    B H
48 | 13182923-6af3-fe99-0ac2-8656cfe60eb2 |    B H
[root@lon-p-xenserver01 ~]#

 

Link to comment
  • 0

wow the dom0 is hanging on to a lot of VM's -

uuid ( RO)             : 758599c6-4dd1-0adb-af3d-339af64d3fe6
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): a5f0d0d2-b2cc-4036-9d3d-17a91433048a
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/a5f0d0d2-b2cc-4036-9d3d-17a91433048a


uuid ( RO)             : b322efd5-78d6-d13c-6dca-888778146185
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 8337901f-554c-4b61-9325-40d67d5ec319
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/8337901f-554c-4b61-9325-40d67d5ec319


uuid ( RO)             : 37ce75e0-15b5-2ba3-c590-15795d5e7aad
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): fb016ed2-b562-475d-ab3d-4f0ba52749e0
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/fb016ed2-b562-475d-ab3d-4f0ba52749e0


uuid ( RO)             : 05bf0436-86c1-56ff-8db7-02dca4422e9a
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 76a4558e-0cd2-4879-8e43-a7e199357882
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/76a4558e-0cd2-4879-8e43-a7e199357882


uuid ( RO)             : 0457a5fd-176e-6acf-fd6e-613a71e2835c
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 37c10df1-0cd1-4e6a-8572-d174b9e095dc
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/37c10df1-0cd1-4e6a-8572-d174b9e095dc


uuid ( RO)             : 408a9bb4-67b3-9eaa-e2ac-38669f0ec317
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 37c10df1-0cd1-4e6a-8572-d174b9e095dc
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/37c10df1-0cd1-4e6a-8572-d174b9e095dc


uuid ( RO)             : ea716ebb-05e6-e444-7b7f-a985e7239e62
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 47415a00-381a-49f3-a502-4c1fa2ae4bac
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/47415a00-381a-49f3-a502-4c1fa2ae4bac


uuid ( RO)             : f5a731d8-16a9-7cb5-bef4-a3f918c550ef
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 47415a00-381a-49f3-a502-4c1fa2ae4bac
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/47415a00-381a-49f3-a502-4c1fa2ae4bac


uuid ( RO)             : e292b266-0bdc-fdf6-4c16-387ecac51aea
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 53f3b8d5-ebf9-484e-9cb4-a79f3b33b930
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/53f3b8d5-ebf9-484e-9cb4-a79f3b33b930


uuid ( RO)             : c6a9c4f2-4cb2-79a6-0d5d-a557af03df3c
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): d640c979-59ad-4c78-bb77-4cf78500cc4d
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/d640c979-59ad-4c78-bb77-4cf78500cc4d


uuid ( RO)             : b4346ce7-bd31-e976-cd40-50ef5254bf21
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 55625123-4194-4f8d-9103-9662c4119d8e
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/55625123-4194-4f8d-9103-9662c4119d8e


uuid ( RO)             : 0bf8cfb8-51a6-fc3a-f2de-55ed7a84b3fd
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): a68ed5ec-cdeb-4140-9838-c76dbfd0b1cf
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/a68ed5ec-cdeb-4140-9838-c76dbfd0b1cf


uuid ( RO)             : 60cc1368-9b0f-9a13-939a-3df3fd2cb736
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 1a4ba11e-ad60-4194-a08f-6b00c110232d
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/1a4ba11e-ad60-4194-a08f-6b00c110232d


uuid ( RO)             : bbb2bd6b-5585-a3f8-1a13-898763bca351
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): f202616d-1b01-4663-8ca3-043ab6bdcfaa
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/f202616d-1b01-4663-8ca3-043ab6bdcfaa


uuid ( RO)             : 8570f0c1-03d8-a80b-0197-d5775627a53a
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): c20d1969-6e35-4336-90de-61f6df413220
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/c20d1969-6e35-4336-90de-61f6df413220


uuid ( RO)             : 78f1a853-2a8c-3439-2228-e53ef24cce9f
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): b7d998ec-4dd4-4365-90ba-7bc97b72cd7d
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/b7d998ec-4dd4-4365-90ba-7bc97b72cd7d


uuid ( RO)             : e2db88c0-7ff7-6840-fcea-41e654485eea
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): f202616d-1b01-4663-8ca3-043ab6bdcfaa
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/f202616d-1b01-4663-8ca3-043ab6bdcfaa


uuid ( RO)             : 6effad49-20b7-b92e-23e3-6485b70fb09f
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 34904492-de81-4696-9452-940f072269dd
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/34904492-de81-4696-9452-940f072269dd


uuid ( RO)             : 8dbae516-4ee2-4ed5-5981-6b3a659a74bd
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): fd7c0d3d-b31b-4c8b-a4c3-bdd6c0aada38
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/fd7c0d3d-b31b-4c8b-a4c3-bdd6c0aada38


uuid ( RO)             : fbb12e6b-7c76-95cb-a561-36870f4db4a1
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 0dc474ff-9c88-48a8-9c59-7869c330cc5b
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/0dc474ff-9c88-48a8-9c59-7869c330cc5b


uuid ( RO)             : c66bc0df-5f26-1fd8-893a-baffb6deef08
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): d473d081-e619-4043-a1da-1d1f33e2fa0a
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/d473d081-e619-4043-a1da-1d1f33e2fa0a


uuid ( RO)             : abf01468-b668-88fa-e2bc-577610419f34
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 339ae95c-2f51-4002-be09-7a8b5580d92f
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/339ae95c-2f51-4002-be09-7a8b5580d92f


uuid ( RO)             : 2f6d0c30-ad86-b480-34de-5087bffb2f49
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 3b362811-1f78-46d6-a792-971c2669a765
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/3b362811-1f78-46d6-a792-971c2669a765


uuid ( RO)             : 86935143-fddf-9478-4c3b-bfa46c00de79
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 34904492-de81-4696-9452-940f072269dd
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/34904492-de81-4696-9452-940f072269dd


uuid ( RO)             : e5122a74-e526-2323-6708-c269525111bd
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 0dc474ff-9c88-48a8-9c59-7869c330cc5b
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/0dc474ff-9c88-48a8-9c59-7869c330cc5b


uuid ( RO)             : c01e3ce4-b6e5-3199-533c-f8fa4bb7b611
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): c6215acc-495f-4a10-aff6-ce6e7cf57381
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/c6215acc-495f-4a10-aff6-ce6e7cf57381


uuid ( RO)             : 34c1297d-0891-d013-8784-2b3198547723
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): e436903d-d55d-4632-b510-7a4ff0b56ad6
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/e436903d-d55d-4632-b510-7a4ff0b56ad6


uuid ( RO)             : 532ddd91-5bdb-691b-b3f2-e9382c74fde7
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 8337901f-554c-4b61-9325-40d67d5ec319
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/8337901f-554c-4b61-9325-40d67d5ec319


uuid ( RO)             : 0c0bb946-0a78-8d24-61e9-190ab41a111b
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 42da9d87-6e62-4e84-9ffa-9c98c150d9cc
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/42da9d87-6e62-4e84-9ffa-9c98c150d9cc


uuid ( RO)             : 7e2dc564-e674-b581-aa19-7e0f2ef6a063
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 0e657c06-9115-4d3c-95f7-514c01208d58
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/0e657c06-9115-4d3c-95f7-514c01208d58


uuid ( RO)             : a863338d-2329-a86e-e9ce-a6c7baa84d8a
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): 0e657c06-9115-4d3c-95f7-514c01208d58
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/0e657c06-9115-4d3c-95f7-514c01208d58


uuid ( RO)             : db7f3625-edb9-e2f7-5ef7-f01f2c303b32
          vm-uuid ( RO): 1f927d69-8257-4f23-9335-7d007ed9ab86
    vm-name-label ( RO): Control domain on host: lon-p-xenserver01
         vdi-uuid ( RO): d7d14ba2-eb82-4c5f-ac25-c352bf91cc7a
            empty ( RO): false
           device ( RO): sm/backend/0f956522-42d7-5328-a5ec-a7fd406ca0f3/d7d14ba2-eb82-4c5f-ac25-c352bf91cc7a

 

is it really ok to unplug them and destroy these vbds?

Link to comment
  • 0

list_domains will be a list of XenServer itself which is ID 0 and all of the VM's running on your host.

 

As long as you don't have any migrations going on it should be okay to remove control domain VBD's.

Have you had a lot of failed migrations on these VM's ? Just wondering why you have these. 

 

--Alan--

 

 

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...