Online Data Relocation - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

rescanning.
You can control which devices LVM scans by setting up filters in the
The filters consist of a series of simple regular expressions that get applied to the device names
in the
directory to decide whether to accept or reject each block device found.
/dev
The following examples show the use of filters to control which devices LVM scans. Note that
some of these examples do not necessarily represent best practice, as the regular expressions
are matched freely against the complete pathname. For example,
and would match
a/.*loop.*/
The following filter adds all discovered devices, which is the default behavior as there is no filter
configured in the configuration file:
filter = [ "a/.*/" ]
The following filter removes the cdrom device in order to avoid delays if the drive contains no
media:
filter = [ "r|/dev/cdrom|" ]
The following filter adds all loop and removes all other block devices:
filter = [ "a/loop.*/", "r/.*/" ]
The following filter adds all loop and IDE and removes all other block devices:
filter =[ "a|loop.*|", "a|/dev/hd.*|", "r|.*|" ]
The following filter adds just partition 8 on the first IDE drive and removes all other block
devices:
filter = [ "a|^/dev/hda8$|", "r/.*/" ]
For more information on the
the
(5) man page.
lvm.conf

7. Online Data Relocation

You can move data while the system is in use with the
/dev/solooperation/lvol1
file, see
Appendix B, The LVM Configuration Files
lvm.conf
Online Data Relocation
lvm.conf
is equivalent to
a/loop/
.
command.
pvmove
configuration file.
and
45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents