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

[linux-lvm] Accidental relabeling of LVM PV



I mistakenly ran parted mklabel on an LVM PV (/dev/sdg1).  Presumably,
this damaged the metadata area of the PV.  Will `pvcreate
--restorefile <backup> --uuid <old_uuid> /dev/sdg1` solve my problems
if it executes successfully, or have I damaged?  I've tried running it
but receive the following error:

  Couldn't find device with uuid '6LivE9-tYvi-H8Tm-yQbP-f7tE-OlDO-Nn5jJH'.
  Can't open /dev/sdg1 exclusively.  Mounted filesystem?

/dev/sdg1 is not mounted.  I assume a reboot may take care of this
problem, but I'm afraid I won't be able to remount the filesystem that
exists in the LV on this partition.


-- 
Shawn Hood


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