Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Resize the root physical volume

benjoJan 19 2010 — edited Feb 17 2010
Hi Guys,

Can anyone help me on my problem?

I want to resize my root physical volume from 16Gb to 5Gb, since i move some of the directories to another logical volume.

I tried the pvresize but it say some error that it cannot allocate.

pvresize --setphysicalvolumesize 5G /dev/hda2

Here is my physical volumes:

[root@oel5 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/hdb1
VG Name VolGroup01
PV Size 9.77 GB / not usable 15.74 MB
Allocatable yes
PE Size (KByte) 16384
Total PE 624
Free PE 48
Allocated PE 576
PV UUID SndbrG-oBnm-wqwX-2Y84-okoF-hWiN-RaJo2S

--- Physical volume ---
PV Name /dev/hdd1
VG Name VolGroup01
PV Size 9.77 GB / not usable 15.74 MB
Allocatable yes
PE Size (KByte) 16384
Total PE 624
Free PE 80
Allocated PE 544
PV UUID p7RZ2K-wBJA-vYyN-1zUo-33nk-3g8K-migI1b

--- Physical volume ---
PV Name /dev/hda2
VG Name VolGroup00
PV Size 15.90 GB / not usable 20.61 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 508
Free PE 404
Allocated PE 104
PV UUID 4r4fGm-7ZFH-UAu2-7wMR-5iPU-rfwm-AvYj3L
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2010
Added on Jan 19 2010
3 comments
3,286 views