From: Michael Behrens (behrens_at_prostep.com)
Date: Thu Jan 27 2005 - 12:41:57 CET
Message-ID: <41F8D385.80900@prostep.com> Date: Thu, 27 Jan 2005 12:41:57 +0100 From: Michael Behrens <behrens@prostep.com> Subject: Re: [suse-sles-e] Qlogic Host Bus Adapters
frank.hornung@stihl.de wrote:
> Hy all,
>
> thanks for your answers, i tried your suggestions.
> This is how it works for Suse Prof 8.2 / SLES 8 SP3 / SLES 9 SP1.
>
> For some reason i had to run the SANsurfer FC HBA Manager for Linux (32bit)
> (you can get it from qlogic's website) before any LUN's (new SAN-Disks)
> could be detected at runtime.
> SANsurfer ask for a initial configuration for each adapter.
>
> then type
> echo "scsi-qlascan" > /proc/scsi/qla2xxx/0
> to rescan the fibrechannel bus.
> (at Suse 8.2 and SLES 8 the directory name is qla2300 instead qla2xxx)
>
> now the Qlogic Adapter has recogniced the new disks which can be verified
> with
>
> cat /proc/scsi/qla2xxx/0
>
> SCSI LUN Information:
> (Id:Lun) * - indicates lun is not registered with the OS.
> ( 0: 0): Total reqs 0, Pending reqs 0, flags 0x0*, 0:0:81 00
>
> -> the last line indicates the new disk found
>
> next step is to make the disks visible to the OS (scsi-layer)
> q20ap1:/proc/scsi # echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
>
> the last step can also be accomplished by using /bin/rescan-scsi-bus.sh
> script which is shipped with the "scsi" RPM-Package.
> -> it only detects all new disks with additional command-line parameters
> (e.g. -l -w -c)
>
> all disks should now be visible, for example by typing
>
> cat /proc/partitions
>
> regards
> Frank
>
Hallo Frank,
I'm working on a similar problem on SLES9 (Dell 1850 hardware).
I discovered the "fibretools" package from HP after some googling yesterday:
It contains some shell scripts like "probe-luns", "hp-rescan", "lssd",
"lssg", which might be useful for you too.
E.g. after a "hp-rescan" new vdisks/luns are ready to use.
I don't use SANsurfer because I can't get 'qlremote' running.
Also I discovered "blkid" from the rpm "e2fsprogs-1.34-115.3", which
display block devices along with their filesystem labels and uuids.
Now I'm looking for a solution to tell Linux that a vdisk's size was
grown on the SAN.
Looks like it can be done like this:
- resize vdisk on SAN
- umount <dev>
- blockdev --rereadpt <dev>
- cfdisk <dev> # delete existing Partition and create new, this
does no # harm to the fs if the first cylinder stays the same
- resize_reiserfs <dev> # fs is resized to the new size
- mount <LABEL>
Do you know a solution without umount of the fs?
Which filesystem (reiserfs, xfs, whateverfs) do you use on the vdisks?
-- Viele Grüße ------------------------------------------------------------------------ Michael Behrens --------------------------------------------------------------------- To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Thu Jan 27 2005 - 12:43:49 CET