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