vgrename command

I recently added SSD to my home server and reloaded the operating system. However, when I try to access my dm-crypt based old disk, I am getting the following error:

Reading all physical volumes. This may take a while...
WARNING: Duplicate VG name server01: Existing bc7YA8-eEXt-1aA1-OHTr-zJkA-ucd0-DsbRTc (created here) takes precedence over RIKiar-w3MG-Gzh5-VFWq-bkRT-9IFc-ia8k87
WARNING: Duplicate VG name server01: Existing bc7YA8-eEXt-1aA1-OHTr-zJkA-ucd0-DsbRTc (created here) takes precedence over RIKiar-w3MG-Gzh5-VFWq-bkRT-9IFc-ia8k87
Found volume group "server01" using metadata type lvm2
Found volume group "server01" using metadata type lvm2

The problem is my volume group. I set to to server01 on both old and new hard disk. How can I rename old LVM2? How do I access my old hard disk?

{ 1 comment }