Operating System - Linux
1752790 Members
6402 Online
108789 Solutions
New Discussion юеВ

Re: hp_rescan finds device not presentet

 
JesperL
Occasional Contributor

hp_rescan finds device not presentet

Hi,

I use to have a disk prsentet on LUN 20 /dev/sdn. The device has been deletet by "echo "1" > /sys/block/sdn/device/delete". The problem is now that hp_rescan can't refind/registre the the device again. It look like is still is there even if there is nothing present om the LUN. How du i remove this information. I woul like to have the device back on LUN 20.

Thus i think it will help I would prefer not to reboot.

The following command are executed while nothing is presentet on LUN 20. I also tried while is is presentet, but the result is the same.

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

# lspci
13:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
13:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)

# hp_rescan -a
scsi1 00 00 20 Model: Rev: Type: Processor
scsi1 00 01 20 Model: Rev: Type: Processor

# PATH.sh
Device not listet

# lssd
sda 0,0,2,1 HP HSV200 6110
sdb 0,0,2,15 HP HSV200 6110
sdc 0,0,2,16 HP HSV200 6110
sdd 0,0,2,6 HP HSV200 6110
sde 0,0,2,7 HP HSV200 6110
sdf 0,0,2,8 HP HSV200 6110
sdg 0,0,2,9 HP HSV200 6110
sdh 0,0,2,11 HP HSV200 6110
sdi 0,0,2,12 HP HSV200 6110
sdj 0,0,2,4 HP HSV200 6110
sdk 0,0,2,5 HP HSV200 6110
sdl 0,0,2,13 HP HSV200 6110
sdm 0,0,2,14 HP HSV200 6110
sdo 0,0,2,21 HP HSV200 6110

# cat /proc/scsi/sg/devices
0 0 2 20 3 1 16 0 1
0 0 3 20 3 1 16 0 1
1 0 0 20 3 1 16 0 1
1 0 1 20 3 1 16 0 1

# cat /proc/scsi/scsi
Host: scsi0 Channel: 00 Id: 02 Lun: 20
Vendor: Model: Rev:
Type: Processor ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 20
Vendor: Model: Rev:
Type: Processor ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 00 Lun: 20
Vendor: Model: Rev:
Type: Processor ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 01 Lun: 20
Vendor: Model: Rev:
Type: Processor ANSI SCSI revision: 03

Hope someone can help
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: hp_rescan finds device not presentet

Please try what is described in this link:

http://solutions.qlogic.com/KanisaSupportSite/dynamickc.do?externalId=Post-2224043&sliceId=Post-2224043&command=show&forward=threadedKC&kcId=Post-2224043
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: hp_rescan finds device not presentet

Shalom,

Sometimes hp_rescan needs the devices waked up.

I do it with a short dd command that reads the device as listed in fdisk -l

Then for some reason hp_rescan finds the device.

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
JesperL
Occasional Contributor

Re: hp_rescan finds device not presentet

Hi Thanks, Both of you. I ended up booting the server. I made some other changes that reguried a boot. Now i had the change.

I am definitely going to have a look at the commands. So I found some hw to install a new test server.

Found this http://kbase.redhat.com/faq/docs/DOC-3942.pdf , same commands as suggested but better described.
SJO EGGER
Regular Advisor

Re: hp_rescan finds device not presentet

good document JesperL, i wrote my own hp_rescan script with
echo "- - -" > /sys/class/scsi_host/${FST_HOST}/scan
and it work really great.