This thread was helpful to me, after some further research I came up with this (works end to end (take image and reimport) ):
rbd export vm-138-disk-0@vm-138-disk-0_2021-04-03T15:53:58.290-07:00 - | gzip --fast > devworker.img.gz
............^^^ get this after making the snap(dont have cli command for snap creation sorry)
//...........................................................................................................................^^^ the "-" says stdout! so you can pipe ("|") to whaterver
//get images name (in this example "vm-138-disk-0@vm-138-disk-0_2021-04-03T15:53:58.290-07:00") from command:
rbd ls -l <your pool name>
//note the snap was created via cephfs web GUI so I dont have the cli command for you but should be easy to find? if you dont have web gui... update thread with the snap creation cli command info
@Somebody?
restore/import run:
gunzip -c devworker.img.gz | rbd import - vm-138-disk-0
//...................................................................^^^ again the "-" says stdin ("in" this time vs "out")
//obviously make sure the vm is down when you import ... but this works!... like OMG nice!
PS gzip / gunzip no issues with cpu load and compressed 100G drive to under 9G image no problem! (data @~27gigs)
//take away ... finding '-' cli examples was the hardest part.
//if you have a dirty block disk (lots of delete files, eg reduced size from an apex), then consider zero fill of a file to fill disk with 0000's, this will make your image way small! (sorry dont have command atm ... dinner call <may get back on request>)