From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Pvmove fails... No free PE's (and lvextend does not work...)
Date: Thu Jan 17 05:37:01 2002 [thread overview]
Message-ID: <20020117123253.A25970@sistina.com> (raw)
In-Reply-To: <431US6YU5C0B6KIMJJQKOK64HBQL.3c45f087@kadzuki>; from andewid@tnonline.net on Wed, Jan 16, 2002 at 10:28:39PM +0100
Hmmm,
we didn't talk about versions.
Which Linux/LVM version are you using?
Another point (assuming that you might siffer from an old OBO error):
does the extent still fail with less than 1221 extents?
Regards,
Heinz -- The LVM Guy --
On Wed, Jan 16, 2002 at 10:28:39PM +0100, Anders Widman wrote:
> Well... here is what the problem is right now.:
>
> First I scan all physical disks to determine where I have free space to grow..
>
>
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE PV "/dev/hdo1" of VG "Server" [55.84 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdp1" of VG "Server" [28.56 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdm1" of VG "Server" [76.28 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdn1" of VG "Server" [76.28 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdk1" of VG "Server" [38.12 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdl1" of VG "Server" [55.84 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdg1" of VG "Server" [55.88 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdh1" of VG "Server" [55.88 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hde1" of VG "Server" [114.44 GB / 38.16 GB free]
> pvscan -- ACTIVE PV "/dev/hdf1" of VG "Server" [57.22 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdc1" of VG "Server" [71.53 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdd1" of VG "Server" [71.53 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdb1" of VG "Server" [4.28 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdb3" of VG "Server" [52.88 GB / 0 free]
> pvscan -- total: 14 [815.29 GB] / in use: 14 [815.29 GB] / in no VG: 0 [0]
>
> --- Volume group ---
> VG Name Server
> VG Access read/write
> VG Status available/resizable
> VG # 0
> MAX LV 256
> Cur LV 1
> Open LV 1
> MAX LV Size 1.00 TB
> Max PV 256
> Cur PV 14
> Act PV 14
> VG Size 814.56 GB
> PE Size 32.00 MB
> Total PE 26066
> Alloc PE / Size 24845 / 776.41 GB
> Free PE / Size 1221 / 38.16 GB
> VG UUID ElJLCd-ln4W-k3YA-yg8W-HmVU-gs0O-mcR0pA
>
> --- Physical volume ---
> PV Name /dev/hde1
> VG Name Server
> PV Size 114.50 GB / NOT usable 62.91 MB [LVM: 142.00 KB]
> PV# 13
> PV Status available
> Allocatable yes
> Cur LV 1
> PE Size (KByte) 32768
> Total PE 3662
> Free PE 1221
> Allocated PE 2441
> PV UUID 7ScWsg-0vX4-ccX3-W1sO-mFnz-0Sl0-gDWKmM
>
> -----------------------------------------------------------------------
>
>
> Now I use "lvextend -l +1221 /dev/Server/FTPRoot /dev/hde1" to grow my LV "FTPRoot". It worked fine on my new disk (to wich I also moved the old PE's from the bad disk), but not on this one. What
> can be the problem. Where should I even begin to look?
>
> lvextend -- extending logical volume "/dev/Server/FTPRoot" to 814.56 GB
> lvextend -- not enough free/allocatable physical extents to extend logical volume /dev/Server/FTPRoot
>
> Thanks for any help!
>
> //Anders
>
>
> 2002-01-16 19:28:03, Anders Widman <andewid@tnonline.net> wrote:
>
> >No, my LV is not striped, so this should have worked. Well.. I have bought another disk and will move all pe's to that one instead. Hopefully this will work better.
> >
> >//Anders
> >
> >2002-01-16 16:08:44, "Heinz J . Mauelshagen" <mauelshagen@sistina.com> wrote:
> >
> >>
> >>Anders,
> >>
> >>is your LV striped? In this case, pvmove complains because it can't
> >>move 2 stripes onto one PV.
> >>
> >>If so, you need another disk to be pvcreated/vgextend to your VG in order
> >>to pvmove data over.
> >>
> >>On Wed, Jan 16, 2002 at 07:52:18AM +0100, Anders Widman wrote:
> >>> I have a bad disk (hdl1) that needs to be replaced. It is 40GB, or 1220 PE's. I have another disk which is about 120GB, but has 1221 free PE's. Both disks are in the same VG, Server and the same LV,
> >>> FTPRoot. When I try "pvmove -v /dev/hdl1" it failes (doesn't even start, really) and tells me I haven't any free PE's.
> >>>
> >>> What can I have missed...
> >>>
> >>> 1) I shrick the filesystem first with about 60GB
> >>> 2) I use lvreduce to shrick the LV with about 59GB
> >>> 3) I tried "pvmove -v /dev/hdl" to move all PE's on this 40GB disk to the free ones on the other disks. This should have worked, shoudln't it?
> >>>
> >>> have I missed something critical?
> >>>
> >>> //Anders
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> linux-lvm mailing list
> >>> linux-lvm@sistina.com
> >>> http://lists.sistina.com/mailman/listinfo/linux-lvm
> >>> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
> >>
> >>--
> >>
> >>Regards,
> >>Heinz -- The LVM Guy --
> >>
> >>*** Software bugs are stupid.
> >> Nevertheless it needs not so stupid people to solve them ***
> >>
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>
> >>Heinz Mauelshagen Sistina Software Inc.
> >>Senior Consultant/Developer Am Sonnenhang 11
> >> 56242 Marienrachdorf
> >> Germany
> >>Mauelshagen@Sistina.com +49 2626 141200
> >> FAX 924446
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>
> >>_______________________________________________
> >>linux-lvm mailing list
> >>linux-lvm@sistina.com
> >>http://lists.sistina.com/mailman/listinfo/linux-lvm
> >>read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
> >>
> >>
> >
> >
> >
> >
> >_______________________________________________
> >linux-lvm mailing list
> >linux-lvm@sistina.com
> >http://lists.sistina.com/mailman/listinfo/linux-lvm
> >read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
> >
> >
>
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2002-01-17 5:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-16 0:53 [linux-lvm] Pvmove fails... No free PE's Anders Widman
2002-01-16 9:12 ` Heinz J . Mauelshagen
2002-01-16 12:28 ` Anders Widman
2002-01-16 15:29 ` [linux-lvm] Pvmove fails... No free PE's (and lvextend does not work...) Anders Widman
2002-01-17 5:37 ` Heinz J . Mauelshagen [this message]
2002-01-17 15:19 ` Anders Widman
2002-01-18 4:43 ` Heinz J . Mauelshagen
2002-01-20 16:30 ` Anders Widman
2002-01-21 5:33 ` Heinz J . Mauelshagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020117123253.A25970@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.