beautypg.com

HP StorageWorks Scalable File Share User Manual

Page 251

background image

Troubleshooting file systems

9–27

2.

Stop the file system and ensure that the file system devices are not being used. Check the

/proc/

mounts

file and the

/proc/fs/lustre/obdfilter/mntdev

(or

/proc/fs/lustre/mds/

mntdev

) files to ensure that the file system devices are not mounted on any mount point.

3.

Ensure that the administration server can connect to all of the other servers used by the file systems

using the

ssh

utility without a password.

4.

Enter the name of the generated script at the prompt, as shown in the following example:

# do_lfsck-scratch.sh

When the repair process is complete, make sure that there are no stray mount points remaining mounted

before you start the file system.

If a

do-lfsck-filesystem_name

script fails for any reason, HP recommends that you contact your HP

Customer Support representative. Ensure that there are no stray processes or mounts left mounted. You can

see mounts, (with the name

/mnt/device.x

), in the

/proc/mounts

file on the servers. Note that these

mounts are not shown by the

mount

(8) command. Rebooting the servers will ensure that stray processes

and mounts are cleared.

9.26.5.2 Repairing or verifying individual MDS or OST services

If you want to repair or verify MDS or OST services themselves (rather than an entire file system), you can

run the

e2fsck-lfsck

command manually using the same arguments as would be used by the standard

e2fsck

program to repair a standard

ext3/ldiskfs

file system.

Note that if the device you want to examine or repair is a mirrored device, you must start the underlying

mirrored devices before you run the

e2fsck-lfsck

command.

Before you run the

e2fsck-lfsck

command manually, perform the following steps:

1.

Identify the device that the

e2fsck-lfsck

command is to examine. The device names are made up

as follows:

/dev/hpls/devlun_numbera

where

lun_number

is the number of the LUN used by the service.

Use the

show filesystem filesystem_name

command to identify the LUN numbers for the

devices. In the following example, the file system name is

test

, the MDS device name is

/dev/

hpls/dev5a

, and the OST device names are

/dev/hpls/dev1a

and

/dev/hpls/dev2a

:

sfs> show filesystem test

Name: test
OSTs: ost[7-8]
State: started
Mountpoint: /mnt/test/
Stripe size: 4194304
Stripe count: 2
Interconnect: tcp elan
MDS mount options: acl,user_xattr
OST mount options: extents
Lustre timeout: 200
Quota options: quotaon=ug

MDS Information:
Name LUN Array Controller Files Used Service State Running on
----- --- ----- ---------- -------- ---- ------------- ----------
mds3 5 1 B 2.3M 20% running south2


OST Information:
Name LUN Array Controller Size(GB) Used Service State Running on
----- --- ----- ---------- -------- ---- ------------- ----------
ost7 1 1 A 290 30% running south3
ost8 2 1 A 290 31% running south4