1849783 Members
3985 Online
104044 Solutions
New Discussion

Re: Lost VG(s)

 
SOLVED
Go to solution
Olga_1
Regular Advisor

Re: Lost VG(s)

Thanks that did it.
What about VG02
it has two entries in
strings /etc/lvmtab.old
/dev/vg02
/dev/dsk/c5t1d0
/dev/dsk/c2t2d0

Which one to use?
Pete Randall
Outstanding Contributor

Re: Lost VG(s)

Olga,

Apparently both disks belonged to vg02, so use both: /usr/sbin/vgimport -v -m /etc/lvmconf/vg02.mapfile /dev/vg02 /dev/dsk/c5t1d0 /dev/dsk/c2t2d0 .


Pete


Pete
James R. Ferguson
Acclaimed Contributor

Re: Lost VG(s)

Hi (again) Olga:

For vg02, given your old 'etc/lvmtab', do:

# /usr/sbin/vgimport -v -m /etc/lvmconf/vg02.mapfile /dev/vg02 /dev/dsk/c5t1d0 /dev/dsk/c2t2d0

Since both disks were part of 'vg02' you need to import both. See the man pages for 'vgimport' and 'vgexport' for more information, to.

Regards!

...JRF...

Bernhard Mueller
Honored Contributor

Re: Lost VG(s)

BOTH,

vgcfgrestore -n /dev/vg02 /dev/rdsk/c5t1d0 /dev/rdsk/c2t2d0

vgimport ...

try
# mount -a

however, I wonder what happened during your installation...

Try
# swlist -l fileset -a state | grep -v -E "^#|configur"

this command should list nothing, else you have filesets in the state corrupted, transient or installed.

Regards,
Bernhard
Olga_1
Regular Advisor

Re: Lost VG(s)

Is there any way to re-do vgimport?
I used just one disk instead of two:

/usr/sbin/vgimport -v -m /etc/lvmconf/vg02.mapfile /dev/vg02 /dev/dsk/c5t1d0
Bernhard Mueller
Honored Contributor

Re: Lost VG(s)

vgcfgrestore -n /dev/vg02 /dev/rdsk/c2t2d0
vgexport vg02
vgimport .... /dev /dev
James R. Ferguson
Acclaimed Contributor

Re: Lost VG(s)

Hi (again) Olga:

In response to your questin of what to do after doing a 'vgimport' with only one of the two physical volumes:

Do a 'vgexport' and then a 'vgimport' with the correct device files. This will correctly cleanup your current '/etc/lvmtab'. Note that you will need to rebuild your volume group device file ('dev/vg02/group') *before* the 'vgimport'. The 'vgexport' removes these files.

Regards!

...JRF...
Bernhard Mueller
Honored Contributor

Re: Lost VG(s)

/usr/sbin/vgimport -v -m /etc/lvmconf/vg02.mapfile /dev/vg02 /dev/dsk/c5t1d0 /dev/dsk/c2t2d0

that would have been the correct line above,

sorry for that.

Regards
Bernhard
Caesar_3
Esteemed Contributor

Re: Lost VG(s)

Hello!

Restore first the configuration:
vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtXdX

Export the VG (remove from OS):
vgexport vgXX

Import the VG (add to OS):
vgimport /dev/rdsk/cXtXdX

Caesar