> 在 Sat, 21 Jul 2012 06:31:54 +0800,James Bottomley > <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> 写道: > > > On Fri, 2012-07-20 at 16:24 +0800, gaoqiang wrote: > >> I'm using udev to manage my hard disks. but I'm confusing > >> about the "PATH_ID" > >> > >> gaoqiang@h150:~$/lib/udev/path_id /block/sda > >> ID_PATH=pci-0000:01:00.0-scsi-0:0:0:0 > >> > >> the path_id is about disk or about disk slot ? > > > > Neither: it's pci function and scsi host:channel:target:lun > > > > As far as I can tell, path_id returns are completely useless for > > labelling disks (since host and sometimes target are scan order > > dependent). > > > > James > > > > > > I know the host:channel:target:lun but not deeply. the "lun" is about a > disk, or a disk slot? > I mean,if I take the disk on a slot and plug in a new disk,will the > ID_PATH change,or not ? > > many thanks. > [Jack Wang] It depends on driver implement. Driver base on scsi_transport_sas(like mpt2sas pm8001 isci..)the number always get bigger, but some driver bind the lun number with topology like phy number. -- 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