I tried to recover grub with the above procedure.
It does not work.
/dev/pve/root does not exist. I have only /dev/pve/data.
here the result of fdisk
Device Start End Sectors Size Type
/dev/sda1 40 2048 2009 1004.5K BIOS boot
/dev/sda2 4096 40962047 40957952 19.5G Linux RAID
/dev/sda3 40962048 43057151 2095104 1023M Linux swap
/dev/sda4 43057152 3907018751 3863961600 1.8T Linux RAID
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt
Disk identifier: BC8A8549-EA8A-4239-AC1B-E47829F323B4
Device Start End Sectors Size Type
/dev/sdb1 40 2048 2009 1004.5K BIOS boot
/dev/sdb2 4096 40962047 40957952 19.5G Linux RAID
/dev/sdb3 40962048 43057151 2095104 1023M Linux swap
/dev/sdb4 43057152 3907018751 3863961600 1.8T Linux RAID
Disk /dev/md4: 1.8 TiB, 1978348273664 bytes, 3863961472 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/md2: 19.5 GiB, 20970405888 bytes, 40957824 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/pve-data: 1.8 TiB, 1974049177600 bytes, 3855564800 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
and the result of lvdisplay
--- Logical volume ---
LV Path /dev/pve/data
LV Name data
VG Name pve
LV UUID sBKqKE-0mY1-6dwK-ZcHx-nHh5-ucQo-7M1AFS
LV Write Access read/write
LV Creation host, time rescue.ovh.net, 2016-06-24 18:40:33 +0200
LV Status available
# open 1
LV Size 1.80 TiB
Current LE 470650
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
How can I reinstall grub from the rescue OS ?