I guess I've deleted LVM partition. I expanded the datastore in vmware ( 70 GB to 90 GB ), then I run
echo 1> /sys/class/block/sdb/device/rescan.
After that I run
fdisk /dev/sdb. it shows my sdb is 90 GB but with this warning :
The old LVM2_member signature will be removed by a write command.
I did enter w which I guess was a bad idea.
Now none of these commands show anything:
lvs, vgs, pvs
blkid I see my sdb UUID has changed:
/dev/sda1: UUID="b96e5429-d28e-4102-9085-4f303642a26e" TYPE="ext4" PARTUUID="0ab90198-01" /dev/mapper/vg00-vol_db: UUID="4ed1927e-620a-4bf9-b656-c208f31e6ea3" TYPE="ext4" /dev/sdb: PTUUID="d6c28699" PTTYPE="dos"
vgcfgrestore vg00 --test -f vg00_00001-2029869851.vg which is the last file before today's changes. (it's for 2 months ago when I created the LVM)
But it returned
TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Couldn't find device with uuid 4deOKh-FeJz-8JqG-SAyX-KviL-UGu4-PtJ138. Cannot restore Volume Group vg00 with 1 PVs marked as missing. Restore failed.
How can I restore this mess ? Thanx a lot