#!/bin/sh VGUUID=$1 VGNAME=$2 #echo /sbin/lvm vgchange --config "devices {filter = [ \"a|/dev/disk/by-id/lvm2-vgpv-$VGUUID-.*|\", \"r/.*/\" ]}" -a y $VGNAME >> /lvm2.log /sbin/lvm vgchange --config "devices {filter = [ \"a|/dev/disk/by-id/lvm2-vgpv-$VGUUID-.*|\", \"r/.*/\" ]}" -a y $VGNAME