All of lore.kernel.org
 help / color / mirror / Atom feed
* Online disk size change and Linux
@ 2010-01-19 15:42 Daniel Olops
  2010-01-19 16:13 ` Mike Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Daniel Olops @ 2010-01-19 15:42 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 455 bytes --]

Sorry if this is off-topic... but if anyone could help, it'd be good.

Is Linux (more specifically Red Hat EL 5.4) able to recognize _disk_ size
changes online? We have some HP servers with QLogic HBAs connected to an EVA
4000 Storage, with multipathing properly set up. These disks can be resized
online, but only after a reboot that RHEL recognizes the change. I've been
trying to find any information about it, but to no avail.

Regards,

Daniel Olops

[-- Attachment #1.2: Type: text/html, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Online disk size change and Linux
  2010-01-19 15:42 Online disk size change and Linux Daniel Olops
@ 2010-01-19 16:13 ` Mike Anderson
  2010-01-19 16:17 ` Lars Ellenberg
  2010-01-19 20:08 ` Pasi Kärkkäinen
  2 siblings, 0 replies; 5+ messages in thread
From: Mike Anderson @ 2010-01-19 16:13 UTC (permalink / raw)
  To: device-mapper development

Daniel Olops <daniel@olops.eti.br> wrote:
>    Sorry if this is off-topic... but if anyone could help, it'd be good.
> 
>    Is Linux (more specifically Red Hat EL 5.4) able to recognize _disk_ size
>    changes online? We have some HP servers with QLogic HBAs connected to an
>    EVA 4000 Storage, with multipathing properly set up. These disks can be
>    resized online, but only after a reboot that RHEL recognizes the change.
>    I've been trying to find any information about it, but to no avail.
> 

The steps listed at the urls below are manual steps to resize. Do the
steps listed at either of the urls below address your needs?

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/DM_Multipath/MPIO_admin-troubleshoot.html#online_device_resize

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/Online_Storage_Reconfiguration_Guide/index.html

-andmike
--
Michael Anderson
andmike@linux.vnet.ibm.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Online disk size change and Linux
  2010-01-19 15:42 Online disk size change and Linux Daniel Olops
  2010-01-19 16:13 ` Mike Anderson
@ 2010-01-19 16:17 ` Lars Ellenberg
  2010-01-19 20:08 ` Pasi Kärkkäinen
  2 siblings, 0 replies; 5+ messages in thread
From: Lars Ellenberg @ 2010-01-19 16:17 UTC (permalink / raw)
  To: dm-devel

On Tue, Jan 19, 2010 at 01:42:37PM -0200, Daniel Olops wrote:
> Sorry if this is off-topic... but if anyone could help, it'd be good.
> 
> Is Linux (more specifically Red Hat EL 5.4) able to recognize _disk_ size
> changes online? We have some HP servers with QLogic HBAs connected to an EVA
> 4000 Storage, with multipathing properly set up. These disks can be resized
> online, but only after a reboot that RHEL recognizes the change. I've been
> trying to find any information about it, but to no avail.

If your multipathing is set up properly, as you say,
you should have two "scsi" devices presented, right?

You should be able to avoid the reboot just fine.

We did this some time back on a bunch of virtualization hosts,
using a DRBD+iSCSI cluster as storage backend.

IIRC, we had some problems with (certain firmware versions of)
the QLA properly recognizing deleted luns, or re-added luns after first
deleting some others.  I'm sure firmware and driver have improved since,
so that should all be fixed.

But resizing existing luns was not much trouble,
and has been scripted roughly like this, iirc:

You could try removing one path from dm,
so the scsi dev becomes unused,
echo 1 > /sys/block/sdX/device/rescan
and see what happens in dmesg,
and to the values in /proc/partitions.

you could also delete (echo 1 > .../delete,
or the old echo scsi remove-single-device thing),
then rescan the bus to re-detect the device.

You may even need to remove it from the qlogic hba,
then re-add it again there, possibly depending on
the firmware version.

question is: can you then re-add differing (in size)
"views" (paths) of the "same" device together with dm
multipath, without first taking that dm target down?

Regarding that, my memory is somewhat fuzzy.
So this approach may not be completely "online",
you may have to umount and down the respective dm targets,
then do the scsi (delete and ?) rescan.
Or maybe you need to suspend the dm targets,
then rescan the scsi devices,
then re-attach the multipath targets later.

Something along that way. Sorry that I'm not more specific,
but it has been a while...

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Online disk size change and Linux
  2010-01-19 15:42 Online disk size change and Linux Daniel Olops
  2010-01-19 16:13 ` Mike Anderson
  2010-01-19 16:17 ` Lars Ellenberg
@ 2010-01-19 20:08 ` Pasi Kärkkäinen
  2010-01-20 18:46   ` Daniel Olops
  2 siblings, 1 reply; 5+ messages in thread
From: Pasi Kärkkäinen @ 2010-01-19 20:08 UTC (permalink / raw)
  To: device-mapper development

On Tue, Jan 19, 2010 at 01:42:37PM -0200, Daniel Olops wrote:
>    Sorry if this is off-topic... but if anyone could help, it'd be good.
> 
>    Is Linux (more specifically Red Hat EL 5.4) able to recognize _disk_ size
>    changes online? We have some HP servers with QLogic HBAs connected to an
>    EVA 4000 Storage, with multipathing properly set up. These disks can be
>    resized online, but only after a reboot that RHEL recognizes the change.
>    I've been trying to find any information about it, but to no avail.
> 

I've done iSCSI LUN online resizing using Equallogic storage arrays.

See: http://pasik.reaktio.net/rhel5-online-iscsi-resize-test.txt

-- Pasi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Online disk size change and Linux
  2010-01-19 20:08 ` Pasi Kärkkäinen
@ 2010-01-20 18:46   ` Daniel Olops
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Olops @ 2010-01-20 18:46 UTC (permalink / raw)
  To: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1044 bytes --]

The first link Mike sent did the trick. BTW, great docs, I'll read it later.

Thanks for all for helping!

Regards,

Daniel

On Tue, Jan 19, 2010 at 6:08 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:

> On Tue, Jan 19, 2010 at 01:42:37PM -0200, Daniel Olops wrote:
> >    Sorry if this is off-topic... but if anyone could help, it'd be good.
> >
> >    Is Linux (more specifically Red Hat EL 5.4) able to recognize _disk_
> size
> >    changes online? We have some HP servers with QLogic HBAs connected to
> an
> >    EVA 4000 Storage, with multipathing properly set up. These disks can
> be
> >    resized online, but only after a reboot that RHEL recognizes the
> change.
> >    I've been trying to find any information about it, but to no avail.
> >
>
> I've done iSCSI LUN online resizing using Equallogic storage arrays.
>
> See: http://pasik.reaktio.net/rhel5-online-iscsi-resize-test.txt
>
> -- Pasi
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>

[-- Attachment #1.2: Type: text/html, Size: 1722 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-20 18:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 15:42 Online disk size change and Linux Daniel Olops
2010-01-19 16:13 ` Mike Anderson
2010-01-19 16:17 ` Lars Ellenberg
2010-01-19 20:08 ` Pasi Kärkkäinen
2010-01-20 18:46   ` Daniel Olops

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.