Re: OS does not see resized NetAPP Lun

From: Brian Lucas <moabrivers_at_gmail.com>
Date: Mon, 14 Jan 2008 10:04:07 -0700
Message-ID: <b604d45b0801140904k1268d6a1i6d76a4a6d6b178ee@mail.gmail.com>


Thanks, Dan. I dug around some more and found this information that I will try after hours tonight because I don't know what its impact on a live system would be.

echo "scsi-qlascan" > /proc/scsi/qla2xxx/1 echo "scsi-qlascan" > /proc/scsi/qla2xxx/2

And then possibly,

echo "---" > /sys/class/scsi_host/host1/scan echo "---" > /sys/class/scsi_host/host2/scan

I will post my results later.

On Jan 14, 2008 7:58 AM, Dan Norris <dannorris_at_dannorris.com> wrote:

> I believe that there are two "layers" that you'll need to deal with here.
> First, the FC layer. I haven't worked with FC on Linux in recent releases,
> but there used to be a rescan-scsi-bus.sh script delivered with some
> drivers to rescan the bus. I believe that's somewhat dependent on the
> card/driver (Emulex or QLogic) you're using. Since you're using QLogic, I
> think that script may be a part of the driver kit, so it may already be on
> your system (sorry, I don't have a system handy to test).
>
> Once that is done (you should see messages in /var/log/messages and
> dmesg), you should see the right size show up in /proc/partitions. After
> that, the partition table still may not be right. For that, I usually use
> "blockdev --rereadpt /dev/sde" (or whatever device) to reread the partition
> table. Once that's done, then you should be able to repartition the drive
> (to extend the partition) and then grow the filesystem on top of that. The
> command for that will depend on your filesystem. I've used resize2fs in the
> past for ext3 filesystems. On OCFS2, tunefs.ocfs2 provides the ability to
> extend the OCFS2 filesystem (tunefs.ocfs2 -S <dev>).
>
> Dan
>
> ----- Original Message ----
> From: Brian Lucas <moabrivers_at_gmail.com>
> To: oracle-l_at_freelists.org
> Sent: Saturday, January 12, 2008 12:51:16 PM
> Subject: OS does not see resized NetAPP Lun
>
> All, I have resized a NetApp FC lun from 20g to 30g, however my Oracle
> Enterprise Linux 5 (IBM x3850s with Qlogic HBAs), doesn't see the lun
> change. When I type "multipath", it still reports the lun as 20g, however
> the QLogic scli utility does see the resized lun as 30g. As such, I'm at a
> loss. How do I get the Linux box to see the resized LUN without rebooting
> or something drastic like that? The lun forms an ASM diskgroup that is low
> on space and I want to increase that diskgroup size by 10g.
>
> Thanks for any and all help.
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jan 14 2008 - 11:04:07 CST

Original text of this message