Replacing disks in a GPFS file system

GPFS V3.1 Administration and Programming Reference
SA23-2221-00

Replacing an existing disk in a GPFS file system with a new one is the same as performing a delete disk operation followed by an add disk. However, this operation eliminates the need to restripe the file system following the separate delete disk and add disk operations as data is automatically moved to the new disk.

Under no circumstances should you replace a stopped disk. You need to start a stopped disk before replacing it. See the General Parallel File System: Problem Determination Guide and search for disk media failure for further information on handling this.

When replacing disks in a GPFS file system, you must first decide if you will:
  1. Create new disks using the mmcrnsd command.

    You should also decide whether to use the rewritten disk descriptor file produced by the mmcrnsd command, or create a new list of disk descriptors. When using the rewritten file, the Disk Usage and Failure Group specifications will remain the same as specified on the mmcrnsd command.

  2. Select NSDs no longer in use by another GPFS file system. Issue the mmlsnsd -F command to display the available disks.
To replace a disk in the file system, use the mmrpldisk command. For example, to replace the NSD hd3n97 in file system fs2 with the existing NSD hd2n97, which is no longer in use by another file system, enter:
mmrpldisk fs2 hd3n97 hd2n97
The system displays information similar to:
Replacing hd3n97 ...

The following disks of fs2 will be formatted on node k145n03:
hd2n97: size 142028570 KB
Extending Allocation Map
0 % complete on Fri Feb 3 16:12:49 2006
1 % complete on Fri Feb 3 16:12:54 2006
40 % complete on Fri Feb 3 16:14:59 2006
91 % complete on Fri Feb 3 16:17:10 2006
100 % complete on Fri Feb 3 16:17:30 2006
Completed adding disks to file system fs2.
Scanning 'system' storage pool
Scanning file system metadata, phase 1 ...
2 % complete on Fri Feb 3 16:17:44 2006
10 % complete on Fri Feb 3 16:17:47 2006
62 % complete on Fri Feb 3 16:18:06 2006
78 % complete on Fri Feb 3 16:18:13 2006
100 % complete on Fri Feb 3 16:18:19 2006
Scan completed successfully.
Scanning file system metadata, phase 2 ...
67 % complete on Fri Feb 3 16:18:25 2006
100 % complete on Fri Feb 3 16:18:26 2006
Scan completed successfully.
Scanning file system metadata, phase 3 ...
22 % complete on Fri Feb 3 16:18:29 2006
40 % complete on Fri Feb 3 16:18:36 2006
74 % complete on Fri Feb 3 16:18:49 2006
100 % complete on Fri Feb 3 16:18:56 2006
Scan completed successfully.
Scanning file system metadata, phase 4 ...
Scan completed successfully.
Scanning user file metadata ...
4 % complete on Fri Feb 3 16:19:00 2006
26 % complete on Fri Feb 3 16:19:07 2006
100 % complete on Fri Feb 3 16:19:31 2006
Scan completed successfully.
Done
mmrpldisk: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.

Comentarios