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

Feature #1254: Dump tgtadmin configuration in the clone and rm events.

This commit is contained in:
Jaime Melis 2012-06-28 14:58:01 +02:00
parent 3058af7c3c
commit 7619c2f656
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ CLONE_CMD=$(cat <<EOF
$SUDO $(tgtadm_target_new "$TID" "$IQN")
$SUDO $(tgtadm_target_bind_all "$TID")
$SUDO $(tgtadm_logicalunit_new "$TID" "$DEV")
$SUDO $(tgt_admin_dump_config "$TARGET_CONF")
EOF
)

View File

@ -64,6 +64,7 @@ RM_COMMAND=$(cat <<EOF
$SUDO $(tgtadm_target_delete "\$TID")
$SUDO $SYNC
$SUDO $LVREMOVE -f $VG_NAME/$LV_NAME
$SUDO $(tgt_admin_dump_config "$TARGET_CONF")
EOF
)