Jump to content


Photo

Unable to repair SR

Started by Joshua Pond , 15 March 2017 - 01:56 AM
5 replies to this topic

Joshua Pond Members

Joshua Pond
  • 5 posts

Posted 15 March 2017 - 01:56 AM

Hi All,

Playing around with a home server and I've had a power outage and upon restart the SR are not connected.

Trying to repair through the GUI(Xencenter) comes up with Logical Volume mount/activate error.

I'm fairly new to all this and reading around I've managed to find this info.

Any help would be great.

 

Thanks Josh

 

xe pbd-list

uuid ( RO)                  : 8483ae9b-cf3f-7392-ab31-1ce398e9a834

             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): 8de6dbd0-0455-2c84-465d-4b0b3a92945f
         device-config (MRO): location: /dev/xapi/block
    currently-attached ( RO): true
 
 
uuid ( RO)                  : 6cc634e6-2096-7598-f600-e7a77d8d858e
             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): bcd8f1d5-e0e6-3744-24b2-8ef2aa74a08b
         device-config (MRO): device: /dev/sdd
    currently-attached ( RO): false
 
 
uuid ( RO)                  : d52c331a-3337-9347-eafe-8e104d76e3cb
             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): d9aacf53-69cb-2136-188a-bd9f1743115e
         device-config (MRO): location: /dev/xapi/cd
    currently-attached ( RO): true
 
 
uuid ( RO)                  : ded191be-d3b0-e445-3cf1-9e36397eb484
             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): 7c04eb33-7222-82bb-8b16-371b4c759191
         device-config (MRO): device: /dev/disk/by-id/scsi-365cd2e4080864356494e                                                                                                                                                             000000010000
    currently-attached ( RO): false
 
 
uuid ( RO)                  : d1b043c2-2d95-290f-72a2-ee54d699fec6
             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): aa75da3f-a086-2b90-d792-c7ff23881458
         device-config (MRO): location: /opt/xensource/packages/iso; legacy_mode                                                                                                                                                             : true
    currently-attached ( RO): true
 
 
uuid ( RO)                  : 9a7507dc-e567-8af8-c356-d7313ab705cc
             host-uuid ( RO): f2f8b09a-6295-411b-bcbe-a8887836e39b
               sr-uuid ( RO): e213cb40-a669-4879-b328-5f55e788449d
         device-config (MRO): device: /dev/disk/by-id/scsi-SATA_SanDisk_Ultra_I1                                                                                                                                                             61008802938
    currently-attached ( RO): false
 

 

 

pvscan comes up with segmentation fault.

 

 



Amarnath Reddy Citrix Employees

Amarnath Reddy
  • 130 posts

Posted 15 March 2017 - 11:57 AM

Hello Joshua,

 

This KB article might help in resolving the reported issue.

 

https://support.citrix.com/article/CTX205379

 

 

 

 

Regards,

Amar



Joshua Pond Members

Joshua Pond
  • 5 posts

Posted 15 March 2017 - 08:31 PM

Thanks,

 

I did see that article but all I see is control.

 


[root@xenserver mapper]# ls

control
[root@xenserver mapper]#


konvikkt1 Members

kon vikkt
  • 782 posts

Posted 16 March 2017 - 05:13 AM

I have seen this with the local SRs attached to the xenserver. Can you please check the SMlogs, what is happening with the SR  ?



Joshua Pond Members

Joshua Pond
  • 5 posts

Posted 20 March 2017 - 09:46 AM

Sorry I replied the other day but it doesn't seem to have posted.

Maybe it was the attachment, I've tried to paste a lot of the most recent and I'll try and attach the whole thing in a different post.

Thanks Josh

 

Mar 15 19:53:11 xenserver SM: [6991] sr_attach {'sr_uuid': '7c04eb33-7222-82bb-8b16-371b4c759191', 'subtask_of': 'DummyRef:|903fc36f-33ac-89d4-b1ec-f1c31a55f64f|SR.attach', 'args': [], 'host_ref': 'OpaqueRef:e50695c2-a3b3-54a9-57f9-6b9fe93fa3b4', 'session_ref': 'OpaqueRef:99155bfb-7890-68c4-27a3-3a125245034a', 'device_config': {'device': '/dev/disk/by-id/scsi-365cd2e4080864356494e000000010000', 'SRmaster': 'true'}, 'command': 'sr_attach', 'sr_ref': 'OpaqueRef:a751b48b-8c5e-0421-4744-cd33b76e5c49', 'local_cache_sr': '7c04eb33-7222-82bb-8b16-371b4c759191'}

Mar 15 19:53:11 xenserver SM: [6991] lock: opening lock file /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/running
Mar 15 19:53:11 xenserver SM: [6991] lock: opening lock file /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [6991] lock: acquired /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/running
Mar 15 19:53:11 xenserver SM: [6991] lock: acquired /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [6991] RESET for SR 7c04eb33-7222-82bb-8b16-371b4c759191 (master: True)
Mar 15 19:53:11 xenserver SM: [6991] lock: released /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [6991] lock: released /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/running
Mar 15 19:53:11 xenserver SM: [6991] lock: closed /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [6991] lock: closed /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/running
Mar 15 19:53:11 xenserver SM: [6991] set_dirty 'OpaqueRef:a751b48b-8c5e-0421-4744-cd33b76e5c49' failed (flag already set?)
Mar 15 19:53:11 xenserver SM: [6991] ['lvchange', '-ay', '/dev/XSLocalEXT-7c04eb33-7222-82bb-8b16-371b4c759191/7c04eb33-7222-82bb-8b16-371b4c759191']
Mar 15 19:53:11 xenserver SM: [6991] FAILED in util.pread: (rc -11) stdout: '', stderr: ''
Mar 15 19:53:11 xenserver SM: [6991] Raising exception [52, Logical Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]]
Mar 15 19:53:11 xenserver SM: [6991] lock: released /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [6991] ***** generic exception: sr_attach: EXCEPTION SR.SROSError, Logical Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 110, in run
Mar 15 19:53:11 xenserver SM: [6991] return self._run_locked(sr)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked
Mar 15 19:53:11 xenserver SM: [6991] rv = self._run(sr, target)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 322, in _run
Mar 15 19:53:11 xenserver SM: [6991] return sr.attach(self.params['sr_uuid'])
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/EXTSR", line 121, in attach
Mar 15 19:53:11 xenserver SM: [6991] opterr='Unable to activate LV. Errno is %d' % inst.code)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/xs_errors.py", line 52, in __init__
Mar 15 19:53:11 xenserver SM: [6991] raise SR.SROSError(errorcode, errormessage)
Mar 15 19:53:11 xenserver SM: [6991]
Mar 15 19:53:11 xenserver SM: [6991] ***** Local EXT3 VHD: EXCEPTION SR.SROSError, Logical Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 345, in run
Mar 15 19:53:11 xenserver SM: [6991] ret = cmd.run(sr)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 110, in run
Mar 15 19:53:11 xenserver SM: [6991] return self._run_locked(sr)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked
Mar 15 19:53:11 xenserver SM: [6991] rv = self._run(sr, target)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/SRCommand.py", line 322, in _run
Mar 15 19:53:11 xenserver SM: [6991] return sr.attach(self.params['sr_uuid'])
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/EXTSR", line 121, in attach
Mar 15 19:53:11 xenserver SM: [6991] opterr='Unable to activate LV. Errno is %d' % inst.code)
Mar 15 19:53:11 xenserver SM: [6991] File "/opt/xensource/sm/xs_errors.py", line 52, in __init__
Mar 15 19:53:11 xenserver SM: [6991] raise SR.SROSError(errorcode, errormessage)
Mar 15 19:53:11 xenserver SM: [6991]
Mar 15 19:53:11 xenserver SM: [6991] lock: closed /var/lock/sm/7c04eb33-7222-82bb-8b16-371b4c759191/sr
Mar 15 19:53:11 xenserver SM: [7007] lock: opening lock file /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] lock: acquired /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] sr_attach {'sr_uuid': 'e213cb40-a669-4879-b328-5f55e788449d', 'subtask_of': 'DummyRef:|92915e06-e37e-f00f-09be-b000dd0a876b|SR.attach', 'args': [], 'host_ref': 'OpaqueRef:e50695c2-a3b3-54a9-57f9-6b9fe93fa3b4', 'session_ref': 'OpaqueRef:bd3d900f-a7cb-0a3f-85a1-f9e778ff392e', 'device_config': {'device': '/dev/disk/by-id/scsi-SATA_SanDisk_Ultra_I161008802938', 'SRmaster': 'true'}, 'command': 'sr_attach', 'sr_ref': 'OpaqueRef:e0437942-e37a-8bcc-5961-d4116da98d55', 'local_cache_sr': '7c04eb33-7222-82bb-8b16-371b4c759191'}
Mar 15 19:53:11 xenserver SM: [7007] lock: opening lock file /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/running
Mar 15 19:53:11 xenserver SM: [7007] lock: opening lock file /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] lock: acquired /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/running
Mar 15 19:53:11 xenserver SM: [7007] lock: acquired /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] RESET for SR e213cb40-a669-4879-b328-5f55e788449d (master: True)
Mar 15 19:53:11 xenserver SM: [7007] lock: released /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] lock: released /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/running
Mar 15 19:53:11 xenserver SM: [7007] lock: closed /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr
Mar 15 19:53:11 xenserver SM: [7007] lock: closed /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/running
Mar 15 19:53:11 xenserver SM: [7007] set_dirty 'OpaqueRef:e0437942-e37a-8bcc-5961-d4116da98d55' failed (flag already set?)
Mar 15 19:53:11 xenserver SM: [7007] ['lvchange', '-ay', '/dev/XSLocalEXT-e213cb40-a669-4879-b328-5f55e788449d/e213cb40-a669-4879-b328-5f55e788449d']
Mar 15 19:53:11 xenserver SM: [7007] FAILED in util.pread: (rc -11) stdout: '', stderr: ''
Mar 15 19:53:11 xenserver SM: [7007] Raising exception [52, Logical

Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]]

Mar 15 19:53:11 xenserver SM: [7007] lock: released /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr

Mar 15 19:53:11 xenserver SM: [7007] ***** generic exception: sr_attach: EXCEPTION SR.SROSError, Logical Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 110, in run

Mar 15 19:53:11 xenserver SM: [7007] return self._run_locked(sr)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked

Mar 15 19:53:11 xenserver SM: [7007] rv = self._run(sr, target)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 322, in _run

Mar 15 19:53:11 xenserver SM: [7007] return sr.attach(self.params['sr_uuid'])

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/EXTSR", line 121, in attach

Mar 15 19:53:11 xenserver SM: [7007] opterr='Unable to activate LV. Errno is %d' % inst.code)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/xs_errors.py", line 52, in __init__

Mar 15 19:53:11 xenserver SM: [7007] raise SR.SROSError(errorcode, errormessage)

Mar 15 19:53:11 xenserver SM: [7007]

Mar 15 19:53:11 xenserver SM: [7007] ***** Local EXT3 VHD: EXCEPTION SR.SROSError, Logical Volume mount/activate error [opterr=Unable to activate LV. Errno is -11]

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 345, in run

Mar 15 19:53:11 xenserver SM: [7007] ret = cmd.run(sr)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 110, in run

Mar 15 19:53:11 xenserver SM: [7007] return self._run_locked(sr)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked

Mar 15 19:53:11 xenserver SM: [7007] rv = self._run(sr, target)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/SRCommand.py", line 322, in _run

Mar 15 19:53:11 xenserver SM: [7007] return sr.attach(self.params['sr_uuid'])

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/EXTSR", line 121, in attach

Mar 15 19:53:11 xenserver SM: [7007] opterr='Unable to activate LV. Errno is %d' % inst.code)

Mar 15 19:53:11 xenserver SM: [7007] File "/opt/xensource/sm/xs_errors.py", line 52, in __init__

Mar 15 19:53:11 xenserver SM: [7007] raise SR.SROSError(errorcode, errormessage)

Mar 15 19:53:11 xenserver SM: [7007]

Mar 15 19:53:11 xenserver SM: [7007] lock: closed /var/lock/sm/e213cb40-a669-4879-b328-5f55e788449d/sr

Mar 15 19:53:41 xenserver SM: [7326] sr_scan {'sr_uuid': 'd9aacf53-69cb-2136-188a-bd9f1743115e', 'subtask_of': 'DummyRef:|99aac612-c118-f2de-f44a-77afb1cb074e|SR.scan', 'args': [], 'host_ref': 'OpaqueRef:e50695c2-a3b3-54a9-57f9-6b9fe93fa3b4', 'session_ref': 'OpaqueRef:58b9f3e0-6cd4-b0b0-5747-97ed164460bf', 'device_config': {'SRmaster': 'true', 'location': '/dev/xapi/cd'}, 'command': 'sr_scan', 'sr_ref': 'OpaqueRef:65cf4c6b-25c9-1079-ba23-9f0f432ca33d', 'local_cache_sr': '7c04eb33-7222-82bb-8b16-371b4c759191'}

Mar 15 19:53:41 xenserver SM: [7329] sr_scan {'sr_uuid': '8de6dbd0-0455-2c84-465d-4b0b3a92945f', 'subtask_of': 'DummyRef:|3f555776-5ddc-7e10-0cdc-c8a4673af349|SR.scan', 'args': [], 'host_ref': 'OpaqueRef:e50695c2-a3b3-54a9-57f9-6b9fe93fa3b4', 'session_ref': 'OpaqueRef:8f1658ec-4c32-86fa-c912-aa4cf1e28482', 'device_config': {'SRmaster': 'true', 'location': '/dev/xapi/block'}, 'command': 'sr_scan', 'sr_ref': 'OpaqueRef:e7f93c51-e556-ae3e-2bc2-a7894f3418de', 'local_cache_sr': '7c04eb33-7222-82bb-8b16-371b4c759191'}

Mar 15 19:53:41 xenserver SM: [7332] sr_scan {'sr_uuid': 'aa75da3f-a086-2b90-d792-c7ff23881458', 'subtask_of': 'DummyRef:|231513fc-229b-a184-5cb9-adad401353fc|SR.scan', 'args': [], 'host_ref': 'OpaqueRef:e50695c2-a3b3-54a9-57f9-6b9fe93fa3b4', 'session_ref': 'OpaqueRef:2213e9c8-8fcd-02b8-289d-b72e53e9b33c', 'device_config': {'legacy_mode': 'true', 'SRmaster': 'true', 'location': '/opt/xensource/packages/iso'}, 'command': 'sr_scan', 'sr_ref': 'OpaqueRef:8ae91c3c-433e-9c40-8bda-4772debc0cdd', 'local_cache_sr': '7c04eb33-7222-82bb-8b16-371b4c759191'}

Mar 15 19:53:41 xenserver SM: [7332] version=6.5.0 build=20200

Mar 15 19:53:41 xenserver SM: [7332] version=6.5.0 build=0

Mar 15 19:53:41 xenserver SM: [7332] VDIs missing from disk: set(['xs-tools-6.5.0-20101.iso', 'xs-tools-6.5.0-20102.iso'])

Mar 15 19:53:41 xenserver SM: [7332] Marking previous version of tools ISO: location=xs-tools-6.5.0-20101.iso uuid=3513ee6d-ac5d-47de-9ea3-7ae82d1d23e2

Mar 15 19:53:41 xenserver SM: [7332] Marking previous version of tools ISO: location=xs-tools-6.5.0-20102.iso uuid=181e7365-9369-4421-aad7-ff8e7ac4ed50

 



Joshua Pond Members

Joshua Pond
  • 5 posts

Posted 20 March 2017 - 09:51 AM

Sorry I did reply to this but it appears not to have been allowed.

 

I'll try and attach the full log here.

 

Thanks Josh

Attached Files