Skip to contentSkip to conversation

pNFS - Both DS and MDS on one machine (file layout)

DISCUSSION Jiri Kortus 1 participant 1 message May 17, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I wonder if it is possible to run both MDS and DS on one machine under usual circumstances. I tried to install both of them on one machine with Debian Etch but I can't make them work. I use the following configuration in /etc/exports:

/pnfs           xxx.yyy.zzz.44(rw,fsid=0,no_root_squash,sync,no_subtree_check)
/pnfs           aaa.bbb.ccc.74(rw,fsid=0,no_root_squash,sync,no_subtree_check)
/pnfs/storage   xxx.yyy.zzz.44(rw,no_root_squash,sync,no_subtree_check)
/pnfs/storage   aaa.bbb.ccc.74(rw,no_root_squash,sync,no_subtree_check)
/pnfs/export    aaa.bbb.ccc.74(rw,no_root_squash,sync,no_subtree_check,pnfs)

and /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 = 1

DS1_IP = xxx.yyy.zzz.44
DS1_PORT = 2049
DS1_ROOT = /storage
DS1_ID = 1

After mounting the pNFS export from the client (different machine) it doesn't use nfs file layout (I have spnfsd running on the server and nfslayoutdriver loaded on the client). When I try to create a file in the mounted directory (e. g. echo aaa>/mnt/testfile), I can't get any response, it just hangs (sometimes terminating it by ^C works, sometimes not). The file is created on the server, but is empty. I thought it could be related to running portmap but even if I run rpcbind instead of portmap, the problem doesn't disappear). Is there any problem with my configuration, is it a bug or MDS and DS just shouldn't be run on one machine?

Best regards,

Jiri Kortus