Change-Id: I37bd5b1989b546e32f81fe0a559372134d158700
zpool list -H $backup_pool > $tmpfile 2>&1
if [ $? != 0 ]; then
if [[ $import_export_backup_pool == 1 ]]; then
- zpool import $backup_pool >> $tmpfile 2>&1
+ zpool import -f $backup_pool >> $tmpfile 2>&1
if [ $? != 0 ]; then
msgs=`cat $tmpfile`
fatal_and_exit "-E- unable to import the backup pool '$backup_pool' on $hostname: $msgs" "$mailto"
zpool list -H "$i" >/dev/null 2>&1
if [ $? != 0 ]; then
if [[ $import_export_backup_pool == 1 ]] && [[ "$backup_pool" =~ "$i" ]]; then
- zpool import $i
+ zpool import -f $i
if [ $? != 0 ]; then
fatal_and_exit "-E- unable to import the pool $i"
fi
zpool list -H "$i" >/dev/null 2>&1
if [ $? != 0 ]; then
if [[ $import_export_backup_pool == 1 ]] && [[ "$backup_pool" =~ "$i" ]]; then
- zpool import $i
+ zpool import -f $i
if [ $? != 0 ]; then
fatal_and_exit "-E- unable to import the pool $i"
fi