beautypg.com

1 recreating files, Recreating files -38 – HP StorageWorks Scalable File Share User Manual

Page 262

background image

Troubleshooting

9–38

09:31:28 south2 --
09:31:35 south2 --
09:31:35 south2 -- Server is already configured to the desired state
09:31:35 south2 --

Command has finished:

south2 --

*** Server States *** Completed: south2

Note: The MDS configuration will be rewritten when the file system is
restarted.
sfs>

5.

Verify that the stripe count on the file system has been changed, as shown in the following

example:

sfs> show filesystem scratch

Name: scratch
OSTs: ost[1-4]
State: stopped
Mountpoint: /mnt/scratch/
Stripe size: 4194304
Stripe count: 4
.

.

.

6.

Start the file system, as shown in the following example:

sfs> start filesystem scratch

You must then recreate the existing files to change their striping pattern (see Section 9.27.2.1).

9.27.2.1

Recreating files

You cannot change the striping configuration on an existing file; however, you can recreate a file and

change the striping configuration on the new file.

To recreate a file with a new striping configuration, perform the following steps:

1.

Use the

cp

command to copy the incorrectly striped file to a new file name, as shown in the following

example, where the incorrectly striped file is called

data.1

:

# lfs getstripe data.1

0: ost1_UUID
1: ost2_UUID
2: ost3_UUID
3: ost4_UUID
./data.1
obdidx objid objid group
2 1886 0x75e 0
# cp data.1 data.new
# lfs getstripe data.new

OBDS:
0: ost1_UUID
1: ost2_UUID
2: ost3_UUID
3: ost4_UUID
./data.new
obdidx objid objid group
0 1860 0x744 0
1 1856 0x740 0
2 1887 0x75f 0
3 1887 0x75f 0