0 Replies Latest reply: Nov 11, 2013 12:43 AM by budachst RSS

    NFSv3 SR doesn't create sparse files, does it?


      Hi all,


      I have been running my SRs over iSCSI forever, but I wanted to try NFS a SR as well, so I set one up. I am serving my NFS from a ASM/ACFS volume, set up the SR and presented it to my OVS servers. Then I created a new vdisk and since spare file support is the default I expected that the created vdisk would be a sparse file, but it isn't, as one can easily verify:


      ls -lhs /OVS/Repositories/0004fb00000300007f4f7e1b1b1e51cc/VirtualDisks/0004fb00001200007067b2defd52522b.img

      5.0G -rw------- 1 root root 5.0G Nov 11 07:04 /OVS/Repositories/0004fb00000300007f4f7e1b1b1e51cc/VirtualDisks/0004fb00001200007067b2defd52522b.img


      Creating big files using non-sparse files, will be a nightmare, I guess and I wonder if anyone has managed to have OVM create sparse files on a NFS SR.





      So, actually it seems that ACFS itself doesn't support the creation of sparse files, as trying this on the local ACFS mount did also not create a sparse file:


      [root@btierasm01 VirtualDisks]# truncate -s 5G SparseFile.img

      [root@btierasm01 VirtualDisks]# ls -lhs

      insgesamt 44G

      24G -rw------- 1 root root  24G 11. Nov 07:33 0004fb0000120000636dbd7082d91006.img

      5,0G -rw------- 1 root root 5,0G 11. Nov 07:04 0004fb00001200007067b2defd52522b.img

      10G -rw------- 1 root root  10G 10. Nov 18:54 0004fb00001200008ea6340479f26d95.img

      5,0G -rw-r--r-- 1 root root 5,0G 11. Nov 07:37 SparseFile.img


      Message was edited by: budachst