0

Hello I am trying to send an XCOPY request to copy LBA 0x1008 of my device.

[root@dqaj222 ~]# sg_xcopy count=0x1008 if=/dev/sds of=/dev/sdu verbose=2 
id_usage=disable --on_dst=/dev/sdu
sg_xcopy: on-destination if=/dev/sds skip=0 of=/dev/sdu seek=0 count=4104
 >> Input file type: block device , devno 65:32
        open input(sg_io), flags=0x802
 >> Output file type: block device , devno 65:64
        open output(sg_io), flags=0x802
open /dev/block/65:32 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sds: EMC       SYMMETRIX         5977  [pdt=0, 3pc=1]
open /dev/block/65:64 with flags=0x802
    inquiry cdb: 12 00 00 00 24 00
    /dev/sdu: EMC       SYMMETRIX         5977  [pdt=0, 3pc=1]
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
    /dev/sds: number of blocks=293602560 [0x11800500], block size=512
    read capacity (10) cdb: 25 00 00 00 00 00 00 00 00 00
    /dev/sdu: number of blocks=293602560 [0x11800500], block size=512
    Receive copy results [sa: operating parameters] cmd: 84 03 00 00 00 00 00 00 00 00 00 00 01 00 00 00
    Receive copy results [sa: operating parameters]: pass-through requested 256 bytes but got 46 bytes
 >> Receive copy results (report operating parameters):
    Support No List IDentifier (SNLID): 1
    Maximum target descriptor count: 2
    Maximum segment descriptor count: 8
    Maximum descriptor list length: 304
    Maximum segment length: 33554432
    Maximum inline data length: 0
    Held data limit: 0 (list_id_usage: 3)
    Maximum stream device transfer size: 0
    Maximum concurrent copies: 255
    Data segment granularity: 131072 bytes
    Inline data granularity: 1 bytes
    Held data granularity: 1 bytes
    Implemented descriptor list:
        Copy Block to Block device
        Identification target descriptor
  >> using VPD identification for source /dev/sds
    inquiry cdb: 12 01 83 00 04 00
    inquiry cdb: 12 01 83 00 20 00
    designator type: 3,  code set: 1
      0x60000970000197600627533030363543
    Receive copy results [sa: operating parameters] cmd: 84 03 00 00 00 00 00 00 00 00 00 00 01 00 00 00
    Receive copy results [sa: operating parameters]: pass-through requested 256 bytes but got 46 bytes
 >> Receive copy results (report operating parameters):
    Support No List IDentifier (SNLID): 1
    Maximum target descriptor count: 2
    Maximum segment descriptor count: 8
    Maximum descriptor list length: 304
    Maximum segment length: 33554432
    Maximum inline data length: 0
    Held data limit: 0 (list_id_usage: 3)
    Maximum stream device transfer size: 0
    Maximum concurrent copies: 255
    Data segment granularity: 131072 bytes
    Inline data granularity: 1 bytes
    Held data granularity: 1 bytes
    Implemented descriptor list:
        Copy Block to Block device
        Identification target descriptor
  >> using VPD identification for destination /dev/sdu
    inquiry cdb: 12 01 83 00 04 00
    inquiry cdb: 12 01 83 00 20 00
    designator type: 3,  code set: 1
      0x60000970000197600627533030363544
Start of loop, count=4104, bpt=65535, lba_in=0, lba_out=0
sg_xcopy: failed with error 5 (4104 blocks left)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.