You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jessie installation of 0.6.3; pool contains some drives (interfaced from the system board, not the LSI HBA) which are not present among by-id which forbids import of the pool via by-id. But also upon reboot if I set USE_DISK_BY_ID='no' then it would not import since it tries to use zpool.cache which gets removed (somewhere in zfs-mount stop). So I have had following change done for the case when cache file doesn't exist -- just try to import:
diff --git a/init.d/zfs-mount b/init.d/zfs-mount
index e02c414..0b6ff68 100755
--- a/init.d/zfs-mount
+++ b/init.d/zfs-mount
@@ -33,7 +33,7 @@ servicename=zfs-mount
do_import()
{
if [ "$USE_DISK_BY_ID" == 'yes' ]; then
- $log_begin_msg "Importing ZFS pools"
+ $log_begin_msg "Importing ZFS pools (by-id)"
"$ZPOOL" import -d /dev/disk/by-id -aN 2>/dev/null || true # stupid zpool will fail if all pools are already imported
RET=$?
@@ -43,7 +43,7 @@ do_import()
$log_end_msg $RET
elif [ -f "$ZPOOL_CACHE" ] ; then
- $log_begin_msg "Importing ZFS pools"
+ $log_begin_msg "Importing ZFS pools (from $ZPOOL_CACHE)"
"$ZPOOL" import -c "$ZPOOL_CACHE" -aN 2>/dev/null || true # stupid zpool will fail if all pools are already imported
RET=$?
@@ -52,6 +52,16 @@ do_import()
fi
$log_end_msg $ret
+ else
+ $log_begin_msg "Importing ZFS pools (-a)"
+ "$ZPOOL" import -aN 2>/dev/null || true # stupid zpool will fail if all pools are already imported
+ RET=$?
+
+ if [ "$RET" -eq 0 ]; then
+ POOL_IMPORTED=1
+ fi
+
+ $log_end_msg $ret
fi
}
not sure against which repo to file this issue so here you are
The text was updated successfully, but these errors were encountered:
I will not back port any fixes to 0.6.3 that isn't "life threatening" (according to 'good' Debian GNU/Linux stable update rules), so could you please close this as "won't fix"?
doh -- right -- forgot to state the version. yes -- 0.6.3
as for labeling -- I would not be able to do so. so one of the developers would need to. Meanwhile I consider it resolved by the #2087 which is marked for 0.6.4. Cool and thanks
jessie installation of 0.6.3; pool contains some drives (interfaced from the system board, not the LSI HBA) which are not present among by-id which forbids import of the pool via by-id. But also upon reboot if I set USE_DISK_BY_ID='no' then it would not import since it tries to use zpool.cache which gets removed (somewhere in zfs-mount stop). So I have had following change done for the case when cache file doesn't exist -- just try to import:
not sure against which repo to file this issue so here you are
The text was updated successfully, but these errors were encountered: