linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: redshield88888 <redshield88888@gmail.com>
To: linux-nfs@vger.kernel.org
Subject: Data has not been wrote to DSs
Date: Tue, 25 May 2010 00:23:41 +0000 (UTC)	[thread overview]
Message-ID: <loom.20100525T014937-518@post.gmane.org> (raw)

■Reference
http://wiki.linux-nfs.org/wiki/index.php/Configuring_pNFS/spnfsd
http://osdir.com/ml/general/2010-05/msg10129.html

■My environment
kernel-2.6.32.11-107.2.3.pnfs.fc12.x86_64.rpm
kernel-devel-2.6.32.11-107.2.3.pnfs.fc12.x86_64.rpm
kernel-firmware-2.6.32.11-107.2.3.pnfs.fc12.noarch.rpm
kernel-headers-2.6.32.11-107.2.3.pnfs.fc12.x86_64.rpm
nfs-utils-1.2.2-4.1.pnfs.x86_64.rpm

MDS: 192.168.1.60
DS: 192.168.1.45
Client: 192.168.1.62 ( created on the KVM's virtual machine on the MDS )

■/etc/exports
- MDS's

/ *(rw,sync,pnfs,fsid=0,insecure,no_subtree_check,no_root_squash)

- DS's

/ *(rw,sync,fsid=0,insecure,no_subtree_check,pnfs,no_root_squash)

■/etc/fstab
- MDS's

UUID=52ab88e8-5d93-440c-af45-0a85923898ec /                       ext4   
defaults        1 1
UUID=90d25a9c-54b4-4db4-979a-26ea0d67fe60 swap                    swap   
defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
192.168.1.45:/pnfs /spnfs/192.168.1.45 nfs4 minorversion=1 0 0

■/etc/spnfsd.conf of the MDS
[General]
Verbosity = 1
Stripe-size = 8192
Dense-striping = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
DS-Mount-Directory = /spnfs

[DataServers]
NumDS = 1
DS1_IP = 192.168.1.45
DS1_PORT = 2049
DS1_ROOT = /pnfs
DS1_ID = 1

■Preparation nad Assumption
-The NFS related ports has opened and has confirmed

- on the DS
$mkdir /pnfs

- on the MDS
$mkdir /spnfs
$mkdir /spnfs/192.168.1.45
$reboot
$touch /spnfs/192.168.1.45/test <- write succeeded to the DS's /spnfs

The MDS has mounted the exported directory of DS and able to read and write.
The MDS's /proc/self/mountstats includes lines that means the PNFS has turned on
like below

        PNFS_LAYOUTGET: 0 0 0 0 0 0 0 0
        PNFS_LAYOUTCOMMIT: 0 0 0 0 0 0 0 0
        PNFS_LAYOUTRETURN: 0 0 0 0 0 0 0 0
        PNFS_GETDEVICELIST: 0 0 0 0 0 0 0 0
        PNFS_GETDEVICEINFO: 0 0 0 0 0 0 0 0
          PNFS_WRITE: 0 0 0 0 0 0 0 0
         PNFS_COMMIT: 0 0 0 0 0 0 0 0

■issue
- on the client
$mkdir /mnt/pnfs
$modprobe nfslayoutdriver;modprobe blocklayoutdriver
$mount -t nfs4 -o minorversion=1 192.168.1.60:/ /mnt/pnfs  <- SUCCEEDED
$echo "heeeeeeeeeeeeeeeey" >> /mnt/pnfs/hello.txt  <- has not been wrote to the
DS but has been worte under / of the MDS.



                 reply	other threads:[~2010-05-25  0:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20100525T014937-518@post.gmane.org \
    --to=redshield88888@gmail.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).