Jump to content
Welcome to our new Citrix community!
  • 0

GFS2 Repair storage [Errno 17]


Sergey Polyakov

Question

Citrix Hypervisor 8.1

After SAN storage failure, access to gfs2 disk (over HBA) is not possible
If I try to connect a GFS drive:

xe pbd-plug uuid=f01ae2c0-a5b6-8245-8014-e96cc28509c9
There was an SR backend failure.
status: OSError
stdout: [Errno 17] File exists: '/var/run/sr-mount/d083376b-00fb-3b02-5c61-f2f0fef69fd2'

 

 

 

Link to comment

10 answers to this question

Recommended Posts

  • 0
1 hour ago, Tobias Kreidl said:

Maybe a stale mount point? If possible, try rebooting the host to see if it clears it.

Yes. I rebooted the entire Pool. Error  disappeared.

But one of six SR still has a problem. 

xe pbd-plug uuid=4bdf65a2-856e-694d-c912-9239fd86ba8e 
There was an SR backend failure.
status: DatabaseError
stdout: database disk image is malformed
stderr: <unknown>

Link to comment
  • 0
35 minutes ago, Tobias Kreidl said:

Might have to destroy the old PBD for that one host, create a new one, and plug back into it. If that doesn't work and it's an LVM, do you have a backup of your LVM metadata for that SR?

 

-=Tobias

If I try restore metadata backup from early created :

 Metadata Restore failed: ('(,Metadata backups not found.)',)

 

If try create new backup:

Metadata Backup failed: ('Using SR: HBA101\nCreating new backup VDI:  
       b23a816e-7671-4fb1-9b01-cc538d54d221\nThe device name is        
           invalid\ndevice: autodetect\nerror creating VBD',) 

 

Link to comment
  • 0
2 hours ago, Tobias Kreidl said:

In that csae, the file system got partly corrupted and needed an fsck operation to recover. Are things working everywhere OK now?

Maybe you know how to run fsck for other GFS2 drives ?

Something is wrong with the file system

I found some VDI files cannot be deleted and they change the UUID value on their own

 

Example:

VDI file with name nCCw10-d215035a-clone-of-nCC-W10-D0202-H15-A-baseDisk change uuid  from ae3f1145-b6fe-4298-aaf0-d8aef2143dba to 32ba8932-af33-445f-9856-5d114d99035a

 

 xe vdi-list name-label=nCCw10-d215035a-clone-of-nCC-W10-D0202-H15-A-baseDisk
uuid ( RO)                : ae3f1145-b6fe-4298-aaf0-d8aef2143dba
          name-label ( RW): nCCw10-d215035a-clone-of-nCC-W10-D0202-H15-A-baseDisk
    name-description ( RW): img-cc-w10-v2.39
             sr-uuid ( RO): d083376b-00fb-3b02-5c61-f2f0fef69fd2
        virtual-size ( RO): 64424509440
            sharable ( RO): false
           read-only ( RO): false

xe vdi-destroy uuid=ae3f1145-b6fe-4298-aaf0-d8aef2143dba
There was an SR backend failure.
status: AttributeError
stdout: 'NoneType' object has no attribute 'image_type'
stderr: <unknown>

 xe sr-scan uuid=d083376b-00fb-3b02-5c61-f2f0fef69fd2

 xe vdi-destroy uuid=ae3f1145-b6fe-4298-aaf0-d8aef2143dba
The uuid you supplied was invalid.
type: VDI
uuid: ae3f1145-b6fe-4298-aaf0-d8aef2143dba

xe vdi-list name-label=nCCw10-d215035a-clone-of-nCC-W10-D0202-H15-A-baseDisk
uuid ( RO)                : 32ba8932-af33-445f-9856-5d114d99035a   (new VDI UUID)!!!!!!!!!!!!!!
          name-label ( RW): nCCw10-d215035a-clone-of-nCC-W10-D0202-H15-A-baseDisk
    name-description ( RW): img-cc-w10-v2.39
             sr-uuid ( RO): d083376b-00fb-3b02-5c61-f2f0fef69fd2
        virtual-size ( RO): 64424509440
            sharable ( RO): false
           read-only ( RO): false

 

This situation was seen before the SAN disaster.
And I don’t know if this is a problem with Hypervisor 8.1 or is it the impact of SAN incorrect operation before the disaster.

Link to comment
  • 0

Ugh, that's never a good sign. Are these real or orphan VDIs? This output is coming from the pool mater? Could have been corruption on the SAN before it became apparent on the hypervisor, but hard to tell. Maybe you can look back at the history in /var/log/SMlog for clues.

See if this article is of some help: https://www.righthandtechnologygroup.com/troubleshooting/unable-to-delete-xenserver-vdi/

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...