[pnfs] how mds export pnfs dir to client

Zhang Jingwang yyalone at gmail.com
Sun Jan 17 21:32:57 EST 2010


I think you should export the dir on DS as normal NFS, but I'm not sure either.

2010/1/18 Arthur Wang <wangjihai at huawei.com>:
> Thank you very much.  It effect after upgrade nfs tools with pnfs-utils.   MDS can recognize  'pnfs' option,  but i am not sure whether i should add 'pnfs'  to
> /etc/exports of DS,  or DS export dir as normal NFS ?
>
>
> Arthur Wang
> Research Department, CPD
> Huawei Technologies Co., Ltd.
> Phone: 86-755-28976096
> Email: wangjihai at huawei.com
> 2010-01-18
>
>
>
> Sender: Zhang Jingwang
> Send time: 2010-01-14  23:02:50
> Receiver: Arthur Wang
> Copyto: pnfs; zhouwei51703
> Topic: Re: [pnfs] how mds export pnfs dir to client
>
> Maybe you should add 'pnfs' in /etc/exports of MDS. Like that:
> /mnt/spnfs     *(rw,fsid=0,no_root_squash,sync,no_subtree_check,pnfs)
> If your exportfs don't recognize this option, you should download the
> latest pnfs-utils.
> It's required for blocklayout pnfs export, I think it may be required
> for file layout too.
> 2010/1/14 Arthur Wang <wangjihai at huawei.com>:
>> Hello,
>> I encounter an export problem when use PNFS, the env is
>> linux-pnfs-2.6.32(2009-12-29), layout is file, detail is as follows:
>> first, export DS to MDS,? edit "/etc/exports " on DS to add this line:
>> /mnt/disk01?????*(rw,no_root_squash,async,no_subtree_check)
>> second, export MDS to Client, edit "/etc/exports " on MDS to add this line:
>> /mnt/spnfs?????*(rw,fsid=0,no_root_squash,sync,no_subtree_check)
>> At last, Client mount MDS to local dir.
>>
>> After those finish,? write file to pNFS through client.?? on DS, i use
>> "tcpdump?src " command to check where the net packets are from, and find
>> that all the data are from MDS to DS.? that means: all the data flow from
>> Client->DS->MDS.? i suppose it is? wrong way that the data goes, and correct
>> way should be that, Metadata is from Client to MDS,? and file data is from
>> Client to DS, is it right?
>>
>> After debug the MDS code , i found that in function nfsd4_layout_verify(),
>> the follows line?execute:
>> if?(exp->ex_pnfs?==?0?||?!sb->s_pnfs_op?||?!sb->s_pnfs_op->layout_type)?{
>> dprintk("%s:?Underlying?file?system?"
>> "does?not?support?pNFS\n",?__func__);
>> goto?out;
>> }
>>
>> My question is: Did i setup pNFS wrong, why all the file data goes through
>> MDS,? and how to let?data directly goes to DS. i suppose it need to let
>> "exp->ex_pnfs?==?0 " not be true above?code.
>>
>>
>> Arthur Wang
>>
>> Research Department, CPD
>>
>> Huawei Technologies Co., Ltd.
>>
>> Phone: 86-755-28976096
>>
>> Email: wangjihai at huawei.com
>>
>>
>>
>> 2010-01-14
>> ________________________________
>>
>>
>> 2010-01-14
>> ________________________________
>>
>> _______________________________________________
>> pNFS mailing list
>> pNFS at linux-nfs.org
>> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
>>
> --
> Zhang Jingwang
> National Research Centre for High Performance Computers
> Institute of Computing Technology, Chinese Academy of Sciences
> No. 6, South Kexueyuan Road, Haidian District
> Beijing, China
>



-- 
Zhang Jingwang
National Research Centre for High Performance Computers
Institute of Computing Technology, Chinese Academy of Sciences
No. 6, South Kexueyuan Road, Haidian District
Beijing, China


More information about the pNFS mailing list