29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Restriping offers the opportunity to specify useful options in addition to rebalancing (-b option).<br />

Re-replicate (-r option) provides for proper replication of all data <strong>and</strong> metadata. If you use replication, this<br />

option is useful to protect against additional failures after losing a disk. For example, if you use a<br />

replication factor of 2 <strong>and</strong> one of your disks fails, only a single copy of the data would remain. If another<br />

disk then failed before the first failed disk was replaced, some data might be lost. If you expect delays in<br />

replacing the failed disk, you could protect against data loss by suspending the failed disk using the<br />

mmchdisk comm<strong>and</strong> <strong>and</strong> re-replicating. This would assure that all data existed in two copies on<br />

operational disks.<br />

If files are assigned to one storage pool, but with data in a different pool, the placement (-p) option will<br />

migrate their data to the correct pool. Such files are referred to as ill-placed. Utilities, such as the<br />

mmchattr comm<strong>and</strong>, may change a file’s storage pool assignment, but not move the data. The<br />

mmrestripefs comm<strong>and</strong> may then be invoked to migrate all of the data at once, rather than migrating<br />

each file individually. Note that the rebalance (-b) option also performs data placement on all files,<br />

whereas the placement (-p) option rebalances only the files that it moves.<br />

If you do not replicate all of your files, the migrate (-m) option is useful to protect against data loss when<br />

you have an advance warning that a disk may be about to fail, for example, when the error logs show an<br />

excessive number of I/O errors on a disk. Suspending the disk <strong>and</strong> issuing the mmrestripefs comm<strong>and</strong><br />

with the -m option is the quickest way to migrate only the data that would be lost if the disk failed.<br />

If you do not use replication, the -m <strong>and</strong> -r options are equivalent; their behavior differs only on replicated<br />

files. After a successful re-replicate (-r option) all suspended disks are empty. A migrate operation, using<br />

the -m option, leaves data on a suspended disk as long as at least one other replica of the data remains<br />

on a disk that is not suspended. Restriping a file system includes re-replicating it; the -b option performs<br />

all the operations of the -m <strong>and</strong> -r options.<br />

Consider the necessity of restriping <strong>and</strong> the current dem<strong>and</strong>s on the system. New data which is added to<br />

the file system is correctly striped. Restriping a large file system requires extensive data copying <strong>and</strong> may<br />

affect system performance. Plan to perform this task when system dem<strong>and</strong> is low.<br />

When using SANergy, consider these points:<br />

v If the mmrestripefs comm<strong>and</strong> is issued on a file that is locked by SANergy, the comm<strong>and</strong> waits until it<br />

is unlocked before proceeding.<br />

v I/O operations from SANergy clients must terminate before using the mmrestripefs comm<strong>and</strong>. If not,<br />

the client applications receive an error.<br />

If you are sure you want to proceed with the restripe operation:<br />

1. Use the mmchdisk comm<strong>and</strong> to suspend any disks to which you do not want the file system restriped.<br />

You may want to exclude disks from file system restriping because they are failing. See “Changing<br />

<strong>GPFS</strong> disk states <strong>and</strong> parameters” on page 32.<br />

2. Use the mmlsdisk comm<strong>and</strong> to assure that all disk devices to which you do want the file system<br />

restriped are in the up/normal state. See “Displaying <strong>GPFS</strong> disk states” on page 31.<br />

Specify the target file system with the mmrestripefs comm<strong>and</strong>. For example, to rebalance (-b option) file<br />

system fs2 after adding an additional RAID device, enter:<br />

mmrestripefs fs2 -b<br />

The system displays information similar to:<br />

mmrestripefs fs2 -b<br />

<strong>GPFS</strong>: 6027-589 Scanning file system metadata, phase 1 ...<br />

48 % complete on Wed Aug 16 16:47:53 2000<br />

96 % complete on Wed Aug 16 16:47:56 2000<br />

100 % complete on Wed Aug 16 16:47:56 2000<br />

<strong>GPFS</strong>: 6027-552 Scan completed successfully.<br />

<strong>GPFS</strong>: 6027-589 Scanning file system metadata, phase 2 ...<br />

20 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!