NFS SR VMs data lost
-
Hi everyone,
I'm testing XO from sources with the latest commit of today (a45fb88)
I'm using Xcp-ng 8.2.1 and TrueNAS for storage (NFS sharing)I've connected an NFS ISO storage and another one for the VM data.
I've been able to upload ISO file, install and run some VMs... Everything is working fine, great..Now, my trouble is when I disconnected the NFS VDI SR and ISO SR and re-add them (because I was trying some settings). I don't find my VM data back ! I see the used space on my storage, I do see the data if I go with SSH on my truenas but, in XenOrchestra, if I go on :
Home -> Storage -> NFS VM DATA -> Disk : It's empty
If I go on the VMs that were created at my first test, and try to attach a disk :
Home -> VM -> one of my VM -> Disk ->Attach Disk : I see my NFS SR but nothing I can select to import the disk (that should be there)
But, when I go on the NFS ISO SR, I see the img file but it seems that it has lost all the metadata (every ISO file has lost its name)...
Does anybody already have this issue before ? here are some screenshots :
Thank you All
-
Forget the SR means you forget all the metadata related to it (eg: the disk names and which disk is connected to which VM).
When you create a new SR with the same NFS path, it will create another empty folder with the name of the SR UUID.
Easy trick: mv all the files inside the old UUID folder to the new one, and when it's done, rescan your current NFS SR. You will see all the disk appearing (but without any name).
-
Are you sure you didn't recreate a brand new SR instead of reconnecting to it?
-
Thank you for answering. So first, I "disconnected" and then I did "forget this SR" :
When I added the storage the second time, ("New" -> "Storage" -> "VDI SR") put all the information for the NFS sharing, I do see the storage with the used space (it's the same screenshot than above)
So I did not recreate an SR, I reconnected the same SR.
Same goes for the NFS ISO SR, but when I reconnected this one, I do see the iso file but without metadata I think (as you can see I'm reinstalling a VM for test, so the "data" is working) :
-
Forget the SR means you forget all the metadata related to it (eg: the disk names and which disk is connected to which VM).
When you create a new SR with the same NFS path, it will create another empty folder with the name of the SR UUID.
Easy trick: mv all the files inside the old UUID folder to the new one, and when it's done, rescan your current NFS SR. You will see all the disk appearing (but without any name).
-
... Thank you Olivier, I feel so stupid...
I found everything back as you saidThank you very much ! Now I understood my mistake
Best regards,
Martin
-
-