Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Samba for Lustre

Status
Not open for further replies.

georgdl

Technical User
Jul 6, 2008
2
AU
Please can someone help with information on how to setup Samba for a Lustre environment?

I currently have 4 Lustre nodes each running Centos 4.4 and the 1.6.5 Lustre kernal, which is working fine. But I want to be able to have Windows machines access this environment, and from what I have read I can use Samba to do this.

I have installed one node as an MGS/MDS and I have 3 OSS nodes. They have been installed using:

MDS
mkfs.lustre --fsname lustre --mdt --mgs /dev/sdb
mkdir -p /mnt/mdt
mount -t lustre /dev/sdb /mnt/mdt

OSS
mkfs.lustre --fsname lustre --ost --mgsnode=192.168.3.150@tcp0 /dev/sdb
mkdir -p /mnt/ost1
mount -t lustre /dev/sdb /mnt/ost1

mkfs.lustre --fsname lustre --ost --mgsnode=192.168.3.150@tcp0 /dev/sdb
mkdir -p /mnt/ost2
mount -t lustre /dev/sdb /mnt/ost2

mkfs.lustre --fsname lustre --ost --mgsnode=192.168.3.150@tcp0 /dev/sdb
mkdir -p /mnt/ost3
mount -t lustre /dev/sdb /mnt/ost3

I've added 'options lnet networks=tcp' to /etc/modprode.conf

Now for the Samba,

I'm running smbd 3.0.25b-1.el4_6.5

and I have added the following to smb.conf

clustering = yes
idmap backend = tdb2
private dir=/etc/samba
fileid:mapping = fsname
use mmap = no
nt acl support = yes
ea support = yes

I'm not sure what the parameter 'private dir =' should be pointing too. If I put any other directory other than '/etc/samba' samba dont start properly, get 'smbd dead but pid file exists' still get this if I remove the lock file from '/var/lock/subsys'. But works fine if I comment out the 'private dir =' or change the parameter to '/etc/samba'.

Also not sure if 'fileid:mapping = fsname' does the 'fsname' stay or do I change this to be the fsname I have called my lustre environment which in my case would be 'lustre' ?

Am I missing anything? Do I need to install anything more on the Samba side?
Also how do the Windows clients map to the Lustre environment, do they point to the MDS?

Please help I'm new to lustre and samba......

Thanks

 
I now have a working Lustre environment.
I also have a working installation of CTDB and Samba3.2 onto each of my lustre servers.

Can anyone give advise on how I can test whether CTDB and Samba is communicating with my lustre environment ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top