Re: Stability of FILEIO as backing store?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/26/21 1:19 AM, Forza wrote:
> 
> 
> ---- From: michael.christie@xxxxxxxxxx -- Sent: 2021-02-26 - 04:41 ----
> 
>> 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?
> 
> I am using targetcli, using the documentation https://urldefense.com/v3/__http://linux-iscsi.org/Doc/LIO*20Admin*20Manual.pdf__;JSU!!GqivPVa7Brio!OYNbrN3Fseq8PE_-n67Mmb8_JdUUU_yWw_LcbeKvyKgKgP_iVH-X2u1vrU9RasK-Nvhz$ 
> I created the backstore/fileio with write_back=false but this might not have disabled cache sinze I see in the saveconfig.json that it is still set to true. So I guess this can still be an issue =( 
> 
> 
>>
>> What is the output of
>>
>> cat /sys/kernel/config/target/core/fileio_$N/$name/info
> 
> Status: ACTIVATED  Max Queue Depth: 128  SectorSize: 512  HwMaxSectors: 16384
>         TCM FILEIO ID: 0        File: /media/iscsi-tgt/dx_media_3.img  Size: 429496729600  Mode: Buffered-WCE Async: 0
> 

I think you need to ask the people that maintain your tools (fedora or upstream
https://github.com/open-iscsi/targetcli-fb), because for upstream's master branch
it looks like doing write_back=false should work, but above we see "Mode: Buffered-WCE"
and below we see emulate_write_cache=1 kike you mentioned.

> 
>> cat /sys/kernel/config/target/core/fileio_$N/$name/attrib/write_cache
> 
> This does not exist. The curent files are:
> 

Sorry, I meant emulate_write_cache.

> # grep . *
> alua_support:1
> block_size:512
> emulate_3pc:1
> emulate_caw:1
> emulate_dpo:1
> emulate_fua_read:1
> emulate_fua_write:1
> emulate_model_alias:1
> emulate_pr:1
> emulate_rest_reord:0
> emulate_tas:1
> emulate_tpu:0
> emulate_tpws:0
> emulate_ua_intlck_ctrl:0
> emulate_write_cache:1
> enforce_pr_isids:1
> force_pr_aptpl:0
> hw_block_size:512
> hw_max_sectors:16384
> hw_pi_prot_type:0
> hw_queue_depth:128
> is_nonrot:0
> max_unmap_block_desc_count:1
> max_unmap_lba_count:8192
> max_write_same_len:4096
> optimal_sectors:16384
> pgr_support:1
> pi_prot_format:0
> pi_prot_type:0
> pi_prot_verify:0
> queue_depth:128
> unmap_granularity:1
> unmap_granularity_alignment:0
> unmap_zeroes_data:0



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux