Re: target panics when xcopying between two volumes with different block sizes [WAS: xcopy testing with ddpt]

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

 



Hello Nab,

> Thomas, I've been able to confirm on my end so please go ahead and
> double check at your earliest convenience.  Btw, I'd like to include
> these into v3.12-rc7, so they will need to goto Linus in the next 2-3
> days.

I applied the 3 patches on top of my HEAD, recompiled, installed and
restarted the target. After that I'm no longer able to confirm the
crash. So the workaround works for me:

(miniwheezy64) [~/ddpt-0.93b8r236] src/ddpt -vvv iflag=xcopy if=/dev/sg3 of=/dev/sg2 ibs=4096 list_id=0
Neither obs nor bs given so set obs=512 (default block size)
setting pt (pass-through) on IFILE for xcopy
 >> modern signal implementation assumed [SA_NOCLDSTOP=1], masking during IO
 >> Input file type: pass-through [pt] device
open /dev/sg3 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sg3: LIO-ORG   FILEIO            4.0  [pdt=0, 3pc=1]
 >> Output file type: pass-through [pt] device
open /dev/sg2 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sg2: LIO-ORG   FILEIO            4.0  [pdt=0, 3pc=1]
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
  /dev/sg3 [pt]: blocks=25600 [0x6400], _bs=4096, 104 MB
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
  /dev/sg2 [pt]: blocks=204800 [0x32000], _bs=512, 104 MB
calc_count: in_num_sect=25600, out_num_sect=204800
skip=0 (blocks on input), seek=0 (blocks on output)
  ibs=4096 bytes, obs=512 bytes, OBPC=0
  initial count=25600 (blocks of input), blocks_per_transfer=16
    Receive copy results [sa: operating parameters] cmd: 84 03 00 00 00 00 00 00 00 00 00 00 01 00 00 00

Output receive copy operating parameters response in hex:
 00     00 00 00 2a 01 00 00 00  00 02 00 01 00 00 04 00
 10     10 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 01 01 09 09 09  00 00
 >> Report operating parameters, input [/dev/sg3]:
    Support No List IDentifier (SNLID): 1
    Maximum target descriptor count: 2
    Maximum segment descriptor count: 1
    Maximum descriptor list length: 1024
    Maximum segment length: 268435456
    Maximum inline data length: 0
    Held data limit: 0 (list_id_usage: 2)
    Maximum stream device transfer size: 0
    Maximum concurrent copies: 1
    Data segment granularity: 512 bytes
    Inline data granularity: 512 bytes
    Held data granularity: 512 bytes
    Implemented descriptor list:
        Copy Block to Block device
        Identification target descriptor
  >> using VPD identification for source /dev/sg3
    inquiry cdb: 12 01 83 00 04 00
    inquiry cdb: 12 01 83 00 b4 00
Output inquiry VPD page 0x83 (di) response in hex:
 00     00 83 00 b0 01 03 00 10  60 01 40 53 cd 51 7d 1c
 10     d4 24 77 3a ba 59 0a 5f  02 01 00 34 4c 49 4f 2d
 20     4f 52 47 00 46 49 4c 45  49 4f 3a 33 63 64 35 31
 30     37 64 31 2d 63 64 34 32  2d 34 37 37 33 2d 61 62
 40     61 35 2d 39 30 61 35 66  39 35 38 37 64 37 30 00
 50     51 94 00 04 00 00 00 01  51 95 00 04 00 00 00 00
 60     01 06 00 04 00 00 00 00  53 98 00 48 69 71 6e 2e
 70     32 30 31 33 2d 30 33 2e  64 65 2e 63 61 6d 70 75
 80     73 76 6c 2e 76 31 30 31  2e 73 74 6f 72 61 67 65
 90     3a 65 73 78 2d 30 31 2e  76 31 30 31 2e 63 61 6d
 a0     70 75 73 76 6c 2e 64 65  2c 74 2c 30 78 30 30 30
 b0     31 00 00 00
    Desc 0: assoc 0 desig 3 len 16
    designator type: 3,  code set: 1
      0x60014053cd517d1cd424773aba590a5f
    Receive copy results [sa: operating parameters] cmd: 84 03 00 00 00 00 00 00 00 00 00 00 01 00 00 00

Output receive copy operating parameters response in hex:
 00     00 00 00 2a 01 00 00 00  00 02 00 01 00 00 04 00
 10     10 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 01 01 09 09 09  00 00
 >> Report operating parameters, output [/dev/sg2]:
    Support No List IDentifier (SNLID): 1
    Maximum target descriptor count: 2
    Maximum segment descriptor count: 1
    Maximum descriptor list length: 1024
    Maximum segment length: 268435456
    Maximum inline data length: 0
    Held data limit: 0 (list_id_usage: 2)
    Maximum stream device transfer size: 0
    Maximum concurrent copies: 1
    Data segment granularity: 512 bytes
    Inline data granularity: 512 bytes
    Held data granularity: 512 bytes
    Implemented descriptor list:
        Copy Block to Block device
        Identification target descriptor
  >> using VPD identification for destination /dev/sg2
    inquiry cdb: 12 01 83 00 04 00
    inquiry cdb: 12 01 83 00 b4 00
Output inquiry VPD page 0x83 (di) response in hex:
 00     00 83 00 b0 01 03 00 10  60 01 40 53 6a e0 6a a9
 10     bc 14 a7 09 ed 7a a7 41  02 01 00 34 4c 49 4f 2d
 20     4f 52 47 00 46 49 4c 45  49 4f 3a 33 36 61 65 30
 30     36 61 61 2d 39 62 63 31  2d 34 61 37 30 2d 39 65
 40     64 37 2d 61 61 37 34 31  33 66 62 62 30 32 63 00
 50     51 94 00 04 00 00 00 01  51 95 00 04 00 00 00 00
 60     01 06 00 04 00 00 00 00  53 98 00 48 69 71 6e 2e
 70     32 30 31 33 2d 30 33 2e  64 65 2e 63 61 6d 70 75
 80     73 76 6c 2e 76 31 30 31  2e 73 74 6f 72 61 67 65
 90     3a 65 73 78 2d 30 31 2e  76 31 30 31 2e 63 61 6d
 a0     70 75 73 76 6c 2e 64 65  2c 74 2c 30 78 30 30 30
 b0     31 00 00 00
    Desc 0: assoc 0 desig 3 len 16
    designator type: 3,  code set: 1
      0x600140536ae06aa9bc14a709ed7aa741
do_xcopy: xcopy->/dev/sg3 will use ibpt=32768, obpt=262144
    Extended copy (LID1) cmd: 83 00 00 00 00 00 00 00 00 00 00 00 00 6c 00 00
Extended copy (LID1):  Fixed format, current;  Sense key: Not Ready
 Additional sense: Logical unit communication failure
  remaining block count=25600
0+0 records in
0+0 records out
0 xcopy commands done
time to transfer data: 0.013578 secs
Early termination, some error occurred

Oct 24 10:16:57 node-62 kernel: [  209.818291] XCOPY 0xe4: RELATIVE INITIATOR PORT IDENTIFIER: 0
Oct 24 10:16:57 node-62 kernel: [  209.818294] XCOPY 0xe4: desig_len: 16
Oct 24 10:16:57 node-62 kernel: [  209.818297] XCOPY 0xe4: Set xop->src_dev ffff881023730000 from source received xop
Oct 24 10:16:57 node-62 kernel: [  209.818299] XCOPY 0xe4: RELATIVE INITIATOR PORT IDENTIFIER: 0
Oct 24 10:16:57 node-62 kernel: [  209.818301] XCOPY 0xe4: desig_len: 16
Oct 24 10:16:57 node-62 kernel: [  209.818307] XCOPY 0xe4: Setting xop->dst_dev: ffff881021f6e000 from located se_dev
Oct 24 10:16:57 node-62 kernel: [  209.818334] Called configfs_depend_item for subsys: ffffffffa04772c0 se_dev: ffff881021f6e000 se_dev->se_dev_group: ffff881021f6e4b0
Oct 24 10:16:57 node-62 kernel: [  209.818338] XCOPY TGT desc: Source dev: ffff881023730000 NAA IEEE WWN: 0x60014053cd517d1cd424773aba590a5f
Oct 24 10:16:57 node-62 kernel: [  209.818341] XCOPY TGT desc: Dest dev: ffff881021f6e000 NAA IEEE WWN: 0x600140536ae06aa9bc14a709ed7aa741
Oct 24 10:16:57 node-62 kernel: [  209.818344] XCOPY: Non matching src_dev block_size: 4096 + dst_dev block_size: 512 currently unsupported
Oct 24 10:16:57 node-62 kernel: [  209.827912] Calling configfs_undepend_item for subsys: ffffffffa04772c0 remote_dev: ffff881021f6e000 remote_dev->dev_group: ffff881021f6e4b0
Oct 24 10:16:57 node-62 kernel: [  209.827917] -----[ Storage Engine Exception for cmd: ffff8810368fd850 ITT: 0x00000003 CDB: 0x83
Oct 24 10:16:57 node-62 kernel: [  209.827920] -----[ i_state: 6 t_state: 5 sense_reason: 10
Oct 24 10:16:57 node-62 kernel: [  209.827923] -----[ CMD_T_ACTIVE: 1 CMD_T_STOP: 0 CMD_T_SENT: 0

Go ahead and push it upstream.

Cheers,
        Thomas
--
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




[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