You did not provide any other details...
you want to remove from say 0a/0d stack and move to 1b/2c (or some other supported version).
I think you could do one path at a time:
remove 0d (wait 45 seconds) plug shelf into 1b (or another square port) (wait 45 seconds)
Verify the shelf is online
remove 0a (wait 45 seconds) plug shelf into 2c (or another circle port) (wait 45 seconds)
Verify the shelf is on the new stack.
I think, if I recall, after some Patch release on 8.2 somewhere, the hot-removal addition of the same shelf was fixed.
Additionally, I think you could take it a bit further (with a few more commands):
system node run nodeb storage disable adapter 0d
system node run nodeb storage disable adapter 1b
remove shelf from 0d, plug shelf into 1b
system node run nodeb storage enable adapter 0d
system node run nodeb storage enable adapter 1b
system node run nodea storage disable adapter 0a
system node run nodea storage disable adapter 2c
remove shelf from 0a, plug shelf into 2c
system node run nodeb storage enable adapter 0a
system node run nodeb storage enable adapter 2c