[Lustre-discuss] Beginners Question: Mapping Lustre Node <-> DNS Hostname?

Andreas Dilger adilger at sun.com
Thu Apr 2 14:46:42 PDT 2009


On Mar 31, 2009  14:55 -0600, Lundgren, Andrew wrote:
> Should this work with 1.6.4.3?  My lctl doesn't even have a get_param, the closest thing I have is getattr, and it doesn't like the syntax below...

The get_param/set_param helpers were added in (maybe) 1.6.5 and should be
preferred in the future for scripts, instead of digging through /proc
directly.  For servers/clients running on Solaris or Windows there is no
/proc interface.  In either case, using "lctl set_param" can be MUCH easier
than doing things with /proc directly

	lctl set_param osc.*.max_dirty_mb=512
vs
	for O in /proc/fs/lustre/osc/*/max_dirty_mb; do
		echo 512 > $O
	done

There is a direct mapping between entries in /proc and their get_param
equivalents, for ease of converting scripts:

/proc/{fs,sys}/{lustre,lnet}/foo/bar/baz := foo.bar.bax

> > On Tue, 2009-03-31 at 14:41 -0600, Andreas Dilger wrote:
> > >
> > > You can use:
> > >
> > > $ lctl get_param osc.${fsname}-${OSTname}*.ost_conn_uuid
> > >
> > > e.g.
> > >
> > > $ lctl get_param osc.*-OST0000*.ost_conn_uuid
> > > osc.myth-OST0000-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
> > >
> > > or
> > > $ lctl get_param osc.*.ost_conn_uuid
> > > osc.myth-OST0000-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
> > > osc.myth-OST0001-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
> > > osc.myth-OST0002-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
> > > osc.myth-OST0003-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp
> > > osc.myth-OST0004-osc-f1579000.ost_conn_uuid=192.168.20.1 at tcp

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.




More information about the lustre-discuss mailing list