RE: reading lun snapshots with identical lvm informationon them on one machine

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

 



-----Original Message-----
From: Alasdair G Kergon
Sent: Tuesday, November 04, 2008 7:31 PM
 
Making sure you know which are original and which are snapshot, run
pvchange -u
on the snapshot ones, then vgchange -u and vgrename.

Use a filter in lvm.conf (env var LVM_SYSTEM_DIR to use different one if
this is
an automated process, not a one-off) or with --config on each command so
only
the snapshot devices are visible.

Alasdair
_______________________________________________


I made a copy of /etc/lvm/lvm.conf to /tmp-lvm.conf, changed the filter
line to this:

Filter = [ "a|/dev/sdf|", "a|/dev/sdg|", "a|/dev/sdh|", "a|/dev/sdi|",
"r|.*|"  ]

(sdf, sdg, sdh, and sdi are all snapshot devices of the vg)

And then I ran "sudo /usr/sbin/pvchange --config /tmp-lvm.conf -u
/dev/sdf1" but I get this error:

  Parse error at byte 14 (line 1): unexpected token
  Failed to set overridden configuration entries.
  Run `pvchange --help' for more information.

Am I maybe using the --config option wrong?

James


_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux