[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] online disk resizing

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 ..


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 >
too. so, it was much better: dmesg showed me disks with new capacity, but "fdisk -l" still showing
old capacity;( any thoughts?


dm-devel mailing list
dm-devel redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]