How to detect a new disk with red hat advace server 3??
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to detect a new disk with red hat advace server 3??
Hi everybody
I installed RedHat Advance Server 3 Update 3 with kernel 2.4.21-40.ELsmp installed on a HP Lxr8500 Server...
Additionally a connect to it a Disk Array VA 7400 through FiberChannel and i can create LUNs dinamically.
When I reboot the server Linux shows me the device file of this new disk: For example: /dev/sda, /dev/sdb, ..... but i need to reboot... and what happened if i want to create 60 LUNs??? so this is the question:
how can i detect those disks (Luns) without rebooting the server????
Is there an utility that detect and make the device files on the fly in Redhat ?? or i need to install an special free software for this???
This instruction tells the Operationg System to add an SCSI dinamically but instead of adding an Scsi drive i add a LUN... only what i need is Controller (2), Host ID (0), SCSI ID (0) and LUN ID (1)..
The Lun ID is 1 because is the new Lun that I'm going to add...
- I run dmesg to see the results. This is the output:
I download scsidev and probe it.. but when i do an scsidev -v to see want he brings.. it throws the following message
#scsidev -v
scsidev 2.36 2005-08-16
/proc/scsi/scsi extensions not found. Fall back to scanning.
Building list for sg (char dev major 015)
Found /dev/scsi/sgh0-20c0i0l0 (Type 00) on LSI Logic MegaRAID H01.08 254 commands 15 targs 4 chans 7 luns
Findscsidisk: 0 INQUIRY failed for /dev/scsi/sdh0-20c0i0l0 (0-0/008:00000)!
scsidev: Strange: Could not get info from sdh0-20c0i0l0
Found /dev/scsi/sgh3-0c0i0l0 (Type 00) on Emulex LightPulse LP8000 1 Gigabit PCI Fibre Channel Adapter on PCI bus 01 device 20 irq 50
Findscsidisk: 1 INQUIRY failed for /dev/scsi/sdh3-0c0i0l0 (0-0/008:00010)!
scsidev: Strange: Could not get info from sdh3-0c0i0l0
scsidev: What's going on? Dev sdh3-0c0i0l0 is different from sgh3-0c0i0l0
that sounds like the command cannot get the dev type, and when i do: ll /dev/scsi/* this is the output:
brw-rw---- 1 root disk 8, 0 Jul 21 09:16 /dev/scsi/sdh0-20c0i0l0
brw-rw---- 1 root disk 8, 1 Jul 21 09:16 /dev/scsi/sdh0-20c0i0l0p1
brw-rw---- 1 root disk 8, 2 Jul 21 09:16 /dev/scsi/sdh0-20c0i0l0p2
crw-rw---- 1 root disk 21, 0 Jul 21 09:16 /dev/scsi/sgh0-20c0i0l0
crw-rw---- 1 root disk 21, 1 Jul 21 08:19 /dev/scsi/sgh3-0c0i0l0
As you see my operating system is in /dev/scsi/sdh0-20c0i0l0 that's ok... but my Lun is on /dev/scsi/sgh3-0c0i0l0 but doesn't create the block device and i can't use it...
maybe you can help me to use this tool... because i didn't use it before but it seems that i could use it and resolve many problems...
Try using scsidev -s. It will try to print information of the LUNS if available.
Quote:
As you see my operating system is in /dev/scsi/sdh0-20c0i0l0 that's ok... but my Lun is on /dev/scsi/sgh3-0c0i0l0 but doesn't create the block device and i can't use it...
To create the block devices, use scsidev -l. Sometimes, I need to delete all the /dev/scsi entries first, scsidev -f, and then scsidev -l will be issued afterwards.
The first option below worked for me
From the release notes:
@redhat.com /docs/manuals/enterprise/RHEL-4-Manual/release-notes/as-s390/RELEASE-NOTES-U3-s390-en.html
Support for fabric rediscovery through sysfs is now available in Red Hat Enterprise Linux 4 Update 3. For the Qlogic (qla2xxx) and Emulex (lpfc) Fibre Channel HBA drivers, run the following commands to perform redisocvery and rescan for new storage:
In some Fibre Channel configurations, an operating system will automatically detect the addition of a new target device while the system is running. In other configurations, it is necessary to issue the following command to detect a new target device:
echo 1 > /sys/class/fc_host/hostn/issue_lip
Where hostn corresponds to the appropriate adapter.
When a new Logical Unit is created on a particular target, a command such as the following is required to detect and configure it:
echo "b t l" > /sys/class/scsi_host/hostn/scan
Where b is the bus, t is the target, and l is the LUN to be scanned on hostn.
Wild cards can also be used, such as the following example:
echo "- - -" > /sys/class/scsi_host/host2/scan
Note that the device name (such as /dev/sdb) that is assigned when a device is added dynamically while the system is running may be different from the device name assigned the next time the system boots.
hi,
why i submit comand: echo "scsi scan-new-devices" > /proc/scsi/scsi, raised error "bash: echo: write error: Invalid argument"
Have other the way is possible about problem?
Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.