HPE EVA Storage
1748074 Members
5295 Online
108758 Solutions
New Discussion юеВ

Re: How to expand drive space on RHEL 4?

 
Boaz Bezborodko
Occasional Advisor

How to expand drive space on RHEL 4?

I'm using an ML 370 G2 and have successfully replaced the 5 73GB drives in a RAID 0+1 array. Now I want to make this available and recognizable by the OS. (Actually I am using Centos 4, not RHEL 4.)

What is the process to properly go about doing this?
Some further information:
I am using LVM for the current setup with an ext2 filesystem.

Thanks in advance
9 REPLIES 9
Alzhy
Honored Contributor

Re: How to expand drive space on RHEL 4?

You can use pvresize.

If your enllarged RAID system is say /dev/sdb1 and it is used as a physical volume by an LVM VG - then pvresize should do the trick.

Prior though -- make sure the OS recognizes /dev/sdb is at its correct enlarged size (do a scsi scan and check via fdisk)

Cheers!
Hakuna Matata.
Boaz Bezborodko
Occasional Advisor

Re: How to expand drive space on RHEL 4?

>>Prior though -- make sure the OS recognizes /dev/sdb is at its correct enlarged size (do a scsi scan and check via fdisk)

How do I do a rescan? (fdisk doesn't recognize the extra space)
Alzhy
Honored Contributor

Re: How to expand drive space on RHEL 4?

echo "- - -" > /sys/class/scsi_host/host0/scan

if the disk size is increased.. then fdisk to enlarge the partition and do the pvresize thing.

Caveat! Make sure pvresize is supported in RHEL 4... man pvresize
Hakuna Matata.
Boaz Bezborodko
Occasional Advisor

Re: How to expand drive space on RHEL 4?

>>echo "- - -" > /sys/class/scsi_host/host0/scan

>>if the disk size is increased.. then fdisk to enlarge the partition and do the pvresize thing.

It didn't find the additional space.

Am I going to have to reboot?
Alzhy
Honored Contributor

Re: How to expand drive space on RHEL 4?

I guess so.

Or RHEL 4 does not support online disk/lun ersizing or the Smart Array dose not imediately communicate the geometry chanegs to the OS.

The procedure works with SAN Luns though and on RHEL 5.X
Hakuna Matata.
Alzhy
Honored Contributor

Re: How to expand drive space on RHEL 4?

Awesome... glad to be of some Assistance.
Hakuna Matata.
TarunJain
Respected Contributor

Re: How to expand drive space on RHEL 4?

That was really nice information.

Broaz,
I think you should award some points for this information

I am an HPE Employee

Accept or Kudo
src="/html/assets/hpe_banner_SME_signature.p ng">

Alzhy
Honored Contributor

Re: How to expand drive space on RHEL 4?

Boaz. thanks.

I did not actually catch your post mortem comment:

"I used Webmin to create the 'Linux LVM' partition "

That to me indicates you did not opt to use fdisk to extend the partition and use pvresize to enlarge the underlying existing PV... Glad it works though.

Also, that SCSI scan -- it really should have worked. maybe your RAID controller is not host0? Or maybe the RAID controller is not on the path I posted?

EIther way -- kool that it works...

Hakuna Matata.
Boaz Bezborodko
Occasional Advisor

Re: How to expand drive space on RHEL 4?

>>That to me indicates you did not opt to use fdisk to extend the partition and use pvresize to enlarge the underlying existing PV... Glad it works though.

Turns out that it didn't work. I would still have to do some other tasks to add the group.

I decided to try pvresize instead, but first I need help in how to use fdisk to expand the partition.

>>Also, that SCSI scan -- it really should have worked. maybe your RAID controller is not host0? Or maybe the RAID controller is not on the path I posted?

I have the volume set up on a SmartArray 5300 that I believe is located at host1. Either way it didn't work there either.