From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268268AbUIGQpg (ORCPT ); Tue, 7 Sep 2004 12:45:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268299AbUIGQmM (ORCPT ); Tue, 7 Sep 2004 12:42:12 -0400 Received: from stat16.steeleye.com ([209.192.50.48]:8426 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S268223AbUIGQk4 (ORCPT ); Tue, 7 Sep 2004 12:40:56 -0400 Subject: Re: clustering and 2.6 From: James Bottomley To: mikem Cc: Linux Kernel , SCSI Mailing List , Jens Axboe In-Reply-To: <20040907161254.GA23325@beardog.cca.cpqcorp.net> References: <20040907161254.GA23325@beardog.cca.cpqcorp.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9) Date: 07 Sep 2004 12:40:50 -0400 Message-Id: <1094575251.1716.113.camel@mulgrave> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2004-09-07 at 12:12, mikem wrote: > All, > I'm having some issues when trying to use some clustering software when > running any 2.6.x kernel. > Basically, there are 2 nodes connected to 1 storage storage enclosure. > When node 1 comes up it reserves the volume(s) in the enclosure. When > node 2 comes up the read capacity fails as expected because of the > SCSI reservation. However, if node 1 fails node 2 breaks the reservation, > but cannot register the disk. At this time we're assuming it's because the read > capacity failed and the size of the disk is zero blocks. > > The SCSI mid-layer sets a bogus size on a device when read capacity fails. > Is this the preferred way to get around this issue? Seems like there > should be a better way. > > Any input is greatly appreciated. The bogus size thing is a holdover from the old days. However, I recently did a test where I forced the size to zero. What I see is that the partition does indeed not get registered (even for the whole disc device). However I can still send a BLKRRPART ioctl to it trigger a rescan and get the correct size. James