All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [linux-lvm] "pvchange --uuid" failed when PV is in use
@ 2005-05-24 18:30 Page, Jennifer (RBC Dain)
  2006-07-19 16:35 ` [linux-lvm] duplicate PV Tommaso Cecchi
  0 siblings, 1 reply; 10+ messages in thread
From: Page, Jennifer (RBC Dain) @ 2005-05-24 18:30 UTC (permalink / raw)
  To: LVM general discussion and development

Please remove jennifer.page@rbcdain.com from distribution list. 

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com]
On Behalf Of Shinn'ya Hoshino
Sent: Tuesday, May 24, 2005 7:32 AM
To: linux-lvm@redhat.com
Subject: [linux-lvm] "pvchange --uuid" failed when PV is in use

Hello,

I tried to "pvchange --uuid /dev/sdc1" to change of PV UUID.
But FAILED to change PV UUID on PV metadata, only changed on VG
metadata. I'm trying to correct source code, please help.

When PV is orphan, "pvchange --uuid /dev/sdc1" changes PV UUID
successfully. At this time, pvchange calls pv_write(). But when PV is in
use by VG, pvchange only calls vg_write(), pv_write() is not called.

vg_write() does not have function to change PV metadata.
Therefore, probably pvchange needs to call pv_write() to write UUID into
PV metadata. But pv_write() is forbidden to call when PV is in use by
VG. LV is not mounted... Even if there was no LV, it failed.

Please teach me why it is forbidden.
If there is a method of allowing pv_write(), I want to try it.

BTW, I want to activate VG on raw-level duplicated PV. I look for this
ML. When edit lvm.conf and "pvchange --uuid" and vgrename, it turned out
that it is possible. However, if pvchange does not function correctly,
there is no how to adopt a measure.

Best Regards,

--
/* -------------------------------------------------------------
   Shinn'ya Hoshino     mailto:s-hoshino@vx.cnt.dnes.jp.nec.com
------------------------------------------------------------- */

_______________________________________________
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/



RBC Dain Rauscher does not accept buy, sell or cancel orders by e-mail, or any instructions by e-mail that would require your signature.  Information contained in this communication is not considered an official record of your account and does not supersede normal trade confirmations or statements.  Any information provided has been prepared from sources believed to be reliable but is not guaranteed, does not represent all available data necessary for making investment decisions and is for informational purposes only.

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations.  Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.  If you receive this e-mail in error, please advise me (by return e-mail or otherwise) immediately.

Information received by or sent from this system is subject to review by supervisory personnel, is retained and may be produced to regulatory authorities or others with a legal right to the information.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [linux-lvm] duplicate pv.
@ 2004-12-11 11:42 johon Doe
  2004-12-11 13:18 ` Philipp Schmidt
  2004-12-11 22:36 ` Alasdair G Kergon
  0 siblings, 2 replies; 10+ messages in thread
From: johon Doe @ 2004-12-11 11:42 UTC (permalink / raw)
  To: linux-lvm

Hi, I have a 2.6.9 kernel and I have problems to
create an vg device over a raid1 array.
Look:
sole:/usr/src/linux# cat /proc/mdstat 
Personalities : [raid1] 
md7 : active raid1 sdb2[1] sda2[0]
      244147712 blocks [2/2] [UU]
      
md1 : active raid1 sdb6[0] sda6[1]
      1951744 blocks [2/2] [UU]
      
md2 : active raid1 sdb7[0] sda7[1]
      1951744 blocks [2/2] [UU]
      
md3 : active raid1 sdb8[0] sda8[1]
      979840 blocks [2/2] [UU]
      
md4 : active raid1 sdb9[0] sda9[1]
      9767424 blocks [2/2] [UU]
      
md5 : active raid1 sdb10[0] sda10[1]
      9767424 blocks [2/2] [UU]
      
md6 : active raid1 sdb11[0] sda11[1]
      7815488 blocks [2/2] [UU]
      
md0 : active raid1 sdb5[0] sda5[1]
      96256 blocks [2/2] [UU]
      
unused devices: <none>

sole:/usr/src/linux# pvcreate /dev/md7
  Physical volume "/dev/md7" successfully created

sole:/usr/src/linux# pvdisplay 
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  --- NEW Physical volume ---
  PV Name               /dev/sda2
  VG Name               
  PV Size               232,84 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID              
lvryBm-VRK5-xL8Q-mQRm-qnXI-707c-YMc2z1

sole:/usr/src/linux# vgcreate vg00 /dev/md7
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Volume group "vg00" successfully created

sole:/usr/src/linux# lvcreate -L 240000M -n lv00 vg00
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Found duplicate PV lvryBmVRK5xL8QmQRmqnXI707cYMc2z1:
using /dev/sdb2 not /dev/sda2
  Volume group "vg00" doesn't exist
sole:/usr/src/linux# 

thx for any help
Luigi.



		
__________________________________ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good. 
http://celebrity.mail.yahoo.com

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

end of thread, other threads:[~2006-07-19 16:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 18:30 [linux-lvm] "pvchange --uuid" failed when PV is in use Page, Jennifer (RBC Dain)
2006-07-19 16:35 ` [linux-lvm] duplicate PV Tommaso Cecchi
  -- strict thread matches above, loose matches on Subject: below --
2004-12-11 11:42 [linux-lvm] duplicate pv johon Doe
2004-12-11 13:18 ` Philipp Schmidt
2004-12-11 22:38   ` Alasdair G Kergon
2004-12-12 17:12     ` Alasdair G Kergon
2004-12-12 17:35       ` Philipp Schmidt
2004-12-13  8:49         ` johon Doe
2004-12-13 15:24           ` Philipp Schmidt
2004-12-11 22:36 ` Alasdair G Kergon

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.