On 2/25/21 13:49, 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. You need to first isolate the problem by running the data verification test with loop transport on the linux and make sure everything is working fine before you move on to the windows initiator. > Initially I thought I would be write cache. But I've disabled that with no benefit to this problem. What were the steps taken to conclude that it was not the write cache ? > There are no errors in dmesg except initially when loading the target. Perhaps I'm doing wrong when rebooting? > > > [ 71.583665] dev[0000000064b6f5d8]: Unable to change SE Device alua_support: alua_support has fixed value > [ 71.583676] dev[0000000064b6f5d8]: Unable to change SE Device alua_support: alua_support has fixed value > [ 71.583837] ignoring deprecated emulate_dpo attribute > [ 71.583874] ignoring deprecated emulate_fua_read attribute > [ 71.584553] dev[0000000064b6f5d8]: Unable to change SE Device pgr_support: pgr_support has fixed value > [ 71.584561] dev[0000000064b6f5d8]: Unable to change SE Device pgr_support: pgr_support has fixed value > > > The LIO target is running Fedora 33 Server with two Seagate Exos 10TB in Btrfs RAID-1 mode. > > Are there any debugging options that would help? One way to go about it is to turn on the target tracing and examine the commands to see which command is failing if target has command level tracing implemented. This will allow other developers to help you more. Also if there a problem with the file system then you might want to run fsck before you establish the connection to make sure you have not encountered file system level errors. > Thanks for any advice. Also please mentioned that which kernel version you are using so that other developers can help you more. > > ~Forza >