AntoinePr
Contributor
Contributor

using an existing vmdk on a new rhel machine

Jump to solution

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

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
AntoinePr
Contributor
Contributor

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.

View solution in original post

0 Kudos
2 Replies
continuum
Immortal
Immortal

Are you sure the disk used LVM ?
First of all I would query the partitioning wth
sgdisk -p /dev/sdc

Ulli

 


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

AntoinePr
Contributor
Contributor

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.

0 Kudos