JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

Setup the pNFS service under the RHEL 7.2 x64


Hello everyone, it’s time to post a rubbish! I think the service of NFS that’s be known by the most people, but how about the pNFS(Parallel NFS)? You can survey more detail information from the official website. How do we setup this service under the RHEL 7.2 x64 w/ three machines(MDS, DS*2 and Client)? Let’s keep reading:

1) Prepare the environment for 3 * machines
#cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
#uname -a
Linux pnfs.sit.com 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
#rpm -qa | grep -i nfs
nfs4-acl-tools-0.3.3-14.el7.x86_64
nfs-utils-1.3.0-0.21.el7.x86_64
pcp-pmda-nfsclient-3.10.6-2.el7.x86_64
libnfsidmap-0.25-12.el7.x86_64

2) Download and compile the source about the linux-3.12.51.tar.xz(Add the func of NFS v4.1)
#cd /usr/src/kernels/3.10.0-327.el7.x86_64/
#make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/bin2c
HOSTCC scripts/kconfig/conf.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
#mount /dev/sr0 /mnt
#cat /etc/yum.repos.d/rhel72.repo
[rhel7.2]
name=Red Hat Enterprise Linux $releasever - $basearch
baseurl=file:///mnt/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel7.2supplementary]
name=Red Hat Enterprise Linux $releasever (Supplementary) - $basearch
baseurl=http://192.168.254.1/as65-64-supplementary/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: rhel7.2
Cleaning up everything
#yum list
#yum install -y ncurses-*
#yum install -y kernel-*
#cd /usr/src/kernels
#wget https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.12.51.tar.xz
#tar Jxvf linux-3.12.51.tar.xz
#cd linux-3.12.51
#find . | grep -i 'syscall_32.tbl' | wc -l
1
#make mrproper
#cp -rf /boot/config-3.10.0-327.el7.x86_64 .config
#make oldconfig
#make menuconfig


#cat .config | grep -i pnfs
#cat Makefile | grep -i iori
EXTRAVERSION = -iori
#nohup make all &
#tail -f nohup.txt
#make modules_install
#make install
#init 6
#uname -a
Linux pnfs.sit.com 3.12.51-iori #1 SMP Sun Dec 6 14:18:15 CST 2015 x86_64 x86_64 x86_64 GNU/Linux

3) Download and install the related package about the pNFS
#yum install -y libtirpc{,-devel} tcp_wrappers{,-devel} libevent{,-devel} libnfsidmap{,-devel} openldap-devel \
libgssglue{,-devel} krb5-devel libblkid{,-devel} device-mapper-devel libcap{,-devel}
#git clone git://linux-nfs.org/~bhalevy/pnfs-nfs-utils.git
#sh autogen.sh
#./configure --prefix=/usr
#make
#make install

4) Setup the configuration about the DS/MDS(Data and Metadata Server)
I.For DS(192.168.1.11/12)
#mkdir /export
#mkdir /export/pnfs
#cat /etc/export
/export/pnfs *(rw,sync,fsid=0,insecure,no_subtree_check,no_root_squash, pnfs)
#/etc/init.d/nfs start
II.For MDS
#mkdir /export
#mkdir /export/spnfs
#mkdir /spnfs
#mkdir /spnfs/192.168.1.11
#mkdir /spnfs/192.168.1.12
#cat /etc/export
/export/spnfs *(rw,sync,fsid=0,insecure,no_subtree_check,no_root_squash, pnfs)
#cp -rf /root/pnfs-nfs-utils/utils/spnfsd/spnfsd.conf /etc
#cat /etc/spnfsd.conf
[General]
Verbosity = 1
Stripe-size = 8192
Dense-striping = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
DS-Mount-Directory = /spnfs
[DataServers]
NumDS = 2
DS1_IP = 192.168.1.11
DS1_PORT = 2049
DS1_ROOT = /pnfs
DS1_ID = 1
DS2_IP = 192.168.1.12
DS2_PORT = 2049
DS2_ROOT = /pnfs
DS2_ID = 2
#mount -t nfs4 -o minorversion=1 192.168.1.11:/pnfs /spnfs/192.168.1.11
#mount -t nfs4 -o minorversion=1 192.168.1.12:/pnfs /spnfs/192.168.1.12
#/etc/init.d/nfs start
#spnfs

5) Setup the client about the pNFS
#modprobe nfs_layout_nfsv41_files
#mount -t nfs4 -o minorversion=1 192.168.1.10:/ /mnt/pnfs

◎、Above information is about setup the pNFS service under the RHEL 7.2 x64, and I have referred this article to do it. You can google it if you have more interesting in it. That’s all for today, see you next time!

  1. Hi there,
    copy .config from /boot/3.10.0-327.el7.x86_64 kernel
    I ran make menuconfig -> File System -> Network File System -> NFS server support for NFS version 4, I do not see a line "NFSv4.1 server support for Parallel NFS (pNFS)", so during installation what’s specific package that you select for installation? Also I check with kernel 3.12.0-327.3.el7.x86_64 it doesn’t have either. can you share .config with syntax NFSv4.1 server support for Parallel NFS (pNFS)??

    Thanks,
    KhaiL

    • Hi KhaiL
      Sorry for late to reply your doubt, and the following information is about the part of 4.1 from the .config in the /usr/src/kernel/`uname -r`:
      #cat .config | grep -i 4.1
      # CONFIG_ICS932S401 is not set
      CONFIG_HISAX_ST5481=m
      CONFIG_SENSORS_ADT7411=m
      CONFIG_SENSORS_LTC4215=m
      CONFIG_SENSORS_TMP401=m
      CONFIG_SENSORS_TMP421=m
      CONFIG_USB_GSPCA_SE401=m
      CONFIG_DVB_CX24110=m
      CONFIG_DVB_TUNER_CX24113=m
      CONFIG_DVB_CX24116=m
      CONFIG_DVB_S5H1411=m
      CONFIG_DVB_ISL6421=m
      # CONFIG_FB_N411 is not set
      CONFIG_SND_MPU401_UART=m
      CONFIG_SND_MPU401=m
      CONFIG_SND_ALI5451=m
      # CONFIG_CED1401 is not set
      CONFIG_NFS_V4_1=y
      CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
      # CONFIG_NFS_V4_1_MIGRATION is not set
      BTW, I think you can select the all packages about the kernel and development.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
This site is protected by WP-CopyRightPro