Creating a loop device on Linux
Just a quick note so I don't forget in 2 minutes from now.
1. Create a file and specify the size for it - in this example the filename will be moosefs01.img and the size 800GB:
cd /root
truncate -s 800G moosefs01.img