[Lustre-discuss] programmatic access to parameters

Cliff White Cliff.White at Sun.COM
Thu Mar 25 23:01:47 PDT 2010


Christopher J. Morrone wrote:
> Cliff White wrote:
> 
>> I don't know what your constraints are, but should note that this sort
>> of information (number of OSTs) can be obtained rather trivially from 
>> any lustre client via shell prompt, to wit:
>> # lctl dl |grep OST |wc -l
>> 2
>> or:
>> # ls /proc/fs/lustre/osc | grep OST |wc -l
>> 2
> 
> IF you only have one lustre filesystem mounted on that node.

okay, so change 'grep OST' to 'grep $FSNAME-OST'..... :)
cliffw

> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss




More information about the lustre-discuss mailing list