1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/man
Peter Rajnoha 06ce9b4e42 log: separate output and make it possible to use given FDs
Currently, the output is separated in 3 parts and each part can go into
a separate and user-defined file descriptor:

  - common output (stdout by default, customizable by LVM_OUT_FD environment variable)
  - error output (stderr by default, customizable by LVM_ERR_FD environment variable)
  - report output (stdout by default, customizable by LVM_REPORT_FD environment variable)

For example, each type of output goes to different output file:

  [0] fedora/~ # export LVM_REPORT_FD=3

  [0] fedora/~ # lvs fedora vg/abc 1>out 2>err 3>report

  [0] fedora/~ # cat out

  [0] fedora/~ # cat err
    Volume group "vg" not found
    Cannot process volume group vg

  [0] fedora/~ # cat report
    LV   VG     Attr       LSize   Layout     Role       CTime
    root fedora -wi-ao----  19.00g linear     public     Wed May 27 2015 08:09:21
    swap fedora -wi-ao---- 500.00m linear     public     Wed May 27 2015 08:09:21

Another example in LVM shell where the report goes to "report" file:

  [0] fedora/~ # export LVM_REPORT_FD=3
  [0] fedora/~ # lvm 3>report

  (in lvm shell)
  lvm> vgs

  (content of "report" file)
  [1] fedora/~ # cat report
    VG     #PV #LV #SN Attr   VSize  VFree
    fedora   1   2   0 wz--n- 19.49g    0

  (in lvm shell)
  lvm> lvs

  (content of "report" file)
  [1] fedora/~ # cat report
    VG     #PV #LV #SN Attr   VSize  VFree
    fedora   1   2   0 wz--n- 19.49g    0
    LV   VG     Attr       LSize   Layout     Role       CTime
    root fedora -wi-ao----  19.00g linear     public     Wed May 27 2015 08:09:21
    swap fedora -wi-ao---- 500.00m linear     public     Wed May 27 2015 08:09:21
2016-08-09 18:24:45 +02:00
..
blkdeactivate.8.in blkdeactivate: add -m|--mpathoption disablequeueing and use it for blk-availability systemd service and initscript 2016-07-12 10:01:07 +02:00
clvmd.8.in man: update lvm pages 2015-10-01 15:03:34 +02:00
cmirrord.8.in man: improve cmirrord.8 manpage 2015-11-16 01:15:03 +01:00
dmeventd.8.in dmeventd: support logging on stdout 2015-10-13 15:22:57 +02:00
dmsetup.8.in man: dmsetup 2016-01-21 12:10:26 +01:00
dmstats.8.in man: explain deletion of 1st group member in dmstats.8.in 2016-08-08 19:29:12 +01:00
fsadm.8.in man: fsadm 2015-10-06 15:21:36 +02:00
lvchange.8.in lvchange: Allow device specification when requesting a repair 2016-08-05 16:01:46 +02:00
lvconvert.8.in lvconvert: separate type raid to mirror 2016-08-08 10:37:24 -05:00
lvcreate.8.in lvcreate: reject '--nosync' option for RAID6 LVs 2016-08-08 13:52:35 +02:00
lvdisplay.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvextend.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvm2-activation-generator.8.in systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.target 2015-09-23 13:30:51 +02:00
lvm-config.8.in man: Fix recursive lvm-config man page. 2015-05-07 12:07:40 +01:00
lvm-dumpconfig.8.in config: Introduce lvmconfig. 2015-04-28 17:00:37 +01:00
lvm-lvpoll.8.in lvm-lvpoll.8.in: man page for built-in command 2015-05-15 20:32:16 +02:00
lvm.8.in log: separate output and make it possible to use given FDs 2016-08-09 18:24:45 +02:00
lvm.conf.5.in man: add lvmlocal.conf to config cascade 2015-07-08 10:02:28 -07:00
lvmcache.7.in man lvmcache: include chunk size 2015-11-23 11:57:41 -06:00
lvmchange.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
lvmconf.8.in man: drop superfluous '--' in lvmconf man page for --enable/disable-halvm 2015-09-22 14:28:31 +02:00
lvmconfig.8.in man: lvmconfig: add note about --type diff and --mergedconfig 2016-06-02 14:07:07 +02:00
lvmdbusd.8.in lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
lvmdiskscan.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
lvmdump.8.in lvmdump: also collect output from lsblk command when running lvmdump -s 2016-06-09 13:54:15 +02:00
lvmetad.8.in man: include info about disabled lvmetad 2016-08-03 15:42:12 -05:00
lvmlockctl.8.in man lvmlockctl: add man page 2015-09-04 11:05:13 -05:00
lvmlockd.8.in man lvmlockd: mention pvmove restriction 2016-01-12 12:01:53 -06:00
lvmpolld.8.in lvmpolld.8.in: add missing space 2015-09-02 17:24:34 +02:00
lvmsadc.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
lvmsar.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
lvmsystemid.7.in doc: describe lvmlockd/lvmpolld features as available if LVM compiled with lockd/polld support 2016-03-30 14:10:56 +02:00
lvmthin.7.in man: lvmthin clean up syntax example 2016-07-27 13:13:59 -05:00
lvreduce.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvremove.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvrename.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvresize.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
lvs.8.in man: lvs: move doc about --all so it's ordered alphabetically in the man page 2016-06-24 14:57:09 +02:00
lvscan.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
Makefile.in lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
pvchange.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvck.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
pvcreate.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvdisplay.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvmove.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvremove.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvresize.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvs.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
pvscan.8.in man: minor corrections in pvscan 2016-08-03 15:49:43 -05:00
vgcfgbackup.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgcfgrestore.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
vgchange.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgck.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgconvert.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgcreate.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgdisplay.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgexport.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgextend.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgimport.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgimportclone.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
vgmerge.8.in man: properly escape - 2014-06-11 11:10:55 +02:00
vgmknodes.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgreduce.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgremove.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgrename.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgs.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgscan.8.in man: document --configreport, --logonly, --reportformat 2016-06-24 14:51:20 +02:00
vgsplit.8.in man: properly escape - 2014-06-11 11:10:55 +02:00