Best way to delay start of beegfs-storage

131 views
Skip to first unread message

Ray Muno

unread,
Dec 7, 2021, 2:42:41 PM12/7/21
to fhgfs...@googlegroups.com
I have BeeGFS storage nodes. The storage target is an iscsi mount.

What is the best way to configure beegfs-storage to start after the file system is mounted?

CentOS 7.9, BeegFS 7.2.5

The error I see is

Error: Found uninitialized storage target directory and initialization has been disable...storage

so I assume that is the issue. I can start it by hand after a boot.
--

Ray Muno
IT Systems Administrator
e-mail: mu...@umn.edu
University of Minnesota
Aerospace Engineering and Mechanics

Steffen Grunewald

unread,
Dec 8, 2021, 3:09:19 AM12/8/21
to 'Ray Muno' via beegfs-user
On Tue, 2021-12-07 at 13:42:39 -0600, BeeGFS user list wrote:
> I have BeeGFS storage nodes. The storage target is an iscsi mount.
>
> What is the best way to configure beegfs-storage to start after the file system is mounted?
>
> CentOS 7.9, BeegFS 7.2.5
>
> The error I see is
>
> Error: Found uninitialized storage target directory and initialization has been disable...storage
>
> so I assume that is the issue. I can start it by hand after a boot.

What about modifying the systemd service file, adding the required targets to "After=",
and possibly setting "RequiresMountsFor="?

HTH, Steffen

--
Steffen Grunewald, Cluster Administrator
Max Planck Institute for Gravitational Physics (Albert Einstein Institute)
Am Mühlenberg 1 * D-14476 Potsdam-Golm * Germany
~~~
Fon: +49-331-567 7274
Mail: steffen.grunewald(at)aei.mpg.de
~~~

Raymond Muno

unread,
Dec 8, 2021, 8:50:29 AM12/8/21
to fhgfs...@googlegroups.com
I took that approach.

I edited

/usr/lib/systemd/system/beegfs-storage.service

and added

remote-fs.target

to the After line.

I also had to add _netdev to the fstab line, to ensure the iscsi mount
succeeds at boot (not a BeeGFS issue per se).

It was starting just before multipathd started. I tried adding
multipathd.service to the After line, which pushed it down the chain a
bit, but it started while the filesystem was mounting, but before the
XFS filesystem fully came on line.

This is working through multiple reboots, but it seems odd to me since I
would not view an iscsi hosted filesystem as one that is remote.

Perhaps there is a better target to use as a requirement.

-Ray Muno

On 12/8/21 2:09 AM, Steffen Grunewald wrote:
> On Tue, 2021-12-07 at 13:42:39 -0600, BeeGFS user list wrote:
>> I have BeeGFS storage nodes. The storage target is an iscsi mount.
>>
>> What is the best way to configure beegfs-storage to start after the file system is mounted?
>>
>> CentOS 7.9, BeegFS 7.2.5
>>
>> The error I see is
>>
>> Error: Found uninitialized storage target directory and initialization has been disable...storage
>>
>> so I assume that is the issue. I can start it by hand after a boot.
> What about modifying the systemd service file, adding the required targets to "After=",
> and possibly setting "RequiresMountsFor="?
>
> HTH, Steffen
>
--

Ray Muno
Computer Systems Administrator
Reply all
Reply to author
Forward
0 new messages