* [linux-lvm] can't resize my lvm
@ 2005-11-21 18:34 Matthias Meyer
2005-11-21 22:22 ` [linux-lvm] can t " Matthias Meyer
2005-11-25 20:21 ` Matthias Meyer
0 siblings, 2 replies; 9+ messages in thread
From: Matthias Meyer @ 2005-11-21 18:34 UTC (permalink / raw)
To: linux-lvm
Hello,
I have a Volume Group with one pysical volume. I try to add another physical
volume (which was in another Volume group before).
All seems to work fine but e2fsadm do not change the size of the filesystem.
What is wrong?
vdr:~# vgdisplay LVM2
--- Volume group ---
VG Name LVM2
VG Access read/write
VG Status available/resizable
VG # 1
MAX LV 256
Cur LV 1
Open LV 0
MAX LV Size 2 TB
Max PV 256
Cur PV 1
Act PV 1
VG Size 186 GB
PE Size 256 MB
Total PE 744
Alloc PE / Size 744 / 186 GB
Free PE / Size 0 / 0
VG UUID a4BzYX-fkun-VZuG-jnFA-kgLK-dmLz-eUe79w
vdr:~# vgextend LVM2 /dev/hdc1
vgextend -- INFO: maximum logical volume size is 2 Terabyte
vgextend -- doing automatic backup of volume group "LVM2"
vgextend -- volume group "LVM2" successfully extended
vdr:~# pvdisplay /dev/hdc1
--- Physical volume ---
PV Name /dev/hdc1
VG Name LVM2
PV Size 93.13 GB [195318207 secs] / NOT usable 256.19 MB [LVM:
129 KB]
PV# 2
PV Status NOT available
Allocatable yes
Cur LV 0
PE Size (KByte) 262144
Total PE 371
Free PE 371
Allocated PE 0
PV UUID HfCAkU-DEmn-4FE0-8OyR-E9Vw-eJV9-KTNTer
vdr:~# lvextend -l+371 /dev/LVM2/Media /dev/hdc1
lvextend -- extending logical volume "/dev/LVM2/Media" to 278.75 GB
lvextend -- doing automatic backup of volume group "LVM2"
lvextend -- logical volume "/dev/LVM2/Media" successfully extended
vdr:~# lvdisplay /dev/LVM2/Media
--- Logical volume ---
LV Name /dev/LVM2/Media
VG Name LVM2
LV Write Access read/write
LV Status available
LV # 1
# open 0
LV Size 278.75 GB
Current LE 1115
Allocated LE 1115
Allocation next free
Read ahead sectors 1024
Block device 58:1
vdr:~# e2fsadm -l 1115 /dev/LVM2/Media
e2fsadm -- size of "/dev/LVM2/Media" would not change
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-21 18:34 [linux-lvm] can't resize my lvm Matthias Meyer
@ 2005-11-21 22:22 ` Matthias Meyer
2005-11-22 9:58 ` Heinz Mauelshagen
2005-11-25 20:21 ` Matthias Meyer
1 sibling, 1 reply; 9+ messages in thread
From: Matthias Meyer @ 2005-11-21 22:22 UTC (permalink / raw)
To: LVM general discussion and development
And now I do:
vdr:~# vgchange -an LVM2
vgchange -- volume group "LVM2" successfully deactivated
vdr:~# pvcreate -vff /dev/hdc1
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/hdc1"
pvcreate -- getting physical volume size
pvcreate -- checking maximum physical volume size
pvcreate -- checking partition type
pvcreate -- checking volume group name
pvcreate -- really INITIALIZE physical volume "/dev/hdc1" of volume group
"LVM2" [y/n]? y
pvcreate -- WARNING: forcing physical volume creation on "/dev/hdc1" of
volume group "LVM2"
pvcreate -- removing lvmtab entry
pvcreate -- creating new physical volume
pvcreate -- setting up physical volume for /dev/hdc1 with 195318207 sectors
pvcreate -- writing physical volume data to disk "/dev/hdc1"
pvcreate -- physical volume "/dev/hdc1" successfully created
pvcreate -- unlocking logical volume manager
and hove no more access to the volume group.
But it exists:
vdr:~# dir /dev/LVM2/Media
/dev/LVM2/Media
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-21 22:22 ` [linux-lvm] can t " Matthias Meyer
@ 2005-11-22 9:58 ` Heinz Mauelshagen
2005-11-22 22:26 ` Matthias Meyer
0 siblings, 1 reply; 9+ messages in thread
From: Heinz Mauelshagen @ 2005-11-22 9:58 UTC (permalink / raw)
To: LVM general discussion and development
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 --
On Mon, Nov 21, 2005 at 11:22:52PM +0100, Matthias Meyer wrote:
> And now I do:
> vdr:~# vgchange -an LVM2
> vgchange -- volume group "LVM2" successfully deactivated
>
> vdr:~# pvcreate -vff /dev/hdc1
> pvcreate -- locking logical volume manager
> pvcreate -- checking physical volume name "/dev/hdc1"
> pvcreate -- getting physical volume size
> pvcreate -- checking maximum physical volume size
> pvcreate -- checking partition type
> pvcreate -- checking volume group name
> pvcreate -- really INITIALIZE physical volume "/dev/hdc1" of volume group
> "LVM2" [y/n]? y
> pvcreate -- WARNING: forcing physical volume creation on "/dev/hdc1" of
> volume group "LVM2"
> pvcreate -- removing lvmtab entry
> pvcreate -- creating new physical volume
> pvcreate -- setting up physical volume for /dev/hdc1 with 195318207 sectors
> pvcreate -- writing physical volume data to disk "/dev/hdc1"
> pvcreate -- physical volume "/dev/hdc1" successfully created
> pvcreate -- unlocking logical volume manager
>
> and hove no more access to the volume group.
> But it exists:
> vdr:~# dir /dev/LVM2/Media
> /dev/LVM2/Media
>
> --
> Don't Panic
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-22 9:58 ` Heinz Mauelshagen
@ 2005-11-22 22:26 ` Matthias Meyer
2005-11-22 23:02 ` Heinz Mauelshagen
0 siblings, 1 reply; 9+ messages in thread
From: Matthias Meyer @ 2005-11-22 22:26 UTC (permalink / raw)
To: linux-lvm
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
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-22 22:26 ` Matthias Meyer
@ 2005-11-22 23:02 ` Heinz Mauelshagen
2005-11-23 1:10 ` Matthias Meyer
0 siblings, 1 reply; 9+ messages in thread
From: Heinz Mauelshagen @ 2005-11-22 23:02 UTC (permalink / raw)
To: LVM general discussion and development
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 ?
>
> --
> Don't Panic
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-22 23:02 ` Heinz Mauelshagen
@ 2005-11-23 1:10 ` Matthias Meyer
2005-11-23 22:36 ` Matthias Meyer
0 siblings, 1 reply; 9+ messages in thread
From: Matthias Meyer @ 2005-11-23 1:10 UTC (permalink / raw)
To: linux-lvm
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 ?
>
vdr:~# vgscan
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
groups
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
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-23 1:10 ` Matthias Meyer
@ 2005-11-23 22:36 ` Matthias Meyer
0 siblings, 0 replies; 9+ messages in thread
From: Matthias Meyer @ 2005-11-23 22:36 UTC (permalink / raw)
To: linux-lvm
Am Mittwoch 23 November 2005 02:10 schrieb Matthias Meyer:
>
> vdr:~# vgscan
> 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
> groups
>
> 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
Should I try to restore metadata with vgcfgrestore?
Is it possible that I lost my data if I try vgcfgrestore?
Please help :-)
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-21 18:34 [linux-lvm] can't resize my lvm Matthias Meyer
2005-11-21 22:22 ` [linux-lvm] can t " Matthias Meyer
@ 2005-11-25 20:21 ` Matthias Meyer
2005-11-27 13:07 ` Matthias Meyer
1 sibling, 1 reply; 9+ messages in thread
From: Matthias Meyer @ 2005-11-25 20:21 UTC (permalink / raw)
To: linux-lvm
... ok.
After all my troubles with this not accessible volume group
my logical volume is running again.
But again I can't growth the size of it:
Thats what I do:
vdr:~# vgcreate -v LVM3 /dev/hdd1 -s 256M
vdr:~# mke2fs -m 0 -O sparse_super -T largefile4 /dev/LVM2/Media
vdr:~# lvcreate I do not remeber the paramters :-(
vdr:~# pvcreate -v /dev/hdc1
vdr:~# vgextend LVM2 /dev/hdc1
vdr:~# lvextend -l 1115 /dev/LVM2/Media /dev/hdc1
vdr:~# e2fsadm -v -l 1115 /dev/LVM2/Media
e2fsadm -- checking logical volume name
e2fsadm -- checking existance of logical volume /dev/LVM2/Media
e2fsadm -- checking for relative/absolute size change
e2fsadm -- reading VGDA of volume group "LVM2" from lvmtab
e2fsadm -- calculating absolute logical volume size
e2fsadm -- size of "/dev/LVM2/Media" would not change
vdr:~# echo $?
6
Why e2fsadm do not change the size?
Please help me !
Thanks in advance
Matthias
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] can t resize my lvm
2005-11-25 20:21 ` Matthias Meyer
@ 2005-11-27 13:07 ` Matthias Meyer
0 siblings, 0 replies; 9+ messages in thread
From: Matthias Meyer @ 2005-11-27 13:07 UTC (permalink / raw)
To: linux-lvm
Am Freitag 25 November 2005 21:21 schrieb Matthias Meyer:
> vdr:~# lvextend -l 1115 /dev/LVM2/Media /dev/hdc1
> vdr:~# e2fsadm -v -l 1115 /dev/LVM2/Media
reading man-page e2fsadm exactly ;-)
it can extend the logical volume and grow the filesystem
Therefore I try:
vdr:~# lvreduce -l 744 /dev/LVM2/Media
vdr:~# e2fsadm -v -l 1115 /dev/LVM2/Media
and it will work.
Thanks for all of your hints and for your help :-)
--
Don't Panic
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-11-27 13:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21 18:34 [linux-lvm] can't resize my lvm Matthias Meyer
2005-11-21 22:22 ` [linux-lvm] can t " Matthias Meyer
2005-11-22 9:58 ` Heinz Mauelshagen
2005-11-22 22:26 ` Matthias Meyer
2005-11-22 23:02 ` Heinz Mauelshagen
2005-11-23 1:10 ` Matthias Meyer
2005-11-23 22:36 ` Matthias Meyer
2005-11-25 20:21 ` Matthias Meyer
2005-11-27 13:07 ` Matthias Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).