dynamic resize of LUNs

Barry Brimer lists at brimer.org
Tue Oct 9 03:53:06 UTC 2007


One other thing to throw in .. I have been very impressed with the gparted 
LiveCD .. you boot your machine off of this live cd and you can 
repartition/reformat/move partitions, etc.  It is really a frontend for 
parted, but it has a nice simple clean interface and works well .. check 
it out at <http://gparted.sourceforge.net/livecd.php>

On Tue, 9 Oct 2007, Holder, Bill wrote:

> Thanks mate,
>
> 	I'm about to organise some test space and I'll try your method.
>
> /B
>
>
> -----Original Message-----
> From: redhat-sysadmin-list-bounces at redhat.com
> [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Barry
> Brimer
> Sent: Tuesday, 9 October 2007 1:29 PM
> To: redhat-sysadmin-list at redhat.com
> Subject: RE: dynamic resize of LUNs
>
> resize2fs is the tool that you would use to expand the filesystem.
> First, we need to expand the partition that the filesystem lives on.
>
> WARNING:  I have done exactly this with 100% success on multiple RHEL 4
> machines.  I have never tried it on RHEL 5.
>
> 0.  BACK UP YOUR DATA!!!
>
> 1.  Run 'fdisk -l' and note the starting and ending of your partition.
> I will assume that the space being given to you appears at the end of
> your existing partition and that this partition is the last partition on
> the disk.
>
> 2.  Using fdisk, delete the partition.  Create a new partition that
> begins in the same place, but ends at the end of the newly created
> space.
> Use 'w' to write your changes, and save them.  Run partprobe if
> necessary to force the kernel to re-read the partition table if it
> complains that the kernel uses the old partition table.
>
> 3.  Use resize2fs to expand your filesystem (while online) to take up
> the entire partition.
>
> Hope this helps.
>
> Barry
>
> On Tue, 9 Oct 2007, Holder, Bill wrote:
>
>>
>>
>> It's a single ext3 partition with no LVM on a RHEL 5 server. Don't ask
>
>> why I was forced to not use LVM, it's a very Dilbert-esque story.
>>
>>
>> -----Original Message-----
>> From: redhat-sysadmin-list-bounces at redhat.com
>> [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Barry
>> Brimer
>> Sent: Tuesday, 9 October 2007 1:10 PM
>> To: redhat-sysadmin-list at redhat.com
>> Subject: Re: dynamic resize of LUNs
>>
>>
>>
>> On Tue, 9 Oct 2007, Holder, Bill wrote:
>>
>>> Hi all,
>>>
>>>    I'm hoping someone might be able to help me get this to work
>>> properly...
>>>
>>>    Linux server with Qlogic HBA cards, has a 50gig LUN presented to
>>> it, with a single ext3 filesystem.
>>>
>>>    SAN admin has added another 50 gig to the LUN, and the server sees
>
>>> a 100 gig LUN.
>>>
>>>    Problem is, the filesystem is now corrupt.
>>>
>>>    I've tried rebuilding the devices and letting kpartx do it's
>>> thing,
>>
>>> but the existing filesystem always dies.
>>>
>>>
>>>    Anyone know a good way to get this working, or am I screwed?
>>
>> What version of RHEL are you using?  What filesystem is on it ext2/3,
>> xfs, gfs, vxfs .. etc?  Are you using any LVM?
>>
>> --
>> redhat-sysadmin-list mailing list
>> redhat-sysadmin-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>>
>> **********************************************************************
>> * The information in this e-mail together with any attachments is
>> intended only for the person or entity to which it is addressed and
>> may contain confidential and/or privileged material.
>> Any form of review, disclosure, modification, distribution and/or
>> publication of this e-mail message is prohibited.
>> If you have received this message in error, you are asked to inform
>> the sender as quickly as possible and delete this message and any
>> copies of this message from your computer and/or your computer system
>> network.
>> Any attachments should be checked for viruses by you, before being
> opened. SunWater accepts no responsibility for an attachment that
> contains a virus.
>> **********************************************************************
>> *
>>
>> --
>> redhat-sysadmin-list mailing list
>> redhat-sysadmin-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>>
>>
>>
>>
>
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>
> ***********************************************************************
> The information in this e-mail together with any attachments is
> intended only for the person or entity to which it is addressed
> and may contain confidential and/or privileged material.
> Any form of review, disclosure, modification, distribution
> and/or publication of this e-mail message is prohibited.
> If you have received this message in error, you are asked to
> inform the sender as quickly as possible and delete this message
> and any copies of this message from your computer and/or your
> computer system network.
> Any attachments should be checked for viruses by you, before being opened. SunWater accepts no responsibility for an attachment that contains a virus.
> ***********************************************************************
>
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>
> !DSPAM:470af9e6134777795218147!
>
>




More information about the redhat-sysadmin-list mailing list