Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have added 100GIG of disk to one of my LUNs however after a powermt scan i'm still not able to extend the physical from 100GIG to 200GIG.
The confusing thing is I can see the full disk in 'fdisk -l':
Disk /dev/emcpowerb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/emcpowerb1 1 13054 104856223+ 8e Linux LVM
Your total disk space may be 200Gb, but that first partition is only 100Gb. pvresize can't grow the PV to larger than the partition it is made out of.
You can either:
(1) Resize the partition larger (using fdisk ?), then run pvresize. Since I have never used pvresize personally I am not familiar with this procedure. I wouldn't think you'd have to do anything with the VG at this point, and could simply grow your LV(s) now. But having never used pcresize, I cannot say for sure without doing some research.
(2) Leave the first partition as it is, make a second partition out of the rest of your disk using fdisk, mark that second partition as a PV with pvcreate, then add that new PV to the existing VG with vgextend, then grow your LV(s) (specific steps for growing an LV vary depending on filesystem type).
Method (2) is much safer IMHO. I have never liked resizing partitions while trying to keep their data intact. That gives me the willies just thinking about it. I did it once or twice in Windows using "Partition Magic" years ago, and it worked, but I was nervous the entire operation even though I had everything well backed up before starting. I have used method (2) many many times - adding hard disks, creating new partitions, marking those new partitions as PV's, adding those new PV's to existing VG's, and then extending LV's.
I've used method (1) before but I had backups and it wasn't a production system so I wasn't too concerned
- note the partition start block and type
- using fdisk delete the partition and recreate starting at the same start block but finishing at the end
- ensure the new partition has the same type as before
- 'w' to save changes
Then continue on with pvresize /dev/emcpowerb1
* no responsibility accepted for any loss of data or productivity!
You can just use the whole device without partitioning at all, but I never do it this way as it can be confusing for people to see no partition. I have a vague memory that it will automatically resize if you increase the volume, but you should probably read up to confirm.