|
pvmove works as follows:
1. A temporary ’pvmove’ logical volume is created to store details of
all the data movements required.
2. Every logical volume in the volume group is searched for contiguous
data that need moving according to the command line arguments. For
each piece of data found, a new segment is added to the end of the
pvmove LV. This segment takes the form of a temporary mirror to copy
the data from the original location to a newly-allocated location. The
original LV is updated to use the new temporary mirror segment in the
pvmove LV instead of accessing the data directly.
3. The volume group metadata is updated on disk.
4. The first segment of the pvmove logical volume is activated and
starts to mirror the first part of the data. Only one segment is mir-
rored at once as this is usually more efficient.
5. A daemon repeatedly checks progress at the specified time interval.
When it detects that the first temporary mirror is in-sync, it breaks
that mirror so that only the new location for that data gets used and
writes a checkpoint into the volume group metadata on disk. Then it
activates the mirror for the next segment of the pvmove LV.
6. When there are no more segments left to be mirrored, the temporary
logical volume is removed and the volume group metadata is updated so
that the logical volumes reflect the new data locations.
Note that this new process cannot support the original LVM1 type of on-
disk metadata. Metadata can be converted using vgconvert(8).
高手能否抽出点时间帮我翻译一下....真的很难看懂..对我来说...
上面是man pvmove的里面内容.
现谢谢了,,,麻烦大家了 |
|