Skip to content

Commit 6986d1a

Browse files
committed
Fix existing VG not being activated
1 parent 9799671 commit 6986d1a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/server/driver.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ func NewDriver(log *slog.Logger, driverName, nodeId, endpoint string, hostWriteP
5555
log.Info("ensuring vg setup")
5656

5757
vgexists := lvm.VgExists(log, vgName)
58-
if !vgexists {
58+
if vgexists {
59+
// VG exists, activate it.
60+
log.Info("vg already exists, activating...", "vgName", vgName)
61+
lvm.VgActivate(log)
62+
} else {
5963
log.Info("vg not found", "vgName", vgName)
6064
lvm.VgActivate(log)
6165
// now check again for existing vg again

0 commit comments

Comments
 (0)