👤
Home Man
Search
Today's Posts
Register

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

Increasing the filesystem size

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 02-19-2015
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!!!
# 2  
Old 02-19-2015
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
# 3  
Old 02-19-2015
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 02-19-2015
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
# 5  
Old 02-20-2015
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
# 6  
Old 02-20-2015
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
# 7  
Old 02-23-2015
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
👤 Login to reply

« Previous Thread | Next 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
Problem in increasing filesystem Mohamed Thamim AIX 4 04-23-2014 01:47 PM
increasing interlace size jegaraman Solaris 1 12-13-2010 11:50 AM
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 size of a filesytem sumanbangladesh AIX 3 04-09-2009 08:13 AM
Increasing swap size akyuceisik HP-UX 1 05-09-2008 10:55 AM
Help on increasing fs size kingsto88 HP-UX 5 02-11-2007 06:37 AM
Increasing the FileSystem Size aldowsary AIX 9 07-18-2005 03:59 AM
Increasing a directory size jonest UNIX for Dummies Questions & Answers 9 06-08-2005 10:26 PM
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 11:02 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?