[linux-lvm] Does LVM spontaneously run commands in the background?

Justin Lee justinlee5455 at gmail.com
Tue Oct 29 10:00:23 UTC 2013


When I run the command "vgcfgrestore -l <volume group name> " it will
show a history of backed up metadata files along with LVM commands
executed right after the file backups, like this:

########
[root at localhost ~]# vgcfgrestore -l vg_vctst

...(ignored)...

  File: /etc/lvm/archive/vg_vctst_00010-1903466144.vg
  VG name:     vg_vctst
  Description: Created *before* executing 'lvcreate -L 102400 -n
lv_g1h9 vg_vctst -R 1 -m1 /dev/md0:0-3199 /dev/mapper/mpathbp1:0-3199
/dev/sda14:0'
  Backup Time: Tue Oct 15 16:29:19 2013


  File: /etc/lvm/archive/vg_vctst_00011-623451285.vg
  VG name:     vg_vctst
  Description: Created *before* executing 'lvconvert --config
devices{ignore_suspended_devices=1} --repair --use-policies
vg_vctst/lv_g1h9'
  Backup Time: Tue Oct 15 16:35:54 2013


  File: /etc/lvm/archive/vg_vctst_00012-1423052792.vg
  VG name:     vg_vctst
  Description: Created *before* executing 'vgs --noheadings'
  Backup Time: Tue Oct 15 16:36:19 2013

...(ignored)...
########

But I didn't manually run the command "lvconvert --config
devices{ignore_suspended_devices=1} --repair ..." neither put the
command in some shell script files IIUC, so how the command gets run?
Is the command "lvconvert --config devices{ignore_suspended_devices=1}
--repair ..." run by LVM itself? If so, what is the condition that
drives LVM to run that command? (in fact, I don't want the command to
be run, because it seems destroy the mirror log and metadata in my
system and I can't find a doc explaining about "--config")

... any idea?

Justin




More information about the linux-lvm mailing list