Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.