Skip to contentSkip to conversation

pvresize not implemented, any way to use pvcreate instead?

linux-lvm Axel Thimm 2 participants 2 messages Sep 27, 2005

lore
Share & tools
lore

Axel Thimm

author
#0 lore raw

pvresize on RHEL4U1 returns with

Quoted 4 lines
# pvresize --help
  pvresize: Resize a physical volume in use by a volume group

Not implemented. Use pvcreate options.

Does this imply that I can use pvcreate to resize a pv? Or is there any other non-destructive way not involving creating new pvs?

My setup is as follows, I have a SAN exported lun that is EFI partitioned and has only one partition which is used by LVM as a pv. We will be adding new disks and I would like to extend this one exported lun, instead of having several luns/pv in one vg later. I understand that this does not matter for LVM (and is a problem that LVM solves), but I'd like to keep the management on the SAN side simple for the adminstrative staff.

AFAIU this was possible with LVM1, and perhaps is also possible with LVM2 with a workaround until pvresize is written.

And as a side question: Would parted be able to autodetect the new disk's size and properly resize partition table and partition?

Thanks!

Signature · 1 line
Axel.Thimm at ATrpms.net