Skip to content

Commit

Permalink
use metal-stack/lvmd:fix-lv-kernel-number (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich authored May 11, 2021
1 parent c7b1768 commit 4866ada
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 87 deletions.
4 changes: 4 additions & 0 deletions cmd/provisioner/revivelvs.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func reviveLVs(c *cli.Context) error {
tp, err := os.Lstat(targetPath)
if err != nil {
klog.Infof("target %s is missing. Reviving ...\n", targetPath)
if lv.ActualDevMajNumber < 0 || lv.ActualDevMinNumber < 0 {
klog.Infof("logical volume %s seems broken. Skipping", lv.Name)
continue
}
for _, n := range lv.Tags {
if n == "isBlock=true" {
_, err := bindMountLV(lv.Name, vgName, dirName)
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ require (
k8s.io/utils v0.0.0-20210305010621-2afb4311ab10 // indirect
sigs.k8s.io/sig-storage-lib-external-provisioner/v6 v6.3.0
)

replace github.com/google/lvmd => github.com/metal-stack/lvmd v0.0.0-20210510105719-1fac529a6634
Loading

0 comments on commit 4866ada

Please sign in to comment.