[Lustre-discuss] Lustre IOkit newbie: sgpdd-survey

Ms. Megan Larko dobsonunit at gmail.com
Thu Jul 24 11:44:39 PDT 2008


> On Tue, Jul 22, 2008 at 3:03 PM, Ms. Megan Larko <dobsonunit at gmail.com>
> wrote:

I received info for a fix.   Comments in-line.    (megan)
>>
>> Hi,
>>
>> I am a neophyte trying to benchmark new hardware for a Lustre setup.
>> I got the Lustre IOkit noarch rpm and installed it onto the OSS.  I
>> edited the file /usr/bin/sgpdd-survey (attached) to meet the
>> description of our OSS (RAM is 16Gb, sample new hardware detected at
>> /dev/sdg).
>>
>> My initial running of sgpdd-survey produced the following errors:
>> [root at oss4 ~]# sgpdd-survey
>> Can't find SG device for /dev/sdg1, testing for partition
>> /usr/bin/sgpdd-survey: line 105: CAPACITY
>> trying
>> 0x200: syntax error in expression (error token is "trying
>> 0x200")
>> /usr/bin/sgpdd-survey: line 106: [: ==: unary operator expected
>> Tue Jul 22 14:46:48 EDT 2008 sgpdd-survey on /dev/sdg1 from
>> oss4.crew.local
>> /usr/bin/sgpdd-survey: line 134: rsz*1024/bs: division by 0 (error token
>> is "s")

The fix to run /usr/bin/sgpdd-survey was to add an argument to the two
instances of sg_readcap that appear in the script.
In /usr/bin/sgpdd-survey:
ORIG Ex:  bs=$((`sg_readcap -b  ${devs[0]} | awk '{print $2}'`))
NEW  Ex:  bs=$((`sg_readcap -b -16 ${devs[0]} | awk '{print $2}'`))

This can be tested on the command line:
[root at oss4 ~]# sg_readcap -b -16 /dev/sg5

I have not yet gotten any further with my benchmark testing.  (Other
fires to be extinguished today.)

Thanks to Cliff White and Atul Vidwansa for the solution information.

Later,
megan
>>
>> System Info:
>> [root at oss4 ~]# uname -a
>> Linux oss4.crew.local 2.6.18-53.1.13.el5_lustre.1.6.4.3smp #1 SMP Sun
>> Feb 17 08:38:44 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
>> [root at oss4 ~]# cat /etc/redhat-release
>> CentOS release 5 (Final)

>> _______________________________________________
>> 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