Re: OS does not see resized NetAPP Lun

  • From: Dan Norris <dannorris@xxxxxxxxxxxxx>
  • To: moabrivers@xxxxxxxxx, Oracle L <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 14 Jan 2008 06:58:32 -0800 (PST)

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@xxxxxxxxx>
To: oracle-l@xxxxxxxxxxxxx
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.




Other related posts: