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
PVDISPLAY(8)						      System Manager's Manual						      PVDISPLAY(8)

NAME
pvdisplay - display attributes of a physical volume SYNOPSIS
pvdisplay [-c|--colon] [-d|--debug] [-h|--help] [-s|--short] [-v[v]|--verbose [--verbose]] PhysicalVolumePath [PhysicalVolumePath...] DESCRIPTION
pvdisplay allows you to see the attributes of one or more physical volumes like size, physical extent size, space used for the volume group descriptor area and so on. OPTIONS -c, --colon Generate colon seperated output for easier parsing in scripts or programs. The values are: * physical volume device name * volume group name * physical volume size in kilobytes * internal physical volume number * physical volume status * physical volume (not) allocatable * current number of logical volumes on this physical volume * physical extent size in kilobytes * total number of physical extents * free number of physical extents * allocated number of physical extents -d, --debug Enables additional debugging output (if compiled with DEBUG). -h, --help Print a usage message on standard output and exit successfully. -s, --short Only display the size of the given physical volumes. -v, --verbose Display the mapping of physical extents to logical volumes and logical extents. -vv, --verbose --verbose Like -v with verbose runtime information about pvdisplay's activities. DIAGNOSTICS
pvdisplay returns an code state of 0 for success and > 0 for error: 1 no physical volume name on command line 2 error checking consistency of physical volume 3 error reading physical extent information from physical volume 95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line See also lvm(8), pvcreate(8), lvcreate(8), vgcreate(8) AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com> Heinz Mauelshagen LVM TOOLS PVDISPLAY(8)
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy