LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-02-2014, 02:23 AM   #1
bipinkdas
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat,Trustix,Fedora
Posts: 52

Rep: Reputation: 15
Increase the size of Mounted iscsi Volume in GFS2


Dear All,
I have a cloud environment where 3 KVM hypervisors are clustered using GFS2. A shared ISCSI volume is attached to this cluster with a 100G size. Now I need to increase the size of the shared volume to 150G, I already increased it in Dell Equallogic which is my SAN. How I tell the GFS to increase here ?

I tried the following command as per Doc

gfs2_grow /mounted/volume - But it gives me following error.

Error: The device has grown by less than one Resource Group (RG).
The device grew by 0MB. One RG is 255MB for this file system.


How Can I do, help is appreciated
 
Old 06-03-2014, 04:00 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What you want to do cannot be done in one step because the various storage layers have no way to communicate that their size has changed to the other layers. For increasing the size, you need to work from the disk up to the filesystem skipping the steps that don't apply to you. (To decrease, you would go in the reverse order). I included the command to check the size at each step to make sure it worked.

Code:
rescan the disk(s) to update the size:
   echo 1 > /sys/block/sdX/device/rescan
   cat /sys/block/sdX/size
dm-multipath
   multipathd -k"resize map mpathXX"
   cat /sys/block/dmX/size
md RAID - I have not found a good way to do this.  Here's a slow way:
   for each drive, fail it then add back and resync
   after all are complete grow the array to max size
   cat /proc/mdstat
Physical volume
   pvresize
   pvs
Logical volume
   lvresize
   lvs
filesystem
   now you get to run gfs2_grow
   df
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help how to increase volume size sk_it Linux - Newbie 12 08-11-2013 08:14 PM
I have spce in volume group but it can not increase the size of logical volume anis123 Linux - Newbie 14 04-16-2012 06:23 AM
[SOLVED] Increase the Total Size of LVM Volume Group ? The Unincorporated Man Linux - Server 2 11-06-2011 11:25 PM
Can I increase the size of a physical volume in an lvm group? If so, how? MikeB23930 Fedora 2 07-21-2009 05:38 PM
Increase size of a mounted filesystem rbautch Red Hat 2 06-29-2006 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration