[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] uuid already in use



  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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]