LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-13-2015, 05:42 AM   #1
ocga
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Next steps in increasing existing disk size?


Hi
I've got a Redhat server, running under VmWare. It has 4 disks allocated to it, on each disk is a seperate volume group (format lvm2)
I've been asked to increase the storage for one of these disks. PV=/dev/sdc

So I've increased the size of the disk within vcentre and rescanned so that
fdisk -l /dev/sdc now shows the new size


Disk /dev/sdc: 483.2 GB, 483183820800 bytes
255 heads, 63 sectors/track, 58743 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Its the next steps I'm not sure about.

How do I get this new larger size available to the volume group so that I can extend the filesystem ?

Very new to redhat so its a big learning curve.
Thanks
 
Old 01-13-2015, 06:00 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
Run pvresize to extend the physical volume. By default it will try to extend the volume to cover all available space on the device, which in this case is what you want.

The extra space will then be available in the Volume Group of which the PV is a member, and can be allocated to Logical Volumes as needed. Once you've done that, you can proceed to extend the file system(s) in question.
 
1 members found this post helpful.
Old 01-13-2015, 06:48 AM   #3
ocga
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Run pvresize to extend the physical volume. By default it will try to extend the volume to cover all available space on the device, which in this case is what you want.

The extra space will then be available in the Volume Group of which the PV is a member, and can be allocated to Logical Volumes as needed. Once you've done that, you can proceed to extend the file system(s) in question.
Brilliant, all done.. I had read about pvresize but wasn't sure if I had to do anything in fdisk first.. Thanks for the quick reply.
 
Old 01-13-2015, 10:28 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
Quote:
Originally Posted by ocga View Post
I had read about pvresize but wasn't sure if I had to do anything in fdisk first..
If your Physical Volume had been a partition on /dev/sdc rather than the whole device, a quick trip into fdisk would indeed have been necessary.
 
  


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
Increasing PE Size Ashish Sood Linux - Server 5 03-27-2014 07:44 AM
[SOLVED] Trouble increasing container disk size in OpenVZ tekhead2 Linux - Virtualization and Cloud 1 11-29-2012 09:35 AM
increasing the size of / rahulkya Linux - Newbie 4 02-23-2010 04:50 PM
KDE - increasing menu text size, icon size? arcanem4 Fedora 1 12-06-2007 02:08 PM
Increasing disk size after dd'ing a small image dezert_fox Linux - Hardware 2 05-03-2007 12:07 AM

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

All times are GMT -5. The time now is 04:43 AM.

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