[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [RFC PATCH 6/7] individual lvm command settings

Several lvm commands should not work based on metadata cache data. They
need to scan real metadata on devices. lvm commands with MCACHE_DISABLE
flag do not use metadata cache.

Currently the metadata cache feature is disabled in the following commands.

  * scan commands: vgscan and lvscan
      pvscan destroys lvmcache before its procedure, and MCACHE_DISABLE
      flag is not needed.

  * physical volume commands: pvdisplay, pvs
      Metadata cache files contain physical volume data which belong to
      a volume group, and orphan physical volumes can not be handled.
      To support these volumes, a kind of orphan physical volume cache
      need to be introduced.

As a next step, I'm planning to set MCACHE_CLEANUP flag to vgscan command
to refresh all metadata cache files in the cache directory.

Signed-off-by: Takahiro Yasui <tyasui redhat com>
 tools/commands.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: LVM2.02.46-cvs-20090324/tools/commands.h
--- LVM2.02.46-cvs-20090324.orig/tools/commands.h
+++ LVM2.02.46-cvs-20090324/tools/commands.h
@@ -390,7 +390,7 @@ xx(lvs,
    "List all logical volumes in all volume groups",
-   0,
    "lvscan " "\n"
    "\t[-b|--blockdevice] " "\n"
@@ -497,7 +497,7 @@ xx(pvdata,
    "Display various attributes of physical volume(s)",
-   0,
@@ -571,7 +571,7 @@ xx(pvremove,
    "Display information about physical volumes",
-   0,
    "pvs" "\n"
@@ -925,7 +925,7 @@ xx(vgs,
    "Search for all volume groups",
-   0,
    "vgscan "

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]