Red Hat GLOBAL FILE SYSTEM 4.7 Guia do Utilizador Página 121

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 120
Building the HP SFS client kit manually C–3
6. If you wish to build RPM files, it is best to create an rpmmacros file (if one does not already exist for
the build user). This is created in the output/ directory and will result in all RPM activity taking
place in that directory, including the resulting RPM files being placed there. To create this file enter the
commands shown in the following example (changing text where appropriate for your build
environment and directories):
$ echo "#
# Macros for using rpmbuild
#
%_topdir /build/SFS_client_build/output/
%_rpmtopdir %{_topdir}
%_tmppath %{_rpmtopdir}/tmp
%buildroot %{_rpmtopdir}/root
%_builddir %{_rpmtopdir}/build
%_sourcedir %{_rpmtopdir}/src
%_specdir %{_rpmtopdir}/specs
%_rpmdir %{_rpmtopdir}/rpms
%_srcrpmdir %{_rpmdir}/srpms
%packager bob@builder
%vendor Hewlett-Packard
%distribution Hewlett-Packard SFS Custom client
%_unpackaged_files_terminate_build 0
%_missing_doc_files_terminate_build 0" > output/.rpmmacros
$ mkdir -p output/tmp output/root output/build output/src output/specs
output/rpms/srpms
$ export HOME=/build/SFS_client_build/output/
7. If necessary, copy the appropriate kernel sources to the src/ directory, as shown in the following
example. These sources are not modified during the build process.
NOTE: If your kernel source files are already extracted, retain a directory name and do not copy
the Linux kernel sources directly into the src/ directory.
$ cp -pR /usr/src/linux-2.4.21 src/
If you are building a kernel RPM file, you will need to start with a kernel SRPM file, as shown in the
following example:
$ cp -p /mnt/cdrom/client_enabler/src/common/kernels/RedHat/EL3/kernel-2.4.21-
40.EL.src.rpm src/
8. Copy the Lustre source file from the client_enabler/src/common/lustre directory on the HP
StorageWorks Scalable File Share Client Software CD-ROM to the src/ directory, as shown in the
following example:
$ cp -p /mnt/cdrom/client_enabler/src/common/lustre/lustre-V1.4.tgz src/
9. If your interconnect is a Quadrics interconnect (supported version is Version 5.11.3) or Myrinet
interconnect (supported version is Version 2.1.23), copy the interconnect driver sources to the src/
directory, as shown in the following examples.
The following example copies the sources for the Quadrics interconnect driver:
$ cp -p
/mnt/cdrom/client_enabler/src/common/qsnet/qsnetmodules-5.23.2qsnet.p1.tar.bz2
/mnt/cdrom/client_enabler/src/common/qsnet/qsnetpatches-RedHat-2.4.21-
40.EL.qp2.0_hp.tar.bz2 src/
The following example copies the Myrinet interconnect driver sources:
$ cp -p /mnt/cdrom/client_enabler/src/common/gm/gm-2.1.26-hpls.src.rpm src/
10. If your client kernel has additional patches listed in the client_enabler/src/arch/distro/
patches/series file, copy the additional patches from the HP StorageWorks Scalable File Share
Client Software CD-ROM to the src/ directory, as shown in the following example:
$ cp /mnt/cdrom/client_enabler/src/x86_64/RHEL3.0_U7/patches/* src/
Vista de página 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 133 134

Comentários a estes Manuais

Sem comentários