System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Resizing online Smart Array logical drive with Debian

SOLVED
Go to solution
François Brugère
Frequent Advisor

Resizing online Smart Array logical drive with Debian

Hello All,

On one hp Proliant DL360G3 running Debian Etch, I replaced online the two mirrored 72gb disks by two others of 146gb. After waiting for the complete rebuild of the mirror, I used the command "hpacucli ctrl slot=0 ld 1 size=max" to resize successfully the logical drive. Now, I would like to take in account the new partition table (with the new size of the disk c0d0) without reboot. Is somebody knows how to do that ? For the moment, the fdisk -l command return the old size.

Thanks in advance for your answers.

Francois.
3 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Resizing online Smart Array logical drive with Debian

Shalom,

You problem is not wanting to reboot.

I think you need to reboot.

Kernel needs to be reloaded.

You can try to edit the partition with fdisk

At close you can tell it to write and the kernel might read it and pick up. Then again, it probably will not.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
François Brugère
Frequent Advisor

Re: Resizing online Smart Array logical drive with Debian

Hello Steven,

You're right.But I think if the device was known as SCSI device it should be possible with a command like hp_rescan. But in this case, it doesn't work :

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Peripherique ou ressource occupe.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

Thanks for your answer.
Heironimus
Honored Contributor

Re: Resizing online Smart Array logical drive with Debian

You can try "partprobe /dev/cciss/c0d0", but I think Linux won't see a change in the size of a whole disk device without a reboot.

The way to do this without a reboot in the future is probably to expand the array and create a new logical drive in the empty space instead of expanding the existing logical drive.