[CentOS] Setting up persistent LUNs

Tue Feb 1 22:39:25 UTC 2011
Alexander Dalloz <ad+lists at uni-x.org>

Am 01.02.2011 18:38, schrieb Dvorkin, Asya:
> Hello everyone,
> 
> I am trying to setup persistent LUNs and having problems.
> 
> I've been following instructions I found on the web and they refer to editing /etc/scsi_id.config file and adding options=-g line there.  After doing so, I should be able to run scsi_id -g -s /dev/sd* and get proper results.
> 
> I've modified file /etc/scsi_id.config appropriately:
> 
> [root at psrwjmsafs1 etc]# grep options /etc/scsi_id.config 
> vendor="ATA",options=-p 0x80
> options=-g
> 
> but whenever I run 
> scsi_id -g -s /b/sde1  - i get nothing.
> 
> [root at psrwjmsafs1 etc]# df -k |grep sde
> /dev/sde1            1754602560  93383616 1572090328   6% /test
> 
> How come?  Am i missing something?
> 
> Thank you!
> Asya

The proper scsi_id query would be

scsi_id -g -s /block/sde

Alexander