Re: Disable specific LUN on a SCSI bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Lorenzo Quatrini wrote:
> Hi all,
> do you know if there is a way at boot time do disable specific LUN's on a
> SCSI
> bus of a particular controller?

What do you need to do this for?

How about just echoing the command to /proc/scsi/scsi

echo "scsi remove-single-device X X X X" >/proc/scsi/scsi

get the values for the various X's from /proc/scsi/scsi e.g.
Host: scsi0 Channel: 01 Id: 00 Lun: 00
  Vendor: MegaRAID Model: LD 0 RAID1   69G Rev: 521S
  Type:   Direct-Access                    ANSI SCSI revision: 02

would be 0 1 0 0

nate


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux