Create fake loop device on Fedora

First question – what is the purpose? Such fake loop device can be used as pv in lvm in case we want to play around and don’t want to add a new disk.

  • Prepare a binary file with dd e.g.  /srv/swift-disk.bin
  • Create a script in e.g:  /usr/lib/systemd/scripts and ensure that it is executable:

  • Create a service in: /usr/lib/systemd/system

  •  Enable and start a service:

Leave a Reply

Your email address will not be published. Required fields are marked *