I have since tried a little more digging, The error seems to suggest that the block drive SR is not available/file not found?
The iscsi block drive is sitting inside a TrueNAS scale server snapshot backups too.
But let me know if I"m doing this correctly as per the command below to try to use the
xe pbd-plug
command to solve this issue or not:
[15:25 xenserver-tiger ~]# xe sr-list name-label="iSCSI virtual disk storage2"
uuid ( RO) : 7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f
name-label ( RW): iSCSI virtual disk storage2
name-description ( RW):
host ( RO): xenserver-tiger
type ( RO): lvmoiscsi
content-type ( RO): user
[15:27 xenserver-tiger ~]# xe pdb-list sr-uuid=7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f
Unknown command: pdb-list
For usage run: 'xe help'
[15:28 xenserver-tiger ~]# xe pbd-list sr-uuid=7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f
uuid ( RO) : d4050fae-ec84-efac-62a1-d3d62b4fb879
host-uuid ( RO): 3986c16a-a9e0-4ebf-83a0-4438d8bd5916
sr-uuid ( RO): 7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f
device-config (MRO): SCSIid: 36589cfc000000dca3287604eb99e625a; targetIQN: iqn.2005-10.org.freenas.ctl:scuzzy-ng2; target: 192.168.1.5; port: 3260
currently-attached ( RO): false
[15:28 xenserver-tiger ~]# xe pbd-plug uuid=d4050fae-ec84-efac-62a1-d3d62b4fb879
Error code: SR_BACKEND_FAILURE_47
Error parameters: , The SR is not available [opterr=no such volume group: VG_XenStorage-7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f],
[15:29 xenserver-tiger ~]# tail -n 50 /var/log/SMlog | grep -i -E "error|exception|47|opterr"
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] FileNotFoundError: [Errno 2] No such file or directory: '/dev/disk/by-scsid/36589cfc000000dca3287604eb99e625a'
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] ): EXCEPTION <class 'FileNotFoundError'>, [Errno 2] No such file or directory: '/dev/disk/by-scsid/36589cfc000000dca3287604eb99e625a'
Nov 20 15:29:46 xenserver-tiger fairlock[3380]: /run/fairlock/devicemapper sent '70710 - 10994.070830647'
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] Error in SR.after_master_attach Input/output error
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] ***** generic exception: sr_attach: EXCEPTION <class 'xs_errors.SROSError'>, The SR is not available [opterr=no such volume group: VG_XenStorage-7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f]
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] opterr='no such volume group: %s' % self.vgname)
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] ***** LVM over iSCSI: EXCEPTION <class 'xs_errors.SROSError'>, The SR is not available [opterr=no such volume group: VG_XenStorage-7f968d45-56dd-a6aa-83d2-bd33dd2a8e5f]
Nov 20 15:29:46 xenserver-tiger SM: [70710][MainThread] opterr='no such volume group: %s' % self.vgname)
...I got my metadata back!
