<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
On Jul 7, 2025, at 01:47, Sergey Vergun via lustre-discuss <lustre-discuss@lists.lustre.org> wrote:<br>
<div>
<blockquote type="cite"><br class="Apple-interchange-newline">
<div>
<div dir="ltr">
<div></div>
<div>openat(AT_FDCWD, "/dev/obd", O_RDWR) = 3</div>
ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x66, 0x7f, 0x8), 0x7ffea24f1a90) = 0<br>
</div>
</div>
</blockquote>
<div><br>
</div>
This is OBD_IOC_NAME2DEV = _IOWR('f', 127, OBD_IOC_DATA_TYPE) which is needed to find the Lustre OBD device number to call the ioctl() on.</div>
<div><br>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>ioctl(3, _IOC(_IOC_READ|_IOC_WRITE, 0x67, 0x5, 0x8), 0x7ffea24f3da0) = -1 EINVAL (Invalid argument)</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>This is OBD_IOC_BARRIER = _IOWR('g', 5, OBD_IOC_DATA_TYPE), which is the old ioctl number for barrier control on release < 2.16, which was <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">originally defined as _IOWR('f', 261, OBD_IOC_DATA_TYPE)
by mistake. This is the correct ioctl number for your 2.15.4 release.</span></div>
<div><br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>Strace show something like it doing both old and new ioctl numbers('g' 5 and 'f' 105) and fail on old one (new added in
<span class="gmail-ws-pre-wrap gmail-f5 gmail-wb-break-word gmail-text-mono gmail-prc-Text-Text-0ima0">
LU-16634</span>) Should it be like that?</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">There is a new OBD_IOC_BARRIER_V2 = _IOW('f', 105, struct obd_ioctl_data) for 2.16+, to avoid the old number overflowing the 255-ioctl limit for 'f', but that should only be used for 2.16.0+ utilities
+ modules, and there is compatibility for both old+new utilities and code, so I don't think that is related here.</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br>
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Have you tried restarting your MGS? What does "lctl barrier_stat FSNAME" show?</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br>
</div>
<blockquote type="cite">
<div><br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">вт, 22 апр. 2025 г. в 12:04, Sergey Vergun <<a href="mailto:sewergun@gmail.com">sewergun@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">Hello. We have lustre 2.15.4 on Rocky 8.9
<div dir="auto">Two MDS with ZFS backend.</div>
<div dir="auto">After some time doing snapshots writing barrier stuck in failed state.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Filesystem seems like working but I can't take snapshots anymore. barrier_thaw or rescan throw error "Invalid argument" and "-b off" option for snapshot_create have no effect. lsnapshot.log say that I call snapshot creation with barrier ON even
if I say to not use it.</div>
<div dir="auto"><br>
</div>
<div dir="auto">How can I find what caused failed state to prevent that in future and is it possible to unlock?</div>
</div>
</blockquote>
</div>
_______________________________________________<br>
lustre-discuss mailing list<br>
lustre-discuss@lists.lustre.org<br>
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org<br>
</div>
</blockquote>
</div>
<br>
<div>
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Cheers, Andreas</div>
<div>—</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud/DDN</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>