Sponsored Content
Operating Systems Linux Fedora Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it Post 302707685 by mojoman on Saturday 29th of September 2012 10:43:47 AM
Old 09-29-2012
Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi,

I run Fedora 17.

I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space now on my hard drive to the existing physical volume so I can assign it to my volume group to extend one of my logical volumes.

A friend at work says all I have to do is to use the pvresize command and the PV will "grow" into the free space. But that does not seem to work. Linux recognizes that the PV is 60GB but it then when I try and extend the logical volume it complains that there is not enough free space.

Can someone give me a brief explanation how I should handle my scenario?
I was thinking I should just use pvcreate, create another partition, and then issue vgextend command but my friend at work says this is not necessary and insists his method will work.

Any advice?
 

9 More Discussions You Might Find Interesting

1. HP-UX

How to resize a logical volume to free up some space using sam?

Hey all, is it possible to free up space off some partitions? during an install of hp-ux i set some allocated diskspace to lets say, /home to 1024 mb, but now i want it to be 512mb.. I'm looking at sam right now at the "Disks and File Systems" menu , can i modify it at all in like, List-> file... (4 Replies)
Discussion started by: emplate
4 Replies

2. UNIX for Dummies Questions & Answers

Re-allocating hard drive space

Hi, Is their an easy way to realloate hard drive space on Solaris 10. For example : /c20td0 10G /space 90 G I would like to move some of the hard-drive space from "/space" and add it to "/c20td0". In Windows this can be easily done using Partition magic, anything similar for UNIX? (4 Replies)
Discussion started by: annointed3
4 Replies

3. UNIX for Dummies Questions & Answers

Hard Disk drive space gone missing...

Sorry if this is totally the wrong place to post this but I have a question or something rather thats bugging me. I got a new Dell Inspiron laptop the other day and I was expecting it to have 80G on it, well atleast 70 or so after installation of OS and such but after looking carefully yesterday, I... (8 Replies)
Discussion started by: Ecclesiastes
8 Replies

4. UNIX for Dummies Questions & Answers

Physical volume- no free physical partitions

I was in smit, checking on disc space, etc. and it appears that one of our physical volumes that is part of a large volume group, has no free physical partitions. The server is running AIX 5.1. What would be the advisable step to take in this instance? (9 Replies)
Discussion started by: markper
9 Replies

5. Solaris

Check free space in Solaris Volume Manager

I 've 300Gb Lun assigned to my system which has soft partitions , is there any way to check how much the space i have used out of 300Gb ? and how may more soft partitions i can create and expand the existing ones ? (3 Replies)
Discussion started by: fugitive
3 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. Shell Programming and Scripting

Need help on Linux script to monitor hard drive space

I'm new to Linux and have very limited experience with shell scripts in general. I am taking a class and I have to research online and come up with a shell script that monitors disk space. I also have to be able to explain it line by line. I've researched various sites and came across this shell... (3 Replies)
Discussion started by: wgreg23
3 Replies

8. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

9. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies
VGREDUCE(8)						      System Manager's Manual						       VGREDUCE(8)

NAME
       vgreduce - reduce a volume group

SYNOPSIS
       vgreduce  [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi-
       calVolumePath...]

DESCRIPTION
       vgreduce allows you to remove one or more unused physical volumes from a volume group.

OPTIONS
       See lvm for common options.

       -a, --all
	      Removes all empty physical volumes if none are given on command line.

       --removemissing
	      Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes  normal
	      operation of the volume group (new logical volumes may again be created, changed and so on).

	      If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove
	      them manually, you can run this option with --force to have vgreduce remove any partial LVs.

	      Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those  parts
	      that lie on disks that are still present.

	      If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti-
	      vating your logical volumes with --partial as described in lvm (8).

SEE ALSO
       lvm(8), vgextend(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       VGREDUCE(8)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy