From: "Kevin Foote" Subject: Re: online disk resizing Date: Thu, 5 Jul 2007 08:56:03 -0400 Message-ID: <5fb0f77b0707050556v70f280bqa8126de952fadcc7@mail.gmail.com> References: <468CE787.6040500@sigmatrans.ru> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0906933449==" Return-path: In-Reply-To: <468CE787.6040500@sigmatrans.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids --===============0906933449== Content-Type: multipart/alternative; boundary="----=_Part_126295_9382667.1183640163096" ------=_Part_126295_9382667.1183640163096 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Alexander Here is what I do (RHEL4u4) I use iscsi over a qlogic HBA but its basically the same.. still "scsi" to RH :-) Oh yea no partitions on my volumes either, It seems cleaner that way. 1. stop access to volume and unmount 2. resize your san volume 3. locate the scsi target number > cat /proc/scsi/qla4xxx/ I find the volume Im interested in via our naming schema .. your milage my very with that. I now have my volume def in scsi terms .. ie 2 0 2 0 or 4. remove and readd the scsi device > echo "scsi remove-single-device 2 0 2 0" > /proc/scsi/scsi > echo "scsi add-single-device 2 0 2 0" > /proc/scsi/scsi 6. at this point I have a new scsi device ie /dev/sdg or such which should reflect the new size via your dmesg ( i usually have a tail -f of /var/log/messages going :-) 7. next run my ext2online to get the FS in sync with the actual size of the volume 8. remount and re access the volume Hope that helps out some .. -- :wq! kevin.foote On 7/5/07, Alexander Benaguev wrote: > > Raayman, Sebastian wrote: > > this is also dependant on the HBA you are using. With a Qlogic adapter > > you can simply send an: > > > > echo scsi-qlascan > > > > to your Qlogic adapter (for example under /proc/scsqi/qla2xxx) > > thanks for attention, guys > > Sebastian, yes, I use qlogic, but, you will laught, I have not > /proc/scsqi/qla2xxx. googling around > shows that: > "as of RHEL4 U3 (and I'd imagine upstream kernel.org kernels) the > 'scsi-qlascan' no longer works > with the qla2xxx driver. The new method is: > > echo 1 > /sys/class/fc_host/host/issue_lip > echo "- - -" > /sys/class/scsi_host/host/scan" but it does not work > for me. > I tried "echo 1 > > /sys/devices/pci0000:00/0000:00:03.0/0000:04:00.0/0000:06:01.0 > /host1/rport-1:0-1/target1:0:1/1:0:1:2/rescan" > too. so, it was much better: dmesg showed me disks with new capacity, but > "fdisk -l" still showing > old capacity;( any thoughts? > > alexander > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ------=_Part_126295_9382667.1183640163096 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Alexander
Here is what I do (RHEL4u4) I use iscsi over a qlogic HBA but its basically the same.. still "scsi" to RH :-)
Oh yea no partitions on my volumes either, It seems cleaner that way.

1. stop access to volume and unmount
2. resize your san volume
3. locate the scsi target number
    > cat /proc/scsi/qla4xxx/<controller>
   I find the volume Im interested in via our naming schema .. your milage my very with that.
   I now have my volume def in scsi terms .. ie 2 0 2 0 or <host> <channel> <scsi id> <lun>
4. remove and readd the scsi device
   > echo "scsi remove-single-device 2 0 2 0" > /proc/scsi/scsi
   > echo "scsi add-single-device 2 0 2 0" > /proc/scsi/scsi
6. at this point I have a new scsi device ie /dev/sdg or such which should reflect the new size via your dmesg
   ( i usually have a tail -f of /var/log/messages going :-)
7. next run my ext2online to get the FS in sync with the actual size of the volume
8. remount and re access the volume

Hope that helps out some ..

--
:wq!
kevin.foote

On 7/5/07, Alexander Benaguev <zul@sigmatrans.ru> wrote:
Raayman, Sebastian wrote:
> this is also dependant on the HBA you are using. With a Qlogic adapter
> you can simply send an:
>
> echo scsi-qlascan
>
> to your Qlogic adapter (for example under /proc/scsqi/qla2xxx)

thanks for attention, guys

Sebastian, yes, I use qlogic, but, you will laught, I have not /proc/scsqi/qla2xxx. googling around
shows that:
"as of RHEL4 U3 (and I'd imagine upstream kernel.org kernels) the 'scsi-qlascan' no longer works
with the qla2xxx driver. The new method is:

echo 1 > /sys/class/fc_host/host<ID>/issue_lip
echo "- - -" > /sys/class/scsi_host/host<ID>/scan" but it does not work for me.
I tried "echo 1 >
/sys/devices/pci0000:00/0000:00:03.0/0000:04:00.0/0000:06:01.0/host1/rport-1:0-1/target1:0:1/1:0:1:2/rescan"
too. so, it was much better: dmesg showed me disks with new capacity, but "fdisk -l" still showing
old capacity;( any thoughts?

alexander

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel



------=_Part_126295_9382667.1183640163096-- --===============0906933449== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0906933449==--