Closed dmadisetti closed 1 month ago
MapOfSnaps shouldn't be empty right
Correct. No.
Re: nilfs2
, you need to manually mount your snapshots. Actually you always need to mount your own snapshots, ZFS just has an auto-mounter and AFAIK nilfs2
doesn't.
lscp shows me that snapshots are being taken, something is weird on the httm side.
All the ZFS mount points should still contain ZFS snapshots, unless there are none? Are you taking ZFS snapshots?
On what I run, basically Ubuntu LTS, snapshots will be auto-mounted, even when the ZFS property snapdir
is set to hidden
. Try toggling that property to visible
on a dataset on your system? This may also be some oddball nix thing where the snapshots are hidden to regular users? Maybe also try sudo
? Check if you can see ZFS snapshots yourself via going to a ZFS base mount and running ls
on the snapshot virtual directory: ls -alR /nix/.zfs/snapshot
. Newer versions of samba
over the network have required one to perform a readdir
on the snapshot directory, in order for the snapshot auto-mount to kickstart, so I would check the output of mount
after running ls -alR
? Are the snapshots now auto-mounted after iterating over the snapshot directories?
In sum, my guess is it's some snapshot auto-mount issue, if it's not some privilege issue. I'd begin debugging by trying to make ZFS work correctly first. Feel free to check back in when you know more.
Cool project, obviously a lot of love put towards this, you should be proud
Thanks!
Gottttt it. I didn't realize I had to explicitly mount the snapshots for nilfs2, I thought it might be auto-mounted too. I guess I could write a wrapper or fork to help me there.
Fresh install, zfs snapshots aren't set up yet- but thanks for checking
Thanks! Might be more of a documentation issue. I double checked and didn't see anything explicit. I just made the wrong assumption, and was confused
I guess I could write a wrapper or fork to help me there.
If you figure out a clever way to auto-mount, or script mounting nilfs2
snapshots, I'd be pleased to add that script to the scripts
folder. See: https://github.com/kimono-koans/httm/tree/master/scripts
The equine
script is expressly for mounting Time Machine backups.
Thanks! Might be more of a documentation issue. I double checked and didn't see anything explicit. I just made the wrong assumption, and was confused
Also pleased to add some explanation to the README, or the --help
. I'll think about where and what will be most helpful.
Perhaps there should just be warning when all MapOfSnaps
values are empty? The issue here is that might not prevent your issue if you had had ZFS snapshots. Or perhap when all of a certain type contain no snapshots? I'm loath to make startup slower, but I'll try a few things.
See re: additional debug info: https://github.com/kimono-koans/httm/commit/f2c8dbab762c7f19153174307f1db31914ba262e
Perfect. I think this would have saved me 10 minutes
Is your feature request related to a problem? Please describe. I run ZFS, but I like my SD cards in NILFS2. I want to run
httm
on my flash cards, but it seems like it doesn't detect the snapshots$> sudo /nix/store/4ja5k7wpj8p9izzwkcxsrcbslv5cjbdp-httm-0.42.3/bin/httm --debug thing
Here's my
/proc/mounts
lscp
shows me that snapshots are being taken, something is weird on thehttm
side.Additional context Maybe due to
proc_mounts
churn? MapOfSnaps shouldn't be empty rightCool project, obviously a lot of love put towards this, you should be proud