On 2/25/21 3:36 PM, Forza wrote: > Hi, > > I have a weird issue with using a file as backing store with a Win2016 server as initiator. > > Very often if I reboot the Linux server the disk image becomes corrupt so that Windows cannot even detect the gpt partition table on it. It can happen even if I shut down the Windows machine before I reboot the Linux server. > > Initially I thought I would be write cache. But I've disabled that with no benefit to this problem. > How are you disabling the write cache? What tools do you use? Is it targetcli or are you doing this manually via configfs? What is the output of cat /sys/kernel/config/target/core/fileio_$N/$name/info cat /sys/kernel/config/target/core/fileio_$N/$name/attrib/write_cache ? If you do a sync manually after shutting down windows does it help? Are you accessing this from multiple windows machines at the same time? What target driver are you using?