Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions driver/mounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ func (m *mounter) Mount(source, target, fsType string, opts ...string) error {
}
}

// By default, xfs does not allow mounting of two volumes with the same filesystem uuid.
// Force ignore this uuid to be able to mount volume + its clone / restored snapshot on the same node.
if fsType == "xfs" {
opts = append(opts, "nouuid")
}

if len(opts) > 0 {
mountArgs = append(mountArgs, "-o", strings.Join(opts, ","))
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run-versioned-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ if [[ "${SKIP_SEQUENTIAL_TESTS:-}" ]]; then
echo 'Skipping sequential tests'
else
echo 'Running sequential tests'
"ginkgo-${KUBE_VER}" -v -focus="External.Storage${focus}.*(\[Feature:|\[Serial\])" -skip='\[Disruptive\]|\[Feature:VolumeSourceXFS\]' "${E2E_TEST_FILE}" -- "-storage.testdriver=${TD_FILE}"
"ginkgo-${KUBE_VER}" -v -focus="External.Storage${focus}.*(\[Feature:|\[Serial\])" -skip='\[Disruptive\]' "${E2E_TEST_FILE}" -- "-storage.testdriver=${TD_FILE}"
fi
Loading