Hello everyone,
I'm trying to use an existing vmdk file used by a previous machine with a new machine rhel8.
The disk is clearly visible as /dev/sdc, but can't be used. Most of what I found trying to solve that problem all try to format that disk, which is not what I want. I want to use the content of this disk on a new machine.
[root@plinfsftp01 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sdc vg_application lvm2 a-- <1024.00g 0
Is there a documentation on doing something like that? or maybe a better approch?
Thank you in advance.
Regards, Antoine
Replying to my own post because I found it, the filesystem was seen as a lvm2 type.
https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member
vgdisplay
vgrename <VG UUID> new_name
modprobe dm-mod
vgchange -ay
lvscan
mount /dev/new_name/lv_srv /mnt/data/
vi /etc/fstab
/dev/new_name/lv_srv /srv ext4 defaults 0 0
Works fine now.
Are you sure the disk used LVM ?
First of all I would query the partitioning wth
sgdisk -p /dev/sdc
Ulli
Replying to my own post because I found it, the filesystem was seen as a lvm2 type.
https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member
vgdisplay
vgrename <VG UUID> new_name
modprobe dm-mod
vgchange -ay
lvscan
mount /dev/new_name/lv_srv /mnt/data/
vi /etc/fstab
/dev/new_name/lv_srv /srv ext4 defaults 0 0
Works fine now.