Skip to contentSkip to conversation

Online disk size change and Linux

DISCUSSION Daniel Olops 4 participants 5 messages Jan 19, 2010 – Jan 20, 2010 Device mapper

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Daniel Olops

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
[email protected]

#2 lore raw
In reply to Daniel Olops
Quoted 7 lines · Daniel Olops

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

Signature · 5 lines
: 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.
#3 lore raw
In reply to Daniel Olops
Quoted 8 lines · Daniel Olops

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

#4 lore raw

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

Thanks for all for helping!

Regards,

Daniel

Quoted 25 lines · Pasi Kärkkäinen
Quoted 3 lines · Daniel Olops

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

Quoted 1 line

changes online? We have some HP servers with QLogic HBAs connected to

an

Quoted 1 line

EVA 4000 Storage, with multipathing properly set up. These disks can

be

Quoted 1 line

resized online, but only after a reboot that RHEL recognizes the

change.

Quoted 2 lines

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
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel