Importing a foreign volume-group disk set in LVM

Scenario: A rescue server has volume-groups called "vg" and has been given a disk pack that has a volume-group (called "oracle") from a dead server (cpu failure). We want to get the data off the disk pack/volume-group for recovery from the failure.

Note that the foreign volume-group (called "oracle") was never vgexport'ed on the original server yet we still manage to import the volume-group.

vgexport oracle
vgimport oracle
vgchange -ay oracle
mkdir /OLD/u01
mount -o ro /dev/oracle/u01 /OLD/u01
cd /OLD/
cp -ax u01 /
umount /OLD/u01

Fri Nov 7 04:56:49 NZDT 2008 Clark Mills