Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
3
-
12651
Description
Here is some review of Chapter 30 sections.
The subsection "30.2.1. Provisioning the Build Machine and Installing Dependencies" is in the wrong place. It should be under "30.1. Overview and Prerequisites".
This note need updating:
A patched Linux kernel is NOT required in order to build the Lustre client code. The steps below for building the Linux kernel are only required if a new kernel is needed for a Lustre server.
It should be something like "Patching your kernel is only required if you want to use ldiskfs. A patched kernel is NOT required for Lustre clients or for Lustre servers using ZFS."
Create a user called build with a home directory /home/build:
This is unnecessarily complicated. There is no need to create a special user just to build Lustre. The chapter should be reworked to remove that.
Also in section "30.2.2. Preparing the Lustre Source" there are two different autogen.sh steps, which does not really make sense. One is titled "Resolve any outstanding dependencies.", but autogen.sh does not resolve outstanding dependencies. I think I understand what the author had in mind, but that needs to be redone.
In section "30.2.3. Preparing the Kernel Source" the first step is "Get the kernel source:". And then the commands don't have anything to do with getting the kernel source. Even if you correct the title ("Set up your personal rpm build tree"), I don't we you should advise folks to make a custom rpm development tree just for the kernel. It would be better to make this more generic. You might even suggest that they install the rpmdevtools package, and then they can just use the rpmdev-setuptree command to do the set up.
"30.3. Building the Lustre RPMs" starts out with "30.3.1. Building a New Kernel". That doesn't make any sense organizationally. Building the kernel rpms is building the kernel rpms, not building the lustre rpms.
I would suggest moving "30.3.1. Building a New Kernel" up under 30.2, and renaming 30.2 to "Building a Custom Linux Kernel with Lustre Patches".
In 30.3.2, the very first command is not the method that we should be recommending:
"./configure --with-linux=/home/build/kernel/rpmbuild/BUILD/
kernel-2.6.32-358.14.1.el6_lustre.x86_64/"
We should not have them point to the temporary internal build directory that rpmbuild uses. Instead we should tell them to install the required kernel rpms, and point at the location of the source that they install.
"The resulting RPMs are in ~build/kernel/rpmbuild/RPMS/x86_64"
That needs updating to match changes from my earlier complaint. Now you can see why it is silly to name it "kernel" if we're not just putting the kernel in there.
"30.3.3. Installing the Lustre Kernel" is out of order like I said. Needs to come before the lustre build.
"Create initrd using dracut:
- /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut
--depmod --install 2.6.32-358.14.1.el6_lustre.x86_64"
This is odd. I don't think users should need to do this. Perhaps something specific to Intel's build farm? This should probably be removed from the manual.
"A login prompt such as that shown below indicates success:
Red Hat Enterprise Linux Server release 6.0(Santiago)
Kernel 2.6.3-358.14.1.el6_lustre.x86_64 on an x86_64
client-10login:"
Don't include this in the manual. If they don't know what a booted node looks like, they have absolutely no hope of compiling, installing, or configuring a lustre filesystem.
In 30.3.4, the manual is using a kernel path inconsisent with the preceding part of the chapter. "uname -r" is probably bad advice too, if they just built the kernel and haven't rebooted yet.
Richard Henwood (richard.henwood@intel.com) merged in patch http://review.whamcloud.com/9259/
Subject:
LUDOC-224build: remove redundant build instructions.Project: doc/manual
Branch: master
Current Patch Set:
Commit: a2060869a7515e40d358fe366f5b32cf7cb794aa