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?
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