LVM metadata restoration after accidental format

So I had just put the installation images and other files on my main drive, initially sda(full drive)… switched sda with blank sdb and begun install.
long story I accidentally deleted partitions on sdb(full drive) rather than sda(empty drive) oops… Good thing for back-ups, and Testdisk allows me access to all data (all as far as i can tell but i’m sure there are errors).

Halted install and keystroked to reboot and bios setup to prevent any more disk writing. I believe that the partition table was written and that is all.

the old partition table was written in a laptop as a single drive sda. it is now sdb in a desktop untill it has partitions again.

If possible I would like to restore this drive to usable. if not, I would like to just re-partition the partitions to access data. not critical because of back-ups, but I would like to know how so that I can avoid a reload in this situation if ever again. I am lost with partitions and likely am having syntax and command errors.

I used Testdisk, it reads all the files. but It also reccognises the new, default install filesystem.

sdb is the drive, I am booting from sda:

>Disk /dev/sdb - 1000 GB / 931 GiB - HGST HTS721010A9E630

quick scan:

Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
     Partition               Start        End    Size in sectors
>* Linux Swap               0  32 33   261 248 51    4206592
 P Linux                  261 248 52  5484   6 26   83892224
 P Linux                 5484   6 27 121601  57 56 1865422848

these are what install added, not the old partitions.

Deeper Search finds the old partitions but size is wrong as they overlap. pressing p allows me to access and c to copy all data.

I will post edit when deeper search completes...  1 million sectors left...

Recovery of /ect/lvm yields the metadata and filesystem layout I want to restore

# Generated by LVM2 version 2.02.98(2) (2012-10-15): Mon Aug  4 21:06:13 2014

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing '/sbin/lvextend -l +225311 /dev/system/home'"

creation_host = "linux-ans3.site"    # Linux linux-ans3.site 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64
creation_time = 1407207973    # Mon Aug  4 21:06:13 2014

system {
    id = "QqYah9-RT2x-K5du-jx8S-JmOi-tfrk-Zv8KOz"
    seqno = 5
    format = "lvm2" # informational
    status = "RESIZEABLE", "READ", "WRITE"]
    flags = ]
    extent_size = 8192        # 4 Megabytes
    max_lv = 0
    max_pv = 0
    metadata_copies = 0

    physical_volumes {

        pv0 {
            id = "YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt"
            device = "/dev/sda2"    # Hint only

            status = "ALLOCATABLE"]
            flags = ]
            dev_size = 1952704512    # 931.122 Gigabytes
            pe_start = 2048
            pe_count = 238367    # 931.121 Gigabytes
        }
    }

    logical_volumes {

        home {
            id = "eYXIxQ-EA9L-amUe-IY3k-xRtS-oBrJ-z7ZSBh"
            status = "READ", "WRITE", "VISIBLE"]
            flags = ]
            creation_host = "linux.site"
            creation_time = 1407172889    # 2014-08-04 11:21:29 -0600
            segment_count = 2

            segment1 {
                start_extent = 0
                extent_count = 6400    # 25 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = 
                    "pv0", 0
                ]
            }
            segment2 {
                start_extent = 6400
                extent_count = 225311    # 880.121 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = 
                    "pv0", 13056
                ]
            }
        }

        root {
            id = "44viKo-uJd9-2voK-Qfx1-b8HR-sUVS-OQhC7p"
            status = "READ", "WRITE", "VISIBLE"]
            flags = ]
            creation_host = "linux.site"
            creation_time = 1407172889    # 2014-08-04 11:21:29 -0600
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 5120    # 20 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = 
                    "pv0", 6400
                ]
            }
        }

        swap {
            id = "gLbGK8-W0wD-ISDS-y2mj-fey9-IOIX-lLbyec"
            status = "READ", "WRITE", "VISIBLE"]
            flags = ]
            creation_host = "linux.site"
            creation_time = 1407172889    # 2014-08-04 11:21:29 -0600
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 1536    # 6 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = 
                    "pv0", 11520
                ]
            }
        }
    }
}

This is where I get lost. I believe I need to use vgcfgrestore, but am not wanting to try too much and mess up and lose data.

:/srv/etc/lvm/backup # vgcfgrestore -f system /dev/sdb
  Couldn't find device with uuid YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt.
  'system' does not contain volume group 'sdb'.
*** Error in `vgcfgrestore': double free or corruption (!prev): 0x0000000000ab6040 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7283f)[0x7f4766b8a83f]
/lib64/libc.so.6(+0x780ae)[0x7f4766b900ae]
/lib64/libc.so.6(+0x78db6)[0x7f4766b90db6]
/lib64/libdevmapper.so.1.02(dm_pool_destroy+0x2c)[0x7f47673332ac]
vgcfgrestore(backup_read_vg+0x9e)[0x452d7e]
vgcfgrestore(backup_restore_from_file+0xe)[0x452f4e]
vgcfgrestore(vgcfgrestore+0x24e)[0x43567e]
vgcfgrestore(lvm_run_command+0xbbb)[0x426ceb]
vgcfgrestore(lvm2_main+0x20c)[0x4271cc]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f4766b39b05]
vgcfgrestore[0x416c2e]
======= Memory map: ========
00400000-004ea000 r-xp 00000000 fe:01 2490539                            /sbin/lvm
006ea000-006ed000 r--p 000ea000 fe:01 2490539                            /sbin/lvm
006ed000-006f0000 rw-p 000ed000 fe:01 2490539                            /sbin/lvm
006f0000-00710000 rw-p 00000000 00:00 0 
00a61000-00adb000 rw-p 00000000 00:00 0                                  [heap]
7f4766010000-7f4766026000 r-xp 00000000 fe:01 1572937                    /lib64/libgcc_s.so.1
7f4766026000-7f4766225000 ---p 00016000 fe:01 1572937                    /lib64/libgcc_s.so.1
7f4766225000-7f4766226000 r--p 00015000 fe:01 1572937                    /lib64/libgcc_s.so.1
7f4766226000-7f4766227000 rw-p 00016000 fe:01 1572937                    /lib64/libgcc_s.so.1
7f4766228000-7f4766291000 r-xp 00000000 fe:01 265352                     /usr/lib64/libpcre.so.1.2.3
7f4766291000-7f4766490000 ---p 00069000 fe:01 265352                     /usr/lib64/libpcre.so.1.2.3
7f4766490000-7f4766491000 r--p 00068000 fe:01 265352                     /usr/lib64/libpcre.so.1.2.3
7f4766491000-7f4766492000 rw-p 00069000 fe:01 265352                     /usr/lib64/libpcre.so.1.2.3                                                                               
7f4766498000-7f47664c3000 r-xp 00000000 fe:01 1572965                    /lib64/libtinfo.so.5.9                                                                                    
7f47664c3000-7f47666c2000 ---p 0002b000 fe:01 1572965                    /lib64/libtinfo.so.5.9                                                                                    
7f47666c2000-7f47666c6000 r--p 0002a000 fe:01 1572965                    /lib64/libtinfo.so.5.9                                                                                    
7f47666c6000-7f47666cb000 rw-p 0002e000 fe:01 1572965                    /lib64/libtinfo.so.5.9                                                                                    
7f47666cb000-7f47666cc000 rw-p 00000000 00:00 0                                                                                                                                    
7f47666d0000-7f47666f1000 r-xp 00000000 fe:01 1572948                    /lib64/libselinux.so.1                                                                                    
7f47666f1000-7f47668f0000 ---p 00021000 fe:01 1572948                    /lib64/libselinux.so.1
7f47668f0000-7f47668f1000 r--p 00020000 fe:01 1572948                    /lib64/libselinux.so.1
7f47668f1000-7f47668f2000 rw-p 00021000 fe:01 1572948                    /lib64/libselinux.so.1
7f47668f2000-7f47668f4000 rw-p 00000000 00:00 0 
7f47668f8000-7f4766910000 r-xp 00000000 fe:01 1572901                    /lib64/libpthread-2.19.so
7f4766910000-7f4766b0f000 ---p 00018000 fe:01 1572901                    /lib64/libpthread-2.19.so
7f4766b0f000-7f4766b10000 r--p 00017000 fe:01 1572901                    /lib64/libpthread-2.19.so
7f4766b10000-7f4766b11000 rw-p 00018000 fe:01 1572901                    /lib64/libpthread-2.19.so
7f4766b11000-7f4766b15000 rw-p 00000000 00:00 0 
7f4766b18000-7f4766cb6000 r-xp 00000000 fe:01 1572873                    /lib64/libc-2.19.so
7f4766cb6000-7f4766eb5000 ---p 0019e000 fe:01 1572873                    /lib64/libc-2.19.so
7f4766eb5000-7f4766eb9000 r--p 0019d000 fe:01 1572873                    /lib64/libc-2.19.so
7f4766eb9000-7f4766ebb000 rw-p 001a1000 fe:01 1572873                    /lib64/libc-2.19.so
7f4766ebb000-7f4766ebf000 rw-p 00000000 00:00 0 
7f4766ec0000-7f4766ec7000 r-xp 00000000 fe:01 1572905                    /lib64/librt-2.19.so
7f4766ec7000-7f47670c6000 ---p 00007000 fe:01 1572905                    /lib64/librt-2.19.so
7f47670c6000-7f47670c7000 r--p 00006000 fe:01 1572905                    /lib64/librt-2.19.so
7f47670c7000-7f47670c8000 rw-p 00007000 fe:01 1572905                    /lib64/librt-2.19.so
7f47670c8000-7f4767106000 r-xp 00000000 fe:01 1572969                    /lib64/libreadline.so.6.2
7f4767106000-7f4767306000 ---p 0003e000 fe:01 1572969                    /lib64/libreadline.so.6.2
7f4767306000-7f4767308000 r--p 0003e000 fe:01 1572969                    /lib64/libreadline.so.6.2
7f4767308000-7f476730e000 rw-p 00040000 fe:01 1572969                    /lib64/libreadline.so.6.2
7f476730e000-7f4767310000 rw-p 00000000 00:00 0 
7f4767310000-7f4767347000 r-xp 00000000 fe:01 1573049                    /lib64/libdevmapper.so.1.02
7f4767347000-7f4767546000 ---p 00037000 fe:01 1573049                    /lib64/libdevmapper.so.1.02
7f4767546000-7f4767547000 r--p 00036000 fe:01 1573049                    /lib64/libdevmapper.so.1.02
7f4767547000-7f476754a000 rw-p 00037000 fe:01 1573049                    /lib64/libdevmapper.so.1.02
7f476754a000-7f476754b000 rw-p 00000000 00:00 0 
7f4767550000-7f4767555000 r-xp 00000000 fe:01 1573047                    /lib64/libdevmapper-event.so.1.02
7f4767555000-7f4767754000 ---p 00005000 fe:01 1573047                    /lib64/libdevmapper-event.so.1.02
7f4767754000-7f4767755000 r--p 00004000 fe:01 1573047                    /lib64/libdevmapper-event.so.1.02
7f4767755000-7f4767756000 rw-p 00005000 fe:01 1573047                    /lib64/libdevmapper-event.so.1.02
7f4767758000-7f476775b000 r-xp 00000000 fe:01 1572879                    /lib64/libdl-2.19.so
7f476775b000-7f476795a000 ---p 00003000 fe:01 1572879                    /lib64/libdl-2.19.so
7f476795a000-7f476795b000 r--p 00002000 fe:01 1572879                    /lib64/libdl-2.19.so
7f476795b000-7f476795c000 rw-p 00003000 fe:01 1572879                    /lib64/libdl-2.19.so
7f4767960000-7f4767980000 r-xp 00000000 fe:01 1572866                    /lib64/ld-2.19.so
7f4767b00000-7f4767b3f000 r--p 00000000 fe:01 919373                     /usr/lib/locale/en_US.utf8/LC_CTYPE
7f4767b44000-7f4767b48000 rw-p 00000000 00:00 0 
7f4767b48000-7f4767b5c000 r-xp 00000000 fe:01 272184                     /usr/lib64/libudev.so.1.4.0
7f4767b5c000-7f4767b5d000 ---p 00014000 fe:01 272184                     /usr/lib64/libudev.so.1.4.0
7f4767b5d000-7f4767b5e000 r--p 00014000 fe:01 272184                     /usr/lib64/libudev.so.1.4.0
7f4767b5e000-7f4767b5f000 rw-p 00015000 fe:01 272184                     /usr/lib64/libudev.so.1.4.0
7f4767b5f000-7f4767b60000 rw-p 00000000 00:00 0 
7f4767b77000-7f4767b78000 rw-p 00000000 00:00 0 
7f4767b78000-7f4767b7f000 r--s 00000000 fe:01 269185                     /usr/lib64/gconv/gconv-modules.cache
7f4767b7f000-7f4767b80000 rw-p 00000000 00:00 0 
7f4767b80000-7f4767b81000 r--p 00020000 fe:01 1572866                    /lib64/ld-2.19.so
7f4767b81000-7f4767b82000 rw-p 00021000 fe:01 1572866                    /lib64/ld-2.19.so
7f4767b82000-7f4767b84000 rw-p 00000000 00:00 0 
7f4767b84000-7f4767b85000 rw-p 00000000 00:00 0 
7fff5b71a000-7fff5b73b000 rw-p 00000000 00:00 0                          [stack]
7fff5b800000-7fff5b802000 r-xp 00000000 00:00 0                          [vdso]
7fff5b802000-7fff5b804000 r--p 00000000 00:00 0                          [vvar]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

what am I missing do i need to use a different lv command? how does the device or volume group argument need to be in syntax? sdb? sda1?

thanks

Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
     Partition               Start        End    Size in sectors
>  Linux                    0  32 31    50 253  9     817152
   Linux Swap               0  32 33   261 248 51    4206592
   Linux                    0  32 33 120832 130  2 1941172224
   Linux                   31  91 61 120826 197 11 1940578304
   Linux LVM               50 253 12 121601  57 56 1952704512
   Linux /                51  30 44 118207  36 37 1898176512
   Linux                  261 248 52  5484   6 26   83892224
   Linux                 1635  21 51 119791  27 44 1898176512
   Linux                 1646  77 32 119802  83 25 1898176512
   Linux /home          3314 168 55  5925 126 25   41943040
   Linux                 3394 248 55 121601  57 56 1898983424
   Linux                 4639  18 52  7249 231 22   41943040
   Linux                 4643  39  5  7253 251 38   41943040
   Linux                 4646  86 49  7257  44 19   41943040
   Linux                 4648 129 26  7259  86 59   41943040
   Linux                 4652 247 12  7263 204 45   41943040
   Linux                 5484   6 27 121601  57 56 1865422848
   Linux Swap            5925 126 26  6708 190 10   12582912
   Linux Swap           120826 197 12 121595  60  1   12345344
   Linux Swap           120832 162 35 121601  57 56   12347392

If on-disk content is not overwritten it should be enough to simply recreate /dev/sda2 in exactly the same place as before (name does not matter actually). Then lvm will find it. If you do not know exact layout, I guess it is somewhere around “Linux LVM” in your output; you can play with loop devices until you find exact place where partition should begin.

This is where I am getting lost.

how do I create sda2 on drive that is sdb? or how do I change what? In my mind device sdb cannot have a sda2 partition on it? how do I make sda2 without sda1, on sdb??

In that case, it is sdb2 that you would need to create. Use “fdisk”. It won’t touch the actual partitions. It only changes the partition table.

However, if you damaged more than just the partition table, then I don’t know if this is recoverable.

here is fdisk for drives sdb is the one I need to restore.

# fdisk -l

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x44fdfe06

Device     Boot  Start        End    Sectors   Size Id Type
/dev/sda1  *      2048     819199     817152   399M 83 Linux
/dev/sda2       819200 1953523711 1952704512 931.1G 8e Linux LVM

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000d4ddc


Disk /dev/mapper/system-swap: 16 GiB, 17179869184 bytes, 33554432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/system-root: 45 GiB, 48318382080 bytes, 94371840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/system-home: 45 GiB, 48318382080 bytes, 94371840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/system-Multimedia: 670.1 GiB, 719537045504 bytes, 1405345792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/system-tmp: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/system-srv: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

pvcreate --uuid "YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt" --restorefile /srv/etc/lvm/backup/system /dev/sdb
  Couldn't find device with uuid YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt.
  Can't open /dev/sdb exclusively.  Mounted filesystem?

I try, or do I need to address /dev/sda1? thats my boot partition on the other drive. I dont want to overwrite the wrong drive.

yes, I want to restore the metadata in attached file to the drive, yes I want to restore this physical volume below, yes I should be able to, but how?

    physical_volumes {

        pv0 {
            id = "YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt"
            device = "/dev/sda2"    # Hint only

            status = "ALLOCATABLE"]
            flags = ]
            dev_size = 1952704512    # 931.122 Gigabytes
            pe_start = 2048
            pe_count = 238367    # 931.121 Gigabytes
        }
    }

I have only damaged the partition table.

i need help because i am doing the commands wrong.

linux-o2vi:/srv/etc/lvm/backup # pvcreate --uuid "YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt" --restorefile /srv/etc/lvm/backup/system /dev/sdb
  Couldn't find device with uuid YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt.
  Can't open /dev/sdb exclusively.  Mounted filesystem?
linux-o2vi:/srv/etc/lvm/backup # pvcreate --uuid "YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt" --restorefile /srv/etc/lvm/backup/system /dev/sdb1
  Couldn't find device with uuid YqWjBv-TgqE-cZLt-3FFL-jUM2-CzWW-wMHuvt.
  Device /dev/sdb1 not found (or ignored by filtering).

do I need sdb, sdb1, sda, Please explain.

where do i put the fdisk partition, what type, what size, everything I read online uses pvcreate and vgcfgrestore for this using the metadata.

fdisk -l ; lsblk ; blkid ; ls -l /dev/disk/by-*

linux-o2vi:/srv/etc/lvm/backup # lsblk
NAME                  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                     8:0    0 931.5G  0 disk 
├─sda1                  8:1    0   399M  0 part /boot
└─sda2                  8:2    0 931.1G  0 part 
  ├─system-swap       254:0    0    16G  0 lvm  [SWAP]
  ├─system-root       254:1    0    45G  0 lvm  /
  ├─system-home       254:2    0    45G  0 lvm  /home
  ├─system-Multimedia 254:3    0 670.1G  0 lvm  /Multimedia
  ├─system-tmp        254:4    0    10G  0 lvm  /tmp
  └─system-srv        254:5    0   100G  0 lvm  /srv
sdb                     8:16   0 931.5G  0 disk 
linux-o2vi:/srv/etc/lvm/backup # blkid
/dev/sda1: UUID="7a8271c7-dfa4-43b9-8f2d-b405c5a35ced" TYPE="ext4" PTTYPE="dos" PARTUUID="44fdfe06-01" 
/dev/sda2: UUID="KNlRJ3-ClFP-0NLJ-miUS-rcJX-t3TR-hCk0i1" TYPE="LVM2_member" PARTUUID="44fdfe06-02" 
/dev/mapper/system-swap: UUID="e2ab1f7e-e025-468d-b79c-cf94252f7baf" TYPE="swap" 
/dev/mapper/system-root: UUID="f986b4fa-e307-4a1a-a9a0-71fe0d926d2a" TYPE="ext4" 
/dev/mapper/system-home: UUID="30eb602e-f293-48e7-8500-c77382a2457e" TYPE="ext4" 
/dev/mapper/system-Multimedia: UUID="28d31dfb-6890-4862-a5dc-c70805cb5ea9" TYPE="ext4" 
/dev/mapper/system-tmp: UUID="0c31cccd-9a50-447d-b07f-55bc0f739036" TYPE="ext4" 
/dev/mapper/system-srv: UUID="57ab1aa1-ec54-4c05-8a66-f71ad93b8349" TYPE="ext4" 
/dev/sdb: PTUUID="000d4ddc" PTTYPE="dos" 
linux-o2vi:/srv/etc/lvm/backup # ls -l /dev/disk/by-*
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Apr 16 10:56 ata-HGST_HTS721010A9E630_JG40006PGMGDVC -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 ata-WDC_WD10EACS-00D6B0_WD-WCAU40715624 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 ata-WDC_WD10EACS-00D6B0_WD-WCAU40715624-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 ata-WDC_WD10EACS-00D6B0_WD-WCAU40715624-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-Multimedia -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-home -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-srv -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-name-system-tmp -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBl68KdD8vXKMZG9Hfy9iv0p2Z2Tvwo6Zfw -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBlHZxxsFPpCFxpgRvrfXRS2BbVVUsrugbM -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBlNjiNIYOWhRSQbLvBnVSxJ0lv7FRLEf5T -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBlrpFQ68s2zJKpnyKhtYcfplDNeIgH7M0c -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBlxGl3x6MYksr90eixP9oAJUbavvV9krP4 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 15 21:17 dm-uuid-LVM-jFc6usoV1sUFoWwtAdJ8jnLgtQe3YcBlxS1MUid7NF93cubwSVENQOWdQwjnCMI7 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-Multimedia -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-home -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-srv -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 15 21:17 raid-system-tmp -> ../../dm-4
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-0ATA_HGST_HTS721010A9_JG40006PGMGDVC -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-0ATA_WDC_WD10EACS-00D_WD-WCAU40715624 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-0ATA_WDC_WD10EACS-00D_WD-WCAU40715624-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-0ATA_WDC_WD10EACS-00D_WD-WCAU40715624-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-1ATA_HGST_HTS721010A9E630_JG40006PGMGDVC -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-1ATA_WDC_WD10EACS-00D6B0_WD-WCAU40715624 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-1ATA_WDC_WD10EACS-00D6B0_WD-WCAU40715624-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-1ATA_WDC_WD10EACS-00D6B0_WD-WCAU40715624-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-35000cca6acc8d929 -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-350014ee256f8638a -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-350014ee256f8638a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-350014ee256f8638a-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-SATA_HGST_HTS721010A9_JG40006PGMGDVC -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-SATA_HGST_HTS721010A_JG40006PGMGDVC -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00D_WD-WCAU40715624 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00D_WD-WCAU40715624-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00D_WD-WCAU40715624-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00_WD-WCAU40715624 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00_WD-WCAU40715624-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 scsi-SATA_WDC_WD10EACS-00_WD-WCAU40715624-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 wwn-0x5000cca6acc8d929 -> ../../sdb
lrwxrwxrwx 1 root root  9 Apr 16 10:56 wwn-0x50014ee256f8638a -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 wwn-0x50014ee256f8638a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 wwn-0x50014ee256f8638a-part2 -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Apr 16 10:56 pci-0000:00:11.0-ata-1.0 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 16 10:56 pci-0000:00:11.0-ata-1.0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 16 10:56 pci-0000:00:11.0-ata-1.0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Apr 16 10:56 pci-0000:00:11.0-ata-2.0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Apr 15 21:17 0c31cccd-9a50-447d-b07f-55bc0f739036 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Apr 15 21:17 28d31dfb-6890-4862-a5dc-c70805cb5ea9 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Apr 15 21:17 30eb602e-f293-48e7-8500-c77382a2457e -> ../../dm-2
lrwxrwxrwx 1 root root 10 Apr 15 21:17 57ab1aa1-ec54-4c05-8a66-f71ad93b8349 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Apr 16 10:56 7a8271c7-dfa4-43b9-8f2d-b405c5a35ced -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 15 21:17 e2ab1f7e-e025-468d-b79c-cf94252f7baf -> ../../dm-0
lrwxrwxrwx 1 root root 10 Apr 15 21:17 f986b4fa-e307-4a1a-a9a0-71fe0d926d2a -> ../../dm-1

how please?

So far you made every possible attempt to destroy information. You are lucky if it did not happen.

yes I want to restore this physical volume below, yes I should be able to, but how?

Yuu need to recreate partition which contains physical volume in exact the same place it had been before. What do you not understand in this recommendation? Otherwise we will go in circles.

man losetup

Setup loop device on /dev/sdb with offset that corresponds to partition start and do pvscan. If offset was correct, pvscan will find your physical volume … assuming metadata is still present of course.