<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20:31 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-8785] Setting up lustre client on ppc64le-ubuntu 16.04 ( having lustre built from source )</title>
                <link>https://jira.whamcloud.com/browse/LU-8785</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I have a working 3 node cluster set on my x86_64 machines ( centos ) and i have followed the steps as per this url : &lt;a href=&quot;https://gist.github.com/joshuar/4e283308c932ec62fc05&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/joshuar/4e283308c932ec62fc05&lt;/a&gt; as shown below&lt;/p&gt;

&lt;p&gt;1. Machine 1 : Acting as Management server( MGS) , Management target ( MGT ) ,Metadata server( MDS) , Metadata target ( MDT )  - CentOS6.6 x86-VM1 - 10.51.225.95&lt;br/&gt;
2. Machine 2 : Acting as - Object Storage Server ( OSS ) , Object Storage Target ( OST ) CentOS6.8 x86-VM2 - 10.51.225.96&lt;br/&gt;
3. Machine 3 : Acting as lustre client - CentOS 7.2.1511- VM3 - 10.51.231.200&lt;/p&gt;

&lt;p&gt;All above machines are x86_64. &lt;/p&gt;

&lt;p&gt;Machine 1 ,  is showing Linux kernel patched with lustre : 2.6.32-573.12.1.el6_lustre.x86_64&lt;br/&gt;
Machine 2 ,  is showing Linux kernel patched with lustre : 2.6.32-573.12.1.el6_lustre.x86_64&lt;br/&gt;
Machine 3 :  is showing the normal Linux kernel : 3.10.0-327.10.1.el7.x86_64&lt;/p&gt;

&lt;p&gt;And to verify that lustre client is working on machine 3 , i have done the below on machine 3 .&lt;/p&gt;

&lt;p&gt;The lfs df -h command lists space usage per OST and the MDT in human-readable format. This command generates below output on lustre client :&lt;/p&gt;

&lt;p&gt;On Client Node - Machine 3&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@hj-ibmibm2026 lustre&amp;#93;&lt;/span&gt;# lfs df -h&lt;br/&gt;
UUID                                        bytes        Used   Available    Use%           Mounted on&lt;br/&gt;
whatevs-MDT0000_UUID       28.4G       58.9M       26.3G      0%              /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:0&amp;#93;&lt;/span&gt;&lt;br/&gt;
whatevs-OST0000_UUID       39.5G       49.0M       37.3G       0%              /mnt/lustre&lt;span class=&quot;error&quot;&gt;&amp;#91;OST:0&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;filesystem summary:                39.5G       49.0M       37.3G      0%             /mnt/lustre&lt;/p&gt;

&lt;p&gt;Now i need to replace the machine 3  (x86_64 ) with machine having ppc64le architecture . So i need to have lustre client on ppc64le machines ( ubuntu and red hat version ) . So i went to build lustre from source using below steps.&lt;/p&gt;

&lt;p&gt;root@pts00433-vm22:~# git clone git://git.hpdd.intel.com/fs/lustre-release.git&lt;br/&gt;
root@pts00433-vm22:~# cd lustre-release/&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# sh ./autogen.sh&lt;br/&gt;
configure.ac:15: installing &apos;config/compile&apos;&lt;br/&gt;
configure.ac:10: installing &apos;config/config.guess&apos;&lt;br/&gt;
configure.ac:10: installing &apos;config/config.sub&apos;&lt;br/&gt;
configure.ac:12: installing &apos;config/install-sh&apos;&lt;br/&gt;
configure.ac:12: installing &apos;config/missing&apos;&lt;br/&gt;
libcfs/libcfs/autoMakefile.am:39: warning: source file &apos;util/string.c&apos; is in a subdirectory,&lt;br/&gt;
libcfs/libcfs/autoMakefile.am:39: but option &apos;subdir-objects&apos; is disabled&lt;br/&gt;
automake: warning: possible forward-incompatibility.&lt;br/&gt;
automake: At least a source file is in a subdirectory, but the &apos;subdir-objects&apos;&lt;br/&gt;
........ &lt;br/&gt;
........&lt;br/&gt;
........&lt;br/&gt;
lustre/utils/Makefile.am:28: but option &apos;subdir-objects&apos; is disabled&lt;br/&gt;
lustre/utils/Makefile.am:24: warning: source file &apos;gss/sk_utils.c&apos; is in a subdirectory,&lt;br/&gt;
lustre/utils/Makefile.am:24: but option &apos;subdir-objects&apos; is disabled&lt;br/&gt;
root@pts00433-vm22:~/lustre-release#./configure --disable-server&lt;/p&gt;

&lt;p&gt;....&lt;br/&gt;
LD:            /usr/bin/ld&lt;br/&gt;
CPPFLAGS:      -include /root/lustre-release/undef.h -include /root/lustre-release/config.h -I/root/lustre-release/libcfs/include -I/root/lustre-release/lnet/include -I/root/lustre-release/lustre/include&lt;br/&gt;
CFLAGS:        -g -O2&lt;br/&gt;
EXTRA_KCFLAGS: -include /root/lustre-release/undef.h -include /root/lustre-release/config.h  -g -I/root/lustre-release/libcfs/include -I/root/lustre-release/lnet/include -I/root/lustre-release/lustre/include&lt;/p&gt;

&lt;p&gt;Type &apos;make&apos; to build Lustre.&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# make&lt;br/&gt;
make  all-recursive&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Entering directory &apos;/root/lustre-release&apos;&lt;br/&gt;
Making all in .&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Entering directory &apos;/root/lustre-release&apos;&lt;br/&gt;
grep -v config.h.in config.h.in &amp;gt; undef.h&lt;br/&gt;
make LDFLAGS= CC=&quot;gcc&quot; -C /lib/modules/4.4.0-31-generic/build \&lt;br/&gt;
-f /root/lustre-release/build/Makefile LUSTRE_LINUX_CONFIG=/lib/modules/4.4.0-31-generic/build/.config \&lt;br/&gt;
LINUXINCLUDE=&apos;-I$(srctree)/arch/$(SRCARCH)/include -Iarch/$(SRCARCH)/include/generated -Iinclude $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) -I$(srctree)/arch/$(SRCARCH)/include/uapi -Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi -Iinclude/generated/uapi -include /lib/modules/4.4.0-31-generic/build/include/linux/kconfig.h&apos; \&lt;br/&gt;
M=/root/lustre-release -o tmp_include_depends -o scripts -o \&lt;br/&gt;
include/config/MARKER modules&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Entering directory &apos;/usr/src/linux-headers-4.4.0-31-generic&apos;&lt;br/&gt;
  LD      /root/lustre-release/built-in.o&lt;br/&gt;
  LD      /root/lustre-release/libcfs/built-in.o&lt;br/&gt;
  LD      /root/lustre-release/libcfs/libcfs/built-in.o&lt;br/&gt;
.....&lt;br/&gt;
.....&lt;br/&gt;
....&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre/osc&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Entering directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Nothing to be done for &apos;all-am&apos;.&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release&apos;&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# ./LUSTRE-VERSION-GEN&lt;br/&gt;
2.8.59_78_g7d4106c&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# whereis lustre&lt;br/&gt;
lustre: /usr/lib/lustre /usr/include/lustre /usr/share/lustre /usr/share/man/man7/lustre.7&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# make install&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre/osc&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre/osc&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Entering directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Entering directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Nothing to be done for &apos;install-exec-am&apos;.&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Nothing to be done for &apos;install-data-am&apos;.&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Leaving directory &apos;/root/lustre-release/lustre&apos;&lt;br/&gt;
root@pts00433-vm22:~/lustre-release#&lt;/p&gt;

&lt;p&gt;So now assuming lustre has been installed from source correctly on this ppc64le-ubuntu16.04 vm , need to configure this machine to act as a lustre client. &lt;/p&gt;


&lt;p&gt;Getting issue while configuring the lustre client with below steps&lt;br/&gt;
On the client:&lt;br/&gt;
    Load the lustre kernel module using modprobe lustre.&lt;br/&gt;
root@pts00433-vm22:~/lustre-release# modprobe lustre&lt;br/&gt;
modprobe: FATAL: Module lustre not found in directory /lib/modules/4.4.0-31-generic&lt;/p&gt;

&lt;p&gt;Please do let me know having built lustre from source successfully ( at least that&apos;s what i think from above steps )  how to configure this ubuntu 16.04 machine as &quot;lustre client&quot; so that i replace the above foremost mentioned x86_64 machine with this ppc64le machine as lustre client&lt;/p&gt;

&lt;p&gt;Any pointers will be appreciated.&lt;/p&gt;

&lt;p&gt;Regards&lt;br/&gt;
Amit&lt;/p&gt;</description>
                <environment>&lt;a href=&apos;mailto:root@pts00433-vm22&apos;&gt;root@pts00433-vm22&lt;/a&gt;:~/lustre-release# cat /etc/os-release&lt;br/&gt;
NAME=&amp;quot;Ubuntu&amp;quot;&lt;br/&gt;
VERSION=&amp;quot;16.04.1 LTS (Xenial Xerus)&amp;quot;&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&apos;mailto:root@pts00433-vm22&apos;&gt;root@pts00433-vm22&lt;/a&gt;:~/lustre-release# lscpu&lt;br/&gt;
Architecture:          ppc64le&lt;br/&gt;
Byte Order:            Little Endian&lt;br/&gt;
CPU(s):                3&lt;br/&gt;
On-line CPU(s) list:   0-2&lt;br/&gt;
Thread(s) per core:    1&lt;br/&gt;
Core(s) per socket:    3&lt;br/&gt;
Socket(s):             1&lt;br/&gt;
NUMA node(s):          1&lt;br/&gt;
Model:                 2.1 (pvr 004b 0201)&lt;br/&gt;
Model name:            POWER8E (raw), altivec supported&lt;br/&gt;
Hypervisor vendor:     KVM&lt;br/&gt;
Virtualization type:   para&lt;br/&gt;
L1d cache:             64K&lt;br/&gt;
L1i cache:             32K&lt;br/&gt;
NUMA node0 CPU(s):     0-2&lt;br/&gt;
</environment>
        <key id="41212">LU-8785</key>
            <summary>Setting up lustre client on ppc64le-ubuntu 16.04 ( having lustre built from source )</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="wc-triage">WC Triage</assignee>
                                    <reporter username="amitkumar_ghatwal">Amitkumar Ghatwal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Nov 2016 08:41:00 +0000</created>
                <updated>Mon, 5 Feb 2018 19:49:36 +0000</updated>
                            <resolved>Mon, 5 Feb 2018 19:49:36 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>1</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="172248" author="simmonsja" created="Thu, 3 Nov 2016 22:44:21 +0000"  >&lt;p&gt;Here too I think &quot;depmod -a&quot; will resolve this.&lt;/p&gt;</comment>
                            <comment id="172269" author="amitkumar_ghatwal" created="Fri, 4 Nov 2016 04:07:11 +0000"  >&lt;p&gt;Yes , that is what i did yesterday and got it working, but replying it here now&lt;br/&gt;
Next below commands was how i managed to install lustre client&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;depmod -a&lt;/li&gt;
	&lt;li&gt;modprobe -v lustre&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Installed at power up&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@pts00433-vm5 ~&amp;#93;&lt;/span&gt;# cat /etc/sysconfig/modules/lustre.module&lt;br/&gt;
#!/bin/sh&lt;/p&gt;

&lt;p&gt;/sbin/lsmod | /bin/grep lustre 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br/&gt;
if [ ! $? ] ; then&lt;br/&gt;
   /sbin/modprobe lustre &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;connect to MGS/OSS&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;mkdir /mnt/first_mount&lt;/li&gt;
	&lt;li&gt;mount -t lustre 10.51.225.95@tcp0:/whatevs /mnt/first_mount&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Confirming that the client is configured correctly&lt;br/&gt;
#&lt;span class=&quot;error&quot;&gt;&amp;#91;root@pts00433-vm5 ~&amp;#93;&lt;/span&gt;# lfs df -h&lt;br/&gt;
UUID                       bytes        Used   Available Use% Mounted on&lt;br/&gt;
whatevs-MDT0000_UUID       28.4G       58.9M       26.3G   0% /mnt/first_mount&lt;span class=&quot;error&quot;&gt;&amp;#91;MDT:0&amp;#93;&lt;/span&gt;&lt;br/&gt;
whatevs-OST0000_UUID       39.5G       57.0M       37.3G   0% /mnt/first_mount&lt;span class=&quot;error&quot;&gt;&amp;#91;OST:0&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;filesystem summary:        39.5G       57.0M       37.3G   0% /mnt/first_mount&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@pts00433-vm5 ~&amp;#93;&lt;/span&gt;# df -h&lt;br/&gt;
Filesystem                 Size  Used Avail Use% Mounted on&lt;br/&gt;
/dev/mapper/rhel-root      115G   88G   28G  77% /&lt;br/&gt;
devtmpfs                   7.5G     0  7.5G   0% /dev&lt;br/&gt;
tmpfs                      7.5G     0  7.5G   0% /dev/shm&lt;br/&gt;
tmpfs                      7.5G  137M  7.4G   2% /run&lt;br/&gt;
tmpfs                      7.5G     0  7.5G   0% /sys/fs/cgroup&lt;br/&gt;
/dev/vda2                  497M  310M  187M  63% /boot&lt;br/&gt;
10.51.225.95@tcp:/whatevs   40G   58M   38G   1% /mnt/first_mount&lt;br/&gt;
tmpfs                      1.5G     0  1.5G   0% /run/user/0&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The above tells  me that machine 3 is successfully configured to be working as lustre client . Do let me know of any more check/test which i can perform on the lustre client to conform lustre file system.&lt;/p&gt;</comment>
                            <comment id="172280" author="amitkumar_ghatwal" created="Fri, 4 Nov 2016 06:10:33 +0000"  >&lt;p&gt;Hi James A Simmons,&lt;/p&gt;

&lt;p&gt;Are there any test cases which can be run to validate the lustre client configuration/performance when build lustre from source as done above ?&lt;/p&gt;</comment>
                            <comment id="174439" author="amitkumar_ghatwal" created="Mon, 21 Nov 2016 12:05:02 +0000"  >&lt;p&gt;Is there any inbuilt test-suite to validate lustre client ?&lt;/p&gt;</comment>
                            <comment id="220015" author="simmonsja" created="Mon, 5 Feb 2018 19:49:36 +0000"  >&lt;p&gt;Long fixed.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10003" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Business Value</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>Lustre-2.8.0</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzyu13:</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>
                                                                                                                                                    <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>