Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume shrink error #149

Closed
artur9010 opened this issue Aug 15, 2023 · 1 comment
Closed

Volume shrink error #149

artur9010 opened this issue Aug 15, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@artur9010
Copy link

Current Behavior

Volume shrink action causes an error. Volume shrinks fine.

image

{"level":"info","ts":1692104125.842518,"logger":"volumes.shrinkVolume","caller":"storage/storage.go:354","msg":"migrated sectors","volumeID":2,"oldMaxSectors":7209,"newMaxSectors":6914,"count":239}
{"level":"error","ts":1692104126.0282094,"logger":"volumes.resize","caller":"storage/storage.go:785","msg":"failed to resize volume","volumeID":2,"error":"failed to expand volume metadata: transaction failed: cannot shrink volume to 6889 sectors, 25 sectors are in use: volume is not empty","stacktrace":"go.sia.tech/hostd/host/storage.(*VolumeManager).ResizeVolume.func1\n\tgo.sia.tech/hostd/host/storage/storage.go:785"}

Expected Behavior

.

Steps to Reproduce

  1. Go to Volumes
  2. Edit volume size to smaller one
  3. Wait few seconds and check alters

Version

v0.1.4

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

Windows 11

Anything else?

No response

@n8maninger
Copy link
Member

Fixed by #151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants