Re: target: problems with Persistent reservations, iscsi

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

 



Nicholas

ALL tests on the disk /dev/sdf have PASSED.
The disk is now ready to be configured for I/O Fencing on node cluster1.

ALL tests on the disk /dev/sdf have PASSED.
The disk is now ready to be configured for I/O Fencing on node cluster2.

i'm happy to announce that lio-4.0 pass all the tests performed by
veritas cluster :)

thanks!

On Fri, Jan 7, 2011 at 4:52 PM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
> On Fri, 2011-01-07 at 11:10 -0800, Nicholas A. Bellinger wrote:
>> On Fri, 2011-01-07 at 15:14 -0300, Gustavo Panizzo wrote:
>> > Hi Nicholas,
>> >
>> > that issue was fixed with your patch. thanks
>> > i've found another issue
>> >
>> > i've attached the dmesg from lio node, it keeps saying
>> >
>> > SPC-3 PR [iSCSI] waiting for pr_res_holders
>> >
>> > and the machine hangs
>> >
>> >
>> > log from the testing machine
>> >
>> > Check to verify there are no reservations on disk /dev/sdf from node
>> > cluster2 ÂPassed
>> > RegisterIgnoreKeys on disk /dev/sdf from node cluster1 ................. Passed
>> > Verify registrations for disk /dev/sdf on node cluster1 ................ Passed
>> > RegisterIgnoreKeys on disk /dev/sdf from node cluster1 ................. Passed
>> > Verify registrations for disk /dev/sdf on node cluster1 ................ Passed
>> > Clear PGR on node cluster1 ............................................. Failed
>> >
>> >
>> > do you want a wireshark capture at this point?
>> >
>>
>> Hi Gustavo,
>>
>> Looking at the latest dmesg, I believe this new issue is specific to the
>>
>> 'REGISTER_AND_IGNORE_EXISTING_KEY: Changed Reservation Key for ...'
>>
>> scenario below with APTPL=0 within core_scsi3_emulate_pro_register():
>>
>> [ Â269.532906] SPC-3 PR [iSCSI] Service Action: REGISTER_AND_IGNORE_EXISTING_KEY Initiator Node: iqn.1994-05.com.redhat.cluster1:7f3715a3da22,i,0x00023d010000
>> [ Â269.547412] SPC-3 PR [iSCSI] registration on Target Port: iqn.2010.ar.com.zumbi:disk0,0x0001
>> [ Â269.555871] SPC-3 PR [iSCSI] for SINGLE TCM Subsystem iblock Object Target Port(s)
>> [ Â269.563978] SPC-3 PR [iSCSI] SA Res Key: 0x4b6579412d2d2d2d PRgeneration: 0x00000007 ÂAPTPL: 0
>> [ Â269.573005] SPC-3 PR: Set APTPL Bit Deactivated for REGISTER
>> [ Â269.990649] SPC-3 PR [iSCSI] REGISTER_AND_IGNORE_EXISTING_KEY: Changed Reservation Key for iqn.1994-05.com.redhat.cluster1:7f3715a3da22 to: 0x4b6579422d2d2d2d PRgeneration: 0x00000008
>> [ Â270.007747] SPC-3 PR: Set APTPL Bit Deactivated for REGISTER
>> [ Â270.453160] SPC-3 PR [iSCSI] waiting for pr_res_holders
>> [ Â270.460294] SPC-3 PR [iSCSI] waiting for pr_res_holders
>> [ Â270.465543] SPC-3 PR [iSCSI] waiting for pr_res_holders
>> [ Â270.471450] SPC-3 PR [iSCSI] waiting for pr_res_holders
>>
>> It appears that we are missing the final call to core_scsi3_put_pr_reg() to
>> drop pr_res_holders reference back to zero before returning. ÂBelow is a quick
>> patch to fix this specific case in core_scsi3_emulate_pro_register(), please
>> re-test and I will try to reproduce and verify the fix on my end shortly.
>>
>
> Hi again Gustavo,
>
> I have been able to reproduce and verify the fix with the patch below.
> This bugfix has been committed and pushed into lio-core-2.6.git/master
> and lio-4.0 and sent out to linux-scsi for inclusion.
>
> Thanks again for your bug report(s), and please let me know if you run
> into any further issues against the Vertias PR logic.
>
> --nab
>
>
>> diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
>> index 6b275bb..c858f20 100644
>> --- a/drivers/target/target_core_pr.c
>> +++ b/drivers/target/target_core_pr.c
>> @@ -2327,6 +2327,7 @@ static int core_scsi3_emulate_pro_register(
>> Â Â Â Â Â Â Â Â Â Â Â Â if (!(aptpl)) {
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â pr_tmpl->pr_aptpl_active = 0;
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â core_scsi3_update_and_write_aptpl(dev, NULL, 0);
>> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â core_scsi3_put_pr_reg(pr_reg);
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â printk("SPC-3 PR: Set APTPL Bit Deactivated"
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â " for REGISTER\n");
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â return 0;
>>
>>
>>
>> --
>> 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
>
>
--
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