Let me first say that you have revealed something I need to fix -- thanks :)
There is one way to truly see exactly what parameters are set in the
configuration log.
1. Unmount the MGS
2. Mount the MGS disk as type ''ldiskfs''
# mount -t ldiskfs /dev/sda /mnt/mgs
3. Use the llog-reader utility to display the contents of the various
configuration logs under the CONFIGS dir
# /usr/sbin/llog-reader /mnt/mgs/CONFIGS/testfs-client
4. Look for items marked "param"
5. Check the other logs for parameters that affect those targets (e.g.
testfs-MDT0000 for MDT settings)
Finally, although it is easy to change a parameter, there is currently
no simple way to delete a parameter. You have to shutdown all targets
and do a ''--writeconf'' to regenerate the logs. You must then
add back
all your modified settings.
You can in fact set your modified settings for each device at the same
time you writeconf
mdt# tunefs.lustre --writeconf --param="failover.mode=failout"
/dev/sda
ost1# tunefs.lustre --writeconf --erase-params
--param="failover.node=192.168.0.13@tcp0"
--param="osc.max_dirty_mb=29.15" /dev/sda
(Use the --erase-params flag to clear old parameters out of the tunefs
list (further note that without --writeconf, clearing the parameters
from the tunefs list has no effect.))
If you change your parameters exclusively via tunefs (i.e. not using
lctl), then tunefs.lustre --print will show you the parameters. For
production systems, this is probably the preferred way of setting
parameters, because these parameters will survive a --writeconf, whereas
parameters set via ''lctl conf_param'' will not.
miFor wrote:> some parameters dont exist in /proc, example : failover.mode .
>
> sometimes i typed a wrong word when i set the parameter,
>
> lctl conf_param testfs-OST0000.osc.activat=0 (miss "e")
>
> when a other client mount the testfs,it report a error msg : unknow
> command activat xxxxxxx
>
> some incoreect parameters lead mount failed.
>
> so i want to view all the parameters and i can delete the incorrect
> ones manual
>
>
> 2007/3/9, Nathaniel Rutman < nathan@clusterfs.com
> <mailto:nathan@clusterfs.com>>:
>
> That''s a fine question. I assume you mean all non-default
> parameters;
> to see all parameters, you could walk the /proc/fs/lustre tree and
> print
> out writable files.
> But I think the real answer to your question is that I need to
> provide a
> nice easy way from lctl, but that doesn''t exist yet.
>
>
> miFor wrote:
> > sorry for my poor english.
> >
> > i can set a param by lctl conf_param,but how can i view all the
> param ?
> >
> > lustre 1.5.97
> >
> > --
> >
> >
>
------------------------------------------------------------------------
>
> >
> > _______________________________________________
> > Lustre-discuss mailing list
> > Lustre-discuss@clusterfs.com
<mailto:Lustre-discuss@clusterfs.com>
> > https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
> >
>
>
>
>
> --
>
> miFor BladeAnti.org
> ------------------------------------------------------------------------
>
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss@clusterfs.com
> https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
>