1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/man
Jonathan Brassow 2e0740f7ef RAID: Add writemostly/writebehind support for RAID1
'lvchange' is used to alter a RAID 1 logical volume's write-mostly and
write-behind characteristics.  The '--writemostly' parameter takes a
PV as an argument with an optional trailing character to specify whether
to set ('y'), unset ('n'), or toggle ('t') the value.  If no trailing
character is given, it will set the flag.
Synopsis:
        lvchange [--writemostly <PV>:{t|y|n}] [--writebehind <count>] vg/lv
Example:
        lvchange --writemostly /dev/sdb1:y --writebehind 512 vg/raid1_lv

The last character in the 'lv_attr' field is used to show whether a device
has the WriteMostly flag set.  It is signified with a 'w'.  If the device
has failed, the 'p'artial flag has priority.

Example ("nosync" raid1 with mismatch_cnt and writemostly):
[~]# lvs -a --segment vg
  LV                VG   Attr      #Str Type   SSize
  raid1             vg   Rwi---r-m    2 raid1  500.00m
  [raid1_rimage_0]  vg   Iwi---r--    1 linear 500.00m
  [raid1_rimage_1]  vg   Iwi---r-w    1 linear 500.00m
  [raid1_rmeta_0]   vg   ewi---r--    1 linear   4.00m
  [raid1_rmeta_1]   vg   ewi---r--    1 linear   4.00m

Example (raid1 with mismatch_cnt, writemostly - but failed drive):
[~]# lvs -a --segment vg
  LV                VG   Attr      #Str Type   SSize
  raid1             vg   rwi---r-p    2 raid1  500.00m
  [raid1_rimage_0]  vg   Iwi---r--    1 linear 500.00m
  [raid1_rimage_1]  vg   Iwi---r-p    1 linear 500.00m
  [raid1_rmeta_0]   vg   ewi---r--    1 linear   4.00m
  [raid1_rmeta_1]   vg   ewi---r-p    1 linear   4.00m

A new reportable field has been added for writebehind as well.  If
write-behind has not been set or the LV is not RAID1, the field will
be blank.
Example (writebehind is set):
[~]# lvs -a -o name,attr,writebehind vg
  LV            Attr      WBehind
  lv            rwi-a-r--     512
  [lv_rimage_0] iwi-aor-w
  [lv_rimage_1] iwi-aor--
  [lv_rmeta_0]  ewi-aor--
  [lv_rmeta_1]  ewi-aor--

Example (writebehind is not set):
[~]# lvs -a -o name,attr,writebehind vg
  LV            Attr      WBehind
  lv            rwi-a-r--
  [lv_rimage_0] iwi-aor-w
  [lv_rimage_1] iwi-aor--
  [lv_rmeta_0]  ewi-aor--
  [lv_rmeta_1]  ewi-aor--
2013-04-15 13:59:46 -05:00
..
blkdeactivate.8.in scripts: introduce blkdeactivate 2012-10-12 14:44:24 +02:00
clvmd.8.in Update man pages 2012-04-11 12:42:10 +00:00
cmirrord.8.in a little more information for the cmirrord man page 2010-01-22 21:48:17 +00:00
dmeventd.8.in Updated documentation for dmeventd. 2011-12-22 15:50:38 +00:00
dmsetup.8.in man: dmsetup mangle also processes UUIDs now 2012-10-10 17:16:15 +02:00
fsadm.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvchange.8.in RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
lvconvert.8.in man: updates for lvconvert and lvcreate 2013-04-05 14:14:20 +02:00
lvcreate.8.in man: lvceate document external origin snapshot 2013-04-05 14:15:03 +02:00
lvdisplay.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvextend.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvm.8.in man: updates for lvconvert and lvcreate 2013-04-05 14:14:20 +02:00
lvm.conf.5.in docs: host tags has a default volume_list 2012-11-19 22:29:23 +00:00
lvmchange.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvmconf.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvmdiskscan.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvmdump.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvmetad.8.in lvmetad: use -l for logging level not -d 2012-10-15 10:44:43 +01:00
lvmsadc.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvmsar.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvreduce.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvremove.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvrename.8.in Update man pages 2012-04-11 12:42:10 +00:00
lvresize.8.in Support rounding of percentage upward 2012-01-05 15:38:18 +00:00
lvs.8.in RAID: Add writemostly/writebehind support for RAID1 2013-04-15 13:59:46 -05:00
lvscan.8.in Update man pages 2012-04-11 12:42:10 +00:00
Makefile.in scripts: introduce blkdeactivate 2012-10-12 14:44:24 +02:00
pvchange.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvck.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvcreate.8.in man: update pvcreate/pvs/vgconvert man page to cover embedding area support 2013-02-26 14:46:42 +01:00
pvdisplay.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvmove.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvremove.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvresize.8.in Update man pages 2012-04-11 12:42:10 +00:00
pvs.8.in man: update pvcreate/pvs/vgconvert man page to cover embedding area support 2013-02-26 14:46:42 +01:00
pvscan.8.in man: --activate ay and auto_activation_volume_list 2012-06-29 12:40:26 +02:00
vgcfgbackup.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgcfgrestore.8.in thin: allow restore with --force 2012-11-27 14:08:24 +01:00
vgchange.8.in activate: skip manual activation for --sysinit -aay 2012-07-10 14:01:33 +02:00
vgck.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgconvert.8.in man: update pvcreate/pvs/vgconvert man page to cover embedding area support 2013-02-26 14:46:42 +01:00
vgcreate.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgdisplay.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgexport.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgextend.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgimport.8.in vgimport: Allow '--force' to import VGs with missing PVs. 2013-02-20 16:37:41 -06:00
vgimportclone.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgmerge.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgmknodes.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgreduce.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgremove.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgrename.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgs.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgscan.8.in Update man pages 2012-04-11 12:42:10 +00:00
vgsplit.8.in Update man pages 2012-04-11 12:42:10 +00:00