On Thu, 2014-02-06 at 16:36 +0100, Thomas Glanzmann wrote: > Hello, > I tried to create a 4TB file io backed LUN and presented it to an ESX > server. The esx server correctly detects the LUN but can not create a > file system on it. I tried this with Linux tip. In dmesg of the Linux > tip I see: > > [ 12.100242] Rounding down aligned max_sectors from 4294967295 to 4294967288 > [ 97.343801] Rounding down aligned max_sectors from 4294967295 to 4294967288 > > A quick look in target_core_file.c shows that the files are open with > O_LARGEFILE so the error is not obvious. Please let me know if you want to > investigate the issue and need my help for it. > > I also tried with SAN/IQ where it worked like a charm. On the ESX server when I > tried to create the LUN I got on Linux tip a never ending 'create VMFS' task. > > Any ideas? > So looking at the log provided off-list, the failure from the underlying vfs_writev() call is a -EFBIG (File too large). This would mean your hitting the underlying filesystem's per file maximum size, assuming this is with ext[3,4] w/ 1k blocksize. Increasing the ext[3,4] blocksize to 4k will get you up to 16 TB per file maximum size limit. --nab -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html