<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:50:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-12227] Lustre init script does not check if ZFS devices are already mounted</title>
                <link>https://jira.whamcloud.com/browse/LU-12227</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Init script &lt;tt&gt;lustre&lt;/tt&gt; installed in &lt;tt&gt;/etc/init.d/lustre&lt;/tt&gt; when called with &lt;tt&gt;start&lt;/tt&gt; argument does check if devices are already started, but it skips this test for ZFS.&lt;/p&gt;

&lt;p&gt;When calling &lt;tt&gt;service lustre start&lt;/tt&gt; on a system with some targets already started, the script will start the missing ones but will return a non-zero exit code.&lt;/p&gt;

&lt;p&gt;If using systemd, it will see this non-zero exit code as an error and will stop and start all devices.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# mount -t lustre -l
ostPOOL0/ost0 on /mnt/lustre/local/lustre-OST0000 type lustre (ro)
ostPOOL0/ost1 on /mnt/lustre/local/lustre-OST0001 type lustre (ro)
ostPOOL0/ost2 on /mnt/lustre/local/lustre-OST0002 type lustre (ro)

# umount /mnt/lustre/local/lustre-OST0001

# service --skip-redirect lustre start; echo $?
Mounting ostPOOL0/ost0 on /mnt/lustre/local/lustre-OST0000
mount.lustre: according to /etc/mtab ostPOOL0/ost0 is already mounted on /mnt/lustre/local/lustre-OST0000
Mounting ostPOOL0/ost1 on /mnt/lustre/local/lustre-OST0001
Mounting ostPOOL0/ost2 on /mnt/lustre/local/lustre-OST0002
mount.lustre: according to /etc/mtab ostPOOL0/ost2 is already mounted on /mnt/lustre/local/lustre-OST0002
2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I will propose a patch to enable mount and label checks for all backend types, including zfs.&lt;/p&gt;

&lt;p&gt;With the patch:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# umount /mnt/lustre/local/lustre-OST0001

# service --skip-redirect lustre start; echo $?
lustre-OST0000 is already mounted
lustre-OST0002 is already mounted
Mounting ostPOOL0/ost1 on /mnt/lustre/local/lustre-OST0001
0&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="55498">LU-12227</key>
            <summary>Lustre init script does not check if ZFS devices are already mounted</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="degremoa">Aurelien Degremont</assignee>
                                    <reporter username="degremoa">Aurelien Degremont</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Apr 2019 09:54:10 +0000</created>
                <updated>Wed, 8 May 2019 11:54:20 +0000</updated>
                            <resolved>Wed, 8 May 2019 11:54:20 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                    <version>Lustre 2.10.7</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="246389" author="gerrit" created="Fri, 26 Apr 2019 10:44:13 +0000"  >&lt;p&gt;Aurelien Degremont (degremoa@amazon.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34766&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34766&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12227&quot; title=&quot;Lustre init script does not check if ZFS devices are already mounted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12227&quot;&gt;&lt;del&gt;LU-12227&lt;/del&gt;&lt;/a&gt; scripts: check for mounted ZFS devices too&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 95b36bd524701d54339b9c9a30f5e30624599a44&lt;/p&gt;</comment>
                            <comment id="246836" author="gerrit" created="Wed, 8 May 2019 06:05:26 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34766/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34766/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12227&quot; title=&quot;Lustre init script does not check if ZFS devices are already mounted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12227&quot;&gt;&lt;del&gt;LU-12227&lt;/del&gt;&lt;/a&gt; scripts: check for mounted ZFS devices too&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 34bc379f7425f364535e608d03f424a64bd1a04e&lt;/p&gt;</comment>
                            <comment id="246842" author="pjones" created="Wed, 8 May 2019 11:54:20 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00fev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>