LVM: Resizing physical volumes
sarangan.thuraisingham at gmail.com
Mon Sep 25 13:00:37 UTC 2006
I am using LVM partitions for my 'root' and 'home' mounts; 'boot' is
on a physical partition. 'df -h' output as follows:
Filesystem Size Used Avail Use% Mounted on
6.9G 5.3G 1.3G 81% /
13G 9.1G 3.3G 74% /home
/dev/hdc5 59M 59M 0 100% /boot
I 've been compiling my own kernel and as you can see my boot partition
is not big enough. boot is on partition 5. LVM uses Physical volumes on
partitions hdc4 and hdc6. Partition table, as follows:
Disk geometry for /dev/hdc: 0kB - 60GB
Disk label type: msdos
Number Start End Size Type File system Flags
1 32kB 16GB 16GB primary fat32 boot, lba
4 16GB 21GB 5371MB primary
2 21GB 43GB 22GB primary fat32 lba
3 43GB 60GB 17GB extended lba
5 43GB 43GB 66MB logical ext3
6 43GB 60GB 17GB logical lvm
I want to make the boot partition bigger. I tried resizing the physical
volume(hdc6) using pvresize.
sudo pvresize /dev/hdc6 --setphysicalvolumesize 15.41GB
/dev/hdc6: cannot resize to 3944 extents as 3971 are allocated.
0 physical volume(s) resized / 1 physical volume(s) not resized
But it fails as all of the Physical Extents(PEs) have been allocated.
Is there any way of unallocating some of the PEs so that I can resize my
boot partition. So far the only suggestion I could find online is to do
Any ideas welcome.
ECS, University of Southampton, UK
More information about the ubuntu-users