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


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to resize filesystem by resizing the LUN without impact to applications.?
# 1  
Old 07-05-2013
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.
# 2  
Old 07-07-2013
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 ...
# 3  
Old 07-08-2013
I realize that should have worded my question better. I was thinking only of resizing larger.
# 4  
Old 07-08-2013
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.
# 5  
Old 07-08-2013
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
# 6  
Old 07-08-2013
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.
---
# 7  
Old 07-08-2013
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Resize Lun

Good afternoon! Help with a solution I have AIX 7.1 works through vios I expanded Lun that it is necessary to make that aix saw this change and to expand the section lvm Sorry for my English (1 Reply)
Discussion started by: iformats
1 Replies

2. Solaris

Resizing the Root Filesystem

Is it possible to increase the root filesystem size without reboot ?? (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

3. Red Hat

Creating filesystem on new LUN

I'm new to linux and need information on how do I create a filesytem on a dedicated on LUN for RHEL 4 and 5? I want the filesystem to be a ext3 ---------- Post updated at 10:00 AM ---------- Previous update was at 08:56 AM ---------- Found the answer. This thread can be closed. (1 Reply)
Discussion started by: soupbone38
1 Replies

4. UNIX for Dummies Questions & Answers

resize a filesystem in solaris 10

i am facing a problem, i would like to resize a file system called /pcard04 i am not useing any voulme manager and we have a NETAPP center storge. what i did is root@cms-dev # df -h | grep /pcard04 /dev/dsk/c4t60A9800043346C35636F2D6D4F354743d0s0 5.2G 4.0G 1.0G 80% /pcard04 then... (1 Reply)
Discussion started by: q8devilish
1 Replies

5. AIX

Dynamic LUN resize

Anyone know how to resize a LUN (if SAN disk array has increased the LUN size) and have AIX LVM know about it? Or is it automatic? Equivalent vxvm command is something like: vxdisk resize size= (3 Replies)
Discussion started by: apra143
3 Replies

6. SuSE

Resize Root Filesystem in SUSE Linux

Hello Experts, I am very new to unix environment. Root filesystem in one of our Linux boxes has almost reached 100%. is there a procedure/ way to resize the root filesystem. ****************************************************** ld8331:/ # df -h|more Filesystem Size Used... (2 Replies)
Discussion started by: ashok1784
2 Replies

7. Solaris

Netapp filer LUN Resize. Commands to run on Solaris afterwards.

Hi, I need to increase a veritas filesystem I have currently mounted on a Solaris 10 server. We can resize the LUN on the NetApp filer no problem. What I need to know is what do I do next on the Solaris 10 server I have so that it will see the increase in size. Do I run 'devfsadm' to... (3 Replies)
Discussion started by: gwhelan
3 Replies

8. Solaris

Making filesystem on presented lun

Hi, I am working on SunOS perlrate 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5120. The server has an LSISAS3801E HBA card installed and is connected to a StorageTek 2530 array. I have made a volume on arrary using Common Array Manager. I can see the volume on server: ... (2 Replies)
Discussion started by: seanban
2 Replies

9. Solaris

VxVM filesystem resize

This is actually a VxVM question. I have a volume/filesystem spread over 4*146G disks. Now I want to shrink the filesystem - which I can do using vxresize. However, I want to shrink so that two of the four disks that the filesystem occupies are removed from the volume. Can I do that? (3 Replies)
Discussion started by: blowtorch
3 Replies

10. AIX

Filesystem resize (AIX 5.3)

Hi.. I have to resize a partition(filesystem). I mean reduce the size one particular partition and increase the size of another. What should I do?? Pls help Bala (5 Replies)
Discussion started by: balaji_prk
5 Replies
Login or Register to Ask a Question