Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932116AbZGPL5G (ORCPT ); Thu, 16 Jul 2009 07:57:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755312AbZGPL5F (ORCPT ); Thu, 16 Jul 2009 07:57:05 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:34636 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755281AbZGPL5E (ORCPT ); Thu, 16 Jul 2009 07:57:04 -0400 Date: Thu, 16 Jul 2009 05:57:03 -0600 From: Matthew Wilcox To: david@lang.hm Cc: linux-kernel , linux-scsi@vger.kernel.org Subject: Re: deterministic scsi order with async scan Message-ID: <20090716115703.GQ24310@parisc-linux.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1890 Lines: 43 On Wed, Jul 15, 2009 at 06:09:22PM -0700, david@lang.hm wrote: > is there any way to get deterministic device ordering with scsi async > scanning? > > currently (2.6.30) it seems that the various scsi busses are loaded in > the order that they are detected, which can vary from boot to boot > depending on how long it takes for the card to initialize. I think you're confused. The async scsi scanning was designed to _not_ move devices around randomly. There are other asynchronous schemes in the kernel, some of which were not designed with the same care. The SCSI async scan can't do much about it if the busses are detected in a different order. > would it be possible to detect the cards/drives, but not register them > until all the detection is complete so that they can be registered in a > deterministic order? That's exactly how the scsi async scanning works. > having two drives on two different controllers swap positions from boot > to boot makes it very painful. yes I can make an initrd that fixes this > up in user space by examining each drive and creating links to re-order > them, but this is a lot of work to fix randomization that can be > prevented in the first place. > > David Lang > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/