How to resize filesystem by resizing the LUN without impact to applications.? | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

How to resize filesystem by resizing the LUN without impact to applications.?

Red Hat


Tags
6.4, lvm, resize, rhel

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-05-2013
aenagy aenagy is offline
Registered User
 
Join Date: Jun 2009
Last Activity: 8 July 2013, 9:33 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
How to resize filesystem by resizing the LUN without impact to applications.?

Is it possible to resize a filesystem by resizing the LUN on RHEL 6.4 64-bit with LVM and no impact to running applications? The research I have done so far seems to take the approach of adding a new LUN and then expaning the volume group to the new LUN. I'm looking for an approach that avoids a new LUN this as we virtualize all of our Linux. Not requiring a reboot is very important.

Thanks in advance.
Sponsored Links
    #2  
Old 07-07-2013
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 Posts
you can change the filesystem while it is running but you are asking for a disaster to happen ... essentially, you will be creating files and then messing up the filesystem underneath it ... it would be similar to jumping into a sand pit expecting a fairly solid spot but getting quick sand instead ...

i strongly advise against resizing filesystems while they are running or in use but if you really want to try it -- try testing the process you envision on a "disposable" server with LVM enabled and confirm if the risks involved are acceptable ...
Sponsored Links
    #3  
Old 07-08-2013
aenagy aenagy is offline
Registered User
 
Join Date: Jun 2009
Last Activity: 8 July 2013, 9:33 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I realize that should have worded my question better. I was thinking only of resizing larger.
    #4  
Old 07-08-2013
Peasant's Avatar
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 21 September 2014, 1:38 AM EDT
Posts: 652
Thanks: 17
Thanked 146 Times in 142 Posts
While in principal i agree with Just Ice, it should be doable on RHEL as per documentation.
https://access.redhat.com/site/docum...-logical-units

There is alot of work so be sure to read the entire thing.
Test it on some test environment multiple times.

I would not recommend it tho, since adding a new lun is much safer/easier operation and in these days with tiering and stuff going on on the storage performance wise probably the same.
Sponsored Links
    #5  
Old 07-08-2013
rbatte1 rbatte1 is offline Forum Staff  
Moderator
 
Join Date: Jun 2007
Last Activity: 20 September 2014, 5:15 AM EDT
Location: Lancashire, UK
Posts: 1,813
Thanks: 581
Thanked 308 Times in 277 Posts
It would be simpler to add a LUN to the OS and then add that to the volume group. You can then work with the filesystems cleanly, even if they are mounted. Is there a reason you cannot allocate another LUN to the virtual server? I'm told by our VMWare man that we have a limited number of LUNs he can attach.

If you are trying to keep it simple for neatness, could you add a much larger LUN, add it to the volume group, use pvmove to migrate the data from the existing LUN to the new one and release the old LUN? That way you will end up with the same number of LUNs attached.




Robin
Liverpool/Blackburn
UK
Sponsored Links
    #6  
Old 07-08-2013
rveri rveri is offline
Registered User
 
Join Date: Sep 2009
Last Activity: 8 September 2014, 10:33 AM EDT
Posts: 225
Thanks: 143
Thanked 13 Times in 12 Posts
If you use hp-ux you can resize the lun (i.e increase the lun size), and in os side you can use
Code:
vgmodify

to get the new size reflect and you can extend it, in hp-ux 11.31.
However the standard method and safe method would be :
- adding more lun to the VG.
- extend the vg with the lun/PVs.
- then extend the Filesystem online.(that means without unmounting the FS),

Hope this helps.
---
Sponsored Links
    #7  
Old 07-08-2013
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
 
Join Date: Mar 2005
Last Activity: 20 September 2013, 10:59 AM EDT
Location: Philadelphia metro
Posts: 958
Thanks: 3
Thanked 66 Times in 59 Posts
there never was a question about being able to resize a filesystem while it is running ... given that a reboot is to be avoided as much as possible, i am assuming that the processes in question are hyper-critical ...

so the issue is more -- what are the consequences of a botched process and can the company afford it? or put in another way, can you or your manager afford the risks to production?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Resize Lun iformats AIX 1 02-04-2013 02:33 PM
Resizing the Root Filesystem gowthamakanthan Solaris 4 05-03-2010 01:56 AM
resize a filesystem in solaris 10 q8devilish UNIX for Dummies Questions & Answers 1 06-16-2009 02:47 PM
Dynamic LUN resize apra143 AIX 3 06-04-2009 04:30 PM
Netapp filer LUN Resize. Commands to run on Solaris afterwards. gwhelan Solaris 3 08-07-2008 01:40 PM



All times are GMT -4. The time now is 04:09 PM.