lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A5F100E.9000107@panasas.com>
Date:	Thu, 16 Jul 2009 14:33:34 +0300
From:	Boaz Harrosh <bharrosh@...asas.com>
To:	david@...g.hm
CC:	linux-kernel <linux-kernel@...r.kernel.org>,
	linux-scsi@...r.kernel.org
Subject: Re: deterministic scsi order with async scan

On 07/16/2009 04:09 AM, david@...g.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.
> 
> 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?
> 
> 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

It is highly discouraged to setup any kind of system that depends
on device-names for block-devices. mounts have the mount by-label
or mount by-uuid. Any other subsystem should go by /dev/disk/by-id/*
slinks to find a persistent raw block-device. the id is generated
from characteristics inside the disk itself so it will be the same
no matter what host connection or bus it is connected too (almost).

This is because even if the boot order is consistent, the device-name
is so volatile in the life-span of a system. Did I boot with a removable
USB inserted. that camera or printer was on or off, disk was connected
to the other port. Any such change will break things and give you a very
poor user experience.

I would say that "scsi async" is a grate blessing

Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ