1822142 Members
3963 Online
109640 Solutions
New Discussion юеВ

Scan new Disk device

 
SOLVED
Go to solution
Jack Fan
Regular Advisor

Scan new Disk device

All,

I have a RHEL 3 AS server with HBA card, now I assign a SAN vdisk device to this server and want to create a new mount point on server.

Is't possible to scan new SAN vdisk device and fdisk it without reboot server on RHEL 3 AS? How?

Thanks,
Jack Fan
6 REPLIES 6
Jean-Yves Picard
Trusted Contributor

Re: Scan new Disk device

Hello,

have a cat /proc/scsi/qla2300/0 to see if host see devices.
(you have to replace qla2300 by you actual driver.)

maybe you have something like /opt/hp/hp_fibreutils/hp_rescan ?

Jean-Yves Picard

Ivan Ferreira
Honored Contributor

Re: Scan new Disk device

The command hp_rescan can do that, it's included in the fibreutils package.

You can also try with the rescan-scsi-bus.sh shell script, but normally, hp_rescan is better.

http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Justin_99
Valued Contributor

Re: Scan new Disk device

Have had success using this script.

http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
sathish kannan
Valued Contributor

Re: Scan new Disk device

Hi Jack,

What's your HBA type?

With Qlogic card yes you can but not guranteed with out reboot. The method is almost like reboot means you have to unload the module.


Regards
Sathis
Don't Think too much
Delrish
Trusted Contributor
Solution

Re: Scan new Disk device

First you should do hp_rescan. After this step your Linux will find new unpartition disks (LUNs).
Then you should make required partitions on disks with "fdisk" command.
And finally you should execute partprobe command.
partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table.

Alireza
Jack Fan
Regular Advisor

Re: Scan new Disk device

All,
My problem is solved.
Thanks,

Jack Fan