Skip to content

Commit

Permalink
Merge #119
Browse files Browse the repository at this point in the history
119: DLPX-64724 rtslib-fb-targetctl service should wait on domain0 zvol links before starting r=pzakha a=pzakha

This leverages the functionality added in openzfs/zfs#8975.

## Testing
ab-pre-push + migration testing: http://selfservice.jenkins.delphix.com/job/devops-gate/job/master/job/appliance-build-orchestrator-pre-push/1836/

Co-authored-by: Pavel Zakharov <pavel.zakharov@delphix.com>
  • Loading branch information
bors[bot] and pzakha committed Aug 2, 2019
2 parents 53d83be + 0ab924e commit 4936f25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
[Unit]
#
# This service depends on zvol dev links to be present, which should
# be implemented in DLPX-64724. In the meanwhile, we have this service
# depend on zfs.target, which doesn't guarantee that the zvol links
# will be there, but gives a time buffer after pools have been loaded
# to create the zvol links. This new dependency is especially important
# since local-fs.target, which this service depends on, no longer
# depends on zfs-mount.service.
# ZFS Volumes (zvols) must be ready when we start this service.
#
After=zfs.target
Requires=zfs-volumes.target
After=zfs-volumes.target

#
# During upgrade verification, the root filesystem will be booted as a
Expand Down
8 changes: 8 additions & 0 deletions files/common/var/lib/delphix-platform/os-migration
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ function perform_migration() {
fi
done

#
# Wait on zvol dev links to be ready.
# This must be done after we import domain0 and before we attempt
# to start the rtslib-fb-targetctl service, which depends on the
# current service.
#
zvol_wait || die "Failed waiting on zvol dev links."

#
# DLPX-63949: Postgres must be re-indexed after migration.
# See dx_pg_post_start.sh for more info.
Expand Down

0 comments on commit 4936f25

Please sign in to comment.