All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Pvmove question
@ 2001-08-23 22:31 Jean-Eric Cuendet
  2001-08-24  7:45 ` Joe Thornber
  0 siblings, 1 reply; 5+ messages in thread
From: Jean-Eric Cuendet @ 2001-08-23 22:31 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]


Hi,
I have a pvmove question:
In the man page, it's said to be careful with pvmove if you use it while
LVM is in use.
I don't really understand what is dangerous and what is safe...

Could you give me details? Is it safe to do if no LV is mounted? Or if
vgchange -an is run?

Thanks for any help.
-jec

---------------------------------------------------
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 19, 1020 Renens Switzerland
Tel +41 21 632 9043  Fax +41 21 632 9090
http://www.linkvest.com  E-mail: jean-eric.cuendet@linkvest.com
---------------------------------------------------

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Jean-Eric Cuendet.vcf --]
[-- Type: text/x-vcard; name="Jean-Eric Cuendet.vcf", Size: 178 bytes --]

BEGIN:VCARD
VERSION:2.1
N:Cuendet;Jean-Eric
FN:Jean-Eric Cuendet
ORG:Linkvest S.A.;CCSR
EMAIL;PREF;INTERNET:Jean-Eric.Cuendet@linkvest.com
REV:20010724T142411Z
END:VCARD

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [linux-lvm] Pvmove question
@ 2001-08-27 13:46 Kevin M Corry
  2001-08-28  8:51 ` Joe Thornber
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin M Corry @ 2001-08-27 13:46 UTC (permalink / raw)
  To: linux-lvm

> On Fri, Aug 24, 2001 at 12:31:18AM +0200, Jean-Eric Cuendet wrote:
> >
> > Hi,
> > I have a pvmove question:
> > In the man page, it's said to be careful with pvmove if you use it
while
> > LVM is in use.
> > I don't really understand what is dangerous and what is safe...
>
> pvmove on a mounted (or otherwise in use) LV might cause curruption of
> your data.

In what cases could pvmove cause corruption on a mounted LV? Looking
at the man page and scanning through pvmove.c, it seems to indicate
that only a system crash during pvmove would corrupt the data. Is
this the only case, or are there others?

If there are other possibilities for corruption, wouldn't it be a
good idea to not allow pvmove's on PV's that contain mounted LVs?
You can figure out all of the LVs that are contained within a PV
using the PE map, and there are a variety of ways in user-space to
determine if a device is mounted (/proc/mounts probably being the
easiest).

> >
> > Could you give me details? Is it safe to do if no LV is mounted?
>
> y
>
> >  Or if
> > vgchange -an is run?
>
> y
>
> - Joe


-Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [linux-lvm] pvmove question
@ 2005-05-13 15:20 Peter V. Saveliev
  0 siblings, 0 replies; 5+ messages in thread
From: Peter V. Saveliev @ 2005-05-13 15:20 UTC (permalink / raw)
  To: linux-lvm

...

Hello. I have a VG on two software raid1 devices:

~ # pvs
  PV         VG      Fmt  Attr PSize  PFree 
  /dev/md0   hosting lvm2 a-   16.96G 16.96G
  /dev/md1   hosting lvm2 a-   16.96G  6.96G

I need to remove one raid (md1) from VG, but it is used:

~ # vgreduce hosting /dev/md1
  Physical volume "/dev/md1" still in use

But I cannot free it:

~ # pvmove /dev/md1 /dev/md0
  Unrecognised segment type mirror

Is there any solution? The system running lvm is a test box
and data stored on the VG is also unimportant; but I must
complete tests before running this system in production.

~ # uname -r
2.6.11-vs26-smp-rad4

~ # lvm version
File descriptor 5 left open
  LVM version:     2.01.10 (2005-05-03)
  Library version: 1.01.01 (2005-03-29)
  Driver version:  4.4.0


-- 
Peter V. Saveliev

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-13 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 22:31 [linux-lvm] Pvmove question Jean-Eric Cuendet
2001-08-24  7:45 ` Joe Thornber
  -- strict thread matches above, loose matches on Subject: below --
2001-08-27 13:46 Kevin M Corry
2001-08-28  8:51 ` Joe Thornber
2005-05-13 15:20 [linux-lvm] pvmove question Peter V. Saveliev

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.