sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvcreate uses correct dev
lvcreate -l1 -n $lv2 -an $vg1 "$dev1"
# lvcreate fixed the DF
sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
not grep "$PVID3" "$DF"
sed -e "s|IDNAME=$dev1|IDNAME=$dev2|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|IDNAME=$dev1|IDNAME=$dev2|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvcreate uses correct dev
lvcreate -l1 -n $lv2 -an $vg1 "$dev1"
# lvcreate fixed the DF
sed -e "s|IDNAME=$dev1|IDNAME=$dev2|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|IDNAME=$dev2|IDNAME=$dev1|" tmp1.devices > tmp2.devices
sed -e "s|IDNAME=tmpname|IDNAME=$dev2|" tmp2.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|IDNAME=$dev2|IDNAME=$dev1|" tmp1.devices > tmp2.devices
sed -e "s|IDNAME=tmpname|IDNAME=$dev2|" tmp2.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvcreate uses correct dev
lvcreate -l1 -n $lv2 -an $vg1 "$dev1"
# lvcreate fixed the DF
sed -e "s|IDNAME=$dev2|IDNAME=$dev1|" tmp1.devices > tmp2.devices
sed -e "s|IDNAME=tmpname|IDNAME=$dev2|" tmp2.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev3|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev3|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
not grep "$PVID3" "$DF"
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev2|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev2|" "$ORIG" > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|DEVNAME=$dev2|DEVNAME=$dev1|" tmp1.devices > tmp2.devices
sed -e "s|DEVNAME=tmpname|DEVNAME=$dev2|" tmp2.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|DEVNAME=$dev2|DEVNAME=$dev1|" tmp1.devices > tmp2.devices
sed -e "s|DEVNAME=tmpname|DEVNAME=$dev2|" tmp2.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev3|" "$ORIG" > tmp1.devices
sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" tmp1.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev3|" "$ORIG" > tmp1.devices
sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" tmp1.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
not grep "$PVID3" "$DF"
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev2|" tmp1.devices > "$DF"
sed -e "s|IDNAME=$dev1|IDNAME=$dev2|" tmp1.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev2|" tmp1.devices > "$DF"
sed -e "s|IDNAME=$dev1|IDNAME=$dev2|" tmp1.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|IDNAME=$dev2|IDNAME=$dev1|" tmp4.devices > tmp5.devices
sed -e "s|IDNAME=tmpname|IDNAME=$dev2|" tmp5.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# pvs reports correct info
pvs -o+uuid | tee pvs.out
grep $vg1 pvs.out > out
sed -e "s|IDNAME=$dev2|IDNAME=$dev1|" tmp4.devices > tmp5.devices
sed -e "s|IDNAME=tmpname|IDNAME=$dev2|" tmp5.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
# lvmdevices fixes the DF
lvmdevices --update
grep "$PVID1" "$DF" |tee out
sed -e "s|DEVNAME=$dev1|DEVNAME=$dev3|" "$ORIG" > tmp1.devices
sed -e "s|IDNAME=$dev1|IDNAME=$dev3|" tmp1.devices > "$DF"
cat "$DF"
-rm /run/lvm/searched_devnames || true
_clear_online_files
pvscan --cache -aay "$dev1"
pvscan --cache -aay "$dev2"
cat "$DF"
_clear_online_files
-rm /run/lvm/searched_devnames || true
# pvscan creates the correct online files and activates correct vg
pvscan --cache -aay "$dev1"