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

WAS NOT DESTROYED because its expiration time could not be determined. /root/zap/zap: 162: bc: not found #28

Open
hellomotow opened this issue Jan 9, 2023 · 2 comments

Comments

@hellomotow
Copy link

hellomotow commented Jan 9, 2023

zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-07T19:27:10p0000--1d should be deleted as it's now more than 1D old but I am facing the following errors

/root/zap/zap destroy
or
/root/zap/zap destroy HOSTNAME
both display

WARN: SNAPSHOT zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-07T19:27:10p0000--1d WAS NOT DESTROYED because its expiration time could not be determined.
/root/zap/zap: 162: bc: not found
WARN: SNAPSHOT zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T20:00:01p0000--1d WAS NOT DESTROYED because its expiration time could not be determined.
/root/zap/zap: 162: bc: not found
WARN: SNAPSHOT zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T21:00:01p0000--1d WAS NOT DESTROYED because its expiration time could not be determined.
/root/zap/zap: 162: bc: not found
WARN: SNAPSHOT zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T22:00:01p0000--1d WAS NOT DESTROYED because its expiration time could not be determined.
/root/zap/zap: 162: bc: not found
WARN: SNAPSHOT zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T23:00:01p0000--1d WAS NOT DESTROYED because its expiration time could not be determined.
/root/zap/zap: 162: bc: not found

zfs list -t snapshot

zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-07T19:27:10p0000--1d     6.62M      -     13.7G  -
zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T20:00:01p0000--1d     2.90M      -     13.7G  -
zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T21:00:01p0000--1d     3.18M      -     13.7G  -
zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T22:00:01p0000--1d     5.48M      -     13.7G  -
zfs/backups/vm-105-disk-0@ZAP_HOSTNAME_2023-01-08T23:00:01p0000--1d        0B      -     13.7G  -
@hellomotow
Copy link
Author

hellomotow commented Jan 11, 2023

Issue was bc calculator was missing

apt install bc

@Jehops
Copy link
Owner

Jehops commented Jan 11, 2023

Hello @hellomotow. Sorry for the delay. I've done some testing on GNU/Linux systems and will tweak a few things based on what I found. For example, I hope I can find alternatives to utilities like bc or hostname that might not be installed there by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants