[Lustre-discuss] programmatic access to parameters

Jason Rappleye jason.rappleye at nasa.gov
Thu Mar 25 21:04:19 PDT 2010


On Mar 25, 2010, at 6:25 PM, 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.

How about /proc/fs/lustre/lov/<filesystem-*/numobd

$ cat /proc/fs/lustre/lov/nbp10-clilov-ffff81007e33b800/numobd 
120

j

--
Jason Rappleye
System Administrator
NASA Advanced Supercomputing Division
NASA Ames Research Center
Moffett Field, CA 94035








More information about the lustre-discuss mailing list