cancel
Showing results for 
Search instead for 
Did you mean: 

Recovery VG

SOLVED
Go to solution
Eli Daniel
Super Advisor

Recovery VG

good morning,
how recover a vg after having executed the command:

vgexport -v -f outfile vgBWaudit
4 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: Recovery VG

Hi Eli:

Opposites attract; use:

# vgimport

See the manpages for more information.

Regards!

...JRF...
Eli Daniel
Super Advisor

Re: Recovery VG

vgimport -v -f outfile vgBWaudit

this correct?

vgexport command create 2 archive.

mapfile
outfile
SAPL907:/tmp/hp> more mapfile
VGID e42826c84ba2b35a
1 lvaudit
SAPL907:/tmp/hp> more outfile
/dev/dsk/c2t1d0
/dev/dsk/c2t2d0

vgimport run, mapfile or outfile??

Michal Kapalka (mikap)
Honored Contributor
Solution

Re: Recovery VG

hi,

before import :


1.

Create a directory for the volume group. For example:

# mkdir /dev/vgname

By convention, vgname is vgnn, where nn is a unique number across all volume groups. However, you can choose any unique name up to 255 characters.
2.

Create a device file named group in the volume group directory with the mknod command. For example:

# mknod /dev/vgname/group c major 0xminor

The c following the device file name specifies that group is a character device file.

major is the major number for the group device file. For a Version 1.0 volume group, it is 64. For a Version 2.x volume group, it is 128.

minor is the minor number for the group file in hexadecimal. For a Version 1.0 volume group, minor has the form 0xnn0000, where nn is a unique number across all Version 1.0 volume groups. For a Version 2.x volume group, minor has the form 0xnnn000, where nnn is a unique number across all Version 2.x volume groups.

For more information on mknod, see mknod(1M); for more information on major numbers and minor numbers, see â Device Number Formatâ .

and them you could use your command :

vgimport ....

mikap
Eli Daniel
Super Advisor

Re: Recovery VG

thanks