nbd icon indicating copy to clipboard operation
nbd copied to clipboard

Error when mounting a snapshot

Open jimkyndemeyer opened this issue 1 year ago • 2 comments

Hey Sam,

Thanks for this project. The performance I'm seeing in the initial testing is really quite incredible :)

I have a 1GB myvol2 created based on your readme successfully mounted as an ext4 disk that Ubunto also reports a 1GB and file writes/reads works perfectly.

I did however run into an error when trying to mount a snapshot of it:

java -jar nbdcli.jar snapshot -v myvol2 -n snapshotvol
> Successfully snapshotted myvol2 as snapshotvol

sudo nbd-client localhost -g -nonetlink -N snapshotvol /dev/nbd4
> Negotiation: ..size = 235626205MB
> bs=512, sz=247071983730176 bytes

So size seems off here on the snapshot? Then trying to mount gives:

sudo mount /dev/nbd4 tmp-snapshotted/
> mount: /home/jimmeyer/IdeaProjects/nbd/target/tmp-snapshotted: can't read superblock on /dev/nbd4

Any ideas on how to proceed? Thanks.

jimkyndemeyer avatar Sep 02 '23 07:09 jimkyndemeyer

I'm looking into another storage backend than FoundationDB so closing this.

jimkyndemeyer avatar Sep 02 '23 14:09 jimkyndemeyer

Going to keep it open and figure out what might be going on.

spullara avatar Sep 05 '23 22:09 spullara