1836786 Members
2733 Online
110110 Solutions
New Discussion

Re: Root disk change

 
SOLVED
Go to solution
Irek_1
Advisor

Root disk change

Hi,
i have just replaced root disk using make_tape_recovery -x inc_entire=vg00. It worked, but i have other disk with volume group vg01. This volume group doesn't exist in new system. How to fix it?
3 REPLIES 3
Chris Watkins_1
Respected Contributor
Solution

Re: Root disk change


First, make sure it really isn't there:
# vgchange -a y vg01
If that fails, see if /dev/vg01 exists.
If not, do:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000

At this point, see if you have a vg01 mapfile in /etc/lvmconf.
If so, do:

vgimport -m /etc/lvmconf/vg01.mapfile vg01

If you have no mapfile, perform a vgscan.
It will alert you to the disk or disks that are part of a
voume group that doesn't exist right now.
In that case, try:

vgimport vg01 /dev/dsk/cXtXdX /dev/dsk/cXtXdX ...etc...
substituting the correct orphaned disks shown in the vgscan.

Then do:

vgchange -a y vg01
mount -a
(Or, if the entries aren't in the /etc/fstab, add them)

Not without 2 backups and an Ignite image!
Sridhar Bhaskarla
Honored Contributor

Re: Root disk change

Hi,

If you had the cables connected to the system then it should have imported even vg01.

If there is only one disk, it's not difficult to import vg01. Since you restored the same OS, you may have good mapfiles under /etc/lvmconf directory. Look for /etc/lvmconf/vg01.mapfile If you have it then do

#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/vg01 /dev/dsk/cxtydz
#vgchange -a y vg01
#mount -a

If you don't have the mapfile, then use

#vgimport -v vg01 /dev/dsk/cxtydz

It will create logical volumes with the default names in /dev/vg01 directory. Do a 'vgchange -a y vg01' and mount each logical volume to see which filesystem it belongs to.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Irek_1
Advisor

Re: Root disk change

It worked! Thanx for all!
Irek