Re: st driver doesn't seem to grok LTO partitioning

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

 



> On 30.12.2015, at 20.33, Emmanuel Florac <eflorac@xxxxxxxxxxxxxx> wrote:
> 
> Le Wed, 30 Dec 2015 19:54:01 +0200 (EET)
> Kai Makisara <Kai.Makisara@xxxxxxxxxxx> écrivait:
> 
>> I think I found out why it did not work with the default format. At
>> the end of this message you find a new patch that should correct
>> that. There are also other changes:
>> - some changes when specifying the size in the mode page; needed for
>> the IBM 3592 drives but should not change results with LTO
>> - formatting with one partition is done directly with FORMAT MEDIUM if
>>  the drive requires that command
>> - some other bugs fixed
> 
> Hum, I can't seem to be able to go back to 1 partition, or to reformat
> the tape (didn't change it since yesterday), am I missing something?
> 
> Dec 30 19:21:29 shakuhachi kernel: st: Version 20151230, fixed bufsize 32768, s/g segs 256
> Dec 30 19:21:29 shakuhachi kernel: st 7:0:0:0: Attached scsi tape st0
> Dec 30 19:21:29 shakuhachi kernel: st 7:0:0:0: st0: try direct i/o: yes (alignment 512 B)
> 
> ~# mt -f /dev/nst0  mkpartition 0
> 
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Block limits 1 - 16777215 bytes.
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Mode sense. Length 11, medium 0, WBS 10, BLL 8
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Density 5a, tape length: 0, drv buffer: 1
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Block size: 0, buffer size: 4096 (1 blocks).
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Rewinding tape.
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Partition page length is 16 bytes.
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: PP: max 3, add 1, xdp 1, psum 03, pofmetc 4, rec 03, units 09, sizes: 2543 38
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Sending FORMAT MEDIUM
> Dec 30 19:24:41 shakuhachi kernel: st 7:0:0:0: st0: Error: 8000002, cmd: 4 0 0 0 0 0
> Dec 30 19:24:41 shakuhachi kernel: st0: Sense Key : Illegal Request [current] 
> Dec 30 19:24:41 shakuhachi kernel: st0: Add. Sense: Position past beginning of medium

This happens if the position is not at the beginning of partition 0. Could you try
to switch to partition 0:
mt -f /dev/nst0 setpartition 0
mt -f /dev/nst0 status

and the retry partitioning.

> ~# mt -f /dev/nst0  mkpartition 1
> 
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Block limits 1 - 16777215 bytes.
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Mode sense. Length 11, medium 0, WBS 10, BLL 8
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Density 5a, tape length: 0, drv buffer: 1
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Block size: 0, buffer size: 4096 (1 blocks).
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Rewinding tape.
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Partition page length is 16 bytes.
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: PP: max 3, add 1, xdp 1, psum 03, pofmetc 4, rec 03, units 09, sizes: 2543 38
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: psd_cnt 2, max.parts 3, nbr_parts 1
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Formatting tape with two partitions (FDP).
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Sent partition page length is 12 bytes. needs_format: 1
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: PP: max 3, add 1, xdp 4, psum 00, pofmetc 4, rec 03, units 00, sizes: 65535 0
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Error: 8000002, cmd: 15 10 0 0 18 0
> Dec 30 19:26:12 shakuhachi kernel: st0: Sense Key : Illegal Request [current] 
> Dec 30 19:26:12 shakuhachi kernel: st0: Add. Sense: Invalid field in parameter list
> Dec 30 19:26:12 shakuhachi kernel: st 7:0:0:0: st0: Partitioning of tape failed.
> 
I have to recheck what it set into the mode page. It is still not correct in this case.

Kai

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux