Bug 990511 - RFE: Persistently flag LVs to be skipped on activation
RFE: Persistently flag LVs to be skipped on activation
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2 (Show other bugs)
7.0
All Linux
medium Severity medium
: rc
: ---
Assigned To: Peter Rajnoha
Cluster QE
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-31 06:53 EDT by Peter Rajnoha
Modified: 2014-04-23 04:16 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-04-23 04:16:49 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Peter Rajnoha 2013-07-31 06:53:39 EDT
(This RFE is primarily for QE to make notes on testing this feature, report any findings etc...)

Add support for flagging LVs to be skipped on activation and make this flag persistent until changed explicitly with an lvm command.

On lvcreate, we can select which volumes should be assigned the 'activation skip' flag by using:

  lvcreate -k/--setactivationskip y/n

By default, if the -k/--setactivationskip option is not defined, these rules apply:

  - if the volume being created is a thin snapshot volume, then assume -k/--setactivationskip y

  - otherwise, for any other volumes, assume -k/--setactivationskip n (so activate these volumes next time)


If the 'activation skip' flag is set for an LV, we can ignore it by using the -K/--ignoreactivationskip option:

  vgchange/lvchange -K/--ignoreactivationskip

...will ignore the skip even if the flag is set.


To see whether the flag is set for an LV, check the 10th bit of the lv_attr field in the lvs -o+lv_attr output (in case the flag is set, the lv_attr has 'k' set as the 10th bit):

 - no skip flag set:
  raw/~ # lvs -o lv_name,lv_attr
  LV    Attr      
  lvol0 -wi-a-----

 - skip flag set:
  raw/~ # lvs -o lv_name,lv_attr
  LV    Attr      
  lvol0 -wi-a----k


To set/unset the flag for existing LV, use:

  vgchange/lvchange -k/--setactivationskip y/n


I'll add test exact cases shortly...

Note You need to log in before you can comment on or make changes to this bug.