beautypg.com

HP StorageWorks Scalable File Share User Manual

Page 148

background image

Verifying, diagnosing, and maintaining the system

6–18

To verify the performance of LUNs on one server, perform the following steps:

1.

Enter the

show lun lun_number

command and determine whether the LUN is part of a file system

or not:

sfs> show lun 8
.

.

.

User: data
.

.

.

If the

User

field contains the name of a server, the LUN is not an MDS or OST LUN; in this case,

do not proceed with this test.

If the

User

field is empty, that is, it shows a dash (

-

), the LUN is not used by a file system.

Although you can use the

raw_lun_check.bash

test on a LUN that has never been used in a

file system, the test must format the LUN before the test can start, and this can take a long time.

2.

If the LUN is part of a file system, you must stop the file system before running the test, as shown in the

following example, where the

data

file system is stopped:

sfs> stop filesystem data

3.

Verify that all MDS and OST services used by the file systems are stopped, as shown in the following

example:

sfs> show filesystem

Name State Services
------------- -------------- ----------------------------------
data stopped mds1: stopped, ost[1-8]: stopped

If all services are not in the

stopped

state, do not continue with the test.

4.

Perform the following tests for each server.
a.

Determine the device name of the MDS or OST service(s) you want to test, by entering the

show

lun lun

_

number

command, as shown in the following example:

sfs> show lun 8

LUN (WWID): 600508b4-0000c118-00019000-006c0000
LUN (Number): 8
Device: /dev/hpls/dev8a
.

.

.

b.

You can run the

raw_lun_check.bash

command in serial mode to test the specified MDS or

OST devices one at a time, or in parallel mode to test all of the specified devices at the same

time.

To run the command in serial mode, enter the command using the following syntax, where

lun_device

is the name of a device to be tested. Run the command from the

administration server:

/usr/opt/hpls/diags/bin/raw_lun_check.bash
--lun "lun_device [lun_device ...]" --serial

When the command finishes, the speed at which it wrote to and read from each device that

it tested is displayed, as shown in the following example:

# ssh south6 /usr/opt/hpls/diags/bin/raw_lun_check.bash -lun "/dev/hpls/
dev7a /dev/hpls/dev8a" --serial

Checking for mirror components in database
Checking lun status...
Checking lun status...
Starting lun test
Speed for write to /dev/hpls/dev7a: 75 MB/s
Speed for read to /dev/hpls/dev7a: 145 MB/s
Speed for write to /dev/hpls/dev8a: 74 MB/s