LVM - Physical 2 Virtual Recovery of LVM Volume Group

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












We have backed up a bare metal server using software RAID and rebuilt it on a VM. Original server is running Oracle Linux 6 (RHEL 6) with Dell Fusion IO software RAID.



BM Server w/ Fusion IO Drives:



/dev/fioa--____ /dev/md127 (Software RAID 1)
/dev/fiob--/


VM replica:



/dev/sde--_____ /dev/md127 (Metadisk RAID 1)
/dev/sdf--/


LVM Structure on Source:



/dev/md127 (PV)
└─ /vg_ora_data (VG)
└─ /lv_ora_datafile (LV)
|
/dev/mapper/vg_ora_data-lv_ora_datafile -> mounted at /datafile


The original server is not lost, this is for DR purposes.



On this md127 raid device, there is supposed to be a VG and LV... then mounted to '/datafile' path.



What is the proper method to recover the LVM volume group and logical volume on the disk once it has been converted from hardware to virtual? The data is there on /dev/md127, and I know that I need to recreate the VG and LV, but documentation varies quite differently out there.










share|improve this question

















  • 1




    Your question is unclear to me. If the data is there, it should just work. Please elaborate?
    – frostschutz
    Oct 10 '17 at 19:07










  • I would not backup the underlying raw disks, but would move the data for a cloud migration.
    – Rui F Ribeiro
    Oct 10 '17 at 21:44















up vote
0
down vote

favorite












We have backed up a bare metal server using software RAID and rebuilt it on a VM. Original server is running Oracle Linux 6 (RHEL 6) with Dell Fusion IO software RAID.



BM Server w/ Fusion IO Drives:



/dev/fioa--____ /dev/md127 (Software RAID 1)
/dev/fiob--/


VM replica:



/dev/sde--_____ /dev/md127 (Metadisk RAID 1)
/dev/sdf--/


LVM Structure on Source:



/dev/md127 (PV)
└─ /vg_ora_data (VG)
└─ /lv_ora_datafile (LV)
|
/dev/mapper/vg_ora_data-lv_ora_datafile -> mounted at /datafile


The original server is not lost, this is for DR purposes.



On this md127 raid device, there is supposed to be a VG and LV... then mounted to '/datafile' path.



What is the proper method to recover the LVM volume group and logical volume on the disk once it has been converted from hardware to virtual? The data is there on /dev/md127, and I know that I need to recreate the VG and LV, but documentation varies quite differently out there.










share|improve this question

















  • 1




    Your question is unclear to me. If the data is there, it should just work. Please elaborate?
    – frostschutz
    Oct 10 '17 at 19:07










  • I would not backup the underlying raw disks, but would move the data for a cloud migration.
    – Rui F Ribeiro
    Oct 10 '17 at 21:44













up vote
0
down vote

favorite









up vote
0
down vote

favorite











We have backed up a bare metal server using software RAID and rebuilt it on a VM. Original server is running Oracle Linux 6 (RHEL 6) with Dell Fusion IO software RAID.



BM Server w/ Fusion IO Drives:



/dev/fioa--____ /dev/md127 (Software RAID 1)
/dev/fiob--/


VM replica:



/dev/sde--_____ /dev/md127 (Metadisk RAID 1)
/dev/sdf--/


LVM Structure on Source:



/dev/md127 (PV)
└─ /vg_ora_data (VG)
└─ /lv_ora_datafile (LV)
|
/dev/mapper/vg_ora_data-lv_ora_datafile -> mounted at /datafile


The original server is not lost, this is for DR purposes.



On this md127 raid device, there is supposed to be a VG and LV... then mounted to '/datafile' path.



What is the proper method to recover the LVM volume group and logical volume on the disk once it has been converted from hardware to virtual? The data is there on /dev/md127, and I know that I need to recreate the VG and LV, but documentation varies quite differently out there.










share|improve this question













We have backed up a bare metal server using software RAID and rebuilt it on a VM. Original server is running Oracle Linux 6 (RHEL 6) with Dell Fusion IO software RAID.



BM Server w/ Fusion IO Drives:



/dev/fioa--____ /dev/md127 (Software RAID 1)
/dev/fiob--/


VM replica:



/dev/sde--_____ /dev/md127 (Metadisk RAID 1)
/dev/sdf--/


LVM Structure on Source:



/dev/md127 (PV)
└─ /vg_ora_data (VG)
└─ /lv_ora_datafile (LV)
|
/dev/mapper/vg_ora_data-lv_ora_datafile -> mounted at /datafile


The original server is not lost, this is for DR purposes.



On this md127 raid device, there is supposed to be a VG and LV... then mounted to '/datafile' path.



What is the proper method to recover the LVM volume group and logical volume on the disk once it has been converted from hardware to virtual? The data is there on /dev/md127, and I know that I need to recreate the VG and LV, but documentation varies quite differently out there.







linux lvm raid software-raid






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 10 '17 at 18:58









Chris Kuperstein

101




101







  • 1




    Your question is unclear to me. If the data is there, it should just work. Please elaborate?
    – frostschutz
    Oct 10 '17 at 19:07










  • I would not backup the underlying raw disks, but would move the data for a cloud migration.
    – Rui F Ribeiro
    Oct 10 '17 at 21:44













  • 1




    Your question is unclear to me. If the data is there, it should just work. Please elaborate?
    – frostschutz
    Oct 10 '17 at 19:07










  • I would not backup the underlying raw disks, but would move the data for a cloud migration.
    – Rui F Ribeiro
    Oct 10 '17 at 21:44








1




1




Your question is unclear to me. If the data is there, it should just work. Please elaborate?
– frostschutz
Oct 10 '17 at 19:07




Your question is unclear to me. If the data is there, it should just work. Please elaborate?
– frostschutz
Oct 10 '17 at 19:07












I would not backup the underlying raw disks, but would move the data for a cloud migration.
– Rui F Ribeiro
Oct 10 '17 at 21:44





I would not backup the underlying raw disks, but would move the data for a cloud migration.
– Rui F Ribeiro
Oct 10 '17 at 21:44
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397289%2flvm-physical-2-virtual-recovery-of-lvm-volume-group%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397289%2flvm-physical-2-virtual-recovery-of-lvm-volume-group%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)