System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to rescan scsi disk linux and P400 controller

 
Yanick Quirion
Regular Advisor

How to rescan scsi disk linux and P400 controller

Dear all,

I have a simple question, but I was unable to find the right answer yet.

I have an DL380G5 running ESX server 3.5. I installed all system management tools and the Array Configuration Utility. When I add a LUn from ACU, I can't see it into my ESX host:

[esx-01]:/root# cat /proc/driver/cciss/cciss0
cciss0: HP Smart Array P400 Controller
Board ID: 0x3234103c
Firmware Version: 4.12
IRQ: 137
Logical drives: 3
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 1
Max # commands on controller since init: 59
Max SG entries since init: 31


cciss/c0d0: 12.58GB RAID 5
cciss/c0d1: 367.00GB RAID ADG
cciss/c0d2: 210.05GB RAID ADG

This is wrong. The current disks configuration is 12.58GB RAID 5 LUN (the first one is correct - this is the OS) and another 75GB RAID 6 LUN.

I downloaded a small tool called cciss_vol_status and this return my the right configuration:

[esx-01]:/root# cciss_vol_status -q /dev/cciss/c0d0
/dev/cciss/c0d0: (Smart Array P400) RAID 5 Volume 0 status: OK.
/dev/cciss/c0d0: (Smart Array P400) RAID 6 Volume 1 status: OK.

If I'm doing a fdisk -l I saw the old configuration for c0d1:

Disk /dev/cciss/c0d1: 367.0 GB, 367002648064 bytes
255 heads, 63 sectors/track, 44618 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

I tried all command like echo "rescan" echo "rescan" > /proc/driver/cciss/cciss0 or echo "scsi scan-new-devices" > /proc/scsi/scsi but it didn't work.

Is somebody can told me how to refresh the cciss controller on ESX or Linux RHEL?

Thank you and best regards,
Yanick

4 REPLIES
Steven E. Protter
Exalted Contributor

Re: How to rescan scsi disk linux and P400 controller

Shalom Yanick,

Normally you reboot the system, which will force a re-read of disk devices.

If you have the PSP pack installed then the rescan utility which you have apparently already tried is your best bet.

Perhaps the Array Configuration Utility(ACU) is a way to get this done without system book.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jimmy Vance
HPE Pro

Re: How to rescan scsi disk linux and P400 controller

I think the correct syntax for the 'echo' command is

echo "rescan" > /proc/driver/cciss/cciss0/1

Another script you can try is called rescan-scsi-bus.sh. This script is included in SuSE linux.

http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh-1.25

Hope this helps



__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Yanick Quirion
Regular Advisor

Re: How to rescan scsi disk linux and P400 controller

Dear Jimmy,

Thanks for your answer, but it seems the this script doesn't work with cciss device driver. This driver doesn't provide any information into /proc/scsi/scsi, on which the script is based. Also, it seems looking for /sys filesystem, which doesn't exist into ESX server based on RHEL 3 and kernel 2.4.

Thank you anyway for your help!

Regards,
Yanick
Yanick Quirion
Regular Advisor

Re: How to rescan scsi disk linux and P400 controller

Dear Jimmy,

Thanks for your answer, but it seems that this script doesn't work with cciss device driver. This driver doesn't provide any information into /proc/scsi/scsi, on which the script is based. Also, it seems looking for /sys filesystem, which doesn't exist into ESX server based on RHEL 3 and kernel 2.4.

Thank you anyway for your help!

Regards,
Yanick