--> lspv -l
--> Find out how the LVs are laid-out on the PV so you will know how to re-create them when the time comes.
lslv -m
--> Unmount all filesystems on that PV. umount
--> Remove all LVs found on that PV. rmlv
--> Remove the questionable PV from the system. reducevg
--> Remove the PV entry from the ODM database. rmdev -l
--> Shutdown the system: Shutdown -F
--> Remove the bad PV and install the new PV
--> Add the new PV to the VG in question. extendvg
--> Re-create the LVs removed from the OLD PV to the NEW PV.
mklv -y
The map file is assembled from the output generated from the lslv -m command in step 2 above. Do this for each LV that existed on the removed PV.
--> Re-size the filesystems on the new PV. mkfs /dev/
--> Perform a filesystem check before mounting it. fsck -f /dev/
--> Mount all filesystems on that PV. mount
--> Now restore the data you backed up
No comments:
Post a Comment