Unix/Linux Go Back    


Hardware Device drivers, hardware compatibility issues, motherboards, disk drives, graphics cards and other hardware related topics.

Increasing the filesystem size

Hardware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-19-2015
Phuti Phuti is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 24 March 2017, 11:51 AM EDT
Location: I live in Pretoria, South Africa
Posts: 69
Thanks: 19
Thanked 0 Times in 0 Posts
Increasing the filesystem size

Hi Guys

We have a VM machine, now I want to increase the size of the filesystem.

We are running RHEL6 O/S.

I have filesystem that is 500GB I want to increase that filesystem to 1.5 TB.

The guy who manages the VM increased the size on the VM machine, now how do I make sure that the changes reflect on the O/S?

Thanks in advance...

Please Help!!!
Sponsored Links
    #2  
Old Unix and Linux 02-19-2015
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 24 March 2017, 12:41 PM EDT
Location: Lancashire, UK
Posts: 3,052
Thanks: 1,280
Thanked 583 Times in 528 Posts
Well, the big question is "Is your VM provided volume defined as an LVM device or set up to give fixed partitions?"

If the filesystem is an LVM filesystem and you have got the space into your volume group, then using lvextend should do the job. If you use the -r flag then it will alter the filesystem when you resize the logical volume.

If you filesystem is on a fixed slice of disk, then I think you are stuck with it. You would need to do something like this:-
  • Define the new disk or slice as an LVM Physical Volume
  • Create a volume group using this PV
  • Create a logical volume of at least 500Gb in the volume group
  • Format the logical volume as a filesystem.
  • Mount the filesystem & move the data
  • Edit /etc/fstab to point to the new filesystem to be mounted
  • Unmount the original filesystem
  • Unmount the new filesystem and remount it to the correct location
  • Destroy the original filesystem/disk/slice
  • Define the original disk as an LVM PV
  • Extend the volume group by adding this disk/slice
You are now able to use extendlv as described above. What do you have defined?

If your server is actually a single filesystem, then we're in more trouble.


Can you share the contents of /etc/fstab for a starter?



Robin

Last edited by rbatte1; 02-19-2015 at 09:07 AM.. Reason: Removed unecessary blank lines
Sponsored Links
    #3  
Old Unix and Linux 02-19-2015
Phuti Phuti is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 24 March 2017, 11:51 AM EDT
Location: I live in Pretoria, South Africa
Posts: 69
Thanks: 19
Thanked 0 Times in 0 Posts
Thanks for the reply,


Code:
/dev/sde1            /disk5               reiserfs   acl,user_xattr        1 2

I asked the VM guy about "Is your VM provided volume defined as an LVM device or set up to give fixed partitions?"

He replied :

The OS should see one contiguous hard drive. No partitioning

Thanks


Moderator's Comments:
Increasing the filesystem size
Please wrap all code, files, input & output/errors in CODE tags.
It makes them far easier to read and preserves multiple spaces as these may be critical.

Last edited by rbatte1; 02-19-2015 at 09:50 AM.. Reason: Added CODE tags
    #4  
Old Unix and Linux 02-19-2015
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 24 March 2017, 12:41 PM EDT
Location: Lancashire, UK
Posts: 3,052
Thanks: 1,280
Thanked 583 Times in 528 Posts
From your fstab output, this is not LVM.

The 'VM guy' will allocate one or more devices. It's up to you how you use them.

If you display your device now, does it recognise the new size? If so, you are into my long-winded process to make it LVM so that we can be more flexible with it.


Robin
Sponsored Links
    #5  
Old Unix and Linux 02-20-2015
Phuti Phuti is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 24 March 2017, 11:51 AM EDT
Location: I live in Pretoria, South Africa
Posts: 69
Thanks: 19
Thanked 0 Times in 0 Posts
Thanks for the replies,

I am now clueless as to what needs to be done for me to have that filesystem increased.

I have to do a lot of reading...

Thanks
Sponsored Links
    #6  
Old Unix and Linux 02-20-2015
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
If you provide us with the output of the df and the fstat -l commands, somebody here can assist you.

Last edited by rbatte1; 02-23-2015 at 06:24 AM.. Reason: Added ICODE tags
Sponsored Links
    #7  
Old Unix and Linux 02-23-2015
Phuti Phuti is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 24 March 2017, 11:51 AM EDT
Location: I live in Pretoria, South Africa
Posts: 69
Thanks: 19
Thanked 0 Times in 0 Posts
df -h


Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             200G  103G   98G  52% /
tmpfs                 8.0G   12K  8.0G   1% /dev/shm
/dev/sdb1             1.5T  772G  765G  51% /disk2
/dev/sdc1             1.3T  618G  689G  48% /disk3
/dev/sdd1             1.3T  715G  545G  57% /disk4
/dev/sde1             950G  599G  351G  64% /disk5
/dev/sdf1             850G  826G   25G  98% /disk6
/dev/sdg1             330G  292G   39G  89% /disk7

fdisk -l


Code:
Disk /dev/sdg: 461.7 GB, 461708984320 bytes
255 heads, 63 sectors/track, 56132 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1       43078   346024003+  83  Linux

When I try to run fstat I get these error: -
Code:
bash: fstat: command not found

Thanks

---------- Post updated at 02:37 PM ---------- Previous update was at 11:23 AM ----------

I used fdisk to check the filesystem :


Code:
sh-2.05b# df -h /disk7
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdg1             330G  292G   39G  89% /disk7
sh-2.05b# fdisk -l /dev/sdg

Disk /dev/sdg: 461.7 GB, 461708984320 bytes
255 heads, 63 sectors/track, 56132 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1       43078   346024003+  83  Linux
sh-2.05b#

I want /disk7 to be 430G, How do I achieve this?

Last edited by rbatte1; 02-23-2015 at 05:35 AM.. Reason: Changed ICODE tags to just CODE tags
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in increasing filesystem Mohamed Thamim AIX 4 04-23-2014 01:47 PM
Increasing ./usr or any filesystem pilotHans AIX 2 09-18-2010 01:35 AM
Does HACMP have bugs increasing filesystem or Logical volumes filosophizer AIX 11 12-13-2009 03:58 AM
Increasing the FileSystem Size aldowsary AIX 9 07-18-2005 03:59 AM
Increasing filesystem space TRUEST UNIX for Advanced & Expert Users 1 02-12-2004 09:21 AM



All times are GMT -4. The time now is 12:27 AM.