From: "Koree A. Smith" <koreesmith@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] UUID Issue
Date: Wed, 2 Apr 2008 15:01:35 -0500 [thread overview]
Message-ID: <676847c60804021301p35332980l2f80f52864f139ba@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3378 bytes --]
I am having the same issue as this previous post to the lvm list, but cannot
find if anyone ever had a solution for it:
*Author: *Tommaso Cecchi
*Date: *2006-07-19 11:352006-07-19 16:35 -500UTC
*To: *LVM general discussion and development
*Old-Topics: *RE: [linux-lvm] "pvchange --uuid" failed when PV is in
use<http://archives.free.net.ph/message/20050524.063104.84b50c45.en.html>
*Subject: *[linux-lvm] duplicate PV
Hello everyone,
I have the following problem: I want to use a snapshot mechanism external to
LVM2 (i.e. snapshot from the storage server) so it happens that I access
from a
linux box two identical LUNs with the same PVID. It is not a matter of
multipathing, they just are completely different devices with the same
content
(and with the same PVID of course).
What I would like to do is to use and mount the second device on a different
mount point. So:
/dev/sdd1 is the primary PV
/dev/sdf1 is the snapshot of the primary PV
The result of pvscan before the discovery is:
drdb2:~ # pvscan
PV /dev/sde1 VG drrg2_vg lvm2 [200.00 GB / 0 free]
PV /dev/sdd1 VG test_vg lvm2 [200.00 GB / 0 free]
PV /dev/sdb1 VG oracledb_vg lvm2 [220.00 GB / 0 free]
PV /dev/sdc1 VG oracledb_vg lvm2 [20.00 GB / 0 free]
PV /dev/sda3 VG root_vg lvm2 [59.75 GB / 47.26 GB free]
Total: 5 [699.73 GB] / in use: 5 [699.73 GB] / in no VG: 0 [0 ]
after the discovery of the new device is:
drdb2:~ # pvscan
Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdf1 not
/dev/sdd1
PV /dev/sde1 VG drrg2_vg lvm2 [200.00 GB / 0 free]
PV /dev/sdd1 VG test_vg lvm2 [200.00 GB / 0 free]
PV /dev/sdb1 VG oracledb_vg lvm2 [220.00 GB / 0 free]
PV /dev/sdc1 VG oracledb_vg lvm2 [20.00 GB / 0 free]
PV /dev/sda3 VG root_vg lvm2 [59.75 GB / 47.26 GB free]
Total: 5 [699.73 GB] / in use: 5 [699.73 GB] / in no VG: 0 [0 ]
I guess this problem is the same I'd have if I copy any single byte from a
device to another the last one resulting in having the same LVM label.
What I tried is to:
1) vgreduce:
drdb2:~ # vgreduce test_vg /dev/sdf1
Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdf1 not
/dev/sdd1
Physical Volume "/dev/sdf1" not found in Volume Group "test_vg"
sdf1 does not belong to test_vg
2) pvchange --uuid:
drdb2:~ # pvchange --uuid /dev/sdf1
Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdd1 not
/dev/sdf1
Volume group containing /dev/sdf1 has active logical volumes
0 physical volumes changed / 1 physical volume not changed
My idea was to modify the PVID so to let LVM understand they are completely
different devices.
How can I manage this?
Thanks for any help you may give me.
Tommaso
--
================================================================
| Tommaso Cecchi CINECA
| System Management Group Via Magnanelli 6/3 40033
| e-mail: t.cecchi@??? Casalecchio di Reno
| Tel: 051/6171411 Bologna - ITALY
| Fax 051/6132198 http://www.cineca.it
================================================================
_______________________________________________
linux-lvm mailing list
Any help is greatly appreciated.
Thanks!
Koree
linux-lvm@???
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Koree A. Smith, RHCE
--
koreesmith@gmail.com
koree@ameth.org
[-- Attachment #2: Type: text/html, Size: 4356 bytes --]
reply other threads:[~2008-04-02 20:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=676847c60804021301p35332980l2f80f52864f139ba@mail.gmail.com \
--to=koreesmith@gmail.com \
--cc=linux-lvm@redhat.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 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).