1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

PR #2344: fs_lvm live migration

This commit is contained in:
kvaps 2018-08-28 11:27:51 +02:00 committed by Ruben S. Montero
parent 820579ee04
commit 6540518158
2 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,9 @@ CMD=$(cat <<EOF
if [ -L "\$disk" ]; then
DEVICE=\$(readlink "\$disk")
$SUDO $LVCHANGE -an \$DEVICE
if echo "\$DEVICE" | grep -q '^/dev/vg-one'; then
$SUDO $LVCHANGE -an \$DEVICE
fi
fi
done
EOF

View File

@ -51,7 +51,9 @@ CMD=$(cat <<EOF
if [ -L "\$disk" ]; then
DEVICE=\$(readlink "\$disk")
$SUDO $LVCHANGE -ay \$DEVICE
if echo "\$DEVICE" | grep -q '^/dev/vg-one'; then
$SUDO $LVCHANGE -ay \$DEVICE
fi
fi
done
EOF