Read only volume

Issue #4 resolved
Christian Hesse created an issue

I do use network block devices for PXE boot, so serving just ISO images. Looks like bnbd is a lot more reliable than plain nbd for me. (Having network issue with nbd-server at the moment, so searching for an alternative.) My problem is that I need read only volumes so nobody can overwrite my static images. This is not possible yet, no?

Comments (5)

  1. Michał Belczyk repo owner

    It is not possible yet -- this item has been on my TODO list for about 2 years now... Let me see what I can do about it and get back to you.

  2. Michał Belczyk repo owner

    I have pushed the change to the master branch. You can now set the volume mode by the VTY commands:

    volume ro id=vol_id

    volume rw id=vol_id

    This changes the mode for a volume only for the new sessions attached. The change is persistent so after bnbd restart a volume should be accessible in its last mode set (exactly like the up/down state of a volume).

    Please test and resolve the issue if it works for you. Thanks!

  3. Log in to comment