[linux-lvm] Accidental relabeling of LVM PV
shawnlhood at gmail.com
Fri Feb 6 07:01:27 UTC 2009
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.
More information about the linux-lvm