LVM2 magic

less than 1 minute read

Quick n dirty hard drive replacement using lvm2:

pvcreate /dev/md10 && vgextend lvm /dev/md10 && pvmove /dev/hdc2 /dev/md10 && vgreduce lvm /dev/hdc2

Did I mention I did this while the volumes were live? ;)

Categories:

Updated:

Leave a Comment