ocfs2-devel.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
@ 2021-02-23 20:08 Lentes, Bernd
  2021-02-23 22:24 ` Wengang Wang
  0 siblings, 1 reply; 10+ messages in thread
From: Lentes, Bernd @ 2021-02-23 20:08 UTC (permalink / raw)
  To: ocfs2-devel ML

Hi,

i hope it's ok to ask here, if not tell me.
I know there is a ML ocfs2-user, but it has such low traffic (no E-Mail in the second half of 2020 !) that it doesn't help much.
I have a two-node HA-cluster with pacemaker. My ressources are virtual domains.
The virtual disks of the domains are raw files on an OCFS2 volume on a SAN.
Each evening the domains are shutdown to make a consistent reflink of each raw file which i copy afterwards in the background to a CIFS share.
In my syslog appears quite often the mentioned error:

2021-01-22T00:00:06.655943+01:00 ha-idg-2 kernel: [4191702.116515] (reflink,10881,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:06.871000+01:00 ha-idg-2 kernel: [4191702.334649] (reflink,10884,21):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:07.075983+01:00 ha-idg-2 kernel: [4191702.536488] (reflink,10885,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:07.791944+01:00 ha-idg-2 kernel: [4191703.255204] (reflink,10888,21):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.066327+01:00 ha-idg-2 kernel: [4191703.529930] (reflink,10889,13):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.274759+01:00 ha-idg-2 kernel: [4191703.738449] (reflink,10892,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.475985+01:00 ha-idg-2 kernel: [4191703.938052] (reflink,10893,10):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.675990+01:00 ha-idg-2 kernel: [4191704.138467] (reflink,10896,7):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.862265+01:00 ha-idg-2 kernel: [4191704.325938] (reflink,10897,23):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.033816+01:00 ha-idg-2 kernel: [4191704.496384] (reflink,10900,19):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.223980+01:00 ha-idg-2 kernel: [4191704.685485] (reflink,10901,9):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.399947+01:00 ha-idg-2 kernel: [4191704.863623] (reflink,10909,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.567981+01:00 ha-idg-2 kernel: [4191705.030704] (reflink,10996,7):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.735992+01:00 ha-idg-2 kernel: [4191705.198145] (reflink,10999,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.971949+01:00 ha-idg-2 kernel: [4191705.435148] (reflink,11000,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.136051+01:00 ha-idg-2 kernel: [4191705.599029] (reflink,11003,5):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.320845+01:00 ha-idg-2 kernel: [4191705.784548] (reflink,11004,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.528025+01:00 ha-idg-2 kernel: [4191705.990409] (reflink,11007,20):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.717251+01:00 ha-idg-2 kernel: [4191706.180929] (reflink,11008,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:11.463958+01:00 ha-idg-2 kernel: [4191706.925221] (reflink,11031,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:11.655975+01:00 ha-idg-2 kernel: [4191707.117305] (reflink,11037,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:13.819013+01:00 ha-idg-2 kernel: [4191709.282582] (reflink,11040,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.467945+01:00 ha-idg-2 kernel: [4191709.931562] (reflink,11041,19):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.683974+01:00 ha-idg-2 kernel: [4191710.144808] (reflink,11052,16):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.908012+01:00 ha-idg-2 kernel: [4191710.371273] (reflink,11096,12):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:15.098659+01:00 ha-idg-2 kernel: [4191710.560220] (reflink,11099,20):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.271950+01:00 ha-idg-2 kernel: [4191711.735628] (reflink,11104,4):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.503952+01:00 ha-idg-2 kernel: [4191711.967347] (reflink,11302,6):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.764776+01:00 ha-idg-2 kernel: [4191712.228470] (reflink,11309,10):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.972088+01:00 ha-idg-2 kernel: [4191712.431961] (reflink,11312,13):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:17.171988+01:00 ha-idg-2 kernel: [4191712.634809] (reflink,11313,5):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:17.436011+01:00 ha-idg-2 kernel: [4191712.897895] (reflink,11316,23):ocfs2_reflink_ioctl:4431 ERROR: status = -17

I grepped around in the sources but my last touch with C is 25 years ago.
I "think" the call of the function ocfs2_reflink_ioctl returns a "-17", which indicates clearly that someting is wrong.
But i have no idea what.
My systems are SLES 12 SP5 with kernel 4.12.14-122.46-default and ocfs2-tools-1.8.5-3.3.1.x86_64.

The point is that i have trouble starting some domains after creating the reflinks, some fail occasionally and boot e.g. into emergency mode 
and i try to narrow down the problem.

I'd appreciate very much your help.

Thanks.


Bernd

-- 

Bernd Lentes 
System Administrator 
Institute for Metabolism and Cell Death (MCD) 
Building 25 - office 122 
HelmholtzZentrum München 
bernd.lentes@helmholtz-muenchen.de 
phone: +49 89 3187 1241 
phone: +49 89 3187 3827 
fax: +49 89 3187 2294 
http://www.helmholtz-muenchen.de/mcd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-23 20:08 [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17 Lentes, Bernd
@ 2021-02-23 22:24 ` Wengang Wang
  2021-02-24  9:11   ` Lentes, Bernd
  0 siblings, 1 reply; 10+ messages in thread
From: Wengang Wang @ 2021-02-23 22:24 UTC (permalink / raw)
  To: Lentes, Bernd; +Cc: ocfs2-devel ML


[-- Attachment #1.1: Type: text/plain, Size: 6491 bytes --]

 #define EEXIST          17      /* File exists */

You may already have the file created from the other node.

wengang

On Feb 23, 2021, at 12:08 PM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>> wrote:

Hi,

i hope it's ok to ask here, if not tell me.
I know there is a ML ocfs2-user, but it has such low traffic (no E-Mail in the second half of 2020 !) that it doesn't help much.
I have a two-node HA-cluster with pacemaker. My ressources are virtual domains.
The virtual disks of the domains are raw files on an OCFS2 volume on a SAN.
Each evening the domains are shutdown to make a consistent reflink of each raw file which i copy afterwards in the background to a CIFS share.
In my syslog appears quite often the mentioned error:

2021-01-22T00:00:06.655943+01:00 ha-idg-2 kernel: [4191702.116515] (reflink,10881,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:06.871000+01:00 ha-idg-2 kernel: [4191702.334649] (reflink,10884,21):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:07.075983+01:00 ha-idg-2 kernel: [4191702.536488] (reflink,10885,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:07.791944+01:00 ha-idg-2 kernel: [4191703.255204] (reflink,10888,21):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.066327+01:00 ha-idg-2 kernel: [4191703.529930] (reflink,10889,13):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.274759+01:00 ha-idg-2 kernel: [4191703.738449] (reflink,10892,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.475985+01:00 ha-idg-2 kernel: [4191703.938052] (reflink,10893,10):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.675990+01:00 ha-idg-2 kernel: [4191704.138467] (reflink,10896,7):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:08.862265+01:00 ha-idg-2 kernel: [4191704.325938] (reflink,10897,23):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.033816+01:00 ha-idg-2 kernel: [4191704.496384] (reflink,10900,19):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.223980+01:00 ha-idg-2 kernel: [4191704.685485] (reflink,10901,9):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.399947+01:00 ha-idg-2 kernel: [4191704.863623] (reflink,10909,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.567981+01:00 ha-idg-2 kernel: [4191705.030704] (reflink,10996,7):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.735992+01:00 ha-idg-2 kernel: [4191705.198145] (reflink,10999,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:09.971949+01:00 ha-idg-2 kernel: [4191705.435148] (reflink,11000,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.136051+01:00 ha-idg-2 kernel: [4191705.599029] (reflink,11003,5):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.320845+01:00 ha-idg-2 kernel: [4191705.784548] (reflink,11004,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.528025+01:00 ha-idg-2 kernel: [4191705.990409] (reflink,11007,20):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:10.717251+01:00 ha-idg-2 kernel: [4191706.180929] (reflink,11008,17):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:11.463958+01:00 ha-idg-2 kernel: [4191706.925221] (reflink,11031,1):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:11.655975+01:00 ha-idg-2 kernel: [4191707.117305] (reflink,11037,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:13.819013+01:00 ha-idg-2 kernel: [4191709.282582] (reflink,11040,15):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.467945+01:00 ha-idg-2 kernel: [4191709.931562] (reflink,11041,19):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.683974+01:00 ha-idg-2 kernel: [4191710.144808] (reflink,11052,16):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:14.908012+01:00 ha-idg-2 kernel: [4191710.371273] (reflink,11096,12):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:15.098659+01:00 ha-idg-2 kernel: [4191710.560220] (reflink,11099,20):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.271950+01:00 ha-idg-2 kernel: [4191711.735628] (reflink,11104,4):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.503952+01:00 ha-idg-2 kernel: [4191711.967347] (reflink,11302,6):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.764776+01:00 ha-idg-2 kernel: [4191712.228470] (reflink,11309,10):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:16.972088+01:00 ha-idg-2 kernel: [4191712.431961] (reflink,11312,13):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:17.171988+01:00 ha-idg-2 kernel: [4191712.634809] (reflink,11313,5):ocfs2_reflink_ioctl:4431 ERROR: status = -17
2021-01-22T00:00:17.436011+01:00 ha-idg-2 kernel: [4191712.897895] (reflink,11316,23):ocfs2_reflink_ioctl:4431 ERROR: status = -17

I grepped around in the sources but my last touch with C is 25 years ago.
I "think" the call of the function ocfs2_reflink_ioctl returns a "-17", which indicates clearly that someting is wrong.
But i have no idea what.
My systems are SLES 12 SP5 with kernel 4.12.14-122.46-default and ocfs2-tools-1.8.5-3.3.1.x86_64.

The point is that i have trouble starting some domains after creating the reflinks, some fail occasionally and boot e.g. into emergency mode
and i try to narrow down the problem.

I'd appreciate very much your help.

Thanks.


Bernd

--

Bernd Lentes
System Administrator
Institute for Metabolism and Cell Death (MCD)
Building 25 - office 122
HelmholtzZentrum München
bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>
phone: +49 89 3187 1241
phone: +49 89 3187 3827
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/mcd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel


[-- Attachment #1.2: Type: text/html, Size: 8942 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-23 22:24 ` Wengang Wang
@ 2021-02-24  9:11   ` Lentes, Bernd
  2021-02-24  9:27     ` Gang He
  2021-02-24 21:49     ` Wengang Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Lentes, Bernd @ 2021-02-24  9:11 UTC (permalink / raw)
  To: ocfs2-devel


----- On Feb 23, 2021, at 11:24 PM, Wengang Wang wen.gang.wang@oracle.com wrote:

> #define EEXIST 17 /* File exists */

> You may already have the file created from the other node.

> wengang


Hi Wengang,

thanks for your help.

The reflink is created via:
reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink

Of course this file exists already because the skript ran also one day before.
But from which node the previous one was created is unpredictable, it might be the same
but also the other one.

Is the message severe or don't i have to bother about it ?

Thanks.

Bernd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-24  9:11   ` Lentes, Bernd
@ 2021-02-24  9:27     ` Gang He
  2021-02-24 21:49     ` Wengang Wang
  1 sibling, 0 replies; 10+ messages in thread
From: Gang He @ 2021-02-24  9:27 UTC (permalink / raw)
  To: ocfs2-devel

Hi Bernd,

It looked you run reflink to clone the file from two node 
simultaneously? then reflink will fail from one node, since the 
destination file has existed.


Thanks
Gang

On 2021/2/24 17:11, Lentes, Bernd wrote:
> 
> ----- On Feb 23, 2021, at 11:24 PM, Wengang Wang wen.gang.wang@oracle.com wrote:
> 
>> #define EEXIST 17 /* File exists */
> 
>> You may already have the file created from the other node.
> 
>> wengang
> 
> 
> Hi Wengang,
> 
> thanks for your help.
> 
> The reflink is created via:
> reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink
> 
> Of course this file exists already because the skript ran also one day before.
> But from which node the previous one was created is unpredictable, it might be the same
> but also the other one.
> 
> Is the message severe or don't i have to bother about it ?
> 
> Thanks.
> 
> Bernd
> Helmholtz Zentrum München
> 
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
> Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671
> 
> 
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel@oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> 


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-24  9:11   ` Lentes, Bernd
  2021-02-24  9:27     ` Gang He
@ 2021-02-24 21:49     ` Wengang Wang
  2021-02-25 12:39       ` Lentes, Bernd
  1 sibling, 1 reply; 10+ messages in thread
From: Wengang Wang @ 2021-02-24 21:49 UTC (permalink / raw)
  To: Lentes, Bernd; +Cc: ocfs2-devel



> On Feb 24, 2021, at 1:11 AM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de> wrote:
> 
> 
> ----- On Feb 23, 2021, at 11:24 PM, Wengang Wang wen.gang.wang@oracle.com wrote:
> 
>> #define EEXIST 17 /* File exists */
> 
>> You may already have the file created from the other node.
> 
>> wengang
> 
> 
> Hi Wengang,
> 
> thanks for your help.
> 
> The reflink is created via:
> reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink
> 
> Of course this file exists already because the skript ran also one day before.
> But from which node the previous one was created is unpredictable, it might be the same
> but also the other one.
> 
> Is the message severe or don't i have to bother about it ?
> 

OCFS2 is a shared-storage cluster FS.  For the reflinks, you need and should create them only from one of the nodes. Don’t do duplicated work (reflink) on other nodes.

thanks,
wengang


> Thanks.
> 
> Bernd
> Helmholtz Zentrum München
> 
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
> Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671
> 

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-24 21:49     ` Wengang Wang
@ 2021-02-25 12:39       ` Lentes, Bernd
  2021-02-25 16:43         ` Wengang Wang
  0 siblings, 1 reply; 10+ messages in thread
From: Lentes, Bernd @ 2021-02-25 12:39 UTC (permalink / raw)
  To: ocfs2-devel



----- On Feb 24, 2021, at 10:49 PM, Wengang Wang wen.gang.wang@oracle.com wrote:

>> On Feb 24, 2021, at 1:11 AM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de>
>> wrote:
>> 
>> 
>> ----- On Feb 23, 2021, at 11:24 PM, Wengang Wang wen.gang.wang@oracle.com wrote:
>> 
>>> #define EEXIST 17 /* File exists */
>> 
>>> You may already have the file created from the other node.
>> 
>>> wengang
>> 
>> 
>> Hi Wengang,
>> 
>> thanks for your help.
>> 
>> The reflink is created via:
>> reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink
>> 
>> Of course this file exists already because the skript ran also one day before.
>> But from which node the previous one was created is unpredictable, it might be
>> the same
>> but also the other one.
>> 
>> Is the message severe or don't i have to bother about it ?
>> 
> 
> OCFS2 is a shared-storage cluster FS.  For the reflinks, you need and should
> create them only from one of the nodes. Don’t do duplicated work (reflink) on
> other nodes.

Hi Wengang,

thanks for your help.
Just to be sure that i understand you completely:
we reflink some raw file from host 1 and OTHER raw files (not the same !) from host 2.
Is that already a problem ? Or are you talking about reflinking the SAME file concurrently from both nodes ?

Bernd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-25 12:39       ` Lentes, Bernd
@ 2021-02-25 16:43         ` Wengang Wang
  2021-02-25 20:48           ` Lentes, Bernd
  0 siblings, 1 reply; 10+ messages in thread
From: Wengang Wang @ 2021-02-25 16:43 UTC (permalink / raw)
  To: Lentes, Bernd; +Cc: ocfs2-devel


[-- Attachment #1.1: Type: text/plain, Size: 2254 bytes --]



On Feb 25, 2021, at 4:39 AM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>> wrote:



----- On Feb 24, 2021, at 10:49 PM, Wengang Wang wen.gang.wang@oracle.com<mailto:wen.gang.wang@oracle.com> wrote:

On Feb 24, 2021, at 1:11 AM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>>
wrote:


----- On Feb 23, 2021, at 11:24 PM, Wengang Wang wen.gang.wang@oracle.com<mailto:wen.gang.wang@oracle.com> wrote:

#define EEXIST 17 /* File exists */

You may already have the file created from the other node.

wengang


Hi Wengang,

thanks for your help.

The reflink is created via:
reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink

Of course this file exists already because the skript ran also one day before.
But from which node the previous one was created is unpredictable, it might be
the same
but also the other one.

Is the message severe or don't i have to bother about it ?


OCFS2 is a shared-storage cluster FS.  For the reflinks, you need and should
create them only from one of the nodes. Don’t do duplicated work (reflink) on
other nodes.

Hi Wengang,

thanks for your help.
Just to be sure that i understand you completely:
we reflink some raw file from host 1 and OTHER raw files (not the same !) from host 2.
Is that already a problem ? Or are you talking about reflinking the SAME file concurrently from both nodes ?

No, that’s not a problem.  Make sure your applications does the same as you want.
From the error message, your app could be creating duplicated reflinks from one or two nodes.
That’s what we can know by the error message. I am suspecting the problem is in your app, you could try to debug it.

thanks,
wengang


Bernd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de<http://www.helmholtz-muenchen.de/>
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


[-- Attachment #1.2: Type: text/html, Size: 19020 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-25 16:43         ` Wengang Wang
@ 2021-02-25 20:48           ` Lentes, Bernd
  2021-02-26  2:41             ` Joseph Qi
  2021-02-26 16:42             ` Wengang Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Lentes, Bernd @ 2021-02-25 20:48 UTC (permalink / raw)
  To: Wengang Wang; +Cc: ocfs2-devel



-- 

Bernd Lentes 
System Administrator 
Institute for Metabolism and Cell Death (MCD) 
Building 25 - office 122 
HelmholtzZentrum München 
bernd.lentes@helmholtz-muenchen.de 
phone: +49 89 3187 1241 
phone: +49 89 3187 3827 
fax: +49 89 3187 2294 
http://www.helmholtz-muenchen.de/mcd

----- On Feb 25, 2021, at 5:43 PM, Wengang Wang wen.gang.wang@oracle.com wrote:

>> On Feb 25, 2021, at 4:39 AM, Lentes, Bernd < [
>> mailto:bernd.lentes@helmholtz-muenchen.de | bernd.lentes@helmholtz-muenchen.de
>> ] > wrote:

>> ----- On Feb 24, 2021, at 10:49 PM, Wengang Wang [
>> mailto:wen.gang.wang@oracle.com | wen.gang.wang@oracle.com ] wrote:

>>>> On Feb 24, 2021, at 1:11 AM, Lentes, Bernd < [
>>>> mailto:bernd.lentes@helmholtz-muenchen.de | bernd.lentes@helmholtz-muenchen.de
>>>> ] >
>>>> wrote:

>>>> ----- On Feb 23, 2021, at 11:24 PM, Wengang Wang [
>>>> mailto:wen.gang.wang@oracle.com |
>>>> wen.gang.wang@oracle.com ] wrote:

>>>>> #define EEXIST 17 /* File exists */

>>>>> You may already have the file created from the other node.

>>>>> wengang

>>>> Hi Wengang,

>>>> thanks for your help.

>>>> The reflink is created via:
>>>> reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink

>>>> Of course this file exists already because the skript ran also one day before.
>>>> But from which node the previous one was created is unpredictable, it might be
>>>> the same
>>>> but also the other one.

>>>> Is the message severe or don't i have to bother about it ?

>>> OCFS2 is a shared-storage cluster FS. For the reflinks, you need and should
>>> create them only from one of the nodes. Don’t do duplicated work (reflink) on
>>> other nodes.

>> Hi Wengang,

>> thanks for your help.
>> Just to be sure that i understand you completely:
>> we reflink some raw file from host 1 and OTHER raw files (not the same !) from
>> host 2.
>> Is that already a problem ? Or are you talking about reflinking the SAME file
>> concurrently from both nodes ?

> No, that’s not a problem. Make sure your applications does the same as you want.
> From the error message, your app could be creating duplicated reflinks from one
> or two nodes.
> That’s what we can know by the error message. I am suspecting the problem is in
> your app, you could try to debug it.

> thanks,
> wengang

Hi,

what we do is to overwrite the reflink from the day before with the current one, with the same name.
For this we use reflink -f. Could that be the culprit ?
Should we delete the old one before ? Or maybe use unique names for each reflink ?

Thanks.

Bernd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-25 20:48           ` Lentes, Bernd
@ 2021-02-26  2:41             ` Joseph Qi
  2021-02-26 16:42             ` Wengang Wang
  1 sibling, 0 replies; 10+ messages in thread
From: Joseph Qi @ 2021-02-26  2:41 UTC (permalink / raw)
  To: Lentes, Bernd, Wengang Wang; +Cc: ocfs2-devel



On 2/26/21 4:48 AM, Lentes, Bernd wrote:
> Hi,
> 
> what we do is to overwrite the reflink from the day before with the current one, with the same name.
> For this we use reflink -f. Could that be the culprit ?
> Should we delete the old one before ? Or maybe use unique names for each reflink ?

I think you are doing so is to take a file snapshot. So a unique name
for each snapshot looks more reasonable, since you can find the most
suitable backup you want.
Generally filename + timestamp is commonly used for this situation.

Thanks,
Joseph

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17
  2021-02-25 20:48           ` Lentes, Bernd
  2021-02-26  2:41             ` Joseph Qi
@ 2021-02-26 16:42             ` Wengang Wang
  1 sibling, 0 replies; 10+ messages in thread
From: Wengang Wang @ 2021-02-26 16:42 UTC (permalink / raw)
  To: Lentes, Bernd; +Cc: ocfs2-devel


[-- Attachment #1.1: Type: text/plain, Size: 3437 bytes --]



On Feb 25, 2021, at 12:48 PM, Lentes, Bernd <bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>> wrote:



--

Bernd Lentes
System Administrator
Institute for Metabolism and Cell Death (MCD)
Building 25 - office 122
HelmholtzZentrum München
bernd.lentes@helmholtz-muenchen.de<mailto:bernd.lentes@helmholtz-muenchen.de>
phone: +49 89 3187 1241
phone: +49 89 3187 3827
fax: +49 89 3187 2294
http://www.helmholtz-muenchen.de/mcd

----- On Feb 25, 2021, at 5:43 PM, Wengang Wang wen.gang.wang@oracle.com wrote:

On Feb 25, 2021, at 4:39 AM, Lentes, Bernd < [
mailto:bernd.lentes@helmholtz-muenchen.de | bernd.lentes@helmholtz-muenchen.de
] > wrote:

----- On Feb 24, 2021, at 10:49 PM, Wengang Wang [
mailto:wen.gang.wang@oracle.com | wen.gang.wang@oracle.com ] wrote:

On Feb 24, 2021, at 1:11 AM, Lentes, Bernd < [
mailto:bernd.lentes@helmholtz-muenchen.de | bernd.lentes@helmholtz-muenchen.de
] >
wrote:

----- On Feb 23, 2021, at 11:24 PM, Wengang Wang [
mailto:wen.gang.wang@oracle.com |
wen.gang.wang@oracle.com ] wrote:

#define EEXIST 17 /* File exists */

You may already have the file created from the other node.

wengang

Hi Wengang,

thanks for your help.

The reflink is created via:
reflink -fv /path/to/domain.raw /mnt/ocfs2/reflink

Of course this file exists already because the skript ran also one day before.
But from which node the previous one was created is unpredictable, it might be
the same
but also the other one.

Is the message severe or don't i have to bother about it ?

OCFS2 is a shared-storage cluster FS. For the reflinks, you need and should
create them only from one of the nodes. Don’t do duplicated work (reflink) on
other nodes.

Hi Wengang,

thanks for your help.
Just to be sure that i understand you completely:
we reflink some raw file from host 1 and OTHER raw files (not the same !) from
host 2.
Is that already a problem ? Or are you talking about reflinking the SAME file
concurrently from both nodes ?

No, that’s not a problem. Make sure your applications does the same as you want.
From the error message, your app could be creating duplicated reflinks from one
or two nodes.
That’s what we can know by the error message. I am suspecting the problem is in
your app, you could try to debug it.

thanks,
wengang

Hi,

what we do is to overwrite the reflink from the day before with the current one, with the same name.
For this we use reflink -f. Could that be the culprit ?
Should we delete the old one before ? Or maybe use unique names for each reflink ?

-f, --force                 remove existing destination files

-f option is used to remove the destination files if they already exist.

If you do see "reflink -f" returns -17 error, that could be an OCFS2 problem.
BTW, where comes your reflink command?  use
rpm -qf `which reflink`
to see that if you use rpm.

thanks,
wengang


Thanks.

Bernd
Helmholtz Zentrum München

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de<http://www.helmholtz-muenchen.de>
Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671



[-- Attachment #1.2: Type: text/html, Size: 10000 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-02-26 16:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 20:08 [Ocfs2-devel] error message in log: ocfs2_reflink_ioctl:4431 ERROR: status = -17 Lentes, Bernd
2021-02-23 22:24 ` Wengang Wang
2021-02-24  9:11   ` Lentes, Bernd
2021-02-24  9:27     ` Gang He
2021-02-24 21:49     ` Wengang Wang
2021-02-25 12:39       ` Lentes, Bernd
2021-02-25 16:43         ` Wengang Wang
2021-02-25 20:48           ` Lentes, Bernd
2021-02-26  2:41             ` Joseph Qi
2021-02-26 16:42             ` Wengang Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).