Skip to contentSkip to conversation

online disk resizing

DISCUSSION Alexander Benaguev 3 participants 3 messages Jul 4, 2007 – Jul 5, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

hi, list

I have fc-based SAN which has ability to resizing logical disks online (IBM DS4000). is this a method tell about resizing to host system (centOS 5) without reboot or echo "scsi remove(add)-single-device 0 1 2 3"? I use multipath if this matters. will apprecate any help

alexander

#1 lore raw

I did the same with HP MSA in the past, but without dm involved.

You can use "blockdev --rereadpt <blockdevice>" to make the the kernel recognise the new disk size (geometery). The nasty thing is that you have to stop all I/O to the blocdevice.

Roland Mieslinger

Quoted 22 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alexander Benaguev
Sent: Mittwoch, 4. Juli 2007 19:17
To: [email protected]
Subject: [dm-devel] online disk resizing

hi, list

I have fc-based SAN which has ability to resizing logical disks online (IBM DS4000). is this a method tell about resizing to host system (centOS 5) without reboot or echo "scsi remove(add)-single-device 0 1 2 3"? I use multipath if this matters. will apprecate any help

alexander

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#2 lore raw
Quoted 6 lines · Roland Mieslinger

I did the same with HP MSA in the past, but without dm involved.

You can use "blockdev --rereadpt <blockdevice>" to make the the kernel recognise the new disk size (geometery). The nasty thing is that you have to stop all I/O to the blocdevice.

You've not only to stop all I/O, but also have to make sure that on-one claims the device (ie no open files, not mounted, no device-mapper tables etc.). Otherwise will the kernel reject any size updates.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)