Operating System - HP-UX
1747988 Members
4667 Online
108756 Solutions
New Discussion юеВ

how to recover a VG with its devices files lost?

 
SOLVED
Go to solution
Emil Velez
Honored Contributor

Re: how to recover a VG with its devices files lost?


you can use mknod to create the device files for the LVs.

mknod c 64 0xXX000D /dev/vg01/rlvol9
mknod b 64 0xXX000D /dev/vg01/lvol9

you need to know the volume group minor number XX and the LV number in the volume group

The name of the LV can be anything but the minor number will be used to access the correct LV device in the VG.

Kapil Jha
Honored Contributor

Re: how to recover a VG with its devices files lost?

As stated earlier if you have no information about LVs,
just make sure you have /dev/VG_name directory
and group file inside this directory and import the VG.

#/sbin/vgcfgrestore -n vg_name -l
to check

and /sbin/vgcfgrestore -n vg_name PV1 PV2 ....

BR,
Kapil+

I am in this small bowl, I wane see the real world......
stephen peng
Valued Contributor

Re: how to recover a VG with its devices files lost?

I would try to vgexport that vg and then vgimport it