From: Thomas Krichel <krichel@openlib.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] uuid already in use
Date: Tue, 8 Jan 2008 12:22:30 -0600 [thread overview]
Message-ID: <20080108182230.GA6223@openlib.org> (raw)
In-Reply-To: <4783BB2C.5060803@redhat.com>
Bryn M. Reeves writes
> If the command above is exactly what you ran, I'd guess that it is
> complaining because you are trying to create the new PV on *hdb* (whole
> disk), but there is already a PV with that UUID present on *hdb1*
> (partition).
Ahh!
raneb:/etc/lvm/archive# pvcreate --uuid v3HXpi-d5QN-OGiW-VFBG-TNIY-qTun-bFhlVd --restorefile vg1_00026.vg /dev/hdb1
Warning: Volume group vg1 is not consistent
Physical volume "/dev/hdb1" successfully created
BTW, I never understood if I should use disks or
partitions is lvms.
raneb:/etc/lvm/archive# pvcreate --uuid v3HXpi-d5QN-OGiW-VFBG-TNIY-qTun-bFhlVd --restorefile vg1_00026.vg /dev/hdb1
Warning: Volume group vg1 is not consistent
Physical volume "/dev/hdb1" successfully created
raneb:/etc/lvm/archive# pvdisplay
--- Physical volume ---
PV Name /dev/hdd1
VG Name vg1
PV Size 186.31 GB / not usable 3.69 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 47694
Free PE 47694
Allocated PE 0
PV UUID vy3MOc-47sl-zUal-nhdO-FFX3-ispO-Rl0h8p
--- Physical volume ---
PV Name /dev/hdc
VG Name vg1
PV Size 465.76 GB / not usable 4.02 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 119234
Free PE 119234
Allocated PE 0
PV UUID NxRIE1-ROxx-pfjJ-QHzh-7B80-F7wt-kRCmSK
--- NEW Physical volume ---
PV Name /dev/hdb1
VG Name
PV Size 186.31 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID v3HXpi-d5QN-OGiW-VFBG-TNIY-qTun-bFhlVd
raneb:/etc/lvm/archive# vgdisplay
--- Volume group ---
VG Name vg1
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 17
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 652.06 GB
PE Size 4.00 MB
Total PE 166928
Alloc PE / Size 0 / 0
Free PE / Size 166928 / 652.06 GB
VG UUID Hm2mZH-jACj-gxQI-tbZM-H6pm-ovfr-TVgurC
raneb:/etc/lvm/archive# lvdisplay
raneb:/etc/lvm/archive#
I presume I have to restore the lv somehow. But this
has got me a step foward.
Big thank and cheers,
Thomas Krichel http://openlib.org/home/krichel
RePEc:per:1965-06-05:thomas_krichel
skype: thomaskrichel
next prev parent reply other threads:[~2008-01-08 18:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 17:55 [linux-lvm] uuid already in use Thomas Krichel
2008-01-08 18:04 ` Bryn M. Reeves
2008-01-08 18:22 ` Thomas Krichel [this message]
2008-01-10 8:46 ` Thomas Krichel
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=20080108182230.GA6223@openlib.org \
--to=krichel@openlib.org \
--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).