iscsi shows "No Storage Repositories Detected"
-
I have a nasty problem of my own creation. I hope the community can help me as I have a lot of data stored in this iscsi repository.
It all started because my hardware RAID had failed on my Dell PowerEdge R630. I decided to restart the server. It didn't fix the problem, of course. But the server did work with just one 1 remaining drive. Thinking that I need to rebuilt the RAID array, I put two new SSDs in and proceeded to format them to use Software RAID (after setting HBA & ACHI on then PowerEdge). No problem...the reinstall went well.
Now, when I tried to reattach the iScsi repository, it showed me that there was "No Storage Repository Detected".
I then went to the Terminal in XCP-NG to run the following command to see if the iscsi repository was still available (I didn't reformat the repository)
[17:31 xenserver-tiger ~]# iscsiadm -m discovery -t sendtargets -p 192.168.1.5 192.168.1.5:3260,1 iqn.2005-10.org.freenas.ctl:scuzzy-ng2 172.16.0.1:3260,1 iqn.2005-10.org.freenas.ctl:scuzzy-ng2 [17:31 xenserver-tiger ~]#That would tell me that the repository still exists (I think)
I've tried every thing that I can think of to reconnect them. I do not want to lose all my VMs that are inside that iScsi repository.
Is there a way to reattach them from the Terminal?
Other things d
-
P poddingue marked this topic as a question
-
From your discovery output, the target still seems to be there, which is a good start. The docs have a section for the SR part: https://docs.xcp-ng.org/storage/manage-srs#reattach-a-forgotten-sr (with
xe sr-probejust below it to find the IQN and LUN, though I haven't tried it on iSCSI myself).
Before you go further, though, there's something Olivier explained in a similar thread: the VM definitions (name, CPU, RAM, which disks) live in the host's database, not on the SR, so after a reinstall the disks can come back, but the VMs as they were only return with a metadata backup; otherwise it means recreating them and attaching the disks (https://xcp-ng.org/forum/post/93504).
Did you have an XCP-ng metadata backup job in XO, or one from the host console? Also, from what I read in the LVM storage driver, creating a new SR on that LUN would wipe it, so I'd be careful not to click through anything that offers to create one. Your post got cut off at "Other things d", could you tell us what else you tried?
@Team-Storage, could someone check I haven't steered okynnor wrong here? -
@poddingue Thank you so much for reassuring me that my SR is still intact. I wasn't sure.
I'm getting quite desperate because all my VMs are down for more than 24hours...
I do have metadata backup from XO (sadly XO was one of the VMs that are sitting in the SR). I also have a metadata backup created from XSCONSOLE.
So to get things going, I was going to restore the metadata saved by xsconsole. When I did it, it complained of two things:
"This MAC seed is already in use by a VM in the pool" and "Error code: VDI_CONTENT_ID_MISSING "
it sounds like I need to delete the MAC addresses, which I took as I need to delete all entries for each VM currency showing in xsconsole. So I did. Nothing. Next, I tried to do it by running
xe vm-param-remove uuid=<existing-vm-uuid> param-name=other-config param-key=mac_seed.nothing, It didn't work.
I then tried to take the backup metafiles and put them into a new machine with a fresh install of xcp-ng. It's the exact same hardware! Yet, the restore complained that the ethernet names don't match. I could try to rename them all from ETH1-ETH5 to ETH6-ETH9. But after doing that, will I see the same problems I did above? After all there's no SR for iSCSI that can be reattached.
Or, will be easier to just get the XOA appliance?
A negative comment is that the old XOA was great but this one seems to be quite feature missing. Is there a way to get the XOA appliance please? -
@okynnor Quick and simple to get going, https://github.com/Jarli01/xenorchestra_installer
Just import your XO metadata backup and then you should be able to administer the environment again.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login