[linux-lvm] can t resize my lvm
Matthias.Meyer at gmx.li
Wed Nov 23 01:10:35 UTC 2005
Am Mittwoch 23 November 2005 00:02 schrieb Heinz Mauelshagen:
> On Tue, Nov 22, 2005 at 11:26:13PM +0100, Matthias Meyer wrote:
> > Am Dienstag 22 November 2005 10:58 schrieb Heinz Mauelshagen:
> > > Matthias,
> > >
> > > you don't need to deactivate your VG in order to grow it.
> > >
> > > That's the whole point behind LVM: be able to adjust your changing
> > > storage requirements online.
> > >
> > > Do "vgchange -ay", "vgextend LVM2 /dev/hdc1" and you'll have your
> > > VG online with extended capacity to grow your LV and FS in another
> > > step.
> > >
> > > Regards,
> > > Heinz -- The LVM Guy --
> > Thanks for your hint.
> > But:
> > vdr:~# vgchange -ay LVM2
> > vgchange -- volume group "LVM2" does not exist
> Hrm, run vgscan and 'vgchange -ay' afterwards.
> You haven't overwritten your PV, have you ?
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "LVM"
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
volume group "LVM2" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
You have new mail in /var/mail/root
vdr:~# vgchange -ay
vgchange -- volume group "LVM" already active
Hmm, I think I had overwrite my PV with
vdr:~# vgchange -an LVM2
vgchange -- volume group "LVM2" successfully deactivated
vdr:~# pvcreate -vff /dev/hdc1
as descriped in detail in my mail at November, 21. 23:22
More information about the linux-lvm