diff --git a/configs/ubuntu.yml b/configs/ubuntu.yml index f3e8b51..3ef9896 100644 --- a/configs/ubuntu.yml +++ b/configs/ubuntu.yml @@ -1,12 +1,19 @@ defaults: lvmConsumption: 100 + resizeFs: true + resizeThreshold: 99 devices: /dev/vdb: fs: xfs - lvm: ifmx-var + lvm: ifmx-etc mountPoint: /mnt/foo user: ubuntu group: ubuntu permissions: 755 - resize: true - resizeThreshold: 99 \ No newline at end of file + /dev/vdc: + fs: xfs + lvm: ifmx-var + mountPoint: /mnt/bar + user: ubuntu + group: ubuntu + permissions: 755 diff --git a/internal/layer/pv_resize.go b/internal/layer/pv_resize.go index 8a588c2..4c9b8e9 100644 --- a/internal/layer/pv_resize.go +++ b/internal/layer/pv_resize.go @@ -66,7 +66,7 @@ func (rpvl *ResizePhysicalVolumeLayer) Validate(c *config.Config) error { continue } if rpvl.lvmBackend.ShouldResizePhysicalVolume(name, ResizeThreshold) { - return fmt.Errorf("🔴 %s: Failed to resize physical volume", name) + return fmt.Errorf("🔴 %s: Failed to resize validation checks. Physical volume %s still needs to be resized", name, name) } } return nil diff --git a/internal/service/lvm.go b/internal/service/lvm.go index 221c189..ffcb362 100644 --- a/internal/service/lvm.go +++ b/internal/service/lvm.go @@ -102,7 +102,7 @@ func (ls *LinuxLvmService) GetPhysicalVolumes() ([]*model.PhysicalVolume, error) for i, pv := range pr.Report[0].PhysicalVolume { size, err := strconv.ParseUint(pv.PhysicalVolumeSize, 10, 64) if err != nil { - return nil, fmt.Errorf("🔴 Failed to cast device size to unsigned 64-bit integer") + return nil, fmt.Errorf("🔴 Failed to cast physical volume size to unsigned 64-bit integer") } pvs[i] = &model.PhysicalVolume{ Name: pv.Name,